/* bestwinz v2: synthwave arcade. Tokens first, then layout, then components.
   Colour roles: pink = actions, cyan = data and screens, sun = scores, green/red/amber = licence state only. */
@import url(/assets/fonts/fonts.css);

:root {
  --night: #12071c;
  --plum: #1d0a2c;
  --violet: #2b1142;
  --violet-2: #3a1758;
  --line: rgba(255, 92, 186, .22);
  --line-cyan: rgba(60, 242, 230, .28);
  --pink: #ff3ea5;
  --pink-hi: #ff7cc4;
  --cyan: #3cf2e6;
  --cyan-dim: #1d8f8a;
  --sun: #ffc35a;
  --sun-2: #ff7a59;
  --text: #f7eefe;
  --muted: #c3aedb;
  --faint: #8d76a8;
  --ok: #46f59a;
  --warn: #ffc35a;
  --bad: #ff4d6d;
  --display: 'Unbounded', 'Chakra Petch', system-ui, sans-serif;
  --ui: 'Chakra Petch', system-ui, sans-serif;
  --r-chassis: 14px;
  --r-btn: 8px;
  --wrap: 1240px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--ui); overflow-x: clip;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--pink); color: var(--night); }
h1, h2, h3 { font-family: var(--display); font-weight: 750; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 650; letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(var(--wrap), 100% - 80px); } }
.narrow { max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pink); color: var(--night); padding: 8px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }

