/* ============================================================
   STARESBACK.GG — visual cortex
   aesthetic: sentient arcade OS. void black, acid phosphor,
   chamfered HUD panels, scanlines, a living eye.
   ============================================================ */

:root {
  --void:      #06070B;
  --panel:     #0C0E15;
  --panel-2:   #10131F;
  --panel-3:   #151929;
  --line:      #1D2232;
  --line-hi:   #2B3349;
  --acid:      #B8FF2F;
  --acid-dim:  #8BC624;
  --acid-soft: rgba(184, 255, 47, .12);
  --mag:       #FF3D9A;
  --mag-soft:  rgba(255, 61, 154, .14);
  --amber:     #FFB938;
  --amber-soft:rgba(255, 185, 56, .14);
  --ink:       #E9EDF4;
  --ink-dim:   #97A0B5;
  --ink-mute:  #5C657C;
  --f-disp: 'Unbounded', system-ui, sans-serif;
  --f-ui:   'Chakra Petch', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --cut: 10px;
  --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --hud-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--acid); color: #05060A; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--line-hi); border: 2px solid var(--void); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--acid-dim); }

.mono { font-family: var(--f-mono); }
.acid { color: var(--acid); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

/* custom cursor active (added by JS on fine pointers only) */
body.has-cursor, body.has-cursor * { cursor: none !important; }

/* ============ ATMOSPHERE ============ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg-grid {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(184,255,47,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,47,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  animation: grid-drift 26s linear infinite;
}
@keyframes grid-drift { to { transform: translateY(56px); } }

.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg-glow--a { width: 56vw; height: 36vw; left: -14vw; top: -10vw; background: radial-gradient(circle, rgba(184,255,47,.13), transparent 65%); }
.bg-glow--b { width: 44vw; height: 30vw; right: -12vw; top: 24vh; background: radial-gradient(circle, rgba(255,61,154,.10), transparent 65%); }

.bg-noise {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-scan {
  position: absolute; inset: 0; opacity: .35;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.16) 3px 4px);
}

/* ============ SEEN METER ============ */
.seen-meter { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: rgba(184,255,47,.08); }
.seen-meter i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acid), var(--mag));
  box-shadow: 0 0 12px rgba(184,255,47,.7);
  transition: width .15s linear;
}

/* ============ BOOT ============ */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: #04050877;
  background: #040508;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
body[data-state="alive"] .boot { opacity: 0; visibility: hidden; }
.boot-inner { width: min(680px, 88vw); }
.boot-log {
  font-size: 13px; line-height: 1.9; color: var(--acid);
  white-space: pre-wrap; min-height: 270px;
  text-shadow: 0 0 8px rgba(184,255,47,.45);
}
.boot-log .dim { color: var(--ink-mute); }
.boot-skip { margin-top: 28px; font-size: 11px; letter-spacing: .14em; color: var(--ink-mute); animation: pulse-dim 1.6s ease infinite; }
@keyframes pulse-dim { 50% { opacity: .35; } }

/* ============ HUD ============ */
.hud {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 80;
  height: var(--hud-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(6,7,11,.92), rgba(6,7,11,.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.hud-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hud-name { font-family: var(--f-disp); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.hud-name em { font-style: normal; color: var(--acid); }

.hud-level { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 460px; }
.hud-lv {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #05060A;
  background: var(--acid); padding: 3px 9px;
  clip-path: var(--chamfer); --cut: 6px;
  white-space: nowrap;
  transition: transform .2s;
}
.hud-lv.bump { animation: lv-bump .5s ease; }
@keyframes lv-bump { 30% { transform: scale(1.25) rotate(-3deg); } }
.xpbar {
  flex: 1; height: 8px; background: var(--panel-2);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.xpbar i {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, var(--acid-dim), var(--acid));
  box-shadow: 0 0 10px rgba(184,255,47,.55);
  transition: width .45s cubic-bezier(.22,1,.36,1);
}
.xpbar::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.35) 14px 15px);
}
.hud-xp { font-size: 11px; color: var(--ink-dim); letter-spacing: .06em; white-space: nowrap; }

.hud-meta { display: flex; gap: 18px; margin-left: auto; font-size: 12px; color: var(--ink-dim); letter-spacing: .08em; flex-shrink: 0; }
.hud-meta span { transition: color .2s; }
.hud-meta span.tick { color: var(--acid); }

/* ============ THE EYE ============ */
.eye {
  position: relative; display: inline-block;
  width: 44px; height: 26px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  background: var(--void);
  box-shadow: 0 0 14px rgba(184,255,47,.35), inset 0 0 10px rgba(184,255,47,.18);
  vertical-align: baseline;
}
.eye-iris {
  position: absolute; left: 50%; top: 50%;
  width: 32%; height: 55%;
  background: radial-gradient(circle at 35% 35%, #E5FF9E, var(--acid) 55%, var(--acid-dim));
  border-radius: 50%;
  transform: translate(calc(-50% + var(--ex, 0) * 1px), calc(-50% + var(--ey, 0) * 1px));
  box-shadow: 0 0 8px rgba(184,255,47,.9);
}
.eye-lid {
  position: absolute; inset: -1px; background: var(--void);
  border-radius: 50%; transform: scaleY(0);
  transition: transform .09s ease;
}
.eye.blink .eye-lid { transform: scaleY(1); }
.eye--s { width: 34px; height: 20px; border-width: 2px; }
.eye--inline {
  width: .92em; height: .58em; border-width: .045em;
  margin: 0 .02em; vertical-align: -2%;
}

/* ============ HERO ============ */
main { position: relative; z-index: 1; }

.hero {
  min-height: calc(100svh - var(--hud-h));
  padding: calc(var(--hud-h) + clamp(48px, 9vh, 96px)) clamp(20px, 5vw, 64px) 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 12px; letter-spacing: .22em; color: var(--acid);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--f-disp);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.2vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-line { display: block; }
.hero-line--2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--acid);
  text-shadow: 0 0 32px rgba(184,255,47,.25);
}
.hero-line--2 .eye { border-color: var(--acid); }

