/* ==========================================================================
   TIDEPOOL — "Night Tide" theme (Dark Mode)
   Deep ocean backdrop, bioluminescent teal & vivid coral palette, gold accents.
   ========================================================================== */

:root {
  --bg: #0d1b1a;
  --bg-2: #142624;
  --bg-3: #1c3230;
  --ink-deep: #e2f3f0;
  --card: #132423;
  --card-soft: #182c2a;
  --line: rgba(226, 243, 240, 0.14);
  --line-soft: rgba(226, 243, 240, 0.08);

  --teal: #22a399;
  --teal-deep: #167a72;
  --coral: #ff7b63;
  --coral-deep: #e0553e;
  --gold: #f5b247;
  --gold-deep: #d99126;
  --plum: #9b6bcc;

  --text: #e2f3f0;
  --text-soft: #9bb7b2;
  --text-dim: #6b8a85;

  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; line-height: 1.14; letter-spacing: 0.1px; color: var(--ink-deep); }

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- signature keyframes ---------- */
@keyframes riseBubble {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-140px) scale(1.15); opacity: 0; }
}
@keyframes swell {
  0%, 100% { background-position: 0 0, 60px 0; }
  50% { background-position: 30px -6px, 90px -6px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shineSweep {
  0% { transform: translateX(-140%) rotate(8deg); }
  100% { transform: translateX(140%) rotate(8deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 163, 153, 0.4); }
  100% { box-shadow: 0 0 0 14px rgba(34, 163, 153, 0); }
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes driftLetter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- top disclaimer strip ---------- */
.ribbon {
  position: relative;
  background: #071312;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  text-align: center;
  padding: 8px 14px;
  overflow: hidden;
}
.ribbon strong { color: var(--gold); font-weight: 800; }
.ribbon::after {
  content: '';
  position: absolute;
  left: -20%; right: -20%; bottom: -6px;
  height: 12px;
  background-image: radial-gradient(circle at 50% 0, transparent 60%, var(--bg) 62%);
  background-size: 26px 12px;
  background-repeat: repeat-x;
  animation: swell 4.5s ease-in-out infinite;
}

/* ---------- top navigation (full width, no sidebar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
  padding: 0 26px;
  background: rgba(13, 27, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink-deep);
  flex: 0 0 auto;
}
.brand-badge { flex: 0 0 auto; }
.brand em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal), var(--plum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 700;
  transition: color 0.15s, background 0.15s;
}
.main-nav a svg { width: 16px; height: 16px; opacity: 0.8; }
.main-nav a:hover { color: var(--text); background: var(--bg-2); }
.main-nav a.on { color: var(--teal); }
.main-nav a.on::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--coral);
  animation: underlineGrow 0.25s ease both;
  transform-origin: left;
}

.age-pill {
  border: 1.5px solid var(--gold-deep);
  background: rgba(245, 178, 71, 0.14);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--teal), var(--teal-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--teal-deep), 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--teal-deep), 0 12px 20px rgba(0, 0, 0, 0.4); }
.cta-btn:active { transform: translateY(0); box-shadow: 0 2px 0 var(--teal-deep); }
.cta-btn.wide { width: 100%; }
.cta-btn.outline { background: transparent; border: 1.5px solid var(--line); color: var(--text); box-shadow: none; }
.cta-btn.outline:hover { background: var(--card); border-color: var(--teal); transform: translateY(-2px); }
.cta-btn.coral { background: linear-gradient(180deg, var(--coral), var(--coral-deep)); box-shadow: 0 3px 0 var(--coral-deep), 0 8px 16px rgba(0, 0, 0, 0.35); }
.cta-btn:disabled { opacity: 0.6; cursor: default; transform: none !important; }

.cta-btn.lg {
  position: relative;
  padding: 15px 30px;
  font-size: 17px;
  isolation: isolate;
  overflow: hidden;
}
.cta-btn.lg::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: none;
}
.cta-btn.lg:hover::before { animation: shineSweep 1.1s ease; }

.link-plain {
  color: var(--text-soft);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 6px;
  font-weight: 700;
}
.link-plain:hover { color: var(--coral); }

.hello-tag { color: var(--text-soft); font-size: 14px; white-space: nowrap; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 54px 30px 60px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  background-image:
          radial-gradient(3.5px 3.5px at 8% 70%, var(--teal) 0, transparent 60%),
          radial-gradient(2.5px 2.5px at 22% 40%, var(--coral) 0, transparent 60%),
          radial-gradient(3px 3px at 40% 85%, var(--gold) 0, transparent 60%),
          radial-gradient(2.5px 2.5px at 63% 55%, var(--plum) 0, transparent 60%),
          radial-gradient(3px 3px at 85% 75%, var(--teal) 0, transparent 60%);
  animation: riseBubble 7s linear infinite;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 46px;
  background-image: radial-gradient(circle at 50% 0, var(--bg) 68%, transparent 70%);
  background-size: 64px 46px;
  background-repeat: repeat-x;
}
.hero > * { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 163, 153, 0.16);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 14px;
  border: 1px solid rgba(34, 163, 153, 0.35);
  animation: fadeUp 0.5s ease both;
}
.hero h1 {
  font-size: 42px;
  max-width: 680px;
  margin-top: 18px;
  animation: fadeUp 0.5s ease 0.05s both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  color: var(--text-soft);
  max-width: 560px;
  margin-top: 14px;
  font-size: 16.5px;
  animation: fadeUp 0.5s ease 0.1s both;
}
.hero .acts {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s ease 0.15s both;
}
.hero .fine { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); animation: fadeUp 0.5s ease 0.2s both; }

/* ---------- category tab row ---------- */
.tab-row {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 26px;
  background: rgba(13, 27, 26, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--text-soft);
  border-radius: 8px 8px 0 0;
  padding: 8px 15px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--coral); border-color: var(--coral); }

/* ---------- session banner ---------- */
.session-banner {
  margin: 14px 26px;
  background: var(--card);
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  display: none;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--text-soft);
}
.session-banner strong { color: var(--coral); }
.session-banner .cta-btn { padding: 8px 16px; font-size: 14px; }

/* ---------- lanes & game cards ---------- */
.lane { padding: 22px 0 6px; }
.lane-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 26px;
  margin-bottom: 14px;
}
.lane-header h2 { font-size: 22px; }
.lane-header .meta { color: var(--text-dim); font-size: 13px; }

