/* Kyrsoft Studios — site styles. One file, no build step beyond tools/build.mjs copying it. */

/* ---------- fonts (self-hosted, OFL-1.1) ---------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-800.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext-800.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/outfit-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/outfit-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0a10;
  --bg-raise: #13111a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --grid: rgba(255, 255, 255, .045);
  --text: #f4f2f9;
  --muted: #aca6bc;
  --dim: #8a8499;
  --amber: #ffc247;
  --pink: #ff4fd8;
  --cyan: #41f0ff;
  --accent: #ffffff;
  --on-accent: #120f18;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --spectrum: linear-gradient(90deg, var(--amber), var(--pink) 52%, var(--cyan));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.62 var(--font-body);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(640px 420px at 12% -8%, rgba(255, 79, 216, .14), transparent 70%),
    radial-gradient(720px 520px at 92% 0%, rgba(65, 240, 255, .09), transparent 70%),
    radial-gradient(620px 420px at 50% 115%, rgba(255, 194, 71, .07), transparent 70%);
  pointer-events: none;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 79, 216, .4); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h3, h4 { font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: .6em 1em; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small parts ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--spectrum); box-shadow: 0 0 12px rgba(255, 79, 216, .7);
}
.spectrum-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.fine { font-size: .9rem; color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.25em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1.1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--on-accent); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .55); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .28); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { box-shadow: 0 12px 34px -12px var(--accent); }
.btn-lg { min-height: 52px; padding: .85em 1.5em; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: .28em .75em; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.chip.is-hot { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 16, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
/* logo: the KS hexagon (tools/logo.mjs) + wordmark; the mark takes the text colour, the S spine is blue */
.brand { --logo-accent: #3d9bff; display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.brand-name span { display: block; margin-top: .42em; font-weight: 400; font-size: .6rem; letter-spacing: .62em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a {
  padding: .55em .9em; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta { color: var(--on-accent); background: #fff; margin-left: .35rem; }
.site-nav .nav-cta:hover { color: var(--on-accent); background: #fff; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .6); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .js .site-nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: .25rem; padding: .6rem;
    background: rgba(19, 17, 26, .97); border: 1px solid var(--line-strong); border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .js .site-nav a { padding: .8em 1em; font-size: 1.02rem; }
  .js .site-nav .nav-cta { margin: .3rem 0 0; text-align: center; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .no-js .site-nav { flex-wrap: wrap; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 6vw, 84px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-text { display: grid; gap: 1.4rem; justify-items: start; }
.hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); line-height: 1.03; }
.hero .lead { max-width: 54ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: .6rem; }
.hero-stats div { display: grid; gap: .1rem; }
.hero-stats dt { order: 2; font-size: .86rem; color: var(--dim); }
.hero-stats dd { order: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }

.hero-art { position: relative; aspect-ratio: 56 / 50; width: 100%; }
.hero-art .art-card {
  position: absolute; margin: 0; overflow: hidden; z-index: 1;
  border-radius: 18px; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3);
  background: var(--bg-raise);
}
.hero-art .art-card img { width: 100%; height: 100%; object-fit: cover; }
.art-cs { width: 68%; aspect-ratio: 1024 / 500; left: 0; top: 6%; transform: rotate(-5deg); box-shadow: 0 30px 80px -30px rgba(255, 79, 216, .55), 0 0 0 1px rgba(0, 0, 0, .3); }
.art-adhd { width: 58%; aspect-ratio: 616 / 353; right: 0; top: 34%; transform: rotate(4deg); box-shadow: 0 30px 80px -30px rgba(255, 159, 87, .5), 0 0 0 1px rgba(0, 0, 0, .3); }
.art-pp { width: 50%; aspect-ratio: 616 / 353; left: 8%; bottom: 0; transform: rotate(-2deg); box-shadow: 0 30px 80px -30px rgba(108, 196, 255, .45), 0 0 0 1px rgba(0, 0, 0, .3); }
/* a ball bounces around the art box: the dotted trail runs under the cards, the ball flies over them */
.hero-art .ricochet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-art .ricochet-trail { z-index: 0; }
.hero-art .ricochet-ball { z-index: 2; }
.ricochet .trail { fill: none; stroke: url(#ks-spectrum); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .8; }
.ricochet .ball { fill: #fff; filter: drop-shadow(0 0 8px rgba(255, 79, 216, .95)) drop-shadow(0 0 18px rgba(65, 240, 255, .6)); }
@media (prefers-reduced-motion: reduce) { .ricochet .ball { display: none; } }

/* ---------- games ---------- */
.group-title {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.25rem;
}
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group + .group { margin-top: clamp(40px, 5vw, 64px); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.game-card {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 70px -35px color-mix(in srgb, var(--accent) 70%, transparent);
}
.game-media { display: block; position: relative; overflow: hidden; background: #000; }
.game-media img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; transition: transform .5s ease; }
.grid-3 .game-media img { aspect-ratio: 616 / 353; }
.game-card:hover .game-media img { transform: scale(1.03); }
.game-media .badge {
  position: absolute; right: 14px; top: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .75em; border-radius: 999px; background: rgba(11, 10, 16, .82); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.game-body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(18px, 2.4vw, 26px); flex: 1; }
.game-title { display: flex; align-items: center; gap: .9rem; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.game-title h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.grid-3 .game-title h3 { font-size: 1.15rem; margin-bottom: 0; }
.game-body p { color: var(--muted); }
.game-body .actions { margin-top: auto; padding-top: .25rem; }

.app-strip {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(16px, 2vw, 24px); padding: 1rem 1.25rem;
}
.app-strip .dot { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); flex: none; }
.app-strip .dot svg { width: 22px; height: 22px; }
.app-strip p { color: var(--muted); flex: 1 1 260px; }
.app-strip strong { color: var(--text); font-weight: 600; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.studio-text { display: grid; gap: 1.25rem; justify-items: start; }
.studio-text h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.studio-text p { color: var(--muted); max-width: 62ch; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 48px); margin-top: .75rem; }
.stats div { display: grid; }
.stats dt { order: 2; color: var(--dim); font-size: .88rem; }
.stats dd { order: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.principles { padding: clamp(22px, 3vw, 32px); }
.principles h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.principles ul { list-style: none; display: grid; gap: 1rem; }
.principles li { display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: start; color: var(--muted); }
.principles li strong { display: block; color: var(--text); font-weight: 600; }
.principles .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--cyan); }
.principles li:nth-child(2) .ico { color: var(--pink); }
.principles li:nth-child(3) .ico { color: var(--amber); }
.principles li:nth-child(4) .ico { color: #9d8cff; }
.principles .ico svg { width: 20px; height: 20px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(16px, 2vw, 24px); }
.contact-main { display: grid; gap: 1.2rem; justify-items: start; align-content: center; padding: clamp(26px, 4vw, 48px); overflow: hidden; }
.contact-main::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 194, 71, .6), rgba(255, 79, 216, .5) 45%, rgba(65, 240, 255, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.contact-main h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.contact-main p { color: var(--muted); max-width: 52ch; }
.mail-btn { font-size: clamp(.98rem, 2.4vw, 1.1rem); }
.company { padding: clamp(22px, 3vw, 32px); display: grid; gap: 1rem; align-content: start; }
.company h3 { font-size: 1.05rem; }
.company address { color: var(--text); line-height: 1.55; }
.company dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .95rem; }
.company dt { color: var(--dim); }
.company dd { font-variant-numeric: tabular-nums; }
.company .fine { line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); background: rgba(11, 10, 16, .6); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; padding-block: clamp(36px, 5vw, 56px); }
.footer-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer-brand p { color: var(--dim); max-width: 36ch; font-size: .95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(28px, 5vw, 64px); }
.footer-nav h2 { font-family: var(--font-body); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: .8rem; }
.footer-nav ul { list-style: none; display: grid; gap: .45rem; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* ---------- game page ---------- */
.theme-lb { --accent: #ffc247; --accent-2: #ffe2a3; }
.theme-cs { --accent: #ff4fd8; --accent-2: #41f0ff; }
.game-hero { padding-block: clamp(28px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.game-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.game-hero-text { display: grid; gap: 1.25rem; justify-items: start; }
.back { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.back:hover { color: var(--text); }
.back svg { width: 1em; height: 1em; }
.game-id { display: flex; align-items: center; gap: 1.1rem; }
.game-id .app-icon { width: clamp(72px, 9vw, 96px); height: auto; aspect-ratio: 1; border-radius: 22px; }
.game-id h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.tagline { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--accent); letter-spacing: -.01em; }
.theme-cs .tagline { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 70%, transparent); }
.game-hero-art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }

.video-frame { position: relative; max-width: 980px; margin-inline: auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 90px -45px color-mix(in srgb, var(--accent) 60%, transparent); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.shots-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.shots-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.shots-nav { display: flex; gap: .5rem; }
.shots-nav button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: grid; place-items: center; transition: background-color .15s ease;
}
.shots-nav button:hover { background: var(--surface-2); }
.shots-nav svg { width: 20px; height: 20px; }
.no-js .shots-nav { display: none; }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 22vw, 240px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-strong); scroll-snap-align: start; background: var(--bg-raise); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.feature { padding: clamp(20px, 2.6vw, 28px); display: grid; gap: .6rem; align-content: start; }
.feature .num { font-family: var(--font-display); font-weight: 800; font-size: .8rem; color: var(--accent); letter-spacing: .08em; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); }

.facts-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(14px, 2vw, 20px); }
.facts, .help { padding: clamp(22px, 3vw, 32px); display: grid; gap: 1rem; align-content: start; }
.facts h2, .help h2 { font-size: 1.15rem; }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.facts dt { color: var(--dim); font-size: .85rem; }
.facts dd { font-weight: 600; }
.help p { color: var(--muted); }
.help .actions { margin-top: .25rem; }

/* ---------- legal / prose ---------- */
.prose-wrap { width: min(780px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(36px, 6vw, 72px); }
.prose-head { display: grid; gap: .9rem; margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.prose-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.prose h2 { font-size: 1.2rem; margin: 2.2rem 0 .75rem; }
.prose p, .prose li { color: #d4d0de; }
.prose p + p, .prose ul + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .45rem; margin-top: .6rem; }
.prose a { color: var(--text); }
.policy-list { list-style: none; display: grid; gap: .75rem; padding: 0 !important; }
.policy-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 600;
}
.policy-list a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.policy-list span { color: var(--dim); font-weight: 400; font-size: .92rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.notfound .inner { display: grid; gap: 1.2rem; justify-items: center; }
.notfound .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 16vw, 9rem); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-inner, .game-hero-inner, .studio, .contact, .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 560px; margin-inline: auto; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .features { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .hero-stats { gap: 22px; }
  .hero-stats dd { font-size: 1.12rem; }
}

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