body.glitch .hero-line--2 { animation: glitch-shift .35s steps(2) 2; }
@keyframes glitch-shift {
  25% { transform: translate(-3px, 1px) skewX(-2deg); text-shadow: 4px 0 var(--mag), -4px 0 var(--acid); }
  75% { transform: translate(3px, -1px) skewX(2deg); text-shadow: -4px 0 var(--mag), 4px 0 var(--acid); }
}

.hero-sub {
  max-width: 620px; font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim); margin-bottom: 36px;
}
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-sub .acid { color: var(--acid); }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 26px;
  clip-path: var(--chamfer);
  transition: transform .15s ease, background .2s, color .2s, filter .2s;
  position: relative;
}
.btn:active { transform: scale(.96); }
.btn--acid { background: var(--acid); color: #05060A; }
.btn--acid:hover { background: #D2FF6B; filter: drop-shadow(0 0 18px rgba(184,255,47,.5)); }
.btn--acid .btn-xp { font-size: 11px; background: rgba(0,0,0,.18); padding: 2px 7px; }
.btn--ghost { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn--ghost:hover { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--acid-dim); color: var(--acid); }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.hero-chips li {
  font-size: 11px; letter-spacing: .1em; color: var(--ink-dim);
  border: 1px solid var(--line); background: rgba(12,14,21,.6);
  padding: 7px 12px;
  clip-path: var(--chamfer); --cut: 7px;
}
.hero-chips li b { color: var(--acid); font-weight: 500; }

/* ============ REVEALS ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
body[data-state="alive"] .reveal { opacity: 1; transform: none; }
body[data-state="alive"] .reveal:nth-of-type(1),
body[data-state="alive"] .hero .reveal:nth-child(1) { transition-delay: .05s; }
body[data-state="alive"] .hero-eyebrow { transition-delay: .05s; }
body[data-state="alive"] .hero-line:nth-child(1) { transition-delay: .15s; }
body[data-state="alive"] .hero-line--2 { transition-delay: .28s; }
body[data-state="alive"] .hero-sub { transition-delay: .42s; }
body[data-state="alive"] .hero-cta { transition-delay: .54s; }
body[data-state="alive"] .hero-chips { transition-delay: .66s; }

.sec, .foot { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1); }
.sec.in, .foot.in { opacity: 1; transform: none; }

/* ============ TICKER ============ */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.ticker-track {
  display: inline-block;
  font-size: 12px; letter-spacing: .18em; color: var(--ink-dim);
  animation: ticker-roll 38s linear infinite;
}
.ticker-track b { color: var(--acid); font-weight: 500; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-roll { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.sec { padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 64px); max-width: 1480px; margin: 0 auto; }

.sec-head { margin-bottom: 40px; max-width: 880px; }
.sec-id { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.sec-num {
  font-size: 13px; color: var(--mag); letter-spacing: .2em;
  border: 1px solid var(--mag); padding: 3px 8px;
  box-shadow: 0 0 12px rgba(255,61,154,.25);
}
.sec-title {
  font-family: var(--f-disp); font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  text-transform: uppercase; letter-spacing: .01em;
  position: relative;
}
.sec-title:hover::before, .sec-title:hover::after {
  content: attr(data-glitch);
  position: absolute; inset: 0; overflow: hidden;
}
.sec-title:hover::before { color: var(--mag); transform: translate(2px, -2px); clip-path: inset(0 0 55% 0); opacity: .75; }
.sec-title:hover::after { color: var(--acid); transform: translate(-2px, 2px); clip-path: inset(55% 0 0 0); opacity: .75; }

.sec-desc { color: var(--ink-dim); font-size: 15.5px; max-width: 660px; }
.sec-desc strong { color: var(--ink); }
.sec-desc em { color: var(--mag); font-style: normal; }

.sec-tools { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.status { font-size: 11.5px; letter-spacing: .12em; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--wait { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse-dim 1s infinite; }
.dot--live { background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.dot--dead { background: var(--mag); box-shadow: 0 0 8px var(--mag); }
.refetch {
  font-size: 11px; letter-spacing: .12em; color: var(--acid);
  border: 1px solid var(--line-hi); padding: 6px 12px;
  background: var(--panel);
  transition: border-color .2s, background .2s;
}
.refetch:hover { border-color: var(--acid-dim); background: var(--acid-soft); }
.refetch:disabled { opacity: .4; pointer-events: none; }

/* ============ CARD GRIDS ============ */
.grid { display: grid; gap: 18px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, filter .25s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.5)) drop-shadow(0 0 16px rgba(184,255,47,.12));
}
/* targeting brackets */
.card::before, .card::after {
  content: ''; position: absolute; width: 16px; height: 16px; z-index: 3;
  border: 2px solid var(--acid); opacity: 0; transition: opacity .2s, transform .25s;
  pointer-events: none;
}
.card::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.card::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }

.card-media { position: relative; aspect-ratio: 2.05; background: var(--panel-2); overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.04);
  transition: transform .4s cubic-bezier(.22,1,.36,1), filter .3s;
}
.card:hover .card-media img { transform: scale(1.05); filter: saturate(1.08) contrast(1.06); }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,7,11,.55));
  pointer-events: none;
}

