/* =========================================================
   Star Point — constellation studio
   Deep-space theme · Sora display + Hanken Grotesk body
   ========================================================= */

:root {
  --bg:        #07070f;
  --bg-2:      #0b0b18;
  --bg-3:      #10101f;
  --ink:       #f4f3ff;
  --ink-soft:  #b7b6cf;
  --ink-mute:  #7d7c98;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.06);

  --gold:      #ffd15c;
  --violet:    #7c6cff;
  --cyan:      #3fe0d0;
  --pink:      #ff6fae;

  --a: var(--violet);   /* per-game accent (overridden inline) */
  --b: var(--cyan);

  --aurora: linear-gradient(115deg, var(--violet), var(--cyan) 45%, var(--pink) 78%, var(--gold));

  --container: 1160px;
  --radius:    20px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { font-family: "Sora", system-ui, sans-serif; font-weight: 800; line-height: 1.03; margin: 0; letter-spacing: -.015em; }
/* Game names use the body typeface, not the Sora display face. */
.game-body h3, .gp-intro h1 { font-family: "Hanken Grotesk", system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.spark { color: var(--gold); display: inline-block; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--gold); color: #16130a; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- atmosphere ---------- */
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.aurora {
  position: fixed; z-index: 0; pointer-events: none;
  top: -22vh; left: 50%; transform: translateX(-50%);
  width: 130vw; height: 90vh;
  background:
    radial-gradient(46% 55% at 30% 30%, rgba(124,108,255,.26), transparent 70%),
    radial-gradient(40% 50% at 72% 22%, rgba(63,224,208,.18), transparent 70%),
    radial-gradient(45% 45% at 55% 60%, rgba(255,111,174,.15), transparent 72%);
}
body > main, .site-header, .site-footer, .marquee { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 95%, transparent);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 34px -20px rgba(0,0,0,.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Sora"; font-weight: 700; }
.brand-logo { border-radius: 10px; }
.brand-name { font-size: 1.05rem; letter-spacing: -.01em; }

.site-nav ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav a { padding: 9px 16px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; transition: color .2s var(--ease), background .2s var(--ease); }
.site-nav a:hover { color: var(--ink); background: var(--line-2); }
.nav-cta { color: #16130a !important; background: var(--gold); font-weight: 600; }
.nav-cta:hover { background: #ffdd80; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn-primary { background: var(--gold); color: #16130a; box-shadow: 0 8px 30px -8px rgba(255,209,92,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255,209,92,.7); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.btn.is-disabled { background: rgba(255,255,255,.08); color: var(--ink-soft); box-shadow: none; cursor: default; pointer-events: none; }

/* ---------- eyebrow / section ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--ink-mute); }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 12px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(72px, 13vw, 150px) 0 clamp(24px, 5vw, 56px); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
/* main logo, standing alone with a glowing aura */
.hero-logo-wrap { position: relative; width: min(300px, 74vw); aspect-ratio: 1; margin: 0 auto 34px; display: grid; place-items: center; }
.hero-logo-halo { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--pink), var(--gold), var(--violet)); filter: blur(40px); opacity: .55; animation: spin 18s linear infinite; will-change: transform; }
.hero-logo-glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.32), transparent 68%); }
.hero-logo { position: relative; z-index: 1; width: 72%; height: auto; border-radius: 22px; box-shadow: 0 18px 48px -10px rgba(0,0,0,.55), 0 0 64px -12px rgba(124,108,255,.5); animation: float 6s ease-in-out infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero .eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -.03em; }
.hero-title em { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 24px auto 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-stats { display: flex; gap: clamp(28px, 6vw, 64px); margin: 56px 0 0; padding: 0; }
.hero-stats div { text-align: center; }
.hero-stats dt { font-family: "Sora"; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { margin: 2px 0 0; color: var(--ink-mute); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---------- marquee / quick-jump ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: scroll-x 20s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: 0 0 auto; display: block; border-radius: 16px; opacity: .6; cursor: pointer; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.marquee-item img { width: 66px; height: 66px; border-radius: 16px; display: block; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.marquee-item:hover, .marquee-item:focus-visible { opacity: 1; transform: translateY(-5px) scale(1.08); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- game grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.game-card {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  overflow: hidden; display: flex; flex-direction: column;
  scroll-margin-top: 96px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.game-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, color-mix(in oklab, var(--a) 60%, transparent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--a) 45%, var(--line));
  box-shadow: 0 24px 60px -26px color-mix(in oklab, var(--a) 80%, #000);
}
.game-card:hover::before, .game-card:focus-visible::before { opacity: 1; }

/* spotlight: fired when jumping to a game from the banner */
.game-card.spotlight {
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--a) 60%, var(--line));
  animation: spotlight-pulse 1s var(--ease) 3;
}
.game-card.spotlight::before { opacity: 1; }
.game-card.spotlight .cover-glow { transform: scale(1.4); }
.game-card.spotlight .game-icon { transform: translateY(-4px) rotate(-3deg) scale(1.06); }
@keyframes spotlight-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--a) 55%, transparent), 0 24px 60px -26px color-mix(in oklab, var(--a) 80%, #000); }
  45%  { box-shadow: 0 0 0 5px color-mix(in oklab, var(--a) 60%, transparent), 0 30px 90px -16px color-mix(in oklab, var(--a) 95%, #000); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 24px 60px -26px color-mix(in oklab, var(--a) 80%, #000); }
}

.game-status {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); padding: 5px 11px; border-radius: 999px;
  background: rgba(10,10,20,.74); border: 1px solid var(--line);
}
.game-cover {
  position: relative; height: 190px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 15%, color-mix(in oklab, var(--a) 42%, transparent), transparent 60%),
    radial-gradient(120% 120% at 85% 90%, color-mix(in oklab, var(--b) 40%, transparent), transparent 62%),
    var(--bg-3);
}
.game-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .35; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.cover-glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--a) 65%, transparent), transparent 65%); filter: blur(24px); transition: transform .4s var(--ease); }
.game-card:hover .cover-glow { transform: scale(1.25); }
.game-icon { position: relative; z-index: 2; width: 118px; height: 118px; border-radius: 26px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08); transition: transform .4s var(--ease); }
.game-card:hover .game-icon { transform: translateY(-4px) rotate(-3deg) scale(1.04); }