.lane-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 26px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-3) transparent;
}

.game-card {
  flex: 0 0 172px;
  width: 172px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--text);
  font: inherit;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.game-card:hover {
  border-color: rgba(255, 123, 99, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.5);
}

.game-card .thumb { display: block; position: relative; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge-new {
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--coral);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 34px;
  text-transform: uppercase;
  transform: rotate(35deg);
  animation: bob 2.2s ease-in-out infinite;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 15, 14, 0.75);
  opacity: 0;
  transition: opacity 0.18s;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-overlay span {
  background: var(--gold);
  color: #112220;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 9px 20px;
  animation: ringPulse 1.6s ease-out infinite;
}

.game-card .meta { display: block; padding: 12px; position: relative; }
.game-card .meta::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  border-top: 1.5px dotted var(--line);
}
.game-card .meta .title {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card .meta .kind { display: block; color: var(--text-dim); font-size: 12px; margin-top: 3px; }

/* ---------- full game wall ---------- */
.game-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(162px, 1fr));
  gap: 16px;
  padding: 0 26px;
}
.game-wall-grid .game-card { width: auto; flex: none; }

/* ---------- content sections ---------- */
.section { padding: 40px 26px; }
.section.shaded { background: var(--card-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: 26px; margin-bottom: 20px; }

/* how-it-works: connected timeline instead of card grid */
.steps {
  display: flex;
  gap: 0;
  max-width: 1000px;
  counter-reset: step;
}
.step { flex: 1; position: relative; padding: 0 22px 0 0; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(100% - 14px);
  right: -14px;
  height: 2.5px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 15px);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #112220;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transform: rotate(-4deg);
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 14.5px; }