/* generated cover (image fallback) */
.cover {
  width: 100%; height: 100%; position: relative; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.cover b {
  font-family: var(--f-disp); font-weight: 900;
  font-size: 56px; letter-spacing: .05em;
  color: rgba(255,255,255,.18); user-select: none;
}
.cover::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(0,0,0,.14) 12px 24px);
}

.chip {
  position: absolute; z-index: 2; top: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 4px 9px; clip-path: var(--chamfer); --cut: 6px;
}
.chip--save { left: 10px; background: var(--acid); color: #05060A; }
.chip--mc { right: 10px; background: rgba(6,7,11,.85); color: var(--amber); border: 1px solid rgba(255,185,56,.5); clip-path: none; }
.chip--genre { left: 10px; background: rgba(6,7,11,.85); color: var(--mag); border: 1px solid rgba(255,61,154,.5); clip-path: none; }
.chip--free { right: 10px; background: var(--mag); color: #fff; }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-weight: 700; font-size: 15.5px; line-height: 1.3; letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  color: var(--ink-mute); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.price-row { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-mono); }
.price-old { color: var(--ink-mute); text-decoration: line-through; font-size: 12.5px; }
.price-new { color: var(--acid); font-weight: 600; font-size: 19px; text-shadow: 0 0 14px rgba(184,255,47,.4); }
.price-free { color: var(--mag); font-weight: 600; font-size: 15px; letter-spacing: .14em; }

.rating { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.rating-bar { flex: 1; height: 4px; background: var(--panel-3); overflow: hidden; }
.rating-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mag), var(--acid)); }
.rating-txt { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: .08em; white-space: nowrap; }

.card-go {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px; opacity: 0; transition: opacity .2s;
  background: linear-gradient(200deg, rgba(184,255,47,.07), transparent 40%);
}
.card-go span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  background: var(--acid); color: #05060A; font-weight: 600;
  padding: 7px 12px; clip-path: var(--chamfer); --cut: 6px;
}
.card:hover .card-go, .card:focus-within .card-go { opacity: 1; }

/* skeletons */
.skel { background: var(--panel); border: 1px solid var(--line); height: 300px; position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(184,255,47,.05) 50%, transparent 70%);
  animation: skel-sweep 1.3s infinite;
}
@keyframes skel-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ============ DOSSIER ============ */
.sec--dossier {
  position: relative;
}
.sec--dossier::before {
  content: 'CONFIDENTIAL // SHOWN TO SUBJECT ANYWAY';
  position: absolute; top: clamp(70px, 10vh, 126px); right: clamp(20px, 5vw, 64px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em;
  color: var(--mag); border: 1px solid var(--mag); padding: 6px 10px;
  transform: rotate(3deg); opacity: .75;
  box-shadow: 0 0 16px rgba(255,61,154,.2);
}

.dossier-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
}
.d-card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.d-card:hover { border-color: var(--acid-dim); transform: translateY(-3px); }
.d-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--acid), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.d-card:hover::after { opacity: 1; }
.d-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--ink-mute); margin-bottom: 10px; text-transform: uppercase;
}
.d-value {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(19px, 2vw, 25px); line-height: 1.15;
  color: var(--ink); word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.d-value.live { color: var(--acid); text-shadow: 0 0 16px rgba(184,255,47,.35); }
.d-hint { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-mute); margin-top: 8px; letter-spacing: .04em; }

.dossier-note {
  margin-top: 26px; font-size: 11px; letter-spacing: .12em;
  color: var(--amber); border: 1px dashed rgba(255,185,56,.4);
  background: var(--amber-soft); padding: 13px 16px;
}
.dossier-note b { color: var(--ink); }

