
:root{color-scheme:dark;--bg:#0E1220;--surface:#151B2E;--border:#2E3858;--text:#F4F6FB;--muted:#A8B0C8;--accent:#FFD27A;--accent-ink:#0E1220;--stage:#1E2640;--stage-ink:#F4F6FB;--display:ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;--display-scale:1;--body:ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif}
/* Shared layout for every game site. Colours and fonts arrive as custom properties from site.config.json (theme.ts);
   data-style on <html> switches the shape language: "soft" (rounded, soft shadow) or "pixel" (square, hard offset shadow). */
:root {
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 1.25rem;
  --radius-sm: .75rem;
  --bw: 1px;
  --shadow: 0 1.25rem 2.5rem -1rem rgb(0 0 0 / .45);
  --pill: 999px;
  --bezel: #101014;
}
html[data-style="pixel"] {
  --radius: 0;
  --radius-sm: 0;
  --pill: 0;
  --bw: 3px;
  --shadow: 6px 6px 0 var(--border);
  image-rendering: pixelated;
}
html[data-style="pixel"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.25; }
html[data-style="pixel"] .hero h1 { line-height: 1.1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 20; padding: .75rem 1rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: .5rem; }

/* ---- header: sits on the hero's stage colour so the two read as one surface ---- */
.top { background: var(--stage); color: var(--stage-ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 800 1.2rem/1 var(--display); text-decoration: none; }
.brand img { border-radius: var(--radius-sm); }
.top nav { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { padding: .5rem 0; font-weight: 600; text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* ---- hero ---- */
.hero { background: var(--stage); color: var(--stage-ink); --btn-bg: var(--stage-ink); --btn-fg: var(--stage); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem 3rem; align-items: end; padding-top: clamp(1.5rem, 5vw, 4rem); }
.hero-copy { padding-bottom: clamp(3rem, 8vw, 6rem); display: grid; gap: 1.25rem; justify-items: start; align-self: center; }
.eyebrow { font-weight: 600; opacity: .85; }
.hero h1 { font-size: calc(clamp(3rem, 9vw, 6.25rem) * var(--display-scale));  line-height: .95; letter-spacing: -.035em; }
.tagline { font: 700 calc(clamp(1.25rem, 2.6vw, 1.75rem) * (1 + var(--display-scale)) / 2)/1.4 var(--display); max-width: 28ch; }
.lede { max-width: 34rem; opacity: .92; }
.status { font-size: .95rem; opacity: .8; }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: inline-grid; gap: .1rem; min-width: 10.5rem; padding: .7rem 1.25rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: var(--bw) solid var(--btn-bg); border-radius: var(--pill);
  font: 700 1.1rem/1.15 var(--display); text-decoration: none;
}
.store small { font: 500 .75rem/1.2 var(--body); opacity: .85; }
a.store:hover { filter: brightness(1.12); }
.play { display: inline-block; padding: .8rem 1.5rem; border: var(--bw) solid currentColor; border-radius: var(--pill); font: 700 1.1rem/1.2 var(--display); text-decoration: none; }
.play:hover { background: var(--stage-ink); color: var(--stage); }
.store[data-state="soon"] { background: transparent; color: inherit; border-style: dashed; opacity: .9; }

/* The phone is the hero's subject: it overhangs the stage so the page starts with the game, not a banner. */
.phone {
  width: min(100%, 19rem); margin-inline: auto; justify-self: center;
  background: var(--bezel); padding: .55rem;
  border-radius: calc(var(--radius) * 1.6); box-shadow: var(--shadow);
}
html[data-style="pixel"] .phone { border: var(--bw) solid var(--border); padding: .4rem; }
.phone img { width: 100%; border-radius: calc(var(--radius) * 1.2); background: var(--surface); }
.hero .phone { margin-bottom: -5rem; position: relative; z-index: 2; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { transform: translateY(2.5rem); opacity: 0; } }

/* ---- features: one screenshot and one idea per row, sides alternate ---- */
.features { padding-top: 8rem; display: grid; gap: clamp(4rem, 10vw, 8rem); }
.feature { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 2rem clamp(2rem, 7vw, 6rem); align-items: center; }
.feature[data-side="right"] { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }
.feature[data-side="right"] .phone { order: 2; }
.feature h2 { font-size: calc(clamp(1.9rem, 4.4vw, 3rem) * var(--display-scale)); }
.feature-copy { display: grid; gap: 1rem; max-width: 30rem; }
.feature-copy p { color: var(--muted); font-size: 1.15rem; }

/* ---- shared section titles ---- */
.band-title { font-size: calc(clamp(1.75rem, 4vw, 2.5rem) * var(--display-scale)); margin-bottom: 2rem; }

/* ---- how to play: a real sequence, so it is numbered ---- */
.band { margin-top: clamp(4rem, 10vw, 8rem); background: var(--surface); padding-block: clamp(3rem, 7vw, 5rem); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; padding-top: 1rem; border-top: var(--bw) solid var(--border); }
.steps li::before { content: counter(step); font: 800 3.5rem/1 var(--display); color: var(--accent); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--muted); }

/* ---- screenshots: a swipeable strip ---- */
.gallery { padding-top: clamp(4rem, 10vw, 7rem); }
.strip {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2)) 2.5rem;
  scroll-padding-inline: var(--gutter);
}
.strip li { flex: 0 0 min(15rem, 62vw); scroll-snap-align: start; }
.strip .phone { width: 100%; }

