/* =========================================================
   MnzSoftware — 2026
   ========================================================= */

@property --vig {
  syntax: '<length>';
  inherits: true;
  initial-value: 64px;
}

:root {
  --ink: #0b0a10;
  --ink-2: #14121c;
  --ink-3: #1d1a28;
  --paper: #f3eee3;
  --muted: #9b95a8;
  --line: rgba(243, 238, 227, .12);
  --orange: #ff4d1c;
  --lime: #c6ff3d;
  --indigo: #2b2470;
  --accent: var(--orange);
  --px: 3px;
  --bayer: none;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Silkscreen', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html[data-lang="en"] [data-l="it"],
html[data-lang="it"] [data-l="en"] { display: none !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-booting { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
mark { background: none; color: var(--accent); }
::selection { background: var(--orange); color: var(--ink); }

.pix { font-family: var(--pixel); letter-spacing: .04em; text-transform: uppercase; }
.label { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.3em;
  font-weight: 650; font-size: 15px; line-height: 1;
  border: 2px solid var(--b);
  border-radius: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
  box-shadow: 0 0 0 var(--b);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--b), 6px 6px 0 color-mix(in srgb, var(--b) 35%, transparent); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--b); }
.btn-big { padding: 1.05em 1.6em; font-size: 17px; }
.btn-small { padding: .6em 1em; font-size: 14px; }
.btn-accent { --b: var(--accent); background: var(--accent); color: var(--ink); }
.btn-accent:hover { box-shadow: 3px 3px 0 var(--paper), 6px 6px 0 color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-ghost { color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-ink { --b: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 3px 3px 0 var(--paper), 6px 6px 0 rgba(0,0,0,.4); }

.chip {
  display: inline-block;
  font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: .45em .75em;
  background: var(--accent); color: var(--ink);
}
.chip-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path .7s steps(10), visibility 0s .7s;
  clip-path: inset(0 0 0 0);
}
.boot.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.boot-inner { width: min(320px, 70vw); display: grid; gap: 18px; justify-items: center; }
.boot-logo { width: 160px; filter: invert(1); image-rendering: pixelated; }
.boot-bar { width: 100%; height: 14px; border: 2px solid var(--paper); padding: 2px; }
.boot-bar i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--orange) 0 8px, transparent 8px 10px);
}
.boot-txt { font-size: 12px; color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  transition: background .3s, backdrop-filter .3s, border-color .3s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 10, 16, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav-logo img { width: 92px; filter: invert(1); transition: transform .3s var(--ease); }
.nav-logo:hover img { transform: rotate(-4deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 8px 12px; font-weight: 550; font-size: 15px;
  transition: color .2s;
}
.nav-links a::before {
  content: '▸'; position: absolute; left: -4px; top: 50%; transform: translateY(-50%);
  font-family: var(--pixel); color: var(--orange); opacity: 0; transition: opacity .15s, left .2s var(--ease);
}
.nav-links a:hover::before { opacity: 1; left: -2px; }
.nav-links a:hover { color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; box-shadow: inset 0 0 0 1px var(--line); }
.lang button { font-family: var(--pixel); font-size: 11px; padding: 7px 9px; color: var(--muted); }
html[data-lang="en"] .lang [data-set-lang="en"],
html[data-lang="it"] .lang [data-set-lang="it"] { background: var(--paper); color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--pad) clamp(70px, 9vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
  z-index: -2;
  background: var(--ink);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,10,16,.85) 0%, rgba(11,10,16,.35) 45%, rgba(11,10,16,0) 70%),
    linear-gradient(0deg, rgba(11,10,16,.9) 0%, rgba(11,10,16,0) 35%);
}
.scanlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 1px, transparent 1px 3px);
}
.hud { position: absolute; top: 96px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.hud b { color: var(--paper); font-weight: 400; }
.hud-tl { left: var(--pad); }
.hud-tr { right: var(--pad); text-align: right; }

.hero-content { width: 100%; max-width: var(--max); margin: 0 auto; }
.kicker { font-size: 12px; color: var(--orange); margin: 0 0 22px; }
.hero-title {
  margin: 0;
  font-size: clamp(54px, 11.5vw, 188px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.045em;
  font-variation-settings: 'opsz' 96;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.hero-title .line:nth-child(3) > span { transition-delay: .16s; }
body.ready .hero-title .line > span { transform: none; }
.hero-title .accent {
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  background: linear-gradient(90deg, var(--orange), var(--orange)) 0 0 / 0% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  transition: transform 1s var(--ease) .16s, background-size 1.2s steps(12) 1.1s;
}
body.ready .hero-title .accent { background-size: 100% 100%; }

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s .5s, transform .8s .5s var(--ease);
}
body.ready .hero-bottom { opacity: 1; transform: none; }
.hero-sub { max-width: 470px; margin: 0; font-size: clamp(17px, 1.4vw, 20px); color: #d8d2c6; }
.hero-sub em { font-style: normal; color: var(--paper); background: linear-gradient(transparent 62%, rgba(255,77,28,.55) 62%); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.press-start {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.press-start .arrow { font-style: normal; animation: bob 1.2s steps(2) infinite; color: var(--orange); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--orange); color: var(--ink);
  overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
  margin: -14px 0 0; position: relative; z-index: 2;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px; padding: 14px 0;
  animation: marquee 32s linear infinite;
  font-weight: 800; font-size: clamp(22px, 3vw, 38px); letter-spacing: -.02em; text-transform: uppercase;
}
.marquee-track b { font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto clamp(40px, 6vw, 80px); padding: 0 var(--pad); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-title {
  margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: .95;
  font-size: clamp(40px, 6.4vw, 104px);
}
.section-sub { max-width: 520px; color: #c8c2b6; margin: 22px 0 0; font-size: 18px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Manifesto ---------- */
.manifesto { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 200px) var(--pad) clamp(80px, 10vw, 140px); }
.manifesto-text {
  margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.08;
  font-size: clamp(30px, 4.6vw, 72px);
  max-width: 1250px;
}
.manifesto-text .w { opacity: .14; transition: opacity .25s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text mark .w.on { color: var(--orange); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(70px, 9vw, 130px);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(54px, 7vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat-num span { font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12px; color: #bdb6c9; margin-top: 12px; }

/* ---------- Dither component: clean image + ordered-dither vignette ---------- */
.dither { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; --vig: 64px; transition: --vig .5s var(--ease); }
.dither > img.base { width: 100%; height: 100%; object-fit: cover; }
.dither:hover { --vig: 30px; }
/* grayscale ramp (black edges -> white centre) + Bayer tile, thresholded, multiplied over the image */
.dither .vig { position: absolute; inset: -1px; isolation: isolate; pointer-events: none; mix-blend-mode: multiply; }
.dither .vig .th {
  position: absolute; inset: 0; filter: contrast(60);
  background:
    linear-gradient(to right, #000 0, #000 3px, #fff var(--vig), #fff calc(100% - var(--vig)), #000 calc(100% - 3px), #000),
    linear-gradient(to bottom, #000 0, #000 3px, #fff var(--vig), #fff calc(100% - var(--vig)), #000 calc(100% - 3px), #000);
  background-blend-mode: multiply;
}
/* black pixels -> ink, white stays transparent to the multiply */
.dither .vig::after { content: ''; position: absolute; inset: 0; background: var(--ink); mix-blend-mode: screen; }
.dither .th::after, .dg-th::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--bayer); background-size: calc(var(--px) * 4) calc(var(--px) * 4);
  image-rendering: pixelated; opacity: .5;
}

/* dithered gradient blobs */
.dg { position: absolute; isolation: isolate; pointer-events: none; overflow: hidden; }
.dg-th { position: absolute; inset: 0; filter: contrast(60); background: var(--g, radial-gradient(closest-side, #fff, #000)); }
.dg::after { content: ''; position: absolute; inset: 0; background: var(--tint, var(--orange)); mix-blend-mode: multiply; }
/* on dark surfaces: black disappears */
.dg-dark { mix-blend-mode: screen; }
/* on light surfaces: black -> tint, white -> surface */
.dg-light { mix-blend-mode: multiply; }
.dg-light::after { mix-blend-mode: screen; }

/* ---------- Games ---------- */
.games { padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); }
.game {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(50px, 7vw, 110px) var(--pad);
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 6vw, 100px); align-items: center;
  position: relative;
}
.game + .game { border-top: 1px dashed var(--line); }
.game-flip { grid-template-columns: 1.25fr 1fr; }
.game-flip .game-copy { order: 2; }
.game-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.game-idx { font-size: 28px; color: var(--accent); margin-right: 8px; }
.game-idx small { font-size: 12px; color: var(--muted); }
.game-logo {
  width: min(340px, 80%); margin: 0 0 22px -6px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
  transform-style: preserve-3d; transition: transform .3s var(--ease);
  will-change: transform;
}
.game-tag { margin: 0 0 16px; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 750; }
.game-body { margin: 0 0 24px; color: #c8c2b6; max-width: 540px; }
.feats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.feats li {
  font-size: 14px; font-weight: 550; padding: 6px 12px 6px 26px; position: relative;
  box-shadow: inset 0 0 0 1px var(--line);
}
.feats li::before { content: ''; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--accent); }
.game-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.game-media { position: relative; perspective: 1400px; }
.screen {
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent), 0 40px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s var(--ease), box-shadow .4s;
}
.game-flip .screen { --ry: 8deg; }
.screen::before, .screen::after {
  content: ''; position: absolute; z-index: 3; width: 22px; height: 22px; pointer-events: none;
  border: 3px solid var(--paper);
}
.screen::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.screen::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 18px; }
.thumbs button {
  flex: 1; aspect-ratio: 16 / 9; padding: 0; position: relative; overflow: hidden;
  opacity: .45; transition: opacity .2s, transform .2s var(--ease);
  box-shadow: inset 0 0 0 2px transparent;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .2s; }
.thumbs button:hover { opacity: .9; transform: translateY(-3px); }
.thumbs button.on { opacity: 1; }
.thumbs button.on img { filter: none; }
.thumbs button.on::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--accent); }
.app-icon {
  position: absolute; width: clamp(64px, 7vw, 96px); top: -28px; right: -18px; z-index: 4;
  border-radius: 22%; box-shadow: 0 16px 30px rgba(0,0,0,.5), 0 0 0 3px var(--ink);
  transform: rotate(8deg); animation: float 5s ease-in-out infinite;
}
.game-flip .app-icon { right: auto; left: -18px; transform: rotate(-8deg); }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Cast ---------- */
.cast {
  padding: clamp(90px, 11vw, 160px) 0;
  background:
    radial-gradient(1200px 500px at 50% 100%, rgba(43,36,112,.45), transparent 70%),
    var(--ink-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.cast-wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
}
.cast-stage {
  --hue: #ff6a1a;
  position: relative; height: clamp(440px, 52vw, 640px);
  display: grid; place-items: center;
}
.cast-name-bg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: clamp(80px, 13vw, 210px); letter-spacing: -.06em; line-height: .8; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243,238,227,.14);
  white-space: nowrap; text-transform: uppercase;
}
.cast-glow { inset: 6% 8% 4%; --g: radial-gradient(closest-side, #ddd 0%, #555 45%, #000 100%); --tint: var(--hue); transition: background .4s; border-radius: 0; opacity: .9; }
.cast-glow::after { transition: background .5s; }
.cast-figure {
  position: relative; z-index: 2; height: 78%;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .25s ease-out;
}
.cast-figure img {
  height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 30px 25px rgba(0,0,0,.6));
  animation: idle 3.2s ease-in-out infinite;
}
.cast-figure img.swap { animation: swapIn .55s steps(6) both, idle 3.2s ease-in-out .55s infinite; }
@keyframes idle { 50% { transform: translateY(-12px); } }
@keyframes swapIn {
  0% { clip-path: inset(100% 0 0 0); transform: translateY(20px) scale(.96); filter: brightness(3) drop-shadow(0 30px 25px rgba(0,0,0,.6)); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
.cast-floor {
  position: absolute; left: 15%; right: 15%; bottom: 8%; height: 14%; z-index: 1;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent);
}
.cast-info { position: absolute; left: 0; bottom: 0; z-index: 3; }
.cast-p { display: inline-block; font-size: 11px; background: var(--hue); color: var(--ink); padding: 4px 8px; transition: background .4s; }
.cast-info h3 { margin: 10px 0 2px; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; letter-spacing: -.035em; }
.cast-info p { margin: 0; color: var(--muted); font-size: 12px; }

.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cast-card {
  --hue: #fff;
  position: relative; aspect-ratio: 1; padding: 10px;
  background: var(--ink-3);
  box-shadow: inset 0 0 0 2px var(--line);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.cast-card img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(.75); transition: filter .25s, transform .35s var(--ease); }
.cast-card span { position: absolute; left: 8px; top: 6px; font-size: 10px; color: var(--muted); }
.cast-card:hover { transform: translateY(-4px); }
.cast-card:hover img { filter: grayscale(.3); transform: scale(1.06); }
.cast-card.is-on { box-shadow: inset 0 0 0 3px var(--hue); background: color-mix(in srgb, var(--hue) 14%, var(--ink-3)); }
.cast-card.is-on img { filter: none; transform: scale(1.08); }
.cast-card.is-on span { color: var(--hue); }
.cast-card.is-on::after {
  content: 'P1'; position: absolute; right: 6px; top: 6px; font-family: var(--pixel); font-size: 10px;
  background: var(--hue); color: var(--ink); padding: 2px 5px; animation: blink 1s steps(1) infinite;
}

/* ---------- Studio ---------- */
.studio { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 180px) var(--pad) clamp(60px, 8vw, 100px); }
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.studio-copy p { margin: 0 0 18px; color: #d2ccc0; font-size: 19px; }
.studio-copy strong { color: var(--paper); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 110px); position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.tl-item { position: relative; padding: 34px 24px 0 0; }
.tl-item::before { content: ''; position: absolute; top: 0; left: 0; width: 16px; height: 16px; background: var(--paper); }
.tl-item > span { font-size: 15px; color: var(--orange); }
.tl-item p { margin: 8px 0 0; color: #c8c2b6; font-size: 16px; }
.tl-next::before { background: var(--orange); animation: blink 1s steps(1) infinite; }

/* ---------- Partner ---------- */
.partner { padding: clamp(60px, 8vw, 120px) 0 clamp(90px, 10vw, 150px); }
.brands {
  list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.brands li {
  position: relative; display: grid; place-items: center; text-align: center;
  height: clamp(100px, 11vw, 160px);
  font-weight: 800; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.03em;
  border: 1px solid var(--line); margin: 0 -1px -1px 0;
  transition: background .2s, color .2s;
  overflow: hidden;
}
.brands li:hover { background: var(--paper); color: var(--ink); }
.brands-more { color: var(--muted); font-weight: 500 !important; font-style: italic; }
.coop {
  position: relative; max-width: calc(var(--max) - 2 * var(--pad)); margin: clamp(60px, 8vw, 110px) var(--pad) 0;
  overflow: hidden; background: var(--paper); color: var(--ink); isolation: isolate;
}
@media (min-width: 1440px) { .coop { margin-inline: auto; } }
.coop-bg { inset: 0; left: 40%; --g: radial-gradient(farthest-side at 100% 100%, #000 0%, #777 50%, #fff 100%); --tint: var(--orange); --px: 4px; }
.coop-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 60px; align-items: end;
  padding: clamp(36px, 5vw, 72px);
}
.coop-title { margin: 0 0 18px; font-size: clamp(32px, 4vw, 62px); line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.coop-sub { margin: 0; max-width: 560px; font-size: 18px; color: #3a3640; }
.services { list-style: none; margin: 0; padding: 22px 24px; display: grid; gap: 12px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 2px var(--ink); justify-self: end; min-width: 300px; }
.services li { display: flex; align-items: center; gap: 14px; font-weight: 650; font-size: 19px; }
.services b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 400;
}
.coop .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Archive ---------- */
.archive { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.vault {
  display: flex; gap: 20px; overflow-x: auto; padding: 10px var(--pad) 30px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab;
}
.vault::-webkit-scrollbar { display: none; }
.vault.dragging { cursor: grabbing; scroll-snap-type: none; }
.vault.dragging * { pointer-events: none; }
.cart {
  flex: 0 0 clamp(270px, 32vw, 460px); margin: 0; scroll-snap-align: start;
  background: var(--ink-3); padding: 12px 12px 0;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform .3s var(--ease);
}
.cart:hover { transform: translateY(-6px) rotate(-.6deg); }
.cart .dither { aspect-ratio: 4 / 3; --px: 3px; --vig: 44px; }
.cart .dither:hover { --vig: 22px; }
.cart figcaption { display: flex; align-items: center; gap: 12px; padding: 14px 4px 16px; font-weight: 650; font-size: 17px; }
.cart figcaption .pix { font-size: 10px; color: var(--muted); }

/* ---------- Feedback ---------- */
.feedback { padding: clamp(100px, 13vw, 190px) var(--pad); text-align: center; }
.feedback-inner { max-width: 980px; margin: 0 auto; display: grid; justify-items: center; }
.feedback-title { margin: 0 0 24px; font-size: clamp(38px, 5.6vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.feedback-title mark { color: var(--lime); }
.feedback-sub { max-width: 640px; color: #c8c2b6; margin: 0 0 36px; font-size: 19px; }
.feedback .btn-accent { --accent: var(--lime); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(100px, 12vw, 180px) var(--pad); background: var(--ink); border-top: 1px solid var(--line); }
.contact-bg { inset: 0; --g: radial-gradient(70% 90% at 80% 110%, #fff 0%, #777 30%, #000 75%); --tint: var(--orange); --px: 4px; opacity: .9; }
.contact-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.contact-title { margin: 0; font-size: clamp(64px, 13vw, 220px); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.contact-mail {
  display: inline-block; margin: 30px 0 18px;
  font-size: clamp(26px, 4.4vw, 70px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0% 4px no-repeat;
  transition: background-size .5s var(--ease), color .2s;
  word-break: break-all;
}
.contact-mail:hover { background-size: 100% 4px; color: var(--orange); }
.contact-sub { color: #c8c2b6; margin: 0 0 34px; font-size: 19px; max-width: 560px; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.contact-loc { font-size: 11px; color: var(--muted); margin-left: 10px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px var(--pad); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.footer-logo { width: 70px; filter: invert(1); opacity: .9; }
.footer-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta p { margin: 0; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--paper); }
.footer-cheat { margin: 0; font-size: 10px; opacity: .45; }

/* ---------- Player ---------- */
.player { padding: 0; border: 0; background: transparent; width: min(1100px, 92vw); max-width: none; color: var(--paper); }
.player::backdrop { background: rgba(11,10,16,.88); backdrop-filter: blur(6px); }
.player[open] { animation: crt .45s var(--ease); }
@keyframes crt { 0% { transform: scale(1, .004); filter: brightness(4); } 50% { transform: scale(1, .004); } 100% { transform: none; filter: none; } }
.player-frame { position: relative; box-shadow: 0 0 0 3px var(--orange); }
.player-video { aspect-ratio: 16 / 9; background: #000; }
.player-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: absolute; right: 0; top: -40px; font-size: 12px; padding: 8px 10px; background: var(--orange); color: var(--ink); }

/* ---------- Easter egg ---------- */
.toast {
  position: fixed; left: 50%; top: 90px; z-index: 90; transform: translate(-50%, -30px); opacity: 0;
  background: var(--lime); color: var(--ink); padding: 12px 18px; font-size: 13px; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s; box-shadow: 4px 4px 0 var(--ink), 4px 4px 0 2px var(--lime);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.walker { position: fixed; bottom: 0; left: -200px; height: 180px; z-index: 80; pointer-events: none; display: none; }
.walker.go { display: block; animation: walk 9s linear forwards, wobble .5s steps(2) infinite; }
@keyframes walk { to { left: calc(100vw + 200px); } }
@keyframes wobble { 50% { transform: rotate(4deg) translateY(-6px); } }
html.cheat { --orange: #9bbc0f; --accent: #9bbc0f; }
html.cheat body { background: #0f1f0f; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .game, .game-flip { grid-template-columns: 1fr; }
  .game-flip .game-copy { order: 0; }
  .game-media { order: -1; }
  .screen, .game-flip .screen { --ry: 0deg; --rx: 0deg; }
  .cast-wrap { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(5, 1fr); }
  .studio-grid { grid-template-columns: 1fr; }
  .coop-inner { grid-template-columns: 1fr; }
  .coop-bg { left: 0; top: 50%; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px;
    padding: 0 var(--pad); background: var(--ink);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s steps(8);
  }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  .nav-links a { font-size: 44px; font-weight: 800; letter-spacing: -.04em; padding: 6px 0; }
  .nav-right .btn { display: none; }
  .burger { display: block; }
  .hud { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .timeline::before { display: none; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .hero-shade { background: linear-gradient(0deg, rgba(11,10,16,.95) 0%, rgba(11,10,16,.55) 45%, rgba(11,10,16,0) 75%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cast-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .cast-card { padding: 4px; }
  .cast-card span { display: none; }
  .cast-card.is-on::after { display: none; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .contact-loc { margin-left: 0; }
  .game-logo { width: min(240px, 70%); }
  .app-icon, .game-flip .app-icon { top: -20px; right: 8px; left: auto; width: 60px; }
}

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