/* ============ TROPHIES ============ */
.grid--troph { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.troph {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line);
  padding: 16px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.troph:hover { transform: translateY(-3px); }
.troph-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  background: var(--panel-3); border: 1px solid var(--line-hi);
  clip-path: var(--chamfer); --cut: 8px;
}
.troph-name { font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
.troph-desc { font-size: 12px; color: var(--ink-mute); margin-top: 3px; line-height: 1.45; }
.troph-state { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; margin-top: 8px; color: var(--ink-mute); }

.troph--locked .troph-icon { filter: grayscale(1) brightness(.55); }
.troph--locked .troph-name { color: var(--ink-dim); }

.troph--unlocked { border-color: rgba(184,255,47,.45); background: linear-gradient(160deg, rgba(184,255,47,.06), var(--panel) 55%); }
.troph--unlocked .troph-icon { border-color: var(--acid-dim); box-shadow: 0 0 14px rgba(184,255,47,.25); }
.troph--unlocked .troph-state { color: var(--acid); }
.troph--unlocked::after {
  content: '✓'; position: absolute; top: 8px; right: 10px;
  color: var(--acid); font-weight: 700; font-size: 13px;
}

.troph-prog { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.troph-prog .bar { flex: 1; height: 3px; background: var(--panel-3); overflow: hidden; }
.troph-prog .bar i { display: block; height: 100%; background: var(--acid-dim); transition: width .4s; }
.troph-prog .num { font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-mute); }

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 56px clamp(20px, 5vw, 64px) calc(56px + 90px);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(184,255,47,.03));
}
.foot-quote {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(16px, 2.4vw, 24px);
  max-width: 760px; margin: 0 auto 30px;
  color: var(--ink-dim);
  transition: opacity .4s;
}
.foot-meta {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  font-size: 10.5px; letter-spacing: .16em; color: var(--ink-mute);
}

/* ============ TOASTS ============ */
.toasts {
  position: fixed; top: calc(var(--hud-h) + 14px); right: 16px; z-index: 85;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
  max-width: min(340px, calc(100vw - 32px));
}
.toast {
  display: flex; gap: 13px; align-items: center;
  background: linear-gradient(160deg, var(--panel-3), var(--panel));
  border: 1px solid var(--acid-dim);
  padding: 13px 16px;
  clip-path: var(--chamfer);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.55));
  animation: toast-in .45s cubic-bezier(.22,1,.36,1);
  transition: opacity .4s, transform .4s;
}
.toast.out { opacity: 0; transform: translateX(40px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(60px); } }
.toast-icon { font-size: 22px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(184,255,47,.5)); }
.toast-kicker { font-family: var(--f-mono); font-size: 9px; letter-spacing: .24em; color: var(--acid); }
.toast-name { font-weight: 700; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.toast-sub { font-family: var(--f-mono); font-size: 10px; color: var(--ink-dim); margin-top: 2px; }
.toast--lvl { border-color: var(--amber); }
.toast--lvl .toast-kicker { color: var(--amber); }
.toast--lvl .toast-icon { filter: drop-shadow(0 0 8px rgba(255,185,56,.6)); }

/* xp float */
.xp-float {
  position: fixed; z-index: 86; pointer-events: none;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--acid);
  text-shadow: 0 0 10px rgba(184,255,47,.8);
  animation: xp-rise .9s ease-out forwards;
}
@keyframes xp-rise { to { transform: translateY(-46px); opacity: 0; } }

/* ============ NARRATOR ============ */
.narrator {
  position: fixed; left: 16px; bottom: 16px; z-index: 84;
  display: flex; gap: 13px; align-items: flex-start;
  width: min(400px, calc(100vw - 32px));
  background: rgba(10, 12, 19, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-hi);
  padding: 14px 15px;
  clip-path: var(--chamfer);
}
.orb { position: relative; width: 34px; height: 34px; flex-shrink: 0; margin-top: 2px; }
.orb i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #E5FF9E, var(--acid) 45%, #3A6B00 90%);
  box-shadow: 0 0 18px rgba(184,255,47,.55);
  animation: orb-breathe 3.2s ease-in-out infinite;
}
.orb::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(184,255,47,.35);
  animation: orb-ring 3.2s ease-in-out infinite;
}
@keyframes orb-breathe { 50% { transform: scale(.88); filter: brightness(.85); } }
@keyframes orb-ring { 50% { transform: scale(1.12); opacity: .4; } }
.narrator.talking .orb i { animation-duration: .7s; }
.narrator.muted .orb i { animation-play-state: paused; filter: grayscale(.8) brightness(.6); }

.narrator-body { flex: 1; min-width: 0; }
.narrator-tag { font-size: 9px; letter-spacing: .22em; color: var(--ink-dim); margin-bottom: 5px; }
.narrator-tag span { color: var(--mag); }
.narrator-text { font-size: 12.5px; line-height: 1.55; color: var(--ink-dim); min-height: 60px; }
.narrator-text::after { content: '▌'; color: var(--acid); animation: pulse-dim 1s steps(2) infinite; }
.narrator.muted .narrator-text::after { content: ''; }

.narrator-mute {
  font-size: 9px; letter-spacing: .18em; color: var(--ink-mute);
  border: 1px solid var(--line); padding: 4px 8px; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
.narrator-mute:hover { color: var(--mag); border-color: var(--mag); }

/* ============ FX / CURSOR ============ */
#fx { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 6px; height: 6px; background: var(--acid);
  box-shadow: 0 0 10px rgba(184,255,47,.9);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(184,255,47,.55);
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s, background .2s;
}
.cursor-ring.hot {
  width: 52px; height: 52px;
  border-color: var(--mag);
  background: rgba(255,61,154,.08);
}