/* ---- faq ---- */
.faq { padding-top: clamp(3rem, 8vw, 6rem); }
.faq-list { max-width: 46rem; border-top: var(--bw) solid var(--border); }
details { border-bottom: var(--bw) solid var(--border); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-weight: 700; font-size: 1.125rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 700 1.5rem/1 var(--display); color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 40rem; }

/* ---- closing call to action ---- */
.closer { margin-top: clamp(4rem, 10vw, 8rem); background: var(--accent); color: var(--accent-ink); --btn-bg: var(--accent-ink); --btn-fg: var(--accent); }
.closer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.closer h2 { font-size: calc(clamp(1.9rem, 4.5vw, 3rem) * var(--display-scale)); }

/* ---- footer ---- */
.foot { background: var(--bg); border-top: var(--bw) solid var(--border); padding-block: 2.5rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot-name { font: 800 1.2rem/1.2 var(--display); }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: flex-start; }
.foot-links a { display: inline-block; padding: .35rem 0; color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* ---- legal and support pages ---- */
.doc { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4rem) 3rem; display: grid; gap: .75rem; }
.doc h1 { font-size: calc(clamp(2rem, 6vw, 3.25rem) * var(--display-scale)); }
.doc-meta a { color: var(--muted); }
.prose { margin-top: 1.5rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; list-style: revert; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--accent); }
.prose code { background: var(--surface); padding: .1em .35em; border-radius: calc(var(--radius-sm) / 2); font-size: .92em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose ul.facts { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-sm); padding: .75rem 1.25rem .75rem 2.4rem; }
.prose ul.sdk { list-style: none; padding: 0; display: grid; gap: .6rem; }
.prose ul.sdk li { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 0; }
.prose pre { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; white-space: pre-wrap; font-size: .92rem; }
.prose .box { background: var(--surface); border: var(--bw) solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.prose ul.cta { list-style: none; padding: 0; }
.prose a.btn { display: inline-block; padding: .75rem 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.prose ul.dl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; }
.prose ul.dl li { margin: 0; text-align: center; font-size: .9rem; }
.prose ul.dl img { margin: 0 auto .5rem; max-height: 14rem; width: auto; }
.prose time { color: var(--muted); font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: var(--bw) solid var(--border); vertical-align: top; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero .phone { margin-bottom: -4rem; }
  .features { padding-top: 6.5rem; }
  .feature, .feature[data-side="right"] { grid-template-columns: 1fr; }
  .feature[data-side="right"] .phone { order: 0; }
  .feature .phone { margin-inline: 0; justify-self: start; width: min(100%, 17rem); }
}
@media (max-width: 40rem) {
  .top nav { display: none; }
  .stores { width: 100%; }
  .stores li { flex: 1 1 9rem; }
  .store { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone { animation: none; }
}
