/* ==========================================================================
   Usman Aziz portfolio — styles
   1. Tokens & base      2. Utilities         3. Buttons, chips, lists
   4. Boot screen        5. HUD / header      6. Hero + Arrow Escape
   7. Marquee            8. Sections          9. Services
   10. Games grid        11. Game modal       12. Arcade
   13. Process           14. Studio           15. Contact
   16. Footer            17. Toasts & FX      18. Responsive
   ========================================================================== */

/* 1. Tokens & base -------------------------------------------------------- */
:root {
  --bg: #0d0a1c;
  --bg-2: #110d24;
  --panel: #19143a;
  --panel-hi: #221b46;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f7f4ff;
  --ink-2: #d5cff0;
  --muted: #a39bcd;
  --gold: #ffc83d;
  --gold-lip: #b97a06;
  --gold-ink: #3b2400;
  --pink: #ff4f8b;
  --green: #4fe08f;
  --cyan: #45d3ff;
  --orange: #ff8a3d;
  --purple: #9b7bff;
  --red: #ff5a5f;

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Silkscreen", ui-monospace, "Courier New", monospace;

  --r-lg: 26px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23140f2b' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 2. Utilities ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.hl { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow__stage {
  padding: 5px 9px 4px; border-radius: 7px;
  color: var(--gold);
  background: rgba(255, 200, 61, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .35);
}
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; background: rgba(255, 255, 255, .14); }
.pips i.on { background: var(--gold); box-shadow: 0 0 8px rgba(255, 200, 61, .6); }

.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.section-lead { margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: end; }
.section-head--split .section-lead { margin-top: 0; }

/* 3. Buttons, chips, lists ------------------------------------------------ */
.btn {
  --btn-bg: var(--panel-hi);
  --btn-ink: var(--ink);
  --btn-lip: #08060f;
  --btn-ring: 0 0 0 0 transparent;
  --btn-y: 0px;
  --btn-drop: 5px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.35em;
  border: 0; border-radius: 14px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  color: var(--btn-ink);
  background: var(--btn-bg);
  box-shadow: var(--btn-ring), 0 var(--btn-drop) 0 var(--btn-lip), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12);
  transform: translateY(var(--btn-y));
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { --btn-y: -2px; --btn-drop: 7px; filter: brightness(1.06); }
.btn:active { --btn-y: 4px; --btn-drop: 1px; transition-duration: .04s; }
.btn--gold {
  --btn-bg: linear-gradient(180deg, #ffe58a 0%, #ffc83d 48%, #ffb01c 100%);
  --btn-ink: var(--gold-ink);
  --btn-lip: var(--gold-lip);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .05);
  --btn-lip: rgba(0, 0, 0, .5);
  --btn-ring: inset 0 0 0 2px rgba(255, 255, 255, .16);
}
.btn--sm { font-size: .95rem; padding: .72em 1.05em; border-radius: 12px; --btn-drop: 4px; }
.btn--sm:hover { --btn-drop: 5px; }
.btn--lg { font-size: 1.15rem; padding: 1em 1.5em; border-radius: 16px; }
.btn--block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 27px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--c, var(--gold)) var(--check) center / 12px no-repeat;
}

/* 4. Boot screen ---------------------------------------------------------- */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: none; place-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, #231b4f 0%, #0a0816 65%);
}
.booting .boot { display: grid; animation: boot-failsafe .01s 5s forwards; }
.boot.is-done { display: grid; animation: boot-out .5s var(--ease) forwards; }
@keyframes boot-failsafe { to { visibility: hidden; opacity: 0; } }
@keyframes boot-out { to { opacity: 0; transform: scale(1.05); visibility: hidden; } }