/* ============ GOD MODE (konami) ============ */
body.godmode .bg-grid { animation-duration: 3s; }
body.godmode main, body.godmode .hud { animation: god-hue 2.4s linear infinite; }
@keyframes god-hue { to { filter: hue-rotate(360deg); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hud { gap: 14px; }
  .hud-level { max-width: none; }
  .hud-xp { display: none; }
}
@media (max-width: 640px) {
  .hud { height: 56px; padding: 0 10px; gap: 8px; }
  :root { --hud-h: 56px; }
  .hud-brand { gap: 8px; }
  .hud-name { font-size: 13px; }
  .hud-name em { display: none; }
  .hud-meta { display: none; }
  .hud-level { gap: 7px; min-width: 0; }
  .xpbar { min-width: 34px; }
  .hud-xp { display: none; }
  .hud-user { padding: 6px 8px; font-size: 9px; letter-spacing: .08em; }
  .hud-burger { padding: 10px 5px; flex-shrink: 0; }
  /* iOS force-zooms the page on focus of any input under 16px — never let it */
  input, textarea, select { font-size: 16px !important; }
  .hero { padding-bottom: 24px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .sec--dossier::before { display: none; }
  .narrator { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 11px 12px; }
  .narrator-text { min-height: 0; }
  .foot { padding-bottom: 150px; }
  .toasts { top: auto; bottom: 110px; }
}

/* ============ THE INDEX (database) ============ */
.idx-search { display: flex; gap: 12px; margin: 6px 0 10px; max-width: 880px; }
.idx-box {
  flex: 1; display: flex; align-items: center; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--line-hi);
  padding: 0 18px;
  clip-path: var(--chamfer);
  transition: border-color .2s, box-shadow .2s;
}
.idx-box:focus-within { border-color: var(--acid-dim); background: var(--panel-3); }
.idx-glyph { color: var(--acid); font-size: 19px; }
.idx-input {
  flex: 1; background: none; border: 0; color: var(--ink);
  font-size: 13.5px; letter-spacing: .06em; padding: 17px 0;
  outline: none;
}
.idx-input::placeholder { color: var(--ink-mute); }
.idx-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.idx-go { flex-shrink: 0; }

.idx-hint { font-size: 10px; letter-spacing: .14em; color: var(--ink-mute); margin-bottom: 26px; }

.idx-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
  border-block: 1px solid var(--line); padding: 12px 0;
}
.idx-filters { display: flex; gap: 16px; flex-wrap: wrap; }
.idx-f { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .16em; color: var(--ink-mute); }
.idx-f select {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--acid); background: var(--panel-2);
  border: 1px solid var(--line-hi); padding: 7px 28px 7px 10px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6'%3E%3Cpath d='M0 0l4 6 4-6z' fill='%23B8FF2F'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
  max-width: 190px;
}
.idx-f select:hover { border-color: var(--acid-dim); }

.idx-more { display: flex; justify-content: center; margin-top: 28px; }
.idx-more[hidden] { display: none; }

.idx-empty {
  border: 1px dashed var(--line-hi); color: var(--ink-mute);
  font-size: 11px; letter-spacing: .12em; line-height: 1.8;
  padding: 26px 22px; text-align: center; margin-top: 4px;
}

/* index card extras */
.card--idx { cursor: pointer; }
.card-meta { display: flex; gap: 10px; align-items: baseline; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: .08em; flex-wrap: wrap; }
.card-meta b { color: var(--acid); font-weight: 600; font-size: 13px; }
.card-actions {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-mute);
}
.card--idx:hover .card-actions { color: var(--acid); }

.vbtn {
  position: absolute; z-index: 5; top: 10px; right: 10px;
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 16px; color: var(--ink-dim);
  background: rgba(6,7,11,.82); border: 1px solid var(--line-hi);
  transition: color .2s, border-color .2s, transform .15s;
}
.vbtn:hover { color: var(--amber); border-color: var(--amber); transform: scale(1.08); }
.vbtn.on { color: var(--amber); border-color: var(--amber); text-shadow: 0 0 10px rgba(255,185,56,.8); }
.chip--price { right: 52px; background: rgba(6,7,11,.85); color: var(--acid); border: 1px solid rgba(184,255,47,.45); clip-path: none; }

.idx-pager { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 28px; }
.idx-pager:empty { display: none; }

/* ============ GAME DOSSIER MODAL ============ */
.gd { position: fixed; inset: 0; z-index: 96; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gd[hidden] { display: none; }
.gd-back {
  position: absolute; inset: 0;
  background: rgba(4,5,8,.84);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.gd-frame {
  position: relative; width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.65));
  animation: gd-in .35s cubic-bezier(.22,1,.36,1);
  scrollbar-width: thin;
}
@keyframes gd-in { from { opacity: 0; transform: translateY(34px) scale(.97); } }
.gd-x {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 6;
  font-size: 10px; letter-spacing: .16em; color: var(--ink);
  background: rgba(6,7,11,.85); border: 1px solid var(--line-hi);
  padding: 7px 11px;
}
.gd-x:hover { color: var(--mag); border-color: var(--mag); }