/* FAQ — plus/minus accordion */
.faq-list { max-width: 780px; }
.faq-item {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px;
  padding: 15px 18px;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: rgba(34, 163, 153, 0.5); }
.faq-item summary {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  cursor: pointer;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--teal);
  font-size: 17px;
  line-height: 24px;
  text-align: center;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.faq-item p { color: var(--text-soft); margin-top: 10px; font-size: 14.5px; }

.notice-box {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 1000px;
}
.notice-box strong { color: var(--coral); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background: #071312;
  color: rgba(255, 255, 255, 0.75);
  padding: 46px 26px 32px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 14px;
  background-image: radial-gradient(circle at 50% 100%, var(--bg) 62%, transparent 64%);
  background-size: 46px 14px;
  background-repeat: repeat-x;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; max-width: 1080px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 12px; color: var(--gold); }
.footer-grid p { color: rgba(255, 255, 255, 0.62); font-size: 14px; }
.footer-grid a { display: block; color: rgba(255, 255, 255, 0.72); font-size: 14px; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); }

.newsletter-note { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; }

.footer-legal { margin-top: 30px; max-width: 1080px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; }
.footer-legal p { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin-bottom: 8px; }

/* ---------- game stage overlay ---------- */
.game-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #050d0c;
  display: none;
  flex-direction: column;
}
.game-stage.on { display: flex; }
.game-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #071312;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.game-stage-bar .title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px; color: #fff; }
.game-stage-bar button {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.game-stage-bar button:hover { border-color: var(--gold); color: var(--gold); }
.game-stage iframe { flex: 1; width: 100%; border: 0; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal.on { display: flex; }
.modal-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 26px;
  animation: fadeUp 0.22s ease both;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--text-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--coral); }

