/* $IMG · Infinite Money Glitch
   Palette sampled from the theme art (art/theme.png). */
:root {
  --ink: #0b0310;
  --ink2: #12061a;
  --plum: #1f0d2c;
  --plum2: #2a122c;
  --line: #3b1c45;
  --wine: #732557;
  --magenta: #d833a3;
  --pink: #fd4ca0;
  --coral: #fd5b8a;
  --orange: #fd7e61;
  --peach: #fd9e74;
  --white: #fffdfb;
  --muted: #cdb6cf;
  --dim: #94799a;
  --hp: #6fd38a;
  --ar: #5aaeff;
  --grad: linear-gradient(180deg, #ec409e 0%, #fd4ca0 42%, #fd7e61 100%);
  --grad-x: linear-gradient(90deg, #d833a3 0%, #fd4ca0 45%, #fd7e61 100%);
  --nav-h: 76px;
  --wrap: 1520px;
  --f-body: "Chivo", system-ui, sans-serif;
  --f-mono: "Chivo Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--white); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis-stopped { overflow: clip; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; overflow-x: clip; background: var(--ink); }
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
b { font-weight: 800; }
::selection { background: var(--pink); color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 64px); margin-inline: auto; }

/* ---------- Pricedown outlines (pre-rendered SVG paths) ---------- */
svg.pd { display: block; height: 1em; width: auto; overflow: visible; }
svg.pd .sh { fill: var(--pd-shadow, var(--pink)); stroke: #000; stroke-width: 70; stroke-linejoin: round; paint-order: stroke; }
svg.pd .fg { fill: var(--pd-fill, var(--white)); stroke: #000; stroke-width: var(--pd-stroke, 70); stroke-linejoin: round; paint-order: stroke; }
.pd-title { margin: 0; font-size: clamp(54px, 6.2vw, 104px); line-height: 1; }
.pd-sub { margin: 0; font-size: clamp(40px, 3.6vw, 60px); line-height: 1; --pd-stroke: 64; }
.pd-inline { display: inline-block; font-size: 28px; line-height: 1; }
.pd-inline.big { font-size: 64px; }

/* ---------- buttons ---------- */
.btn {
  --sh: #000;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 28px; border-radius: 14px;
  font-weight: 900; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  border: 3px solid #000; box-shadow: 5px 5px 0 var(--sh);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s;
  cursor: pointer; user-select: none;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--sh); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sh); transition-duration: .08s; }
.btn.primary { background: var(--grad); color: #1a0510; }
.btn.primary:hover { --sh: #000; }
.btn.ghost { background: var(--white); color: #1a0510; }
.btn.ghost:hover { background: #ffe3ef; }
.btn.sm { height: 44px; padding: 0 18px; font-size: 13px; border-radius: 11px; box-shadow: 4px 4px 0 var(--sh); }
.btn.sm:hover { box-shadow: 6px 6px 0 var(--sh); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 32px; transition: background-color .35s, box-shadow .35s, transform .6s var(--ease);
}
.top.solid { background: rgba(11, 3, 16, .94); box-shadow: 0 1px 0 #2a1232; }
.brand { justify-self: start; display: block; width: 100px; transition: transform .3s var(--spring); }
.brand:hover { transform: rotate(-3deg) scale(1.05); }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 4px; padding: 6px; border-radius: 16px; background: rgba(11, 3, 16, .72); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.nav button { padding: 10px 16px; border-radius: 11px; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #f1dcef; transition: background-color .2s, color .2s; }
.nav button:hover { background: rgba(253, 76, 160, .16); color: #fff; }
.nav button.on { background: var(--white); color: #1a0510; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: rgba(11, 3, 16, .72); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); transition: background-color .2s, transform .2s; cursor: pointer; }
.icon-btn:hover { background: var(--pink); color: #1a0510; transform: translateY(-2px); }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 55; top: calc(var(--nav-h) + 6px); right: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; }
.cash { font-size: 44px; line-height: 1; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); --pd-fill: #fff; }
.cash svg { height: 1em; width: auto; overflow: visible; display: block; }
.cash.inf { --pd-fill: url(#none); }
.delta { height: 28px; font-size: 26px; line-height: 1; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .35s var(--ease); --pd-fill: var(--pink); }
.delta.show { opacity: 1; transform: none; }
.delta svg { height: 1em; width: auto; overflow: visible; display: block; }
.stars { display: flex; gap: 4px; margin-top: 2px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .4s var(--ease); }
.stars.live { opacity: 1; transform: none; }
.stars svg { width: 24px; height: 24px; fill: rgba(11, 3, 16, .55); stroke: rgba(255,255,255,.55); stroke-width: 1.6; transition: fill .2s, stroke .2s, transform .3s var(--spring); }
.stars svg.on { fill: #fff; stroke: #000; transform: scale(1.12); }
.stars.flash svg.on { animation: starFlash .5s steps(1) infinite; }
@keyframes starFlash { 50% { fill: var(--pink); } }

/* ---------- radar (GTA V style minimap, doubles as section nav) ---------- */
.radar { position: fixed; z-index: 55; left: 24px; bottom: 22px; width: 196px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
body.ready .radar { opacity: 1; transform: none; }
body.ready.at-foot .radar { opacity: 0; transform: translateY(16px); pointer-events: none; }
.radar-map { position: relative; height: 122px; border-radius: 14px; overflow: hidden; border: 3px solid #000; box-shadow: 4px 4px 0 rgba(0,0,0,.6); background: #2a1630; }
.radar .map { position: absolute; left: 0; top: 0; width: 100%; height: 600%; will-change: transform; }
.blips { position: absolute; inset: 0; }
.blip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 23px; height: 23px; border-radius: 50%; background: var(--white); color: #1a0510; border: 2px solid #000; display: grid; place-items: center; font-weight: 900; font-size: 12px; transition: transform .25s var(--spring), background-color .2s; }
.blip b { font-weight: 900; }
.blip.hot { background: var(--pink); }
.blip.on { background: var(--orange); transform: translate(-50%, -50%) scale(1.2); }
.blip:hover { transform: translate(-50%, -50%) scale(1.25); }
.blip span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: #000; color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s; }
.blip:hover span { opacity: 1; }
.me { position: absolute; left: 50%; top: 50%; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 18px solid #fff; transform: translate(-50%, -50%); filter: drop-shadow(0 0 0 #000) drop-shadow(1px 1px 0 #000); pointer-events: none; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 5px; }
.bars i { display: block; height: 8px; border: 2px solid #000; background: rgba(11,3,16,.7); border-radius: 3px; overflow: hidden; }
.bars b { display: block; height: 100%; width: 100%; transform-origin: left; transition: transform .8s var(--ease); }
.bars .hp b { background: var(--hp); transform: scaleX(.62); }
.bars .ar b { background: var(--ar); transform: scaleX(.18); }

/* ---------- money canvas, cops, banner, typed buffer, toast ---------- */
#money { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; }
.cops { position: fixed; inset: 0; z-index: 49; pointer-events: none; opacity: 0; transition: opacity .4s; overflow: hidden; }
.cops i { position: absolute; top: 0; bottom: 0; width: 38vw; }
.cops i:first-child { left: 0; background: radial-gradient(ellipse at 0% 50%, rgba(255, 40, 70, .5), transparent 65%); animation: copA .5s steps(1) infinite; }
.cops i:last-child { right: 0; background: radial-gradient(ellipse at 100% 50%, rgba(50, 110, 255, .5), transparent 65%); animation: copB .5s steps(1) infinite; }
@keyframes copA { 50% { opacity: 0; } }
@keyframes copB { 0% { opacity: 0; } 50% { opacity: 1; } }
body.wanted .cops { opacity: 1; }

.banner { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; pointer-events: none; visibility: hidden; overflow: hidden; }
.banner-in { width: 100%; padding: 26px 0 22px; text-align: center; background: linear-gradient(90deg, transparent, rgba(11, 3, 16, .86) 18%, rgba(11, 3, 16, .86) 82%, transparent); transform: scaleY(0); transition: transform .35s var(--ease); }
.banner-word { display: flex; justify-content: center; font-size: clamp(36px, 8vw, 128px); line-height: 1; --pd-fill: url(#pdGrad); opacity: 0; transform: scale(1.5); transition: opacity .25s, transform .5s var(--spring); }
.banner p { margin: 12px 0 0; font-family: var(--f-mono); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 16px; color: #ffe3ef; opacity: 0; transition: opacity .3s .15s; }
.banner.show { visibility: visible; }
.banner.show .banner-in { transform: scaleY(1); }
.banner.show .banner-word { opacity: 1; transform: none; }
.banner.show p { opacity: 1; }

.typed { position: fixed; z-index: 70; left: 50%; bottom: 34px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 12px; background: rgba(11, 3, 16, .9); border: 2px solid var(--pink); font-family: var(--f-mono); font-weight: 700; letter-spacing: .3em; font-size: 18px; color: #fff; opacity: 0; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; }
.typed.show { opacity: 1; transform: translate(-50%, 0); }
.typed::after { content: ""; display: inline-block; width: 10px; height: 18px; margin-left: 4px; vertical-align: -3px; background: var(--pink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.toast { position: fixed; z-index: 85; left: 50%; top: calc(var(--nav-h) + 16px); transform: translate(-50%, -10px); padding: 12px 18px; border-radius: 12px; background: #000; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); border: 2px solid var(--pink); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pop { position: fixed; z-index: 75; pointer-events: none; font-size: 30px; line-height: 1; --pd-fill: var(--white); --pd-shadow: var(--pink); animation: pop 1.1s var(--ease) forwards; }
.pop svg { height: 1em; width: auto; overflow: visible; display: block; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* ---------- hero (a GTA loading screen that finishes loading) ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: clip; isolation: isolate; }
.hero-bg { position: absolute; inset: -3%; z-index: -2; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, -1%); } }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 52% 46% at 50% 50%, rgba(11, 3, 16, .62), rgba(11, 3, 16, .2) 70%, transparent),
  linear-gradient(180deg, rgba(11, 3, 16, .55) 0%, transparent 18%, transparent 78%, rgba(11, 3, 16, .9) 100%); }
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 10px) 24px 90px; }
.chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 16px; border-radius: 999px; background: #000; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; border: 2px solid var(--pink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 var(--pink); position: relative; }
.chip i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hero-logo { margin: 0; width: min(660px, 80vw, 68vh); will-change: transform; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(11, 3, 16, .55)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-.6deg); } }
.lede { max-width: 620px; margin: 8px 0 26px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; line-height: 1.45; color: #fff; text-shadow: 0 2px 0 #000, 0 0 24px rgba(11, 3, 16, .9); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
/* contract address spot */
.ca-box { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); margin: 22px auto 0; padding: 7px 7px 7px 7px; border-radius: 14px; background: #0b0310; border: 3px solid #000; box-shadow: 5px 5px 0 var(--pink), 5px 5px 0 3px #000; text-align: left; transition: box-shadow .3s var(--ease); }
.ca-tag { flex: none; padding: 8px 12px; border-radius: 9px; background: var(--grad); color: #1a0510; border: 2px solid #000; font-weight: 900; font-size: 14px; letter-spacing: .14em; }
.ca-addr { flex: 1; min-width: 0; font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: .02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-short { display: none; }
.ca-box.pending .ca-addr { font-family: var(--f-body); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ca-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; background: var(--white); color: #1a0510; border: 2px solid #000; font-weight: 900; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: background-color .2s, transform .15s; }
.ca-copy:hover { background: #ffe3ef; transform: translateY(-1px); }
.ca-copy:active { transform: scale(.95); transition-duration: .08s; }
.ca-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ca-copy .i-ok { display: none; }
.ca-box.copied { box-shadow: 5px 5px 0 var(--orange), 5px 5px 0 3px #000; }
.ca-box.copied .ca-copy { background: var(--orange); }
.ca-box.copied .i-copy { display: none; }
.ca-box.copied .i-ok { display: block; }
.ca-box.sm { width: 100%; margin: 0; box-shadow: 4px 4px 0 #000; gap: 8px; padding: 5px; }
.ca-box.sm .ca-tag { padding: 6px 9px; font-size: 12px; }
.ca-box.sm .ca-addr { font-size: 13px; }
.ca-box.sm .ca-full { display: none; }
.ca-box.sm .ca-short { display: inline; }
.ca-box.sm .ca-copy { height: 36px; padding: 0 11px; font-size: 12px; }
.ca-box.sm .ca-copy span { display: none; }
.mission .ca-box.sm { margin-top: auto; }

.loading { position: absolute; right: 40px; bottom: 34px; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity .4s; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tip { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 10px; background: rgba(11, 3, 16, .8); font-size: 14px; color: #ffe3ef; letter-spacing: .02em; opacity: 0; transition: opacity .4s; white-space: nowrap; }
.tip b { font-family: var(--f-mono); color: var(--pink); letter-spacing: .1em; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #fff; opacity: .6; transition: opacity .2s; }
.scroll-cue:hover { opacity: 1; }
.mouse { width: 16px; height: 24px; border: 2px solid #fff; border-radius: 9px; display: flex; justify-content: center; padding-top: 4px; }
.mouse i { width: 2px; height: 5px; background: #fff; border-radius: 2px; animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { from { transform: translateY(0); opacity: 1; } to { transform: translateY(8px); opacity: 0; } }

/* loading state */
body.is-loading .loading, body.is-loading .tip { opacity: 1; }
body.is-loading .hero-in > * { opacity: 0; }
body.is-loading .top { transform: translateY(-110%); }
body.is-loading .hud { opacity: 0; }
.hud { transition: opacity .6s .3s; }
body.ready .hero-in > * { animation: rise .8s var(--ease) backwards; }
body.ready .hero-in > .chip { animation-delay: .05s; }
body.ready .hero-in > .hero-logo { animation: slam .9s var(--spring) backwards; }
body.ready .hero-in > .lede { animation-delay: .35s; }
body.ready .hero-in > .ctas { animation-delay: .45s; }
body.ready .hero-in > .ca-box { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes slam { 0% { opacity: 0; transform: scale(1.7) rotate(-4deg); } 60% { opacity: 1; } 100% { transform: none; } }

/* ---------- marquee band ---------- */
.band { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; background: var(--grad-x); border-block: 3px solid #000; transform: rotate(-1.2deg) scale(1.02); margin: -26px 0 0; }
.band-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 34s linear infinite; will-change: transform; font-size: 46px; --pd-shadow: #000; }
.band-track em { font-style: normal; font-size: 28px; color: #1a0510; }
@keyframes marquee { to { transform: translateX(-50%); } }
body.slowmo .band-track { animation-duration: 140s; }
.band.alt { background: #000; transform: rotate(1.2deg) scale(1.02); margin: 0 0 -26px; z-index: 3; }
.band.alt .band-track { animation-direction: reverse; --pd-shadow: var(--pink); }
.band.alt .band-track em { color: var(--pink); }

/* ---------- sections ---------- */
.sec { position: relative; padding: 150px 0; }
.sec-head { max-width: 860px; margin-bottom: 64px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.sec-head.row .sec-lede { max-width: 470px; margin: 0 0 10px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-weight: 800; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--grad-x); }
.sec-lede { margin: 26px 0 0; font-size: 19px; color: var(--muted); line-height: 1.6; }
.sec-lede b { color: #fff; }

.reveal { opacity: .001; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.done { will-change: auto; }
.reveal .pd-title svg { transform: scale(1.18) rotate(-2deg); transform-origin: 0 60%; opacity: 0; transition: transform .8s var(--spring) .1s, opacity .3s .1s; }
.crew .reveal .pd-title svg, .crew-in.reveal .pd-title svg { transform-origin: 50% 60%; }
.reveal.in .pd-title svg { transform: none; opacity: 1; }
.frame img.on { animation: frameDrift 12s ease-in-out infinite alternate; }
@keyframes frameDrift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }

/* ---------- lore ---------- */
.lore { background: radial-gradient(ellipse 70% 40% at 80% 0%, #2a0d2f 0%, transparent 60%), var(--ink); padding-bottom: 80px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; }
.chapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .5s var(--ease); }
.chapter.on { opacity: 1; }
.chapter p { font-size: 19px; color: #ead8ea; max-width: 560px; margin: 22px 0 0; }
.chapter p b { color: #fff; font-family: var(--f-mono); font-weight: 700; letter-spacing: .04em; }
.chapter .era { margin: 0 0 18px; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.chapter .era span { margin-left: 10px; color: var(--dim); }
.ch-img-m { display: none; }
.frame-col { position: relative; }
.frame { position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(100vh - var(--nav-h) - 12vh); border-radius: 22px; overflow: hidden; border: 4px solid #000; box-shadow: 12px 12px 0 var(--pink), 12px 12px 0 4px #000; background: #1a0a22; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.frame img.on { opacity: 1; transform: scale(1); }
.frame-hud { position: absolute; left: 18px; top: 16px; padding: 6px 12px; border-radius: 9px; background: #000; font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: #fff; }
.frame-hud span { color: var(--pink); }
.frame-hud i { font-style: normal; color: var(--dim); margin: 0 4px; }
.frame-load { position: absolute; right: 18px; bottom: 18px; }
.frame-load .spin { width: 24px; height: 24px; border-width: 3px; }

/* ---------- glitch files ---------- */
.files { background: var(--ink2); border-top: 1px solid #22102a; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; background: var(--plum); color: #f1dcef; border: 2px solid var(--line); transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.filters button:hover { border-color: var(--pink); transform: translateY(-2px); }
.filters button i { font-style: normal; font-family: var(--f-mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); letter-spacing: 0; }
.filters button.on { background: var(--white); color: #1a0510; border-color: #000; box-shadow: 4px 4px 0 var(--pink); }
.filters button.on i { background: #1a0510; color: #fff; }
.archive { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.file { position: relative; display: flex; flex-direction: column; padding: 22px 22px 18px; border-radius: 16px; background: var(--plum); border: 2px solid var(--line); min-height: 280px; overflow: hidden; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); animation: fileIn .55s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes fileIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.file:hover { transform: translateY(-5px) rotate(-.4deg); border-color: var(--pink); box-shadow: 8px 8px 0 #000; }
.file:nth-child(even):hover { transform: translateY(-5px) rotate(.4deg); }
.file .f-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.file .f-year { color: var(--pink); font-size: 14px; }
.file h3 { margin: 16px 0 4px; font-size: 21px; line-height: 1.2; font-weight: 900; letter-spacing: -.005em; }
.file .f-game { margin: 0; font-size: 14px; color: var(--muted); font-weight: 700; }
.file .f-game i { font-style: normal; color: var(--dim); margin: 0 4px; }
.file .f-pay { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(11, 3, 16, .6); font-size: 14px; line-height: 1.45; color: #ffe3ef; }
.file .f-pay span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; }
.file .f-how { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.file .f-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.file .f-src { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--line); transition: color .2s, border-color .2s; }
.file .f-src:hover { color: #fff; border-color: var(--pink); }
.fame { display: flex; gap: 2px; }
.fame i { width: 7px; height: 7px; border-radius: 2px; background: var(--line); }
.fame i.on { background: var(--pink); }
.stamp { padding: 3px 9px; border: 2.5px solid currentColor; border-radius: 7px; font-family: var(--f-body); font-weight: 900; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-4deg); }
.stamp.patched { color: #ff5f7e; }
.stamp.works { color: #7be3a0; }
.stamp.unknown { color: #b9a6bd; }
.more-row { display: flex; justify-content: center; margin-top: 44px; }
.more-row[hidden] { display: none; }

/* ---------- cheats ---------- */
.cheats { background: radial-gradient(ellipse 60% 50% at 20% 0%, #2c0c30, transparent 60%), var(--ink); }
.console { border-radius: 20px; background: #050108; border: 3px solid #000; box-shadow: 10px 10px 0 var(--pink), 10px 10px 0 3px #000; overflow: hidden; margin-bottom: 34px; }
.console-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: #160a1e; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.console-top .dots { display: flex; gap: 6px; }
.console-top .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3b1c45; }
.console-top .dots i:first-child { background: var(--pink); }
.console-top .found { margin-left: auto; color: var(--muted); }
.console-top .found b { color: var(--pink); }
.console-line { display: flex; align-items: center; gap: 16px; padding: 26px 26px; cursor: text; }
.prompt { font-family: var(--f-mono); font-weight: 700; font-size: clamp(28px, 3vw, 44px); color: var(--pink); }
#cheat-input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: .18em; text-transform: uppercase; caret-color: var(--pink); }
#cheat-input::placeholder { color: #3e2546; }
.console-hint { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.console.ok { animation: okPulse .6s var(--ease); }
.console.bad { animation: shake .4s var(--ease); }
@keyframes okPulse { 30% { box-shadow: 10px 10px 0 var(--orange), 10px 10px 0 3px #000, 0 0 0 6px rgba(253, 126, 97, .35); } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.code { position: relative; text-align: left; display: flex; flex-direction: column; padding: 22px; border-radius: 16px; background: var(--plum); border: 2px solid var(--line); min-height: 250px; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease), background-color .3s; }
.code:hover { transform: translateY(-5px); border-color: var(--pink); box-shadow: 8px 8px 0 #000; }
.code .c-game { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.code .c-code { margin: 14px 0 16px; font-family: var(--f-mono); font-weight: 700; font-size: 22px; letter-spacing: .08em; color: #fff; word-break: break-all; line-height: 1.2; }
.code dl { margin: 0; display: grid; gap: 10px; }
.code dt { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.code dd { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.code .c-tick { position: absolute; right: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .4s var(--spring); }
.code .c-tick svg { width: 14px; height: 14px; stroke: #1a0510; stroke-width: 3.2; fill: none; opacity: 0; }
.code.got { background: linear-gradient(180deg, #3a1236, var(--plum) 70%); border-color: var(--pink); }
.code.got .c-tick { background: var(--pink); border-color: #000; transform: scale(1.1); }
.code.got .c-tick svg { opacity: 1; }
.code.secret .c-code { color: var(--dim); letter-spacing: .3em; }
.code.secret.got .c-code { color: #fff; letter-spacing: .08em; }
.code.fire { animation: codeFire .7s var(--ease); }
@keyframes codeFire { 30% { transform: translateY(-8px) scale(1.03); box-shadow: 10px 10px 0 var(--pink); } }

/* ---------- how to buy ---------- */
.buy { background: var(--ink2); border-top: 1px solid #22102a; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mission { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px; border-radius: 18px; background: var(--plum); border: 2px solid var(--line); min-height: 300px; }
.m-n { font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: .14em; color: #1a0510; background: var(--grad); padding: 6px 12px; border-radius: 9px; border: 2px solid #000; }
.mission h3 { margin: 26px 0 10px; font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.mission p { margin: 0 0 22px; color: var(--muted); font-size: 16px; }
.mission .btn { margin-top: auto; }

/* ---------- chart ---------- */
.chart { background: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { padding: 22px 24px; border-radius: 16px; background: var(--plum); border: 2px solid var(--line); }
.stat span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stat b { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 26px; font-weight: 700; color: #fff; }
.stat b.wait { font-family: var(--f-body); font-size: 20px; color: var(--muted); font-weight: 800; }
.chart-frame { position: relative; height: 600px; border-radius: 20px; overflow: hidden; border: 3px solid #000; background: #10051a; box-shadow: 10px 10px 0 var(--pink), 10px 10px 0 3px #000; }
.chart-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-wait { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 48px; padding: 48px; }
.chart-wait img { width: 420px; height: 420px; object-fit: cover; border-radius: 18px; border: 3px solid #000; transform: rotate(-3deg); box-shadow: 8px 8px 0 #000; }
.chart-wait p { margin: 0; font-size: 20px; color: var(--muted); }
.chart-wait .pd-inline { margin-bottom: 14px; }

/* ---------- crew ---------- */
.crew { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; overflow: clip; isolation: isolate; padding: 140px 24px; }
.crew-bg { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.crew-bg img { width: 100%; height: 100%; object-fit: cover; }
.crew::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(11,3,16,.35) 30%, rgba(11,3,16,.35) 70%, var(--ink) 100%), radial-gradient(ellipse 50% 50% at 50% 50%, rgba(11, 3, 16, .55), transparent 75%); }
.crew-logo { width: min(460px, 70vw); margin: 0 auto 10px; height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.crew .pd-title { display: flex; justify-content: center; }
.crew .ca-box { margin-top: 30px; }
.crew p { margin: 20px auto 30px; font-size: 20px; color: #fff; text-shadow: 0 2px 0 #000; max-width: 520px; }

/* ---------- footer ---------- */
.foot { background: #070109; border-top: 1px solid #22102a; padding: 70px 0 120px; }
.foot-in { display: grid; grid-template-columns: 200px 1fr; gap: 20px 48px; align-items: start; }
.foot img { width: 200px; height: auto; grid-row: span 3; }
.foot p { margin: 0; color: var(--dim); font-size: 14px; max-width: 760px; }
.foot-small { font-family: var(--f-mono); font-size: 12px !important; letter-spacing: .08em; }
.foot-x { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 44px; padding: 0 16px; border-radius: 11px; background: #160a1e; border: 2px solid var(--line); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; transition: background-color .2s, border-color .2s, transform .2s; cursor: pointer; }
.foot-x:hover { background: var(--pink); border-color: #000; color: #1a0510; transform: translateY(-2px); }

/* ---------- cheat effects ---------- */
body.drunk main { animation: drunk 2.6s ease-in-out infinite; }
@keyframes drunk { 0%, 100% { transform: rotate(0) skewX(0); } 25% { transform: rotate(.8deg) skewX(1.5deg) translateX(10px); } 75% { transform: rotate(-.8deg) skewX(-1.5deg) translateX(-10px); } }
body.wasted main, body.wasted .top { filter: grayscale(1) contrast(1.1); transition: filter .6s; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .archive, .codes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav button { padding: 10px 12px; letter-spacing: .08em; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .radar { display: none; }
  .missions, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .frame-col { display: none; }
  .chapter { min-height: 0; opacity: 1; padding: 30px 0 50px; }
  .ch-img-m { display: block; margin-top: 26px; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; border: 3px solid #000; box-shadow: 8px 8px 0 var(--pink), 8px 8px 0 3px #000; }
  .sec-head.row { flex-direction: column; align-items: flex-start; gap: 0; }
  .sec-head.row .sec-lede { margin-top: 22px; }
  .chart-wait { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .chart-wait img { width: 260px; height: 260px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .top { padding: 0 16px; --nav-h: 64px; height: 64px; }
  .brand { width: 96px; }
  .icon-btn { width: 40px; height: 40px; }
  .top-right { gap: 8px; }
  .hud { right: 16px; top: 72px; }
  .cash { font-size: 28px; }
  .hero-scrim { background: radial-gradient(ellipse 90% 40% at 50% 52%, rgba(11, 3, 16, .72), rgba(11, 3, 16, .25) 75%, transparent), linear-gradient(180deg, rgba(11, 3, 16, .55) 0%, transparent 18%, transparent 78%, rgba(11, 3, 16, .9) 100%); }
  .console-top { font-size: 10px; letter-spacing: .14em; gap: 10px; }
  .delta { font-size: 20px; height: 22px; }
  .stars svg { width: 17px; height: 17px; }
  .sec { padding: 100px 0; }
  .sec-head { margin-bottom: 40px; }
  .archive, .codes, .missions, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat b { font-size: 19px; }
  .stat b.wait { font-size: 15px; }
  .chart-frame { height: 520px; }
  .chart-wait { padding: 26px; gap: 22px; }
  .pd-inline.big { font-size: 44px; }
  .hero-logo { width: 92vw; }
  .btn { height: 54px; padding: 0 22px; font-size: 15px; }
  .tip { white-space: normal; width: calc(100% - 40px); text-align: center; bottom: 90px; }
  .loading { right: 20px; bottom: 26px; }
  .band-track { font-size: 32px; }
  .console-line { padding: 20px 18px; }
  .console-hint { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .foot img { grid-row: auto; width: 160px; }
  .chapter p { font-size: 17px; }
  .ca-full { display: none; }
  .ca-short { display: inline; }
  .ca-box { gap: 8px; }
  .ca-tag { padding: 7px 9px; font-size: 12px; }
}
@media (min-width: 761px) and (min-height: 700px) {
  body.ready .scroll-cue { display: flex; animation: rise .8s 1.2s var(--ease) backwards; }
}