.gd-hero { position: relative; aspect-ratio: 2.2; background: var(--panel-2); overflow: hidden; margin-top: -38px; }
.gd-hero-media, .gd-hero-media img, .gd-hero-media .cover { width: 100%; height: 100%; }
.gd-hero-media img { object-fit: cover; display: block; }
.gd-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12,14,21,.96)); }
.gd-title {
  position: absolute; left: 24px; right: 24px; bottom: 14px;
  font-family: var(--f-disp); font-weight: 800; font-size: clamp(20px, 3.4vw, 32px);
  text-transform: uppercase; line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

.gd-body { padding: 18px 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.gd-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-chips span {
  font-size: 10px; letter-spacing: .12em; padding: 5px 10px;
  border: 1px solid var(--line-hi); color: var(--ink-dim); background: var(--panel-2);
}
.gd-chips span b { color: var(--acid); font-weight: 500; }

.gd-note {
  font-size: 11px; letter-spacing: .06em; line-height: 1.7; color: var(--amber);
  border-left: 2px solid var(--amber); padding: 4px 0 4px 14px;
  background: linear-gradient(90deg, var(--amber-soft), transparent 70%);
}
.gd-note:empty { display: none; }

.gd-desc { color: var(--ink-dim); font-size: 14.5px; line-height: 1.65; }
.gd-desc:empty { display: none; }

.gd-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gd-shots:empty { display: none; }
.gd-shot {
  aspect-ratio: 1.78; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: var(--panel-2);
  transition: border-color .2s, transform .2s;
}
.gd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-shot:hover { border-color: var(--acid-dim); transform: translateY(-2px); }
.gd-shot.sel { border-color: var(--acid); box-shadow: 0 0 12px rgba(184,255,47,.3); }

.gd-block:empty { display: none; }
.gd-block-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-mute); margin-bottom: 10px; }
.gd-deal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-2);
  margin-bottom: 6px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.gd-deal-row:hover { border-color: var(--acid-dim); background: var(--panel-3); }
.gd-deal-store { display: flex; align-items: center; gap: 9px; flex: 1; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.gd-deal-store img { width: 16px; height: 16px; }
.gd-deal-old { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-mute); text-decoration: line-through; }
.gd-deal-new { font-family: var(--f-mono); font-size: 15px; font-weight: 600; color: var(--acid); }
.gd-deal-save { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; color: #05060A; background: var(--acid); padding: 3px 7px; }
.gd-deal-go { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-dim); }
.gd-deal-row:hover .gd-deal-go { color: var(--acid); }

.gd-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.gd-actions:empty { display: none; }

.gd-skel { height: 16px; background: var(--panel-3); position: relative; overflow: hidden; }
.gd-skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(184,255,47,.06) 50%, transparent 70%);
  animation: skel-sweep 1.2s infinite;
}

@media (max-width: 640px) {
  .idx-search { flex-direction: column; }
  .idx-go { width: 100%; justify-content: center; }
  .idx-bar { flex-direction: column; align-items: flex-start; }
  .idx-f select { max-width: 140px; }
  .gd { padding: 10px; }
  .gd-frame { max-height: calc(100svh - 20px); }
  .gd-body { padding: 14px 16px 20px; }
  .gd-shots { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gd-deal-old { display: none; }
}

/* ============ CABINET BANNER (main page) ============ */
.cab-banner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1480px; margin: 0 auto;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 5vw, 64px);
  border-block: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(184,255,47,.045) 26px 52px),
    linear-gradient(100deg, var(--panel-2), var(--panel) 60%);
  position: relative; overflow: hidden;
  transition: background-color .25s;
}
.cab-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(184,255,47,.12), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.cab-banner:hover::after { opacity: 1; }
.cab-banner-inner { flex: 1; position: relative; z-index: 1; }
.cab-banner-tag {
  display: inline-block; font-size: 10px; letter-spacing: .26em;
  color: #05060A; background: var(--amber); padding: 4px 10px; margin-bottom: 12px;
  clip-path: var(--chamfer); --cut: 6px; font-weight: 600;
}
.cab-banner-title {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--acid);
  text-shadow: 0 0 28px rgba(184,255,47,.2);
  margin-bottom: 10px;
}
.cab-banner:hover .cab-banner-title { color: var(--acid); -webkit-text-stroke: 0; }
.cab-banner-sub { color: var(--ink-dim); font-size: 14.5px; max-width: 620px; margin-bottom: 14px; }
.cab-banner-cta { font-size: 11px; letter-spacing: .2em; color: var(--acid); animation: pulse-dim 1.8s infinite; }
.cab-banner-art {
  font-size: clamp(54px, 9vw, 110px); line-height: 1;
  filter: drop-shadow(0 0 26px rgba(184,255,47,.4)) grayscale(.15);
  transform: rotate(8deg);
  transition: transform .3s;
  position: relative; z-index: 1;
}
.cab-banner:hover .cab-banner-art { transform: rotate(-4deg) scale(1.08); }

