/* midgame · landing page styles
   Tokens mirror mobile/lib/app/theme.dart MidgameColors. */

:root {
  --navy:        #0A1530;
  --navy-soft:   #0D1937;
  --surface:     #122044;
  --raised:      #162652;
  --ink:         #F1E9D7;
  --ink-dim:     #8D99B8;
  --ink-muted:   #525D77;
  --accent:      #C9A14A;
  --accent-soft: rgba(201, 161, 74, 0.14);
  --line:        rgba(241, 233, 215, 0.08);
  --line-strong: rgba(241, 233, 215, 0.16);

  --max:  1180px;
  --gap:  24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--navy); }

/* ──────────────────────────────────────────────────────────────
   Type helpers
   ────────────────────────────────────────────────────────────── */

.caps {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.caps--gold { color: var(--accent); }

.dot { color: var(--ink-muted); margin: 0 6px; }

/* ──────────────────────────────────────────────────────────────
   Header
   ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(10, 21, 48, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { height: 30px; width: 30px; display: block; }

/* Inline wordmark — renders with the page's Outfit, so it never
   depends on SVG-as-img font loading. The 'i' is a dotless ı with
   a positioned gold square dot, per the brand spec. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.wordmark--game { color: var(--accent); }

.wordmark__i {
  position: relative;
  display: inline-block;
  font-style: normal;
}
.wordmark__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.42em;
  width: 0.20em;
  height: 0.20em;
  background: var(--accent);
  border-radius: 1px;
}

.wordmark--sm { font-size: 22px; }
.wordmark--lg { font-size: clamp(48px, 7vw, 96px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────
   CTAs
   ────────────────────────────────────────────────────────────── */

.cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.cta--primary {
  background: var(--accent);
  color: var(--navy);
}
.cta--primary:hover { transform: translateY(-1px); background: #d6ae5a; }
.cta--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.cta--ghost:hover { border-color: var(--ink-dim); color: var(--ink); }
.cta--lg { font-size: 16px; padding: 16px 30px; }

/* ──────────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) clamp(20px, 5vw, 48px) clamp(48px, 8vw, 80px);
  text-align: left;
}
.hero__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 18px 0 22px;
}
.hero__title--alt { color: var(--ink); opacity: 0.78; }
.hero__lede {
  max-width: 580px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-dim);
  line-height: 1.55;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 32px;
}
.hero__meta {
  margin-top: clamp(48px, 8vw, 80px);
  color: var(--ink-muted);
  display: flex; flex-wrap: wrap; align-items: center;
}

/* ──────────────────────────────────────────────────────────────
   Rule band
   ────────────────────────────────────────────────────────────── */

.rule {
  background: var(--navy-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rule__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.rule__chip {
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.rule__chip--gold {
  background: var(--accent);
  border-radius: 8px;
}
.rule__chip--cream {
  background: var(--ink);
  border-radius: 50%;
}
.rule__h {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 10px 0 14px;
}
.rule__sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-dim);
  max-width: 640px;
}

@media (max-width: 720px) {
  .rule__inner { grid-template-columns: 1fr; text-align: left; }
  .rule__chip { width: 44px; height: 44px; }
}

/* ──────────────────────────────────────────────────────────────
   Gallery
   ────────────────────────────────────────────────────────────── */

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 48px);
}
.gallery__head { margin-bottom: clamp(40px, 6vw, 64px); }
.gallery__h {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 12px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

.shot { display: flex; flex-direction: column; gap: 16px; }
.shot--wide { grid-column: span 1; }
@media (min-width: 900px) {
  .shot--wide { grid-column: span 2; }
  .shot--wide .phone { max-width: 320px; margin: 0 auto; }
}

.phone {
  position: relative;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.phone:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(201, 161, 74, 0.18) inset;
}
.phone img {
  border-radius: 28px;
  display: block;
  width: 100%;
}

.shot figcaption {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 6px;
}
.shot__cap {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────
   Games list
   ────────────────────────────────────────────────────────────── */

.games {
  background: var(--navy-soft);
  border-top: 1px solid var(--line);
}
.games__head, .games__list {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}
.games__head { padding-top: clamp(64px, 10vw, 120px); }
.games__h {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

.games__list {
  list-style: none;
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(64px, 10vw, 120px);
}
.games__list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: background 0.15s ease;
}
.games__list li:hover { background: rgba(241, 233, 215, 0.02); }
.games__list li:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.g {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cat { color: var(--ink-muted); }

/* ──────────────────────────────────────────────────────────────
   Closer
   ────────────────────────────────────────────────────────────── */

.closer {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 48px);
}
.closer__mark {
  margin: 0 auto 28px;
  opacity: 0.95;
}
.closer__h {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

/* ──────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-soft);
  padding: 40px clamp(20px, 5vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
}
.footer__row {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 14px;
  color: var(--ink-dim);
}
.footer__row--meta {
  color: var(--ink-muted);
  font-size: 11px;
}
.footer__row--meta a:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────
   Responsive nudges
   ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .nav-link { display: none; }
  .hero__meta { font-size: 9px; letter-spacing: 0.16em; }
}
