/* Join / age check. This page only — signup forms keep signup.css. */

:root {
  --join-coral: #ff8a73;
  --join-peach: #ffc4ae;
  --join-purple: #b06bff;
  --join-ink: #fffaf7;
  --join-muted: rgba(255, 248, 244, 0.84);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.hf-join {
  margin: 0;
  min-height: 100svh;
  font-family: "Open Sans", sans-serif;
  color: var(--join-ink);
  background:
    radial-gradient(920px 560px at 12% 18%, rgba(255, 138, 115, 0.55), transparent 62%),
    radial-gradient(860px 540px at 88% 82%, rgba(176, 107, 255, 0.55), transparent 64%),
    radial-gradient(520px 380px at 72% 12%, rgba(255, 196, 174, 0.38), transparent 58%),
    linear-gradient(165deg, #5c246e 0%, #7a335f 46%, #a24b52 100%);
}

.join-stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 36px 24px 28px;
}

.join-copy {
  grid-row: 1;
  align-self: end;
  text-align: center;
  max-width: 440px;
  padding-bottom: 28px;
}

.join-logo {
  display: inline-block;
  margin: 0 0 28px;
  line-height: 0;
}

.join-logo img {
  width: 260px;
  height: auto;
  display: block;
}

.join-copy h1 {
  margin: 0 0 20px;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.join-copy h1.join-welcome {
  height: 1.25em;
  min-width: 360px;
  overflow: hidden;
}

.join-welcome-mask {
  position: relative;
  display: block;
  height: 1.25em;
  overflow: hidden;
}

.join-welcome-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  white-space: nowrap;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.join-welcome-word.is-next {
  transform: translateX(110%);
}

.join-welcome-word.is-leave {
  transform: translateX(-110%);
}

.join-welcome-word[lang="zh-Hans"] {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.12em;
}

.join-welcome-word[lang="ja"] {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.08em;
}

.join-welcome-word[lang="ru"] {
  font-size: 0.78em;
  letter-spacing: -0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .join-welcome-word {
    transition: none;
  }
}

.join-copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--join-muted);
}

.join-note {
  margin: 18px auto 0 !important;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 247, 0.16);
  color: #fffaf7 !important;
  font-size: 15px !important;
}

.join-action {
  grid-row: 2;
  width: min(100%, 340px);
}

.join-form {
  margin: 0;
  width: 100%;
}

.join-fine {
  margin: 18px auto 0;
  max-width: 280px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 248, 244, 0.28);
}

.join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff947c 0%, #f06ec8 52%, #b06bff 100%);
  color: #fff;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 0 rgba(120, 32, 78, 0.18),
    0 22px 40px rgba(90, 20, 70, 0.28);
  transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.35s ease, filter 0.35s ease;
}

.join-btn:hover,
.join-btn:focus-visible {
  transform: translateY(-6px) scale(1.04);
  filter: saturate(1.08) brightness(1.05);
  box-shadow:
    0 18px 0 rgba(120, 32, 78, 0.14),
    0 28px 48px rgba(120, 40, 140, 0.34);
  outline: none;
}

.join-btn:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 250, 247, 0.85),
    0 18px 0 rgba(120, 32, 78, 0.14),
    0 28px 48px rgba(120, 40, 140, 0.34);
}

.join-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 6px 0 rgba(120, 32, 78, 0.16),
    0 10px 20px rgba(90, 20, 70, 0.22);
}

.join-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  text-align: center;
  color: rgba(255, 248, 244, 0.62);
  font-size: 12px;
}

@media (max-width: 520px) {
  .join-stage { padding: 80px 18px 56px; }
  .join-logo img { width: 210px; }
  .join-copy h1 { font-size: 36px; }
  .join-copy h1.join-welcome { min-width: 0; }
  .join-copy p { font-size: 17px; }
  .join-btn {
    padding: 20px 28px;
    font-size: 20px;
  }
  .join-fine {
    color: rgba(255, 248, 244, 0.68);
  }
}