/* ============ THE CABINET (arcade page) ============ */
.arc-main { padding-top: calc(var(--hud-h) + 30px); min-height: 100vh; position: relative; z-index: 1; }
.arc-head { padding: clamp(28px, 5vh, 60px) clamp(20px, 5vw, 64px) 8px; max-width: 1480px; margin: 0 auto; }
.arc-eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--amber); margin-bottom: 14px; }
.arc-title {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.6rem); text-transform: uppercase; line-height: 1.02;
  margin-bottom: 16px;
}
.arc-title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--acid); }
.arc-sub { color: var(--ink-dim); font-size: 15px; max-width: 680px; }
.arc-sub b { color: var(--ink); }

.arc-filter { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px clamp(20px, 5vw, 64px) 4px; max-width: 1480px; margin: 0 auto; }
.sysf {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-dim); background: var(--panel); border: 1px solid var(--line-hi);
  padding: 8px 14px; transition: all .2s;
}
.sysf:hover { border-color: var(--acid-dim); color: var(--acid); }
.sysf.on { background: var(--acid); color: #05060A; border-color: var(--acid); font-weight: 600; }

.arc-filter--genre { padding-top: 8px; }
.arc-filter--genre .sysf { font-size: 10px; padding: 6px 11px; color: var(--ink-mute); }
.arc-filter--genre .sysf:hover { color: var(--mag); border-color: var(--mag); }
.arc-filter--genre .sysf.on { background: var(--mag); color: #fff; border-color: var(--mag); font-weight: 600; }

.arc-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding: 22px clamp(20px, 5vw, 64px) 24px; max-width: 1480px; margin: 0 auto;
}

.arc-pager {
  max-width: 1480px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 48px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.pager-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-btn {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-dim); background: var(--panel); border: 1px solid var(--line-hi);
  padding: 8px 13px; min-width: 38px; transition: all .15s;
}
.pager-btn:hover:not(:disabled) { color: var(--acid); border-color: var(--acid-dim); }
.pager-btn.on { background: var(--acid); color: #05060A; border-color: var(--acid); font-weight: 600; }
.pager-btn:disabled { opacity: .3; }
.pager-info { font-size: 9.5px; letter-spacing: .18em; color: var(--ink-mute); text-align: center; }

.cart {
  position: relative; text-align: left;
  background: var(--panel); border: 1px solid var(--line);
  padding: 0 0 16px; overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s, filter .25s;
  display: flex; flex-direction: column;
}
.cart:hover {
  transform: translateY(-5px);
  border-color: var(--cart-c, var(--acid));
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.5));
}
.cart-marquee {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em;
  color: var(--cart-c, var(--acid)); background: var(--panel-3);
  border-bottom: 1px solid var(--line);
  padding: 7px 14px; display: flex; justify-content: space-between;
}
.cart-screen {
  margin: 14px 14px 0; aspect-ratio: 4 / 3; position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.25) 2px 3px),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--cart-c, #B8FF2F) 16%, transparent), transparent 70%),
    var(--void);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.cart-glyph {
  font-size: 54px;
  filter: drop-shadow(0 0 18px var(--cart-c, var(--acid)));
  transition: transform .25s;
}
.cart:hover .cart-glyph { transform: scale(1.15) rotate(-4deg); }
.cart-screen::after {
  content: 'PLAY ▸'; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; font-weight: 600;
  color: var(--cart-c, var(--acid)); background: rgba(6,7,11,.72);
  opacity: 0; transition: opacity .2s;
}
.cart:hover .cart-screen::after { opacity: 1; }
.cart-name { font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; padding: 13px 14px 0; }
.cart-by { font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); padding: 4px 14px 0; letter-spacing: .06em; }
.cart-desc { color: var(--ink-mute); font-size: 12.5px; line-height: 1.5; padding: 8px 14px 0; flex: 1; }
.cart-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-mute);
  padding: 12px 14px 0; margin-top: 10px; border-top: 1px solid var(--line);
}
.cart-foot b { color: var(--cart-c, var(--acid)); font-weight: 500; }

/* player mode */
.play-wrap { max-width: 1060px; margin: 0 auto; padding: 10px clamp(14px, 4vw, 40px) 70px; }
.play-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.play-eject {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink); border: 1px solid var(--line-hi); background: var(--panel);
  padding: 9px 14px; transition: all .2s;
}
.play-eject:hover { color: var(--mag); border-color: var(--mag); }
.play-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(17px, 3vw, 26px); text-transform: uppercase; flex: 1; }
.play-sys {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; font-weight: 600;
  color: #05060A; background: var(--cart-c, var(--acid)); padding: 5px 10px;
}
.play-shell {
  position: relative; background: #000;
  border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 6px var(--panel), 0 0 0 7px var(--line), 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(184,255,47,.07);
  height: min(68vh, 620px);
}
.play-shell #ejs { width: 100%; height: 100%; }
.play-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--acid);
  text-align: center; line-height: 2; padding: 20px; pointer-events: none;
}
.play-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.play-controls, .play-note { flex: 1; min-width: 280px; }
.play-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; color: var(--ink-mute); margin-bottom: 10px; }
.play-keys { display: flex; gap: 7px; flex-wrap: wrap; }
.play-keys span {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--ink-dim); border: 1px solid var(--line-hi); background: var(--panel);
  padding: 5px 9px;
}
.play-keys b { color: var(--acid); font-weight: 600; }
.play-note-txt {
  font-family: var(--f-mono); font-size: 11px; line-height: 1.8; color: var(--amber);
  border-left: 2px solid var(--amber); padding-left: 14px;
  background: linear-gradient(90deg, var(--amber-soft), transparent 70%);
}
.play-credit { margin-top: 16px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: .08em; line-height: 1.9; }
.play-credit a { color: var(--acid-dim); text-decoration: underline; }