.game-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h3 { font-size: 1.4rem; }
.game-genre { color: color-mix(in oklab, var(--a) 55%, var(--ink-soft)); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.game-blurb { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; margin-top: 2px; }
.game-more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.game-more .arrow { transition: transform .25s var(--ease); color: var(--a); }
.game-card:hover .game-more .arrow { transform: translateX(5px); }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.studio-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 18px; }
.studio-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.studio-values { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.studio-values li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.studio-values li::before { content: "◆"; color: var(--gold); }

.studio-panel { position: relative; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: radial-gradient(120% 120% at 50% 10%, var(--bg-3), var(--bg)); display: grid; place-items: center; }
.studio-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-orb { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .8; }
.panel-orb { width: 62%; height: 62%; top: 6%; left: -8%; background: radial-gradient(circle, var(--violet), transparent 66%); animation: float 9s ease-in-out infinite; }
.orb-2 { width: 55%; height: 55%; top: 34%; right: -6%; left: auto; background: radial-gradient(circle, var(--cyan), transparent 66%); animation: float 11s ease-in-out infinite reverse; }
.orb-3 { width: 48%; height: 48%; bottom: -6%; left: 26%; top: auto; background: radial-gradient(circle, var(--pink), transparent 66%); animation: float 13s ease-in-out infinite; }
.panel-star { position: relative; z-index: 2; font-size: clamp(4rem, 12vw, 8rem); color: var(--gold); text-shadow: 0 0 50px rgba(255,209,92,.6); animation: spin 30s linear infinite; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); transition: transform .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 18px; }
.contact-copy p { color: var(--ink-soft); }
.contact-email { margin-top: 22px !important; font-family: "Sora"; font-weight: 700; font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
.contact-email a { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

.contact-form { display: grid; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.form-status:empty { display: none; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 12px 14px; border-radius: 12px; font-size: .94rem; font-weight: 500; }
.form-ok { background: rgba(63,224,208,.12); border: 1px solid rgba(63,224,208,.4); color: #b9f6ee; }
.form-err { background: rgba(255,111,110,.12); border: 1px solid rgba(255,111,110,.4); color: #ffc9c8; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,209,92,.18); }
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 56px 0 30px; background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { border-radius: 12px; }
.footer-tag { color: var(--ink-soft); max-width: 260px; font-size: .96rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--ink-mute); font-size: .88rem; }
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--ink-soft); }

/* ---------- game detail page ---------- */
.game-page { position: relative; padding: clamp(24px, 5vw, 48px) 0 clamp(64px, 9vw, 110px); }
.gp-wash { position: absolute; inset: 0 0 auto 0; height: 460px; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, color-mix(in oklab, var(--a) 26%, transparent), transparent 70%); }
.game-page .container { position: relative; z-index: 1; }
.crumb { margin: 8px 0 30px; }
.crumb a { color: var(--ink-soft); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: color .2s, gap .2s; }
.crumb a:hover { color: var(--ink); gap: 12px; }

.gp-hero { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.gp-cover { position: relative; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 120% at 30% 15%, color-mix(in oklab, var(--a) 45%, transparent), transparent 60%),
    radial-gradient(120% 120% at 85% 90%, color-mix(in oklab, var(--b) 42%, transparent), transparent 62%),
    var(--bg-3);
}
.gp-icon { position: relative; z-index: 2; width: 62%; border-radius: 30px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.gp-cover-initial { position: relative; z-index: 2; font-family: "Sora"; font-weight: 800; font-size: 6rem; color: var(--ink); }
.gp-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 14px 0 6px; }
.gp-intro .game-status { position: static; display: inline-block; }
.gp-genre { color: color-mix(in oklab, var(--a) 55%, var(--ink-soft)); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.gp-blurb { color: var(--ink-soft); font-size: 1.1rem; margin: 16px 0 24px; max-width: 46ch; }
.gp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.gp-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.gp-facts dt { color: var(--ink-mute); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; }
.gp-facts dd { margin: 3px 0 0; font-weight: 600; }

.gp-shots { margin-top: clamp(48px, 7vw, 80px); }
.gp-shots h2, .gp-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.shot-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shot-row img { height: 420px; width: auto; border-radius: 18px; border: 1px solid var(--line); scroll-snap-align: center; flex: 0 0 auto; background: var(--bg); box-shadow: 0 20px 50px -24px rgba(0,0,0,.8); }
.shot-row--landscape img { height: auto; width: min(680px, 86vw); }

.gp-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 60px); margin-top: clamp(48px, 7vw, 80px); align-items: start; }
.gp-about p { color: var(--ink-soft); margin-bottom: 16px; }
.gp-features { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.gp-features ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gp-features li { display: flex; gap: 12px; color: var(--ink-soft); font-size: .96rem; }
.gp-features li::before { content: "◆"; color: var(--a); flex: 0 0 auto; }
.gp-back-cta { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 14px 0 12px; }
.notfound .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- performance: skip rendering off-screen sections ---------- */
#studio, #services, #contact { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 260px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .gp-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .studio-panel { max-width: 420px; }
  .gp-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .gp-cover { width: min(240px, 60vw); }
  .gp-blurb { margin-inline: auto; }
  .gp-actions, .gp-facts { justify-content: center; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; background: color-mix(in oklab, var(--bg) 94%, transparent);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 90;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 16px; gap: 4px; }
  .site-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .game-grid { grid-template-columns: 1fr; }
  .shot-row img { height: 340px; }
  .shot-row--landscape img { width: 86vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Privacy policy embed (game page) ─────────────────────────────────────── */
.gp-privacy { margin-top: 34px; }
.gp-privacy > h2 { margin: 0 0 14px; }
.privacy-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.privacy-embed > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.privacy-embed > summary::-webkit-details-marker { display: none; }
.privacy-embed > summary::before { content: "\25B8"; color: var(--a); transition: transform .2s var(--ease); }
.privacy-embed[open] > summary::before { transform: rotate(90deg); }
.privacy-embed > summary:hover { color: var(--a); }
.privacy-embed iframe {
  display: block; width: 100%; height: 70vh; min-height: 460px;
  border: 0; border-top: 1px solid var(--line); background: var(--bg-2);
}
.privacy-open { margin: 12px 2px 0; font-size: 14px; }
.privacy-open a { color: var(--a); text-decoration: none; }
.privacy-open a:hover { text-decoration: underline; }

/* ---- legal pages (terms) ---- */
.legal h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 14px 0 12px; }
.legal .section-lead { max-width: 720px; }
.legal-updated { color: var(--ink-mute); font-size: .86rem; margin-top: 10px; }
.legal-body { max-width: 720px; margin-top: clamp(32px, 5vw, 52px); }
.legal-body h2 {
  font-size: 1.16rem; margin: 34px 0 10px; scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.75; }
.legal-body a { color: var(--a, #7c6cff); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