.mode-toggle { display: flex; gap: 6px; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.mode-toggle button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 99px;
  color: var(--text-soft);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mode-toggle button.active { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); color: #fff; }

.modal-note { color: var(--text-soft); font-size: 13.5px; margin-bottom: 16px; }

/* ---------- forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text-soft); }
.field input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  transition: border-color 0.15s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { outline: none; border-color: var(--teal); }
.field input.invalid { border-color: var(--coral); }
.field-hint { display: none; color: var(--coral); font-size: 12.5px; margin-top: 5px; }

.consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-soft); margin: 15px 0 18px; }
.consent-line input { margin-top: 3px; accent-color: var(--teal); }
.consent-line a { color: var(--teal); font-weight: 700; }

.form-alert {
  display: none;
  background: rgba(255, 123, 99, 0.15);
  border: 1.5px solid rgba(255, 123, 99, 0.35);
  color: var(--coral);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.form-alert.on { display: block; }

/* ---------- confirmation / gateway screens ---------- */
.status-pill {
  display: inline-block;
  background: rgba(34, 163, 153, 0.16);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 15px;
  border: 1px solid rgba(34, 163, 153, 0.35);
}
.status-pill.warn { background: rgba(255, 123, 99, 0.16); color: var(--coral); border-color: rgba(255, 123, 99, 0.35); }
.confirm-title { font-size: 27px; margin-top: 18px; }
.confirm-lead { color: var(--text-soft); margin-top: 10px; }
.confirm-email { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; color: var(--coral); margin-top: 6px; word-break: break-all; }
.confirm-mail-btn { margin-top: 24px; animation: bob 2.4s ease-in-out infinite; }
.confirm-plaque {
  margin-top: 24px;
  background: rgba(245, 178, 71, 0.14);
  border: 1.5px solid rgba(245, 178, 71, 0.45);
  color: var(--gold);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 14px;
  padding: 14px 20px;
  display: inline-block;
}
.confirm-spam { color: var(--text-soft); font-size: 13.5px; margin-top: 20px; }
.confirm-spam strong { color: var(--text); }
.confirm-wait { color: var(--text-dim); font-size: 13px; margin-top: 18px; }
.confirm-close {
  background: none;
  border: 0;
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 16px;
}

.gateway {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.gateway-card {
  position: relative;
  max-width: 480px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 42px 34px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.gateway-card .confirm-title { font-size: 30px; }

/* ---------- join (signup/signin) split page ---------- */
.join-wrap {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 40px 22px 50px;
  align-items: start;
}
.join-info h1 { font-size: 32px; }
.join-info h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cover-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 20px; }
.cover-mosaic img { border-radius: 14px; border: 1.5px solid var(--line); }
.cover-mosaic img:nth-child(odd) { transform: translateY(6px); }
.perks { list-style: none; margin-top: 20px; }
.perks li {
  color: var(--text-soft);
  font-size: 14.5px;
  padding-left: 30px;
  position: relative;
  margin-bottom: 11px;
}
.perks li::before {
  content: '\2713';
  position: absolute;
  left: 2px;
  color: #0d1b1a;
  font-weight: 800;
  background: var(--teal);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  top: 1px;
}

.join-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- plain content / doc pages ---------- */
.doc-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 22px 56px;
}
.doc-page h1 { font-size: 32px; margin-bottom: 8px; }
.doc-page .updated { color: var(--text-dim); font-size: 13.5px; margin-bottom: 28px; }
.doc-page h2 { font-size: 20px; margin-top: 32px; margin-bottom: 10px; color: var(--teal); }
.doc-page p, .doc-page li { color: var(--text-soft); font-size: 15px; margin-bottom: 10px; }
.doc-page ul { padding-left: 22px; }
.doc-page a { color: var(--coral); text-decoration-color: rgba(255, 123, 99, 0.4); }
.doc-page strong { color: var(--text); }

.doc-callout {
  background: var(--card-soft);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .steps { flex-direction: column; gap: 22px; }
  .step:not(:last-child)::after { display: none; }
  .join-wrap { grid-template-columns: 1fr; gap: 26px; }
  .join-card { grid-area: 1 / 1 / 1 / 1;}
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header { padding: 0 14px; gap: 8px; }
  .brand { font-size: 16.5px; gap: 7px; }
  .cta-btn { padding: 8px 14px; font-size: 13.5px; }
  .cta-btn.lg { padding: 12px 20px; font-size: 15.5px; }
  .link-plain { font-size: 13.5px; padding: 8px 3px; }
  .age-pill { font-size: 11px; padding: 2px 8px; }
  .hero { padding: 30px 16px 26px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 14px; margin-top: 10px; }
  .hero .acts { margin-top: 16px; gap: 8px; flex-wrap: nowrap; }
  .hero .acts .cta-btn.lg { padding: 11px 15px; font-size: 14px; }
  .hero .fine { margin-top: 12px; font-size: 11.5px; }
  .session-banner { margin: 10px 14px; padding: 12px 14px; font-size: 13px; gap: 10px; }
  .session-banner .cta-btn { padding: 7px 13px; font-size: 13px; }
  .tab-row { padding: 10px 14px; }
  .tab { padding: 7px 12px; font-size: 13px; }
  .lane-header, .lane-scroll, .game-wall-grid { padding-left: 14px; padding-right: 14px; }
  .game-card { flex-basis: 148px; width: 148px; }
  .game-wall-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .section { padding: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .join-wrap { padding-top: 22px; gap: 18px; }
  .join-info h1 { font-size: 24px; }
  .cover-mosaic { grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 14px; }
  .cover-mosaic img { transform: none !important; }
  .perks { margin-top: 14px; }
  .perks li { margin-bottom: 7px; font-size: 13.5px; }
  .perks li:nth-child(n+3) { display: none; }
  .join-card { padding: 22px 16px; }
  .confirm-title { font-size: 24px; }
}