@media (max-width: 640px) {
  .cab-banner { flex-direction: column; text-align: center; }
  .cab-banner-sub { margin-inline: auto; }
  .play-shell { height: min(54vh, 420px); }
  .play-bar { gap: 10px; }
}

/* ============ GLOBAL NAV (core.js) ============ */
.hud-nav { display: flex; gap: 4px; margin-left: 6px; }
.hud-nav a, .hud-user {
  font-size: 10.5px; letter-spacing: .16em; color: var(--ink-dim);
  padding: 7px 11px; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.hud-nav a:hover { color: var(--acid); }
.hud-nav a.on { color: var(--acid); border-color: var(--line-hi); background: var(--panel-2); }
.hud-userwrap { flex-shrink: 0; }
.hud-user { border: 1px solid var(--line-hi); background: var(--panel-2); color: var(--ink); }
.hud-user:hover { border-color: var(--acid-dim); color: var(--acid); }
.hud-user--out { color: var(--acid); border-color: rgba(184,255,47,.4); }

.hud-burger {
  display: none; flex-direction: column; gap: 4px; padding: 10px 8px;
  flex-shrink: 0;
}
.hud-burger i { display: block; width: 20px; height: 2px; background: var(--acid); transition: transform .25s, opacity .2s; }
body.nav-open .hud-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .hud-burger i:nth-child(2) { opacity: 0; }
body.nav-open .hud-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-panel {
  position: fixed; top: var(--hud-h); left: 0; right: 0; z-index: 79;
  background: rgba(8, 9, 14, .97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-hi);
  display: none; flex-direction: column; padding: 10px 16px 18px;
}
body.nav-open .nav-panel { display: flex; }
.nav-panel a {
  font-size: 12px; letter-spacing: .18em; color: var(--ink-dim);
  padding: 13px 10px; border-bottom: 1px solid var(--line);
}
.nav-panel a:hover, .nav-panel a.on { color: var(--acid); }

.foot-nav { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; font-size: 10.5px; letter-spacing: .18em; }
.foot-nav a { color: var(--ink-dim); transition: color .2s; }
.foot-nav a:hover { color: var(--acid); }
.foot-nav span { color: var(--ink-mute); }

@media (max-width: 1100px) {
  .hud-nav { display: none; }
  .hud-burger { display: flex; }
}
@media (max-width: 880px) { .hud-user { padding: 6px 9px; font-size: 9.5px; } }

/* ============ CART THUMBNAILS ============ */
.cart-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; image-rendering: pixelated; z-index: 1;
  filter: saturate(1.05) contrast(1.02);
}
.cart-screen::after { z-index: 2; }
.cart-glyph { position: relative; z-index: 0; }

/* ============ YOUR SLOT (BYO ROM) ============ */
.byo {
  max-width: 1480px; margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 64px) 56px;
}
.byo-box {
  border: 1px dashed var(--line-hi);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  padding: clamp(22px, 4vw, 40px);
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
}
.byo-info { flex: 1; min-width: 280px; }
.byo-title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(18px, 2.6vw, 26px); text-transform: uppercase; margin-bottom: 10px; }
.byo-title em { font-style: normal; color: var(--amber); }
.byo-sub { color: var(--ink-dim); font-size: 13.5px; max-width: 560px; line-height: 1.6; }
.byo-sub b { color: var(--ink); }
.byo-legal { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-mute); }
.byo-drop {
  width: min(340px, 100%); aspect-ratio: 2.2;
  border: 2px dashed rgba(255,185,56,.5); background: rgba(255,185,56,.05);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--amber);
  cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
  padding: 14px;
}
.byo-drop:hover, .byo-drop.over { background: rgba(255,185,56,.12); border-color: var(--amber); transform: scale(1.02); }
.byo-recent { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.byo-cart {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-dim);
  border: 1px solid var(--line-hi); background: var(--panel); padding: 9px 12px;
}
.byo-cart b { color: var(--amber); font-weight: 500; letter-spacing: .06em; }
.byo-cart button { color: var(--ink-mute); font-size: 12px; }
.byo-cart button:hover { color: var(--mag); }
.byo-cart .byo-play { color: var(--acid); letter-spacing: .14em; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
  }
  .ticker-track { animation: none; }
  .reveal, .sec, .foot { transform: none; }
}
