:root {
  --bg: #090d18; --panel: #101728; --line: #222c45; --text: #e8ecf5; --muted: #8e98b2;
  --yellow: #ffe45c; --cyan: #4fd1ff; --pos: #3ecf8e; --mid: #7d879f; --neg: #ff6b6b;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background-image: linear-gradient(rgba(79,209,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(79,209,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
a { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
.muted { color: var(--muted); } .small { font-size: .82rem; }

.top { display: flex; gap: 20px; align-items: center; padding: 14px max(16px, 3vw); border-bottom: 1px solid var(--line); background: rgba(9,13,24,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.brand { font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.brand b { color: var(--yellow); } .logo { color: var(--cyan); }
.urlbar { flex: 1; display: flex; gap: 8px; max-width: 820px; margin-left: auto; }
.urlbar input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 9px 12px; border-radius: 8px; font: 13px var(--mono); }
.urlbar input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: 8px; }
button:hover { border-color: var(--cyan); }
button:disabled { opacity: .5; cursor: progress; }
button.primary, #go { background: var(--yellow); color: #1a1600; border-color: var(--yellow); font-weight: 700; }
button.primary:hover, #go:hover { filter: brightness(1.08); }

main { max-width: 1240px; margin: 0 auto; padding: 24px max(16px, 3vw) 80px; }
.status { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.status.err { border-color: var(--neg); color: var(--neg); }

.hero { margin: 8px 0 18px; }
.eyebrow { margin: 0 0 6px; font: 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -.01em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 12px; font-size: .85rem; color: var(--muted); }
.pill.price { color: var(--yellow); border-color: rgba(255,228,92,.4); }

.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.scrub { display: flex; gap: 10px; align-items: center; color: var(--muted); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.scrub input { width: min(280px, 40vw); accent-color: var(--yellow); }
.toggle { color: var(--muted); font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,228,92,.55); } 50% { box-shadow: 0 0 0 10px rgba(255,228,92,0); } }

/* ---- stage ---- */
.stage { position: relative; height: 940px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #182341 0%, #0c1224 65%); }
.stage > * { position: absolute; }
#photo { transition: none; user-select: none; pointer-events: none; }
.scene { inset: 0; perspective: 1700px; perspective-origin: 50% 35%; pointer-events: none; }
.rig { left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; visibility: hidden; }
.paddle { position: absolute; left: -147.5px; top: -330px; width: 295px; height: 660px; transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer svg { display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.layer.hl svg { filter: drop-shadow(0 0 7px var(--yellow)) drop-shadow(0 0 2px var(--yellow)); }
.anchor { position: absolute; width: 0; height: 0; }
.axis { position: absolute; width: 0; border-left: 1.5px dashed rgba(79,209,255,.65); transform-origin: 0 0; }
#hex, .overlay { inset: 0; pointer-events: none; }
.overlay { width: 100%; height: 100%; }
.dim-line { stroke: var(--cyan); stroke-width: 1.4; }
.dim-tick { stroke: var(--cyan); stroke-width: 1; opacity: .6; }
.dim-text, .dim-tag { paint-order: stroke; stroke: #090d18; stroke-width: 4px; stroke-linejoin: round; }
.dim-text { fill: var(--cyan); font: 600 13px var(--mono); }
.dim-tag { fill: var(--text); font: 600 12.5px var(--mono); }
.leader { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: .85; }
.leader.hot { stroke-width: 2.6; opacity: 1; filter: drop-shadow(0 0 4px var(--yellow)); }
.leader-dot { fill: var(--yellow); }

.callouts { inset: 0; pointer-events: none; }
.card { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; background: rgba(16,23,40,.92); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px 10px; transition: border-color .15s, box-shadow .15s; }
.card:hover, .card.active { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow), 0 8px 24px rgba(0,0,0,.4); z-index: 3; }
.card-head { display: flex; gap: 8px; align-items: center; }
.card h4 { font-size: .95rem; }
.card p { display: none; margin: 5px 0 0; font-size: .78rem; line-height: 1.38; color: var(--muted); }
.num { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #1a1600; font: 700 12px var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.chip { font-size: .7rem; line-height: 1.25; border-radius: 6px; padding: 2px 6px; }
.chip.spec { background: rgba(255,228,92,.1); color: var(--yellow); border: 1px solid rgba(255,228,92,.25); }
.chip.spec b { font-weight: 600; opacity: .7; margin-right: 3px; }
.chip.feat { background: rgba(79,209,255,.1); color: var(--cyan); border: 1px solid rgba(79,209,255,.25); }
.note { color: var(--muted); font-size: .8rem; margin: 10px 2px 0; }

/* narrow: numbered badges only, legend below */
.stage.narrow { height: 760px; }
.stage.narrow .card { width: 22px !important; height: 22px; padding: 0; border-radius: 50%; background: var(--yellow); border: 0; }
.stage.narrow .card > :not(.card-head), .stage.narrow .card h4 { display: none; }
.stage.narrow .card-head { display: block; }
.stage.narrow .leaders { display: none; }
.parts-list { display: none; list-style: none; margin: 14px 0 0; padding: 0; gap: 10px; grid-template-columns: 1fr 1fr; }
.parts-list li { display: flex; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.parts-list p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 899px) { .parts-list { display: grid; } }
@media (max-width: 560px) { .parts-list { grid-template-columns: 1fr; } .top { flex-wrap: wrap; } }

/* ---- features ---- */
section h2 { font-size: 1.6rem; margin: 54px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
section h3 { font-size: 1.1rem; margin: 30px 0 12px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.fcard h4 { font-size: 1rem; } .fcard p { margin: 0; color: var(--muted); font-size: .88rem; flex: 1; }
.new { font: 700 10px var(--mono); background: var(--yellow); color: #1a1600; padding: 1px 5px; border-radius: 4px; margin-right: 7px; vertical-align: 2px; }
.to-part { align-self: flex-start; font-size: .8rem; padding: 4px 10px; color: var(--yellow); border-color: rgba(255,228,92,.35); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; text-align: right; }

/* ---- reviews ---- */
.rv-top { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.rv-score .big { font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--yellow); }
.stars { color: var(--yellow); letter-spacing: 2px; } .stars .off { color: #3a4259; } .stars.sm { font-size: .9rem; }
.rec { margin-top: 6px; } .rec b { color: var(--pos); }
.rv-hist { flex: 1; min-width: 240px; display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; font: 12px var(--mono); }
.hbar { height: 10px; background: #1a2238; border-radius: 5px; overflow: hidden; } .hbar i { display: block; height: 100%; background: var(--yellow); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.theme { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.theme.on { border-color: var(--yellow); }
.t-name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.t-pick { border: 0; background: none; padding: 0; font-weight: 600; font-size: 1rem; color: var(--text); }
.t-pick:hover { color: var(--yellow); }
.t-name .muted { font-size: .78rem; }
.t-part { margin-left: auto; font-size: .75rem; padding: 2px 8px; color: var(--yellow); border-color: rgba(255,228,92,.35); }
.t-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: #1a2238; }
.t-bar i, .legend i { display: block; } .t-bar .p, .legend .p { background: var(--pos); } .t-bar .m, .legend .m { background: var(--mid); } .t-bar .n, .legend .n { background: var(--neg); }
.t-quote { margin-top: 9px; color: var(--muted); font-size: .84rem; font-style: italic; min-height: 2.6em; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: .8rem; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.terms { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; } .term sup { color: var(--muted); font-size: .65em; }
.rv-list-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.rv-tools { display: flex; gap: 14px; align-items: center; }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.rv { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.rv header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .rv p { margin: 6px 0 8px; white-space: pre-wrap; }
mark { background: rgba(255,228,92,.22); color: var(--yellow); border-radius: 3px; padding: 0 2px; }
.ok { color: var(--pos); }

.card:hover p, .card.active p { display: block; }
.card:hover, .card.active { z-index: 5; }

/* ---- lab stats ---- */
.lab-src a { color: var(--cyan); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; }
.tile span { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile b { font-size: 2.3rem; line-height: 1.1; color: var(--yellow); } .tile small { color: var(--muted); font: 12px var(--mono); }
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.gauge { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.g-title { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.g-val { font-size: 2.6rem; font-weight: 700; line-height: 1.1; } .g-val small { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.g-label { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.g-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #ff6b6b, #ffb04f 35%, #ffe45c 55%, #3ecf8e); }
.g-track i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--bg); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff; }
.g-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 10px var(--mono); color: var(--muted); }
.lab-mid { display: grid; grid-template-columns: minmax(300px, 1fr) 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 760px) { .lab-mid, .tiles { grid-template-columns: 1fr; } }
.radar-box, .feel-box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 16px; }
.radar { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.radar .ring { fill: none; stroke: var(--line); } .radar .ring.mid { stroke: #44506f; stroke-dasharray: 4 4; }
.radar .spoke { stroke: var(--line); }
.radar .me { fill: rgba(255,228,92,.22); stroke: var(--yellow); stroke-width: 2; } .radar .me-dot { fill: var(--yellow); }
.radar .cmp { fill: rgba(79,209,255,.12); stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 5 3; } .radar .cmp-dot { fill: var(--cyan); }
.rlabel { fill: var(--text); font: 600 12px var(--mono); }
.feel { margin: 0 0 12px; } .feel b { font-size: 1.2rem; display: block; }
.votes { display: grid; gap: 8px; } .votes > div { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; }
.vbar { height: 10px; background: #1a2238; border-radius: 5px; overflow: hidden; } .vbar i { display: block; height: 100%; background: var(--cyan); }
.feel-box h4 { margin: 16px 0 4px; font-size: .9rem; } .feel-box ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.feel-box ul.yes li::marker { color: var(--pos); } .feel-box ul.no li::marker { color: var(--neg); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.mrow { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.m-head { display: flex; justify-content: space-between; align-items: baseline; } .m-val { font: 700 1.15rem var(--mono); color: var(--yellow); }
.m-track { position: relative; height: 8px; margin: 14px 0 6px; border-radius: 4px; background: #1a2238; }
.m-track i, .legend-m i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.m-avg { width: 2px; height: 16px; background: #8e98b2; display: inline-block; }
.m-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 2px currentColor; background: currentColor; display: inline-block; }
.m-dot.hi { color: var(--pos); } .m-dot.lo { color: #ffb04f; } .m-dot.mid { color: var(--yellow); }
.m-cmp { width: 10px; height: 10px; border-radius: 2px; background: var(--cyan); display: inline-block; transform: translate(-50%, -50%) rotate(45deg) !important; }
.m-scale { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); }
.m-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .82rem; }
.pct { font-weight: 700; } .pct.hi { color: var(--pos); } .pct.lo { color: #ffb04f; } .pct.mid { color: var(--text); }
.m-hint { font-size: .78rem; margin-top: 2px; }
.legend-m { display: flex; gap: 18px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.legend-m i { position: static; transform: none !important; margin-right: 6px; vertical-align: middle; }
.lab-chip { font-size: .68rem; border-radius: 6px; padding: 1px 6px; border: 1px solid; white-space: nowrap; }
.lab-chip.hi { color: var(--pos); border-color: rgba(62,207,142,.4); } .lab-chip.lo { color: #ffb04f; border-color: rgba(255,176,79,.4); } .lab-chip.mid { color: var(--muted); border-color: var(--line); }
.t-name { flex-wrap: wrap; }

#xray { pointer-events: none; opacity: 0; transition: opacity .35s; mix-blend-mode: screen; }
button.on { border-color: var(--cyan); color: var(--cyan); }
