/* Marketing pages only. The game brings its own styles. Deliberately no webfont: a family
   on rural wifi should get readable text in the first paint, and system UI fonts are already
   the ones these devices render best. */
/* Scoped to #seo, NOT :root. The landing page also loads the game's stylesheet (so /r/<table>
   can fall through to this same HTML), and that sheet defines its own --ink as near-black on
   :root. Whichever loaded last would win, and the page rendered dark-on-dark. Scoping to the
   marketing subtree makes the outcome independent of load order. */
#seo {
  --felt: #10231a;
  --felt-2: #17301f;
  --card: #1b3325;
  --ink: #eef4ef;
  --dim: #a8c2b2;
  --gold: #ffd84d;
  --line: rgba(255, 255, 255, .12);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; height: auto; min-height: 100%; background: #10231a; }
#seo {
  color: var(--ink);
  font: 17px/1.65 ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
}
/* the game pins itself to the viewport; the marketing page must scroll normally */
body:not(.in-game) { position: static; overflow-y: auto; }
#root:empty { display: none; }
#seo img { max-width: 100%; height: auto; }
#seo a { color: var(--gold); }

.nav, main, .hero, .foot { max-width: 900px; margin-inline: auto; padding-inline: 20px; }

/* ---- nav ---- */
.nav { display: flex; align-items: center; gap: 18px; padding-block: 18px; flex-wrap: wrap; }
#seo .brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.navlinks { display: flex; gap: 16px; margin-right: auto; flex-wrap: wrap; }
#seo .navlinks a { color: var(--dim); text-decoration: none; font-size: .97rem; }
#seo .navlinks a:hover, #seo .navlinks a[aria-current] { color: var(--ink); }
#seo .nav-cta {
  background: var(--gold); color: #12140f; text-decoration: none; font-weight: 800;
  padding: 9px 18px; border-radius: 999px; font-size: .97rem;
}

/* ---- hero ---- */
.hero { padding-block: 40px 8px; }
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; }
.hero h1 span { color: var(--gold); }
.hero .sub { font-size: clamp(1.05rem, 3.4vw, 1.3rem); color: var(--dim); margin: 0 0 28px; max-width: 34em; }
.hero-sub { padding-block: 28px 4px; }
.hero-sub h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); }

.start { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.startform label { display: block; font-weight: 700; margin-bottom: 9px; }
.startform .row { display: flex; gap: 10px; flex-wrap: wrap; }
.startform input {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 1.15rem; padding: 14px 16px;
  border-radius: 12px; border: 2px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--ink);
}
.startform input::placeholder { color: #7f9b8c; }
.startform input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.startform button {
  font: inherit; font-size: 1.1rem; font-weight: 800; padding: 14px 26px; border: 0; cursor: pointer;
  border-radius: 12px; background: var(--gold); color: #12140f; flex: 0 0 auto;
}
.startform .hint { margin: 10px 0 0; color: var(--dim); font-size: .92rem; }

/* ---- content ---- */
main { padding-block: 8px 20px; }
#seo section { padding-block: 26px; border-top: 1px solid var(--line); }
#seo section:first-child { border-top: 0; }
.lede { border-top: 0; }
#seo h2 { font-size: clamp(1.4rem, 4.6vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 12px; }
#seo h3 { font-size: 1.08rem; margin: 0 0 4px; }
#seo p { margin: 0 0 14px; max-width: 40em; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #12140f; font-weight: 800;
}
.steps p { margin: 0; color: var(--dim); }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { padding-left: 26px; position: relative; color: var(--dim); max-width: 42em; }
.benefits li::before { content: '·'; position: absolute; left: 8px; color: var(--gold); font-weight: 800; font-size: 1.4em; line-height: 1; }
.benefits strong { color: var(--ink); }

.hand { margin: 18px 0; }
.hand .cards { display: flex; gap: 6px; flex-wrap: wrap; }
.hand .cd { width: clamp(62px, 16vw, 96px); height: auto; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.hand figcaption { margin-top: 10px; color: var(--dim); font-size: .96rem; }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#seo table { border-collapse: collapse; width: 100%; min-width: 380px; }
#seo caption { text-align: left; color: var(--dim); font-size: .93rem; padding-bottom: 10px; }
#seo th, #seo td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
#seo thead th { color: var(--dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--dim); max-width: 42em; }

#seo .inline-cta { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: none; }
#seo .inline-cta:hover { text-decoration: underline; }

.foot { padding-block: 30px 46px; border-top: 1px solid var(--line); color: var(--dim); margin-top: 24px; }
#seo .foot a { color: var(--dim); }
.foot .small { font-size: .88rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
