/* Landing page (spec 027). Colours are the game's own tokens (output/tokens/tokens.json). */
@font-face { font-family: "Alegreya VMD"; src: url("/fonts/alegreya-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root { --bg: #111820; --deep: #0b1017; --surface: #161d27; --raised: #242b36; --line: #3a4452; --amber: #ecb15d; --red: #da4f4c; --teal: #47bba8; --lilac: #b2a0c4; --text: #e8dcc8; --muted: #c2b6a2; --serif: "Alegreya VMD", Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--amber); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* navigation: floating pill */
.nav-wrap { display: flex; justify-content: center; padding: 20px 16px; position: sticky; top: 0; z-index: 5; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; padding: 6px 6px 6px 18px; min-height: 56px; background: rgba(36, 43, 54, .92); border: 1px solid var(--line); border-radius: 28px; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.menu-btn { display: none; min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.lang { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { min-width: 44px; min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--amber); color: var(--bg); }

/* buttons: red wolf pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; }
.btn-red { background: var(--red); color: var(--bg); box-shadow: 0 0 28px rgba(218, 79, 76, .4); }
.btn-red:hover { color: var(--bg); filter: brightness(1.08); }
.btn-dark { background: var(--raised); color: var(--text); border-color: var(--line); font-weight: 600; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores a:first-child { order: 0; }
.stores[data-first="ios"] a[data-store="ios"] { order: -1; }

/* hero */
.hero { padding-block: 24px 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--raised); font-size: 13px; color: #a0bdaa; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(46px, 8vw, 80px); line-height: 1; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--red); }
.hero p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-shot { flex: 1 1 300px; display: flex; justify-content: center; padding: 16px 0; }
.phone { width: min(260px, 70vw); border-radius: 36px; background: var(--surface); border: 6px solid #2b3442; overflow: hidden; transform: rotate(4deg); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.phone img { display: block; width: 100%; height: auto; }

/* chapters */
section { scroll-margin-top: 90px; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding-bottom: 96px; }
.chapter { background: var(--raised); border-radius: 4px 28px 4px 28px; padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.chapter .num { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1; }
.chapter h3 { font-size: 28px; }
.chapter p { margin: 0; color: var(--muted); line-height: 1.55; }
.n1 { color: var(--amber); } .n2 { color: var(--red); } .n3 { color: var(--teal); }

/* gallery */
.sect-head { text-align: center; margin-bottom: 40px; }
.sect-head h2 { font-size: clamp(34px, 5vw, 48px); }
.sect-head p { margin: 12px auto 0; max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 8px 24px 24px; scroll-snap-type: x mandatory; justify-content: safe center; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 220px; border-radius: 22px; overflow: hidden; border: 4px solid #2b3442; background: var(--surface); scroll-snap-align: center; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery-sect { padding-bottom: 96px; }

/* timeline */
.round { background: var(--deep); padding: 80px 24px; }
.round h2 { text-align: center; font-size: clamp(34px, 5vw, 48px); margin-bottom: 48px; }
.timeline { max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 32px; }
.step { flex: 1 1 200px; text-align: center; }
.dot { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; }
.dot-night { background: #20263b; border: 2px solid #8fa8d8; } .dot-day { background: var(--amber); } .dot-vote { background: #281d29; border: 2px solid var(--red); }
.step b { display: block; font-family: var(--serif); font-size: 26px; }
.step span { display: block; margin-top: 4px; color: var(--muted); }
.link { flex: .3 1 40px; min-width: 40px; height: 2px; background: var(--line); margin-top: 28px; }

/* roles: tarot cards */
.roles { padding-block: 96px 40px; }
.group { margin-bottom: 48px; }
.group h3 { text-align: center; font-size: 24px; margin-bottom: 20px; }
.group-villagers h3 { color: #a0bdaa; } .group-wolves h3 { color: #e8a09e; } .group-neutral h3 { color: var(--lilac); }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card { width: 220px; border-radius: 14px; background: var(--surface); border: 2px solid var(--amber); overflow: hidden; display: flex; flex-direction: column; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--deep); }
.card div { padding: 14px; text-align: center; flex: 1; }
.card b { display: block; font-family: var(--serif); font-size: 24px; }
.card p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.group-wolves .card { border-color: var(--red); } .group-neutral .card { border-color: var(--lilac); } .group-villagers .card { border-color: var(--teal); }

/* voice band */
.voice { padding-bottom: 96px; }
.voice-in { border-radius: 24px; background: var(--surface); border: 1px solid #2b3442; padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.voice-copy { flex: 1 1 320px; }
.voice h2 { font-size: clamp(34px, 5vw, 44px); line-height: 1.05; }
.voice p { margin: 12px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.seats { flex: 1 1 280px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.seat { width: 72px; height: 72px; border-radius: 50%; background: var(--raised); border: 3px solid var(--line); }
.seat.on { border-color: var(--teal); box-shadow: 0 0 0 6px rgba(71, 187, 168, .2); }
.seat.on2 { border-color: var(--amber); box-shadow: 0 0 0 6px rgba(236, 177, 93, .2); }

/* footer */
footer { background: var(--deep); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 40px; }
.foot > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 120px; }
.foot .about { flex: 2 1 260px; } .foot .getapp { flex: 1.4 1 240px; }
.foot b, .foot .logo { color: var(--text); }
.foot .logo { font-family: var(--serif); font-weight: 700; font-size: 26px; }
.foot a { color: var(--muted); min-height: 24px; } .foot a:hover { color: var(--amber); }
.foot .stores a { background: var(--raised); color: var(--text); padding: 12px 16px; border-radius: 8px; }

@media (max-width: 760px) {
  .link { display: none; }
  .menu-btn { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 0; }
  .nav.open .nav-links { display: flex; }
  .nav { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .phone { transform: none; } * { transition: none !important; animation: none !important; } }