.boot__inner { display: grid; justify-items: center; gap: 18px; padding: 24px; }
.boot__logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: clamp(2.2rem, 8vw, 3.4rem); letter-spacing: .01em;
  text-shadow: 0 5px 0 rgba(0, 0, 0, .4);
  animation: pop-in .8s var(--ease-back) both;
}
.boot__mark { width: 1.15em; height: 1.15em; }
.boot__bar {
  width: min(320px, 70vw); height: 18px; padding: 3px; border-radius: 99px;
  background: #0a0816;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14);
}
.boot__bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  box-shadow: 0 0 16px rgba(255, 200, 61, .6);
  transform-origin: left; transform: scaleX(0);
}
.boot__status { font-family: var(--font-pixel); font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.boot__tip { max-width: 34ch; font-size: .95rem; color: var(--muted); }
.boot__tip b { margin-right: 6px; font-family: var(--font-pixel); font-weight: 400; font-size: 11px; color: var(--gold); }
.boot__start { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .12em; color: var(--gold); opacity: 0; }
.boot.is-ready .boot__start { animation: blink .5s linear infinite; }

@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* 5. HUD / header --------------------------------------------------------- */
.hud {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.hud.is-scrolled {
  background: rgba(13, 10, 28, .84);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.hud__inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; transition: transform .4s var(--ease-back); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.logo__word { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.logo__word b, .boot__logo b { font-weight: 400; color: var(--gold); }
.logo__tag {
  padding: 3px 6px 2px; border-radius: 6px;
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .14em; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.hud__nav { display: flex; gap: 2px; margin-left: auto; }
.hud__nav a {
  position: relative;
  padding: 8px 12px; border-radius: 10px;
  font-weight: 800; font-size: .95rem; text-decoration: none;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}
.hud__nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.hud__nav a[aria-current="true"] { color: var(--gold); }
.hud__nav a[aria-current="true"]::after {
  content: "";
  position: absolute; left: 50%; bottom: 1px;
  width: 5px; height: 5px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  transform: translateX(-50%);
}

.hud__right { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px 0 8px;
  border: 0; border-radius: 12px;
  font-family: var(--font-pixel); font-size: 14px; color: var(--ink);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .4);
  transition: background .2s;
}
.hud-chip:hover { background: rgba(255, 255, 255, .1); }
.hud-chip img { width: 22px; height: 22px; }
.hud-chip[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--gold), 0 3px 0 rgba(0, 0, 0, .4); }
.hud-chip.is-bump { animation: chip-bump .4s var(--ease-back); }
.hud-chip--coins.is-bump img { animation: coin-flip .45s var(--ease); }
@keyframes chip-bump { 40% { transform: scale(1.12); } }
@keyframes coin-flip { 50% { transform: scaleX(-1) scale(1.25); } }

.hud-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .4);
  transition: background .2s, color .2s;
}
.hud-icon:hover { background: rgba(255, 255, 255, .1); }
.hud-icon svg { width: 20px; height: 20px; }
.hud-icon[aria-pressed="true"] { color: var(--gold); }
.hud__menu { display: none; }

.xp { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .05); }
.xp__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--orange) 50%, var(--pink));
  box-shadow: 0 0 10px rgba(255, 200, 61, .6);
  transform-origin: left; transform: scaleX(0);
}
.xp__lv {
  position: absolute; bottom: -24px;
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding: 4px 8px 3px; border-radius: 6px;
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; color: var(--gold);
  background: rgba(13, 10, 28, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .3);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.hud.is-scrolled .xp__lv { opacity: 1; transform: none; }
.xp__lv.is-up { animation: lv-up .7s var(--ease-back); }
@keyframes lv-up { 30% { transform: scale(1.35); color: #fff; } }

/* Achievements panel */
.trophies {
  position: fixed; z-index: 60;
  top: calc(var(--header-h) + 10px);
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - var(--header-h) - 30px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #282153, #1a1538);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 0 #08060f, 0 30px 60px rgba(0, 0, 0, .55);
  animation: pop-in .35s var(--ease-back);
}
.trophies__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.trophies__title { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .02em; }
.trophies__count { font-family: var(--font-pixel); font-size: 13px; color: var(--gold); }
.trophies__bar { height: 8px; margin-bottom: 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.trophies__bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); transition: width .6s var(--ease); }
.trophies__list { display: grid; gap: 8px; }
.trophy {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.trophy__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
}
.trophy__icon img { width: 30px; height: 30px; }
.trophy__icon svg { width: 18px; height: 18px; }
.trophy b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; line-height: 1.2; }
.trophy span { display: block; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.trophy.is-locked b { color: var(--muted); }
.trophy.is-unlocked .trophy__icon {
  background: radial-gradient(circle at 50% 40%, rgba(255, 200, 61, .35), rgba(255, 200, 61, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .4);
}
.trophies__note { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }

/* Mobile pause menu */
.pause {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(6, 4, 16, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade-in .25s ease;
  overflow-y: auto;
}
.pause__panel { width: min(400px, 100%); text-align: center; animation: pop-in .35s var(--ease-back); }
.pause__title {
  margin-bottom: 18px;
  font-family: var(--font-display); font-size: 3.2rem; letter-spacing: .08em; color: var(--gold);
  text-shadow: 0 5px 0 rgba(0, 0, 0, .4);
}
.pause__nav { display: grid; gap: 10px; }
.pause__nav a, .pause__resume {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border: 0; border-radius: 16px;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .03em; text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #2c2557, #221c46);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 5px 0 #08060f;
}
.pause__resume { color: var(--gold-ink); background: linear-gradient(180deg, #ffe58a, #ffb01c); box-shadow: 0 5px 0 var(--gold-lip); }
.pause__resume svg { width: 20px; height: 20px; }
.pause__nav a:active, .pause__resume:active { transform: translateY(3px); }
.pause__cta { color: var(--gold) !important; }
.pause__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pause__opt {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 0; border-radius: 14px;
  font-weight: 800; font-size: .9rem;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.pause__opt svg, .pause__opt img { width: 20px; height: 20px; flex: none; }
.pause__opt[aria-pressed="true"] { color: var(--gold); }

/* 6. Hero + Arrow Escape -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 36px) 0 90px;
  overflow: clip;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--a {
  width: 640px; height: 640px; right: -140px; top: -80px;
  background: radial-gradient(circle, rgba(255, 200, 61, .55), rgba(255, 138, 61, .15) 60%, transparent 70%);
}
.hero__glow--b {
  width: 720px; height: 720px; left: -280px; bottom: -320px;
  background: radial-gradient(circle, rgba(155, 123, 255, .5), rgba(69, 211, 255, .1) 60%, transparent 70%);
}
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}

.intro { animation: intro-up .9s var(--ease) both; animation-delay: calc(var(--i, 0) * .09s + .1s); }
.booting .intro { animation-delay: calc(var(--i, 0) * .09s + 1.45s); }
@keyframes intro-up { from { opacity: 0; transform: translateY(26px); } }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 11px; border-radius: 99px;
  font-weight: 800; font-size: .9rem; color: var(--ink-2);
  background: rgba(79, 224, 143, .08);
  box-shadow: inset 0 0 0 1px rgba(79, 224, 143, .35);
}
.status-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(79, 224, 143, .6); }
  70% { box-shadow: 0 0 0 10px rgba(79, 224, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 224, 143, 0); }
}

.hero__title {
  margin: 18px 0 10px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.3rem, 7.6vw, 6.6rem); line-height: .95; letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 5px 0 #2a2060, 0 18px 40px rgba(0, 0, 0, .45);
}
.hero__title .hl { text-shadow: 0 5px 0 #9a5f00, 0 18px 40px rgba(0, 0, 0, .45); }
.hero__role {
  margin-bottom: 16px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; letter-spacing: .01em;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.hero__lead { max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.hero__skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__skills a {
  --c: var(--gold);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border-radius: 14px;
  font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}
.hero__skills a:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent);
}
.hero__skill-icon {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  color: #180f33; background: var(--c);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c), #000 45%), inset 0 1.5px 0 rgba(255, 255, 255, .45);
}
.hero__skill-icon svg { width: 17px; height: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero__stats > div {
  display: flex; flex-direction: column-reverse; gap: 6px;
  min-width: 128px; padding: 12px 16px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero__stats dt { font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__stats dd { margin: 0; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }

.hero__stage { --px: 0; --py: 0; position: relative; display: grid; place-items: center; min-height: 600px; }
.hero__card {
  position: absolute;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12), 0 30px 50px -20px rgba(0, 0, 0, .75);
  translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px);
  transition: translate .25s linear;
}
.hero__card--a { --depth: 14; width: 70%; top: 5%; left: -10%; rotate: -8deg; opacity: .85; }
.hero__card--b { --depth: -18; width: 30%; bottom: 6%; right: -2%; rotate: 9deg; opacity: .92; }

.hero__sticker {
  position: absolute; z-index: 6; top: 1%; right: 6%;
  padding: 8px 13px 9px; border-radius: 13px;
  font-family: var(--font-display); font-size: .98rem; line-height: 1.1; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #ff77a5, var(--pink));
  box-shadow: 0 4px 0 #a3194a, 0 14px 26px rgba(0, 0, 0, .35);
  rotate: 7deg;
  animation: wiggle 3.2s ease-in-out infinite;
}
.hero__sticker span { display: block; margin-bottom: 2px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; opacity: .9; }
@keyframes wiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-6deg) scale(1.06); } 90% { transform: rotate(5deg) scale(1.06); } 95% { transform: rotate(-3deg); } }

.device {
  position: relative; z-index: 3;
  width: clamp(250px, min(24vw, calc((100vh - 230px) * .4839)), 318px);
  aspect-ratio: 9 / 18.6;
  padding: 11px; border-radius: 48px;
  background: linear-gradient(155deg, #3d3470 0%, #1d1840 38%, #110e25 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    inset 0 0 0 7px #0c0a19,
    0 0 0 1px rgba(0, 0, 0, .5),
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 0 120px -30px rgba(255, 200, 61, .35);
}
.device.is-shake { animation: shake .4s; }
@keyframes shake {
  20% { transform: translateX(-7px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.device__island {
  position: absolute; z-index: 9; top: 21px; left: 50%;
  width: 30%; height: 22px; border-radius: 20px;
  background: #0c0a19;
  transform: translateX(-50%);
}
.device__screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 38px; overflow: hidden;
  color: #2a1d4f;
  background: linear-gradient(180deg, #fff9ee, #fff0d8);
}

.ae-hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 44px 14px 2px; }
.ae-level {
  padding: 7px 11px 6px; border-radius: 10px;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; color: #fff;
  background: linear-gradient(180deg, #a48bff, #7552ec);
  box-shadow: 0 3px 0 #4a2fb0, inset 0 1.5px 0 rgba(255, 255, 255, .4);
}
.ae-level b { font-weight: 400; }
.ae-hearts { display: flex; gap: 2px; }
.ae-hearts img { width: 24px; height: 24px; transition: transform .35s var(--ease-back), filter .35s, opacity .35s; }
.ae-hearts img.is-lost { filter: grayscale(1); opacity: .3; transform: scale(.75); }
.ae-btn {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 11px;
  color: #5b46b8; background: #fff;
  box-shadow: 0 3px 0 #dccdb0, inset 0 0 0 1.5px #efe3cc;
}
.ae-btn svg { width: 18px; height: 18px; }
.ae-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #dccdb0, inset 0 0 0 1.5px #efe3cc; }
.ae-stage { position: relative; flex: 1; min-height: 0; }
.ae-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: manipulation; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ae-hint { min-height: 3.3em; padding: 4px 16px 20px; text-align: center; font-weight: 800; font-size: 12.5px; line-height: 1.35; color: #7a6646; }
.ae-hint.is-warn { color: #d6334a; }

.ae-hand {
  position: absolute; z-index: 3;
  width: 46px; height: auto;
  margin: -3px 0 0 -16px;
  pointer-events: none;
  transform-origin: 35% 6%;
  filter: drop-shadow(0 6px 6px rgba(42, 29, 79, .3));
  animation: hand-tap 1.25s var(--ease) infinite;
}
@keyframes hand-tap {
  0%, 100% { transform: translate(12px, 18px) rotate(-8deg); }
  45%, 60% { transform: translate(0, 0) rotate(-8deg) scale(.9); }
}
.ae-ring {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(117, 82, 236, .45);
  pointer-events: none;
  animation: ring 1.25s var(--ease) infinite;
}
@keyframes ring { 0%, 42% { transform: scale(.3); opacity: 0; } 52% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.ae-overlay {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(30, 20, 60, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in .3s;
}
.ae-card {
  width: 100%;
  padding: 18px 16px 14px; border-radius: 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 7px 0 #e2d3b6, 0 20px 40px rgba(30, 20, 60, .35);
  animation: pop-in .45s var(--ease-back);
}
.ae-card__kicker { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .12em; color: #8f7ccf; }
.ae-card__title { margin: 4px 0 6px; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: #2a1d4f; }
.ae-stars { display: flex; justify-content: center; align-items: flex-end; gap: 2px; margin: 4px 0 8px; }
.ae-stars img { animation: star-in .5s var(--ease-back) both; }
.ae-stars img:nth-child(1) { animation-delay: .15s; }
.ae-stars img:nth-child(2) { animation-delay: .3s; }
.ae-stars img:nth-child(3) { animation-delay: .45s; }
.ae-stars img.is-off { filter: grayscale(1) brightness(1.4); opacity: .35; }
@keyframes star-in { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.ae-card__text { margin-bottom: 12px; font-size: 13px; font-weight: 700; line-height: 1.4; color: #6b5d8f; }
.ae-card .btn { font-size: 1rem; }
.ae-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-weight: 800; font-size: 13px; color: #7552ec; text-decoration: none;
}
.ae-card__cta svg { width: 14px; height: 14px; }

.pickup {
  position: absolute; z-index: 5;
  left: var(--x); top: var(--y);
  width: var(--s, 52px); height: var(--s, 52px);
  padding: 0; border: 0;
  background: transparent center / contain no-repeat;
  translate: calc(var(--px) * var(--depth) * 1px) calc(var(--py) * var(--depth) * 1px);
  transition: translate .25s linear;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4));
  animation: bob 4.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  -webkit-tap-highlight-color: transparent;
}
.pickup--coin { background-image: url("../img/pickups/coin.svg"); }
.pickup--star { background-image: url("../img/pickups/star.svg"); }
.pickup--heart { background-image: url("../img/pickups/heart.svg"); }
.pickup--gem { background-image: url("../img/pickups/gem.svg"); }
.pickup:focus-visible { outline: none; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 7deg)); }
}
.pickup.is-collected { animation: collect .5s var(--ease-back) forwards; pointer-events: none; }
@keyframes collect {
  0% { transform: scale(1); }
  40% { transform: translateY(-12px) scale(1.5); opacity: 1; }
  100% { transform: translateY(-40px) scale(.2); opacity: 0; }
}
.pickup.is-respawn { animation: respawn .6s var(--ease-back), bob 4.2s ease-in-out .6s infinite; }
@keyframes respawn { from { transform: scale(0); opacity: 0; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-decoration: none;
  transform: translateX(-50%);
  animation: nudge 2s ease-in-out infinite;
}
.hero__scroll svg { width: 14px; height: 14px; transform: rotate(90deg); }
@keyframes nudge { 50% { transform: translate(-50%, 6px); } }

/* 7. Marquee -------------------------------------------------------------- */
/* The wrapper clips the tilted band so it can never widen the page on phones. */
.marquee-wrap { position: relative; z-index: 2; overflow: hidden; margin: -30px 0; padding: 30px 0; }
.marquee {
  position: relative; z-index: 2;
  margin: 0 -24px;
  padding: 15px 0;
  overflow: hidden;
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ffd65e, #ffb21e);
  box-shadow: 0 6px 0 var(--gold-lip), 0 22px 40px rgba(0, 0, 0, .35);
  transform: rotate(-1.6deg);
}
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track > * { margin-right: 26px; }
.marquee span {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: .03em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee span.o { color: transparent; -webkit-text-stroke: 2px var(--gold-ink); }
.marquee i {
  flex: none; width: 18px; height: 18px;
  background: var(--gold-ink);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Sections ------------------------------------------------------------- */
.section { position: relative; padding: clamp(76px, 9vw, 120px) 0; }

.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity .8s var(--ease) var(--delay, 0s), translate .8s var(--ease) var(--delay, 0s), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.reveal-ready [data-reveal].is-in { opacity: 1; translate: none; }

/* 9. Services ------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px var(--line), 0 24px 40px -28px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), color-mix(in srgb, var(--c) 22%, transparent), transparent 65%);
  opacity: .55;
  transition: opacity .35s;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 30px 50px -28px rgba(0, 0, 0, .9);
}
.service:hover::before { opacity: 1; }
.service__top { display: flex; align-items: center; justify-content: space-between; }
.service__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 17px;
  color: #180f33;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 30%), var(--c));
  box-shadow: 0 5px 0 color-mix(in srgb, var(--c), #000 45%), inset 0 2px 0 rgba(255, 255, 255, .5);
  transition: transform .45s var(--ease-back);
}
.service__icon svg { width: 30px; height: 30px; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); }
.service__tag {
  padding: 4px 8px 3px; border-radius: 7px;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.service h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.1; letter-spacing: .01em; }
.service > p { color: var(--muted); font-size: .98rem; }
.service__seen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.service__seen > span { margin-right: 4px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service__seen button, .service__seen a {
  padding: 5px 10px; border: 0; border-radius: 99px;
  font-weight: 800; font-size: .82rem; text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.service__seen button:hover, .service__seen a:hover { color: #180f33; background: var(--c); box-shadow: inset 0 0 0 1px var(--c); }

/* 10. Games grid ---------------------------------------------------------- */
.section--games { background: linear-gradient(180deg, transparent, rgba(155, 123, 255, .05) 30%, transparent); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px 10px 16px;
  border: 0; border-radius: 13px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; letter-spacing: .02em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 0 rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .12s, background .2s, color .2s;
}
.filter:hover { color: var(--ink); background: rgba(255, 255, 255, .09); }
.filter:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, .45); }
.filter b {
  min-width: 24px; padding: 4px 6px 3px; border-radius: 7px;
  font-family: var(--font-pixel); font-weight: 400; font-size: 11px; text-align: center;
  background: rgba(0, 0, 0, .3);
}
.filter[aria-pressed="true"] {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe58a, #ffbe2e);
  box-shadow: 0 4px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.filter[aria-pressed="true"] b { background: rgba(59, 36, 0, .15); }
.filter__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px; }
.noscript { color: var(--muted); }

.gc {
  --accent: var(--gold);
  --rx: 0deg; --ry: 0deg; --ty: 0px;
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #221b46, #19143a);
  box-shadow: inset 0 0 0 1px var(--line), 0 26px 44px -30px rgba(0, 0, 0, .95);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gc:hover {
  --ty: -6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 34px 60px -30px rgba(0, 0, 0, .95), 0 0 60px -24px color-mix(in srgb, var(--accent) 70%, transparent);
}
.gc.is-tilting { transition: transform .1s linear, box-shadow .45s var(--ease); }
.gc--wide { grid-column: span 2; }
.gc.is-pending { opacity: 0; }
.gc.is-entering { animation: card-in .55s var(--ease-back) both; animation-delay: var(--delay, 0s); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.95); } }

.gc__media {
  position: relative;
  height: 330px; overflow: hidden;
  background:
    radial-gradient(90% 75% at 50% 108%, color-mix(in srgb, var(--accent) 62%, transparent) 0%, transparent 72%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .06), transparent 60%),
    #15112e;
}
.gc__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  opacity: .7;
}
.gc__lv, .gc__badge {
  position: absolute; z-index: 4; top: 14px;
  padding: 6px 9px 5px; border-radius: 9px;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .08em;
  background: rgba(10, 8, 22, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.gc__lv { left: 14px; }
.gc__badge { right: 14px; display: inline-flex; align-items: center; gap: 7px; }
.gc__badge--live { color: var(--green); box-shadow: inset 0 0 0 1px rgba(79, 224, 143, .45); }
.gc__badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
.gc__badge--proto { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(69, 211, 255, .4); }
.gc__badge--solo { color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .45); }

.fan { position: absolute; inset: 0; }
.fan__dev {
  position: absolute; left: 50%; top: 54px;
  width: 42%;
  padding: 5px; border-radius: 22px;
  background: #0b0918;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 22px 36px -12px rgba(0, 0, 0, .8);
  transform-origin: 50% 100%;
  transition: transform .55s var(--ease), filter .55s;
}
.fan__dev img { width: 100%; border-radius: 17px; }
.fan__dev--poster { padding: 0; border-radius: 16px; }
.fan__dev--poster img { border-radius: 16px; }
.fan__dev--c { z-index: 3; transform: translateX(-50%); }
.fan__dev--l, .fan__dev--r { z-index: 2; top: 80px; width: 35%; filter: brightness(.7); }
.fan__dev--l { transform: translateX(-118%) rotate(-9deg); }
.fan__dev--r { transform: translateX(18%) rotate(9deg); }
.fan__dev--a { z-index: 2; top: 64px; width: 40%; transform: translateX(-92%) rotate(-7deg); filter: brightness(.8); }
.fan__dev--b { z-index: 3; top: 56px; width: 40%; transform: translateX(-8%) rotate(6deg); }
.gc:hover .fan__dev--c { transform: translateX(-50%) translateY(-10px); }
.gc:hover .fan__dev--l { transform: translateX(-130%) rotate(-12deg); filter: brightness(.92); }
.gc:hover .fan__dev--r { transform: translateX(30%) rotate(12deg); filter: brightness(.92); }
.gc:hover .fan__dev--a { transform: translateX(-102%) rotate(-10deg) translateY(-6px); filter: brightness(.95); }
.gc:hover .fan__dev--b { transform: translateX(2%) rotate(9deg) translateY(-10px); }

.gc__media--wide::before { display: none; }
.gc__media--wide::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(13, 10, 28, .45) 0%, transparent 28%, transparent 62%, rgba(25, 20, 58, .92) 100%);
}
.gc__shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity .7s ease, transform 6s linear;
}
.gc__shot.is-on { opacity: 1; }
.gc:hover .gc__shot { transform: scale(1.09); }
.gc__dots { position: absolute; z-index: 4; bottom: 14px; left: 50%; display: flex; gap: 5px; transform: translateX(-50%); }
.gc__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.gc__dots i.is-on { width: 18px; background: var(--ink); }

.gc__info { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.gc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gc__title { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.05; letter-spacing: .01em; }
.gc__go {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  color: var(--gold-ink); background: var(--gold);
  box-shadow: 0 3px 0 var(--gold-lip);
  opacity: 0; transform: scale(.7);
  transition: transform .3s var(--ease-back), opacity .3s;
}
.gc__go svg { width: 18px; height: 18px; }
.gc:hover .gc__go, .gc:focus-within .gc__go { opacity: 1; transform: none; }
.gc__genre { font-size: .93rem; font-weight: 600; color: var(--muted); }
.gc .chips { margin-top: 8px; }
.gc__hit {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; padding: 0; border: 0; border-radius: inherit;
  background: transparent;
}
.gc__hit:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }

/* 11. Game modal ---------------------------------------------------------- */
.modal { --modal-pad: clamp(10px, 3vw, 28px); position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: var(--modal-pad); }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 4, 16, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade-in .25s ease;
}
.modal__panel {
  position: relative;
  display: flex;
  width: min(1040px, 100%);
  max-height: calc(100vh - 2 * var(--modal-pad));
  max-height: calc(100dvh - 2 * var(--modal-pad));
  border-radius: 30px;
  background: linear-gradient(180deg, #261f4f 0%, #1a1539 40%, #161230 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08), 0 10px 0 #07050f, 0 50px 120px rgba(0, 0, 0, .6);
  animation: modal-in .45s var(--ease-back);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal.is-closing .modal__panel { animation: modal-out .22s ease forwards; }
.modal.is-closing .modal__backdrop { animation: fade-out .22s ease forwards; }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal__scroll {
  flex: 1; min-width: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: inherit;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.modal__close {
  position: absolute; z-index: 5; top: -12px; right: -12px;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border: 0; border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #ff8a8e, #ec3b43);
  box-shadow: 0 5px 0 #9b1b22, inset 0 2px 0 rgba(255, 255, 255, .45), 0 0 0 4px #161230;
  transition: transform .25s var(--ease-back);
}
.modal__close:hover { transform: rotate(90deg) scale(1.05); }
.modal__close svg { width: 22px; height: 22px; }

.modal__head { padding-right: 40px; }
.modal__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal__lv, .modal__status {
  padding: 5px 9px 4px; border-radius: 7px;
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: .1em;
}
.modal__lv { color: var(--gold); background: rgba(255, 200, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .35); }
.modal__lv b { font-weight: 400; }
.modal__status { font-size: 11px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.modal__status--live { color: var(--green); box-shadow: inset 0 0 0 1px rgba(79, 224, 143, .45); }
.modal__status--proto { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(69, 211, 255, .4); }
.modal__status--solo { color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .45); }
.modal__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: .01em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
.modal__genre { margin-top: 8px; font-weight: 700; color: var(--muted); }

.gallery { position: relative; margin: 26px 0 28px; }
.gallery__track {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 18px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: none;
  scroll-snap-align: center;
  border-radius: 18px; overflow: hidden;
  background: #0b0918;
  box-shadow: inset 0 0 0 1px var(--line);
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery--landscape .gallery__slide { width: 100%; aspect-ratio: 1600 / 738; }
.gallery--portrait .gallery__slide { height: var(--h); aspect-ratio: var(--ar); }
.gallery--portrait .gallery__slide:first-child { margin-left: auto; }
.gallery--portrait .gallery__slide:last-child { margin-right: auto; }
.gallery__btn {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-top: -23px;
  border: 0; border-radius: 50%;
  color: var(--ink);
  background: rgba(13, 10, 28, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 0 rgba(0, 0, 0, .5);
  transition: opacity .2s;
}
.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__btn:disabled { opacity: 0; pointer-events: none; }
.gallery.no-scroll .gallery__btn { display: none; }

.modal__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.modal__summary { font-size: 1.12rem; color: var(--ink-2); }
.modal__h { margin: 22px 0 12px; font-family: var(--font-pixel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.objectives { display: grid; gap: 10px; }
.objectives li {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 14px;
  font-weight: 600; line-height: 1.5; color: var(--ink-2);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.objectives li::before {
  content: "";
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green) var(--check) center / 16px no-repeat;
  box-shadow: 0 3px 0 #1f8a52;
}
.modal__side {
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px; border-radius: 20px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px var(--line);
}
.modal__meta { display: grid; gap: 16px; margin: 0; }
.modal__meta dt { margin-bottom: 6px; font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.modal__meta dd { margin: 0; font-weight: 700; }
.modal__actions { display: grid; gap: 12px; }
.modal__actions .btn { white-space: normal; text-align: center; line-height: 1.15; }
.modal__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.modal__step {
  display: inline-flex; align-items: center; gap: 12px;
  max-width: 48%; padding: 10px 14px;
  border: 0; border-radius: 14px;
  text-align: left;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 4px 0 rgba(0, 0, 0, .45);
  transition: background .2s;
}
.modal__step:hover { background: rgba(255, 255, 255, .09); }
.modal__step:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, .45); }
.modal__step > span { min-width: 0; }
.modal__step svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.modal__step small { display: block; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.modal__step b {
  display: block;
  font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.modal__step--next { margin-left: auto; text-align: right; }

/* 12. Arcade -------------------------------------------------------------- */
.section--arcade {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(69, 211, 255, .09), transparent 70%),
    linear-gradient(180deg, var(--bg), #0f0b22 18%, #0f0b22 82%, var(--bg));
}
.cabinet { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.cabinet__select { display: flex; flex-direction: column; gap: 12px; }
.cart {
  --c: var(--gold);
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; padding: 16px;
  border: 0; border-radius: 20px;
  text-align: left; text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #221b46, #1a1539);
  box-shadow: inset 0 0 0 1px var(--line), 0 5px 0 #08060f;
  transition: transform .15s var(--ease), box-shadow .25s, background .2s;
}
.cart:hover { background: linear-gradient(180deg, #2a2256, #1e1842); }
.cart:active { transform: translateY(3px); }
.cart.is-active {
  box-shadow: inset 0 0 0 2px var(--c), 0 5px 0 color-mix(in srgb, var(--c), #000 55%), 0 0 44px -12px color-mix(in srgb, var(--c) 70%, transparent);
}
.cart__icon {
  flex: none;
  width: 54px; height: 54px; border-radius: 15px;
  background: #0a0816 center / 36px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cart__icon--line { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 5L35 20L20 35L5 20Z M20 5V35' fill='none' stroke='%2338e8ff' stroke-width='3' stroke-linejoin='round'/%3E%3Ccircle cx='20' cy='5' r='3.2' fill='%23fff'/%3E%3Ccircle cx='20' cy='35' r='3.2' fill='%23fff'/%3E%3Ccircle cx='35' cy='20' r='3.2' fill='%2338e8ff'/%3E%3Ccircle cx='5' cy='20' r='3.2' fill='%2338e8ff'/%3E%3C/svg%3E"); }
.cart__icon--cricket { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='rotate(38 18 18)'%3E%3Crect x='14' y='3' width='9' height='23' rx='3.5' fill='%23f2d9a0'/%3E%3Crect x='16.5' y='25' width='4' height='10' rx='2' fill='%23a86b3c'/%3E%3C/g%3E%3Ccircle cx='30' cy='29' r='6.5' fill='%23ff5a5f'/%3E%3Cpath d='M25.5 26.5q4.5 3 9 0' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"); }
.cart__icon--arrow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M7 33V20H20' fill='none' stroke='%23ff4d6d' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M19 13.5L27 20L19 26.5Z' fill='%23ff4d6d' stroke='%23ff4d6d' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M32 35V14' stroke='%23ffc83d' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M25.5 14L32 6L38.5 14Z' fill='%23ffc83d' stroke='%23ffc83d' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cart__body { display: grid; gap: 3px; min-width: 0; }
.cart__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; letter-spacing: .02em; }
.cart__desc { font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.cart__from { margin-top: 4px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cart__from b { font-weight: 400; color: var(--c); }

.cabinet__screen {
  position: relative;
  padding: 10px 12px 12px; border-radius: 30px;
  background: linear-gradient(160deg, #2d2559, #15112d 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 7px #0b0918, 0 8px 0 #07050f, 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.cabinet__top { display: flex; justify-content: space-between; padding: 8px 14px 10px; font-family: var(--font-pixel); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.cabinet__top .blink { color: var(--gold); animation: blink 1.4s linear infinite; }
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 20px; overflow: hidden;
  background: #07060f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* One Line */
.ol { position: absolute; inset: 0; display: flex; flex-direction: column; background: radial-gradient(80% 70% at 50% 50%, #12102a, #07060f 75%); }
.ol__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; }
.ol__meta { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ol__level { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.ol__level b { font-weight: 400; color: var(--ink); }
.ol__name {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em;
  color: var(--lvc, var(--cyan));
  text-shadow: 0 0 18px color-mix(in srgb, var(--lvc, var(--cyan)) 60%, transparent);
  white-space: nowrap;
}
.ol__tools { display: flex; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border: 0; border-radius: 11px;
  font-weight: 800; font-size: .85rem; color: var(--ink-2);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .5);
}
.tool svg { width: 16px; height: 16px; }
.tool:hover { color: var(--ink); background: rgba(255, 255, 255, .11); }
.tool:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 rgba(0, 0, 0, .5); }
.ol__stage { position: relative; flex: 1; min-height: 0; }
.ol__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ol__msg { min-height: 2.9em; padding: 4px 16px 14px; text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.ol__msg.is-warn { color: #ff9aa0; }

.ol__overlay, .hc__overlay {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(5, 4, 12, .66);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: fade-in .3s;
}
.win-card {
  width: min(400px, 100%);
  padding: 24px 22px 22px; border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, #2a2257, #1c1640);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 7px 0 #07050f, 0 30px 60px rgba(0, 0, 0, .5);
  animation: pop-in .45s var(--ease-back);
}
.win-card__kicker { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .12em; color: var(--gold); }
.win-card__title { margin: 6px 0 8px; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: .02em; }
.win-card__text { margin-bottom: 18px; font-size: .95rem; color: var(--ink-2); }

/* Hand Cricket */
.hc {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 14px 16px;
  background:
    radial-gradient(90% 55% at 50% 118%, #3d9a5c 0%, #1e5b38 45%, transparent 76%),
    radial-gradient(38% 30% at 10% 0%, rgba(255, 255, 220, .16), transparent 70%),
    radial-gradient(38% 30% at 90% 0%, rgba(255, 255, 220, .16), transparent 70%),
    linear-gradient(180deg, #0b1d17, #0a1712);
}
.hc__board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.hc__team {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tag score" "meta meta";
  column-gap: 10px; row-gap: 3px; align-items: center;
  padding: 8px 12px; border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: box-shadow .3s;
}
.hc__team--ai { grid-template-columns: 1fr auto; grid-template-areas: "score tag" "meta meta"; text-align: right; }
.hc__team span {
  grid-area: tag;
  padding: 5px 7px 4px; border-radius: 7px;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em;
}
.hc__team b { grid-area: score; }
.hc__team small { grid-area: meta; }
.hc__team--you span { color: var(--gold-ink); background: var(--gold); }
.hc__team--ai span { color: #06243a; background: var(--cyan); }
.hc__team b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.hc__team small { font-size: 11px; font-weight: 700; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc__team.is-batting { box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px -6px rgba(255, 200, 61, .6); }
.hc__mid { display: grid; place-content: center; gap: 3px; padding: 0 4px; text-align: center; }
.hc__mid span { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; color: var(--gold); }
.hc__mid b { font-family: var(--font-display); font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.hc__balls { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hc__balls li {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--font-display); font-size: 13px; color: var(--muted);
  background: rgba(0, 0, 0, .3);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.hc__balls li.is-next { box-shadow: inset 0 0 0 2px var(--gold); }
.hc__balls li.is-run { color: #12301f; background: #f4f1e6; box-shadow: none; animation: pop-in .3s var(--ease-back); }
.hc__balls li.is-boundary { color: var(--gold-ink); background: var(--gold); box-shadow: 0 0 12px rgba(255, 200, 61, .6); animation: pop-in .3s var(--ease-back); }
.hc__balls li.is-out { color: #fff; background: var(--red); box-shadow: 0 0 12px rgba(255, 90, 95, .6); animation: pop-in .3s var(--ease-back); }
.hc__arena { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 44px); }
.hc__hand { display: grid; justify-items: center; gap: 8px; }
.hc__hand small { font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.hc__token {
  display: grid; place-items: center;
  width: clamp(76px, 12vw, 104px); aspect-ratio: 1;
  border-radius: 28px;
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1;
}
.hc__hand--you .hc__token { color: var(--gold-ink); background: linear-gradient(180deg, #ffe58a, #ffb81f); box-shadow: 0 6px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5); }
.hc__hand--ai .hc__token { color: #06243a; background: linear-gradient(180deg, #a6ecff, #3cc8f5); box-shadow: 0 6px 0 #1a7fa6, inset 0 2px 0 rgba(255, 255, 255, .5); }
.hc__fist { font-size: .75em; }
.hc__token.is-shaking { animation: fist .62s ease-in-out; }
@keyframes fist {
  0%, 100% { transform: translateY(0); }
  16%, 50%, 84% { transform: translateY(-14px) rotate(-6deg); }
  33%, 67% { transform: translateY(0); }
}
.hc__token.is-reveal { animation: reveal .4s var(--ease-back); }
@keyframes reveal { from { transform: scale(.6) rotate(-10deg); } }
.hc__hand .hc__token.is-match { box-shadow: 0 6px 0 #8f1d22, 0 0 0 4px var(--red), 0 0 30px rgba(255, 90, 95, .7); }
.hc__vs { font-family: var(--font-display); font-size: 1.3rem; color: rgba(255, 255, 255, .4); }
.hc__comm { min-height: 1.5em; margin: 2px 0 10px; text-align: center; font-weight: 800; font-size: 1rem; }
.hc__pad { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hc__pad button {
  height: clamp(44px, 6.5vw, 54px);
  border: 0; border-radius: 14px;
  font-family: var(--font-display); font-size: 1.5rem;
  color: #2b2140;
  background: linear-gradient(180deg, #fffaf0, #eee0c0);
  box-shadow: 0 4px 0 #a8946a, inset 0 2px 0 #fff;
  transition: transform .08s, box-shadow .08s, filter .2s;
}
.hc__pad button:hover { filter: brightness(1.05); }
.hc__pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #a8946a, inset 0 2px 0 #fff; }
.hc__pad button:disabled { cursor: default; filter: grayscale(.4) brightness(.7); }
.hc__brain { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.hc__brain svg { width: 16px; height: 16px; color: var(--pink); }
.hc__meter { width: 110px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hc__meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .5s var(--ease); }
.hc__brain b { min-width: 3.5ch; font-family: var(--font-pixel); font-weight: 400; font-size: 11px; color: var(--pink); }

/* 12b. Playable ads ------------------------------------------------------- */
.section--playables { background: radial-gradient(60% 45% at 20% 10%, rgba(139, 212, 80, .07), transparent 70%), radial-gradient(50% 40% at 85% 30%, rgba(255, 90, 122, .07), transparent 70%); }
.playables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pa, .pa-client {
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #221b46, #19143a);
  box-shadow: inset 0 0 0 1px var(--line), 0 26px 44px -30px rgba(0, 0, 0, .95);
}
.pa { background: radial-gradient(80% 45% at 50% 32%, color-mix(in srgb, var(--c) 26%, transparent), transparent 75%), linear-gradient(180deg, #221b46, #19143a); }
.pa.is-playing { box-shadow: inset 0 0 0 2px var(--c), 0 0 50px -16px color-mix(in srgb, var(--c) 70%, transparent), 0 26px 44px -30px rgba(0, 0, 0, .95); }

.pa__phone {
  position: relative;
  width: min(250px, 100%); margin: 0 auto;
  padding: 9px; border-radius: 40px;
  background: linear-gradient(155deg, #3d3470 0%, #1d1840 38%, #110e25 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 6px #0c0a19, 0 40px 60px -30px rgba(0, 0, 0, .85);
}
.pa__phone::before {
  content: "";
  position: absolute; z-index: 4; top: 17px; left: 50%;
  width: 30%; height: 18px; border-radius: 20px;
  background: #0c0a19;
  transform: translateX(-50%);
  pointer-events: none;
}
.pa__screen { position: relative; aspect-ratio: 375 / 812; border-radius: 32px; overflow: hidden; background: #05040b; }
.pa__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pa:hover .pa__poster { transform: scale(1.04); }
.pa__screen iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #05040b; }
.pa__play {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  border: 0; padding: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(13, 10, 28, 0) 30%, rgba(13, 10, 28, .6));
  -webkit-tap-highlight-color: transparent;
}
.pa__play-icon {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe58a, #ffb81f);
  box-shadow: 0 6px 0 var(--gold-lip), 0 0 0 0 rgba(255, 200, 61, .5);
  animation: play-pulse 1.8s ease-out infinite;
  transition: transform .25s var(--ease-back);
}
.pa__play-icon svg { width: 32px; height: 32px; margin-left: 4px; }
.pa__play:hover .pa__play-icon { transform: scale(1.08); }
.pa__play:active .pa__play-icon { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-lip); }
@keyframes play-pulse { 0% { box-shadow: 0 6px 0 var(--gold-lip), 0 0 0 0 rgba(255, 200, 61, .55); } 80%, 100% { box-shadow: 0 6px 0 var(--gold-lip), 0 0 0 22px rgba(255, 200, 61, 0); } }
.pa__play-label {
  padding: 7px 14px 6px; border-radius: 99px;
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .03em;
  background: rgba(13, 10, 28, .8);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.pa.is-playing .pa__play, .pa.is-playing .pa__poster { display: none; }

.pa__info { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pa__kicker { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; color: var(--c, var(--gold)); }
.pa h3, .pa-client h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; letter-spacing: .01em; }
.pa__info > p:not([class]), .pa-client > p:not([class]) { color: var(--muted); font-size: .95rem; }
.pa .chips { margin-top: 2px; }
.pa__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.pa__link, .pa__stop {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 0; border-radius: 11px;
  font-weight: 800; font-size: .88rem; text-decoration: none;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 3px 0 rgba(0, 0, 0, .45);
  transition: background .2s, color .2s;
}
.pa__link:hover, .pa__stop:hover { color: var(--ink); background: rgba(255, 255, 255, .11); }
.pa__link svg, .pa__stop svg { width: 15px; height: 15px; }
.pa__stop { color: #ff9aa0; }

.pa__nets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.pa__nets span { margin-right: 2px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pa__nets b {
  padding: 4px 9px 3px; border-radius: 8px;
  font-weight: 800; font-size: .78rem; color: var(--ink);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}

.pa-client {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 28px;
  padding: 28px 32px;
}
.pa-client__body { flex: 1.3; display: grid; gap: 8px; }
.pa-client .ticks { flex: 1; margin: 0; }
.pa-client .btn { flex: none; }
.pa-client { justify-content: center; background: radial-gradient(70% 50% at 50% 0%, rgba(255, 200, 61, .1), transparent 70%), linear-gradient(180deg, #221b46, #19143a); }
.pa-client .pa__kicker { color: var(--gold); }
.pa-client__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 17px;
  color: #180f33;
  background: linear-gradient(180deg, #ffe58a, var(--gold));
  box-shadow: 0 5px 0 var(--gold-lip), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.pa-client__icon svg { width: 30px; height: 30px; }

/* 13. Process ------------------------------------------------------------- */
.quest { position: relative; }
.quest__svg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.quest__trail { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.quest__done { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 200, 61, .7)); }
.quest__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.quest__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.quest__step:nth-child(even) { margin-top: 110px; }
.quest__node {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 62px; height: 62px; margin-bottom: 16px;
  border-radius: 50%;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-2);
  background: radial-gradient(circle at 35% 30%, #4a3f8e, #241d4a 70%);
  box-shadow: 0 6px 0 #08060f, inset 0 0 0 3px rgba(255, 255, 255, .12);
  transition: background .4s, color .4s, box-shadow .4s, transform .5s var(--ease-back);
}
.quest__step.is-done .quest__node {
  color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, #ffe58a, #f4a516 75%);
  box-shadow: 0 6px 0 var(--gold-lip), 0 0 30px rgba(255, 200, 61, .55), inset 0 2px 0 rgba(255, 255, 255, .5);
  transform: scale(1.08);
}
.quest__card {
  width: 100%;
  padding: 18px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #221b46, #19143a);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 36px -26px rgba(0, 0, 0, .9);
  transition: box-shadow .4s;
}
.quest__step.is-done .quest__card { box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .3), 0 20px 36px -26px rgba(0, 0, 0, .9); }
.quest__label { margin-bottom: 8px; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; color: var(--gold); }
.quest__card h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; letter-spacing: .01em; }
.quest__card > p:not([class]) { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.quest__loot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.quest__loot span { display: block; margin-bottom: 3px; font-family: var(--font-pixel); font-size: 9px; letter-spacing: .12em; color: var(--green); }
.quest__token { position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; }
.quest__token span {
  position: absolute; left: 0; bottom: 14px;
  padding: 5px 9px 4px; border-radius: 9px;
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: .06em; color: #fff;
  background: var(--pink);
  box-shadow: 0 4px 0 #a3194a, 0 8px 20px rgba(255, 79, 139, .5);
  transform: translateX(-50%);
  animation: token-bob 1.4s ease-in-out infinite;
}
.quest__token span::after {
  content: "";
  position: absolute; left: 50%; bottom: -11px;
  border: 6px solid transparent; border-top: 7px solid var(--pink);
  transform: translateX(-50%);
}
@keyframes token-bob { 50% { transform: translateX(-50%) translateY(-5px); } }

/* 14. Studio -------------------------------------------------------------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.studio__lead { margin: 22px 0 14px; font-size: 1.2rem; color: var(--ink); }
.studio__about > p:not([class]) { color: var(--muted); }
.perks { display: grid; gap: 12px; margin-top: 28px; }
.perks li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.perks__icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  color: #180f33; background: var(--c);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c), #000 45%), inset 0 2px 0 rgba(255, 255, 255, .45);
}
.perks__icon svg { width: 22px; height: 22px; }
.perks b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; }
.perks div span { display: block; font-size: .95rem; color: var(--muted); }
.studio__side { display: grid; gap: 20px; }
.wall, .loadout {
  padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #221b46, #19143a);
  box-shadow: inset 0 0 0 1px var(--line), 0 26px 44px -30px rgba(0, 0, 0, .95);
}
.wall__title, .loadout__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; }
.loadout__title svg { width: 24px; height: 24px; color: var(--gold); }
.wall__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 14px 14px; border-radius: 16px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.badge-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.badge-card > b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.05; color: var(--c); }
.badge-card__name { font-family: var(--font-display); font-size: 1rem; letter-spacing: .02em; }
.badge-card__desc { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.loadout__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.loadout__grid li {
  padding: 8px 12px; border-radius: 10px;
  font-weight: 800; font-size: .88rem; color: var(--ink-2);
  background: #0e0b1f;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -3px 0 rgba(0, 0, 0, .35);
  transition: color .2s, box-shadow .2s, transform .2s;
}
.loadout__grid li:hover { color: var(--gold); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .5), inset 0 -3px 0 rgba(0, 0, 0, .35); }

/* 15. Contact ------------------------------------------------------------- */
.section--contact { background: radial-gradient(60% 50% at 50% 100%, rgba(255, 200, 61, .1), transparent 70%); }
.contact { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 30px); }
.contact__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .98;
  text-wrap: balance;
  text-shadow: 0 5px 0 #2a2060;
}
.contact__title .hl { text-shadow: 0 5px 0 #9a5f00; }
.contact__lead { max-width: 48ch; margin-top: 20px; font-size: 1.1rem; color: var(--ink-2); }
.direct { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
.direct li { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.direct__link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .2s, box-shadow .2s;
}
.direct__link:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .5); }
.direct__link > span:not(.direct__icon) { min-width: 0; }
.direct__icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  color: var(--gold-ink); background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-lip);
}
.direct__icon svg { width: 22px; height: 22px; }
.direct__link small { display: block; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.direct__link b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 1.05rem; }
.direct__ext { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.direct__copy {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px;
  border: 0; border-radius: 18px;
  font-weight: 800; font-size: .9rem; color: var(--ink-2);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .2s, background .2s;
}
.direct__copy:hover { background: rgba(255, 255, 255, .08); }
.direct__copy svg { width: 18px; height: 18px; }
.direct__copy.is-done { color: var(--green); }

.quest-form {
  display: grid; gap: 18px;
  padding: clamp(22px, 3vw, 32px); border-radius: 28px;
  background: linear-gradient(180deg, #261f4f, #1a1539);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 8px 0 #07050f, 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.quest-form__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .02em; }
.quest-form__title span { padding: 5px 8px 4px; border-radius: 7px; font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; color: var(--gold-ink); background: var(--gold); }
.modes { min-width: 0; margin: 0; padding: 0; border: 0; }
.modes legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.modes__grid { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__card {
  display: flex; flex-direction: column; gap: 3px;
  height: 100%; padding: 14px 12px; border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1.5px var(--line-2), 0 4px 0 rgba(0, 0, 0, .45);
  transition: transform .12s, box-shadow .2s, background .2s;
}
.mode__card b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; }
.mode__card small { font-size: .78rem; font-weight: 700; line-height: 1.3; color: var(--muted); }
.mode:hover .mode__card { background: rgba(255, 255, 255, .07); }
.mode:active .mode__card { transform: translateY(3px); }
.mode input:checked + .mode__card {
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 2px var(--c), 0 4px 0 color-mix(in srgb, var(--c), #000 55%), 0 0 30px -8px color-mix(in srgb, var(--c) 60%, transparent);
}
.mode input:checked + .mode__card b { color: var(--c); }
.mode input:focus-visible + .mode__card { outline: 3px solid var(--cyan); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field em { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: .8rem; letter-spacing: 0; text-transform: none; opacity: .8; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 0; border-radius: 14px;
  font-weight: 700; color: var(--ink);
  background-color: #0e0b1f;
  box-shadow: inset 0 0 0 1.5px var(--line-2), inset 0 3px 0 rgba(0, 0, 0, .35);
  transition: box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6e6799; font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 4px rgba(255, 200, 61, .15); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px rgba(255, 90, 95, .15); }
.field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a39bcd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.form-note { text-align: center; font-size: .85rem; color: var(--muted); }
.form-note.is-success { font-weight: 700; color: var(--green); }

/* 16. Footer -------------------------------------------------------------- */
.footer { position: relative; padding: 56px 0 30px; background: #0a0817; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__brand p { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__nav a { font-weight: 800; color: var(--ink-2); text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__social { display: inline-flex; align-items: center; gap: 6px; }
.footer__social svg { width: 17px; height: 17px; }
.footer__continue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  font-family: var(--font-pixel); font-size: 13px; letter-spacing: .1em; color: var(--gold); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .4);
  animation: blink-soft 1.6s ease-in-out infinite;
}
.footer__continue svg { width: 16px; height: 16px; }
@keyframes blink-soft { 50% { opacity: .55; } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); }
.footer__egg { font-family: var(--font-pixel); font-size: 11px; letter-spacing: .14em; opacity: .45; }

/* 17. Toasts & FX --------------------------------------------------------- */
.toasts {
  position: fixed; z-index: 300; left: 50%; bottom: 22px;
  display: grid; gap: 10px;
  width: min(380px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #2b2358, #1c1640);
  box-shadow: inset 0 0 0 1.5px rgba(255, 200, 61, .45), 0 6px 0 #07050f, 0 20px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(140%) scale(.9);
  transition: transform .45s var(--ease-back), opacity .3s;
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(40%) scale(.95); transition: transform .3s ease, opacity .3s ease; }
.toast--note { box-shadow: inset 0 0 0 1.5px var(--line-2), 0 6px 0 #07050f, 0 20px 40px rgba(0, 0, 0, .5); }
.toast__icon {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 200, 61, .4), rgba(255, 200, 61, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 200, 61, .4);
}
.toast__icon img { width: 32px; height: 32px; animation: toast-icon .8s var(--ease-back) .15s both; }
@keyframes toast-icon { from { transform: scale(0) rotate(-30deg); } }
.toast__text { min-width: 0; }
.toast small { display: block; font-family: var(--font-pixel); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.toast b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.15; letter-spacing: .02em; }
.toast__text > span { display: block; font-size: .85rem; line-height: 1.35; color: var(--muted); }

.fly-coin {
  position: fixed; left: 0; top: 0; z-index: 400;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: url("../img/pickups/coin.svg") center / contain no-repeat;
  pointer-events: none;
  will-change: transform;
}
.confetti { position: fixed; inset: 0; z-index: 350; width: 100%; height: 100%; pointer-events: none; }

.cheat .hero__title .hl {
  color: transparent;
  background: linear-gradient(90deg, #ff4f8b, #ffc83d, #4fe08f, #45d3ff, #9b7bff, #ff4f8b) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  animation: rainbow 2s linear infinite;
}
@keyframes rainbow { to { background-position: 200% 0; } }

/* 18. Responsive ---------------------------------------------------------- */
@media (max-width: 1199px) {
  .hud__nav a { padding: 8px 9px; }
  .logo__tag { display: none; }
}

@media (max-width: 1099px) {
  .hud__nav { display: none; }
  .hud__right { margin-left: auto; }
  .hud__menu { display: grid; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .playables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-client { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pa-client .btn { align-self: stretch; }
  .cabinet { grid-template-columns: minmax(0, 1fr); }
  .cabinet__select { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -4px; padding: 4px 4px 10px; }
  .cabinet__select::-webkit-scrollbar { display: none; }
  .cart { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }

  .quest__steps { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 640px; margin-inline: auto; }
  .quest__step, .quest__step:nth-child(even) { flex-direction: row; align-items: flex-start; gap: 18px; margin-top: 0; text-align: left; }
  .quest__node { flex: none; width: 54px; height: 54px; margin: 0; font-size: 1.4rem; }

  .studio, .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { position: static; }
  .modal__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 28px) 0 64px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { min-height: 0; padding: 34px 0 6px; }
  .device { width: min(300px, 80vw); }
  .hero__card--a { width: 56%; top: 6%; left: -2%; }
  .hero__card--b { width: 28%; bottom: 4%; right: 0; }
  .hero__sticker { top: 0; right: 4%; }
  .hero__scroll { display: none; }
  .pickup { --s: 40px; }
  .pickup--coin { --x: 0% !important; --y: 1% !important; }
  .pickup--star { --x: 86% !important; --y: 90% !important; }
  .pickup--heart { --x: -2% !important; --y: 58% !important; }
  .pickup--gem { --x: 88% !important; --y: 44% !important; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .hud__cta, .hud-icon--sound { display: none; }
  .hud__right { gap: 6px; }

  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero__stats > div { min-width: 0; padding: 10px 11px 12px; }
  .hero__stats dd { font-size: 1.7rem; }
  .hero__stats dt { font-size: 9px; }

  .services, .games, .playables { grid-template-columns: minmax(0, 1fr); }
  .pa__phone { width: min(260px, 100%); }
  .filters { gap: 8px; }
  .filter { padding: 8px 9px 8px 12px; font-size: .92rem; gap: 6px; }
  .filter b { min-width: 20px; padding: 3px 4px 2px; font-size: 10px; }
  .gc--wide { grid-column: auto; }
  .gc__media { height: 300px; }
  .gc__media--wide { height: auto; aspect-ratio: 1600 / 738; }
  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 4:5 on phones, but never taller than the viewport on small tablets. */
  .screen { aspect-ratio: auto; height: min(calc((100vw - 56px) * 1.25), 78vh, 620px); }
  .ol__name { font-size: 1.15rem; }
  .tool span { display: none; }
  .tool { padding: 9px; }

  .modes__grid { grid-template-columns: minmax(0, 1fr); }
  .mode__card { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; text-align: left; }
  .field-row { grid-template-columns: minmax(0, 1fr); }

  .modal { --modal-pad: 0px; }
  .modal__panel { align-self: end; max-height: 94vh; max-height: 94dvh; border-radius: 26px 26px 0 0; }
  .modal__close { top: 12px; right: 12px; width: 44px; height: 44px; box-shadow: 0 4px 0 #9b1b22, inset 0 2px 0 rgba(255, 255, 255, .45); }
  .modal__head { padding-right: 52px; }
  .modal__step b { font-size: 1rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .direct__copy { padding: 0 14px; }
  .direct__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .direct__link { gap: 12px; padding-right: 12px; }
  .direct__link b { font-size: .98rem; }
}

@media (max-width: 419px) {
  .hud-chip--trophy { display: none; }
  .logo { gap: 8px; }
  .logo__word { font-size: 1.12rem; }
  .logo__mark { width: 32px; height: 32px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hc { padding: 12px; }
  .hc__team { padding: 7px 9px; column-gap: 7px; }
  .hc__pad { gap: 6px; }
  .hc__pad button { font-size: 1.25rem; }
}

@media (hover: none) {
  .gc__go { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track { animation: none; }
}