/* scanlines + grain live on one fixed layer (never on scrolling containers) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .35;
}
.crt-off body::after { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(18, 7, 28, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; align-items: center; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255, 62, 165, .14); color: var(--pink-hi); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--pink); color: var(--pink-hi); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--cyan); border-color: var(--line-cyan); }
.menu-btn { display: none; }
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--plum); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; margin: 0;
    transform: translateY(-110%); visibility: hidden; transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility 0s .28s;
  }
  .nav-open .nav-links { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.16, 1, .3, 1); }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-tools { margin-left: auto; }
}

/* ---------- buttons, chips ---------- */
.btn {
  --b: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  background: var(--b); color: #1a0614; font: 700 1rem/1 var(--ui); text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 #a01764, 0 12px 30px -10px rgba(255, 62, 165, .7);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn:hover { background: var(--pink-hi); color: #1a0614; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a01764, 0 6px 20px -10px rgba(255, 62, 165, .7); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--pink); color: var(--pink-hi); }
.btn.cyan { --b: var(--cyan); box-shadow: 0 4px 0 #148b84, 0 12px 30px -12px rgba(60, 242, 230, .6); }
.btn.cyan:hover { background: #8ffaf2; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: 600 .9rem var(--ui); cursor: pointer;
}
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--pink); color: #1a0614; border-color: var(--pink); }
.chip .n { font-variant-numeric: tabular-nums; opacity: .75; }

/* ---------- licence pills (semantic colour only) ---------- */
.lic { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px; font: 700 .8rem/1.2 var(--ui); border: 1px solid; }
.lic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lic.de { color: var(--ok); border-color: rgba(70, 245, 154, .4); background: rgba(70, 245, 154, .08); }
.lic.off { color: var(--bad); border-color: rgba(255, 77, 109, .45); background: rgba(255, 77, 109, .08); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86dvh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero > picture img, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 7, 28, .92) 0%, rgba(18, 7, 28, .55) 45%, rgba(18, 7, 28, 0) 75%),
              linear-gradient(0deg, var(--night) 0%, rgba(18, 7, 28, 0) 38%);
}
.hero .wrap { padding: 72px 0 88px; }
.hero h1 { max-width: 13ch; margin-bottom: 18px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 42ch; color: #eadcf7; margin-bottom: 28px; }
.hero-scene { position: absolute; z-index: -2; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; pointer-events: none; }
.hero-scene.on { opacity: 1; }
.hero-scene > * { position: absolute; display: block; max-width: none; }
.hero-scene .sky { inset: 0; width: 100%; height: 100%; }
.hero-scene canvas { left: 0; top: 56.11%; width: 100%; height: 43.89%; } /* horizon at 606 of 1080 px */
.hero-scene .props { left: 15.625%; top: 46.3%; width: 72.92%; height: auto; } /* crop at 300,500 of 1920x1080 */
@media (max-width: 760px) {
  .hero { min-height: 78dvh; }
  .hero::before { background: linear-gradient(0deg, var(--night) 4%, rgba(18, 7, 28, .5) 30%, rgba(18, 7, 28, .62) 55%, rgba(18, 7, 28, .2) 100%); }
  .hero > picture img { object-position: 62% 50%; }
}

/* page hero (inner pages): CSS synthwave band, no photo needed */
.band {
  position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 64px;
  background: linear-gradient(180deg, #160822 0%, #2a0d3e 52%, #4a0f4c 70%, #1a0826 70.2%, var(--night) 100%);
}
.band::before { /* sun with 80s stripes */
  content: ""; position: absolute; z-index: -1; width: min(46vw, 420px); aspect-ratio: 1; right: 6%; top: 70%; translate: 0 -100%;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun) 0%, var(--sun-2) 55%, var(--pink) 100%);
  -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89%);
  mask: linear-gradient(180deg, #000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89%);
  filter: drop-shadow(0 0 40px rgba(255, 122, 89, .55));
}
.band::after { /* grid floor */
  content: ""; position: absolute; z-index: -1; left: -50%; right: -50%; top: 70%; height: 60%;
  background:
    repeating-linear-gradient(90deg, rgba(60, 242, 230, .55) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(60, 242, 230, .55) 0 1px, transparent 1px 34px);
  transform: perspective(260px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .25), #000 40%, transparent 100%);
  mask: linear-gradient(180deg, rgba(0, 0, 0, .25), #000 40%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .band::after { animation: floor 2.4s linear infinite; }
  @keyframes floor { to { background-position: 0 34px, 0 34px; } }
}
.band.dawn { background: linear-gradient(180deg, #1b0a2b 0%, #3a1150 50%, #8a1f5d 70%, #1a0826 70.2%, var(--night) 100%); }
.band.night::before { right: auto; left: 8%; width: min(30vw, 260px); }
.band.cyan::before { background: linear-gradient(180deg, #b6fff9 0%, var(--cyan) 50%, #2b6cff 100%); filter: drop-shadow(0 0 40px rgba(60, 242, 230, .5)); }
.band h1 { max-width: 20ch; }
.band .lead { max-width: 58ch; color: #eadcf7; font-size: 1.12rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; list-style: none; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink-hi); }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec.tight { padding: 48px 0; }
.sec-head { margin-bottom: 36px; max-width: 70ch; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font: 600 .9rem var(--ui); color: var(--cyan); margin-bottom: 10px; display: block; }
.divider-grid { height: 1px; background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .5; }

/* ---------- cassette shelf ---------- */
.shelf-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.shelf-count { font: 600 1rem var(--ui); color: var(--muted); }
.shelf-count b { font: 800 1.6rem var(--display); color: var(--cyan); margin-right: 6px; }
.shelf-sort { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
select, input[type="text"], input[type="number"], input[type="search"], input[type="url"], input[type="email"], textarea {
  font: 500 1rem var(--ui); color: var(--text); background: #1a0a28; border: 1px solid rgba(195, 174, 219, .32);
  border-radius: 8px; min-height: 44px; padding: 8px 12px; width: 100%;
}
select { width: auto; }
textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9d88b6; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(60, 242, 230, .2); }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
label.f small { font-weight: 400; color: var(--muted); }

.shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px 22px;
  padding: 24px 0 8px; position: relative;
}
.tape {
  position: relative; border-radius: 12px; padding: 14px 14px 12px; color: #1a0614;
  background: linear-gradient(180deg, #2a2133 0%, #17111f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 30px -18px rgba(0, 0, 0, .9);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
}
.tape:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 26px 40px -18px rgba(255, 62, 165, .45); }
.tape-label {
  position: relative; border-radius: 6px; padding: 12px 14px 10px; min-height: 150px; background: #fff6e9;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 2px 10px;
}
.tape-label .t-name { font: 800 1.2rem/1.1 var(--display); letter-spacing: -.02em; grid-column: 1; color: #1a0614; text-decoration: none; }
.tape-label .t-name::after { content: ""; position: absolute; inset: 0; } /* whole label clickable */
.tape-label .t-kind { font: 600 .78rem var(--ui); color: #6b4a6b; grid-column: 1; }
.tape-label .t-score { grid-column: 2; grid-row: 1 / span 2; font: 800 1.5rem/1 var(--display); color: #1a0614; text-align: right; }
.tape-label .t-score small { display: block; font: 600 .66rem var(--ui); color: #6b4a6b; }
.tape-label .t-stripes { grid-column: 1 / -1; height: 18px; margin: 10px -14px 8px; background: linear-gradient(180deg, var(--stripe-a, #ff3ea5) 0 33.3%, var(--stripe-b, #ffc35a) 33.3% 66.6%, var(--stripe-c, #3cf2e6) 66.6%); }
.tape-label .t-bonus { grid-column: 1 / -1; font: 600 .82rem/1.3 var(--ui); color: #2b1630; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tape-window { display: flex; justify-content: space-between; align-items: center; margin: 10px 18px 0; height: 34px; border-radius: 17px; background: #0c0811; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .8); padding: 0 8px; }
.reel { width: 24px; height: 24px; border-radius: 50%; border: 3px dashed #d9cfe6; opacity: .75; }
@media (prefers-reduced-motion: no-preference) { .tape:hover .reel { animation: spin 1.4s linear infinite; } @keyframes spin { to { rotate: 360deg; } } }
.tape-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--text); }
.tape-meta .lic { font-size: .72rem; padding: 4px 9px; }
.cmp-toggle { white-space: nowrap; font: 600 .82rem var(--ui); color: var(--muted); background: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 6px 10px; cursor: pointer; position: relative; z-index: 2; }
.cmp-toggle[aria-pressed="true"] { color: var(--night); background: var(--cyan); border-color: var(--cyan); }
.tape[hidden] { display: none; }
.empty { padding: 40px; border: 1px dashed var(--line); border-radius: var(--r-chassis); text-align: center; color: var(--muted); }

/* compare deck (double cassette deck) */
.deck {
  position: fixed; left: 50%; bottom: 14px; translate: -50% 140%; z-index: 60; width: min(720px, calc(100% - 24px));
  background: linear-gradient(180deg, #2b2236, #1a1222); border: 1px solid var(--line-cyan); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  padding: 12px 14px; display: flex; gap: 12px; align-items: center; visibility: hidden; transition: translate .35s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s;
}
.deck.on { translate: -50% 0; visibility: visible; transition: translate .35s cubic-bezier(.16, 1, .3, 1); }
.deck-slot { flex: 1; min-width: 0; height: 44px; border-radius: 8px; background: #0c0811; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-weight: 700; color: var(--cyan); }
.deck-slot.empty-slot { color: var(--faint); font-weight: 500; border: 1px dashed rgba(255, 255, 255, .12); }
.deck-slot button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
@media (max-width: 560px) { .deck { flex-wrap: wrap; } .deck-slot { flex: 1 1 40%; } .deck .btn { flex: 1 1 100%; } }

/* compare table */
.vs { display: grid; grid-template-columns: 180px 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-chassis); overflow: hidden; }
.vs > div { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.vs > .h { font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .02); }
.vs > .top { border-top: 0; font: 800 1.15rem var(--display); }
.vs .win { color: var(--cyan); font-weight: 700; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr 1fr; } .vs > .h { grid-column: 1 / -1; padding-bottom: 0; border-top: 1px solid rgba(255, 255, 255, .1); } .vs > .top.h { display: none; } }

/* ---------- CRT monitor (bonus x-ray) ---------- */
.crt-rig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .crt-rig { grid-template-columns: minmax(0, 1fr); } }
.panel { background: linear-gradient(180deg, var(--violet), var(--plum)); border: 1px solid var(--line); border-radius: var(--r-chassis); padding: 22px; }
.panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 480px) { .panel .row3 { grid-template-columns: 1fr 1fr; } }
.panel .stack { display: grid; gap: 14px; }
.seg { display: inline-flex; border: 1px solid rgba(195, 174, 219, .32); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--muted); font: 600 .9rem var(--ui); padding: 10px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--cyan); color: var(--night); }
.crt {
  position: relative; border-radius: 26px; padding: 22px; min-height: 420px;
  background: linear-gradient(160deg, #3b3346, #1b1522 60%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 30px 60px -30px #000;
}
.screen {
  position: relative; height: 100%; min-height: 380px; border-radius: 18px / 22px; overflow: hidden; padding: 22px 24px;
  background: radial-gradient(120% 90% at 50% 40%, #0b2a2e 0%, #051416 60%, #020909 100%);
  color: var(--cyan); font: 500 1rem/1.45 var(--ui); text-shadow: 0 0 8px rgba(60, 242, 230, .55);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(0, 0, 0, .6);
}
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px); }
.screen .big { font: 800 clamp(2.2rem, 5vw, 3.6rem)/1 var(--display); color: #eafffd; letter-spacing: -.02em; }
.screen .big.bad { color: #ff9db0; text-shadow: 0 0 12px rgba(255, 77, 109, .6); }
.screen .big.good { color: #b7ffd8; text-shadow: 0 0 12px rgba(70, 245, 154, .6); }
.screen dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 16px 0; }
.screen dt { color: #8be0d9; }
.screen dd { margin: 0; color: #eafffd; font-variant-numeric: tabular-nums; }
.screen .warn { color: #ffd38a; text-shadow: 0 0 8px rgba(255, 195, 90, .5); }
.screen canvas { width: 100%; height: 130px; display: block; margin-top: 8px; }
.screen .cursor::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.screen .boot { color: #66b8b2; }
.screen.flash { animation: crtOn .5s ease-out; }
@keyframes crtOn { 0% { filter: brightness(3) saturate(0); transform: scaleY(.02); } 60% { transform: scaleY(1); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .screen.flash { animation: none; } .screen .cursor::after { animation: none; } }
.screen .flags { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.screen .flags li::before { content: "> "; color: #ffd38a; }

/* ---------- licence scanner ---------- */
.scanner { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; }
@media (max-width: 760px) { .scanner { grid-template-columns: minmax(0, 1fr); } }
.scan-form { display: flex; gap: 10px; }
.scan-form input { font-size: 1.1rem; min-height: 54px; }
.scan-form .btn { min-height: 54px; }
@media (max-width: 480px) { .scan-form { flex-direction: column; } }
.light { width: 120px; margin-inline: auto; padding: 14px; border-radius: 24px; background: #120c18; border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 12px; }
.light i { display: block; aspect-ratio: 1; border-radius: 50%; background: #2a2030; transition: background .3s, box-shadow .3s; }
.light[data-state="green"] i:nth-child(3) { background: var(--ok); box-shadow: 0 0 30px var(--ok); }
.light[data-state="amber"] i:nth-child(2) { background: var(--warn); box-shadow: 0 0 30px var(--warn); }
.light[data-state="red"] i:nth-child(1) { background: var(--bad); box-shadow: 0 0 30px var(--bad); }
.scan-out { margin-top: 18px; min-height: 3em; }
.scan-out strong { font-family: var(--display); font-size: 1.15rem; }

/* ---------- equalizer score ---------- */
.eq { display: grid; grid-template-columns: repeat(var(--bands, 6), minmax(0, 1fr)); gap: 10px; align-items: end; }
.eq .band-col { display: grid; gap: 8px; justify-items: center; text-align: center; }
.eq .leds { display: flex; flex-direction: column-reverse; gap: 3px; width: 100%; max-width: 46px; }
.eq .leds i { display: block; height: 9px; border-radius: 2px; background: rgba(255, 255, 255, .07); }
.eq .leds i.on { background: var(--c, var(--cyan)); box-shadow: 0 0 8px var(--c, var(--cyan)); }
.eq .leds i.on:nth-child(n+7) { --c: var(--sun); }
.eq .leds i.on:nth-child(n+9) { --c: var(--pink); }
.eq .lbl { font: 600 .74rem/1.2 var(--ui); color: var(--muted); min-height: 2.4em; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 520px) { .eq { gap: 5px; } .eq .lbl { font-size: .6rem; } .eq .val { font-size: .78rem; } }
.eq .val { font: 800 .95rem var(--display); color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .eq.play .leds i.on { animation: led .5s backwards; animation-delay: calc(var(--i) * 40ms); }
  @keyframes led { from { background: rgba(255, 255, 255, .07); box-shadow: none; } }
}
.score-big { font: 800 clamp(3rem, 7vw, 5rem)/.9 var(--display); color: var(--sun); text-shadow: 0 0 30px rgba(255, 195, 90, .45); }
.score-big small { font: 600 1rem var(--ui); color: var(--muted); text-shadow: none; margin-left: 4px; }

/* ---------- review page ---------- */
.review-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .review-top { grid-template-columns: minmax(0, 1fr); } }
.review-top .tape { max-width: 340px; }
.review-top .tape:hover { transform: none; }
.verdict { display: grid; gap: 18px; }
.verdict .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.cta-slot { border-radius: var(--r-chassis); padding: 18px 20px; display: grid; gap: 10px; }
.cta-slot.go { background: rgba(70, 245, 154, .06); border: 1px solid rgba(70, 245, 154, .3); }
.cta-slot.stop { background: rgba(255, 77, 109, .07); border: 1px solid rgba(255, 77, 109, .38); }
.cta-slot.stop strong { color: #ff9db0; }
.cta-slot .small { color: var(--muted); }
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(18, 7, 28, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.subnav a.on, .subnav a:hover { color: var(--cyan); background: rgba(60, 242, 230, .08); }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
@media (max-width: 980px) { .rv-grid { grid-template-columns: minmax(0, 1fr); } }
.rv-sec { padding: 44px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rv-sec:last-child { border-bottom: 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.spec > div { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: 12px 14px; }
.spec span { display: block; font-size: .8rem; color: var(--muted); }
.spec b { font-weight: 600; font-size: 1.02rem; }
.spec b.unk { color: var(--faint); font-weight: 500; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .pc { grid-template-columns: minmax(0, 1fr); } }
.pc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pc li { padding-left: 28px; position: relative; }
.pc .pro li::before, .pc .con li::before { position: absolute; left: 0; top: 0; font: 800 1rem var(--display); }
.pc .pro li::before { content: "+"; color: var(--ok); }
.pc .con li::before { content: "\2212"; color: var(--bad); }
.flags-box { border-left: 3px solid var(--warn); padding: 6px 0 6px 18px; margin: 18px 0; }
.flags-box li { margin-bottom: 6px; }
.side-card { position: sticky; top: calc(var(--nav-h) + 70px); display: grid; gap: 16px; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.method-note { font-size: .9rem; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .12); border-radius: 10px; padding: 12px 14px; }

/* ---------- articles ---------- */
.prose { max-width: 70ch; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.prose th { color: var(--cyan); font-weight: 600; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); color: var(--muted); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.prose dt { color: var(--muted); }
.prose dd { margin: 0; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; }
@media (max-width: 980px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: .92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a.on { color: var(--cyan); border-left-color: var(--cyan); }
.progress { position: fixed; top: var(--nav-h); left: 0; height: 3px; width: 100%; transform-origin: 0 0; transform: scaleX(0); background: linear-gradient(90deg, var(--pink), var(--cyan)); z-index: 51; }
.quick { background: rgba(60, 242, 230, .06); border: 1px solid var(--line-cyan); border-radius: var(--r-chassis); padding: 18px 20px; margin: 0 0 28px; }
.quick strong { color: var(--cyan); }
.meta-line { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* magazine bento */
.mag { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mag a { text-decoration: none; color: var(--text); }
.mag .card { position: relative; overflow: hidden; border-radius: var(--r-chassis); min-height: 220px; display: flex; flex-direction: column; justify-content: end; padding: 20px; isolation: isolate; border: 1px solid rgba(255, 255, 255, .06); }
.mag .card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.mag .card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18, 7, 28, .95) 10%, rgba(18, 7, 28, .2) 70%); }
.mag .card:hover img { transform: scale(1.04); }
.mag .card h3 { margin: 6px 0 0; }
.mag .card .tag { font-size: .82rem; color: var(--cyan); font-weight: 600; }
.mag .c1 { grid-column: span 3; grid-row: span 2; min-height: 460px; }
.mag .c2, .mag .c3 { grid-column: span 3; }
.mag .c4, .mag .c5, .mag .c6 { grid-column: span 2; }
.mag .plain { background: linear-gradient(160deg, var(--violet-2), var(--plum)); }
@media (max-width: 820px) { .mag { grid-template-columns: 1fr 1fr; } .mag .card { grid-column: span 2 !important; min-height: 200px !important; } }

/* tool tiles */
.tools-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tool-tile { grid-column: span 4; position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-chassis); text-decoration: none; color: var(--text); background: linear-gradient(160deg, var(--violet), var(--plum)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.tool-tile:hover { border-color: var(--cyan); transform: translateY(-3px); color: var(--text); }
.tool-tile .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(60, 242, 230, .1); color: var(--cyan); }
.tool-tile .ico svg { width: 24px; height: 24px; }
.tool-tile p { color: var(--muted); margin: 0; }
.tool-tile.wide { grid-column: span 8; }
@media (max-width: 900px) { .tool-tile, .tool-tile.wide { grid-column: span 6; } }
@media (max-width: 600px) { .tool-tile, .tool-tile.wide { grid-column: span 12; } }

/* limit console */
.console { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .console { grid-template-columns: minmax(0, 1fr); } }
.slider { display: grid; gap: 8px; }
.slider .top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.slider output { font: 800 1.3rem var(--display); color: var(--cyan); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan) var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--cyan); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 6px; background: var(--pink); border: 2px solid #fff; box-shadow: 0 0 12px var(--pink); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 6px; background: var(--pink); border: 2px solid #fff; }
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readout > div { background: #0c0811; border-radius: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .06); }
.readout span { display: block; font-size: .82rem; color: var(--muted); }
.readout b { font: 800 1.4rem var(--display); color: var(--cyan); font-variant-numeric: tabular-nums; }
.readout b.hot { color: var(--pink-hi); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font: 800 1.3rem var(--display); color: var(--pink); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 18px 16px; color: #e4d6f2; }

/* responsible band */
.rg-band { background: linear-gradient(90deg, rgba(60, 242, 230, .08), rgba(255, 62, 165, .08)); border-block: 1px solid var(--line); }
.rg-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 0; }
.rg-band .age { font: 800 2rem var(--display); color: var(--pink); border: 2px solid var(--pink); border-radius: 12px; padding: 6px 12px; }
@media (max-width: 700px) { .rg-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { background: #0d0515; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot h2 { font: 700 .95rem var(--ui); color: var(--cyan); margin-bottom: 12px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--pink-hi); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--faint); font-size: .86rem; }
.foot-bottom button { background: none; border: 0; padding: 0; color: var(--faint); font: inherit; text-decoration: underline; cursor: pointer; }

/* consent */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; background: #1b0d29; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 30px 60px -20px #000; }
.consent h2 { font: 700 1.05rem var(--ui); margin-bottom: 6px; letter-spacing: 0; }
.consent p { color: var(--muted); font-size: .92rem; }
.consent .row { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { min-height: 42px; }

/* reveal on scroll (only when JS marks the page ready) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* misc */
.note { font-size: .9rem; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-chassis); }
table.rank { width: 100%; border-collapse: collapse; min-width: 760px; }
table.rank th, table.rank td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
table.rank th { font-size: .82rem; color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, .02); cursor: pointer; white-space: nowrap; }
table.rank th[aria-sort] { color: var(--cyan); }
table.rank td.sc { font: 800 1.05rem var(--display); color: var(--sun); }
table.rank a { color: var(--text); font-weight: 700; }
.toast { position: fixed; left: 50%; top: calc(var(--nav-h) + 12px); translate: -50% -12px; opacity: 0; visibility: hidden; z-index: 70; background: var(--cyan); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 700; transition: translate .3s, opacity .3s, visibility 0s .3s; }
.toast.on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate .3s, opacity .3s; }
.contact-form { display: grid; gap: 14px; max-width: 640px; }
.verdict h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.side-card .eq { gap: 5px; }
.side-card .eq .lbl { font-size: .62rem; hyphens: auto; overflow-wrap: anywhere; }
.side-card .eq .val { font-size: .82rem; }
@media (min-width: 901px) { .crt-rig .crt { align-self: start; position: sticky; top: calc(var(--nav-h) + 16px); } }
@media (max-width: 760px) {
  .band::before { width: 150px; top: 24px; right: -40px; translate: 0 0; opacity: .55; }
  .band.night::before { left: auto; right: -40px; width: 120px; }
  .band::after { top: auto; bottom: 0; height: 120px; opacity: .6; }
}
