/* BTC AI Arena — a HiddenTerps lab. Editorial, sharp, honest. */
:root {
  --bg: #0a0a0b;
  --surface: #111112;
  --cream: #eae7df;
  --cream2: #c5c1b8;
  --muted: #91918e;
  --dim: #6c6b68;
  --red: #d93639;
  --red-text: #ef5557;
  --line: #2a2928;
  --line2: #3a3836;
  --sage: #94a78d;
  --sand: #c9a46b;
  --grey: #8a8986;
  --pos: var(--sage);
  --neg: var(--red-text);
  --sans: "Manrope", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --pad-x: 8%;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--red); color: var(--cream); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--red-text); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: normal; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 400; }
.eyebrow { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 400; }
.red { color: var(--red-text); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* texture + progress */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 100; height: 2px; width: 0; background: var(--red); }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 110; background: var(--cream); color: var(--bg); padding: 12px; font-size: 12px; }
.skip-link:focus { top: 10px; }

/* HEADER */
.site-header {
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 5.1%; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 15;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.brand-light { font-weight: 400; margin-left: 5px; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a { font-size: 12px; transition: color .2s; white-space: nowrap; }
.desktop-nav a:hover { color: var(--red-text); }
.desktop-nav sup { font-family: var(--mono); font-size: 8px; margin-left: 5px; color: #747471; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; border: 1px solid var(--line); }
.lang button { padding: 7px 9px; min-height: 32px; font: 10px var(--mono); letter-spacing: 1.3px; color: var(--muted); }
.lang button[aria-pressed="true"] { color: var(--cream); background: #1d1c1b; box-shadow: inset 0 -1px 0 var(--red); }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--cream2); transition: color .2s; }
.icon-link:hover { color: var(--red-text); }
.icon-link svg { width: 15px; height: 15px; }

/* HERO */
.hero { position: relative; padding: 0 0 26px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 520px at 85% 15%, rgba(217, 54, 57, .07), transparent 70%); }
.hero-topline { display: flex; justify-content: space-between; gap: 20px; padding: 28px 5.1% 0; font-size: 9px; letter-spacing: 1.2px; color: #b7b5af; }
.status-dot { width: 5px; height: 5px; display: inline-block; background: var(--sage); border-radius: 50%; margin-right: 9px; vertical-align: 1px; box-shadow: 0 0 7px #94a78d66; }
.hero-file { color: #c6beb4; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 70px var(--pad-x) 56px; }
.hero-eyebrow { color: #bbb6ae; font-size: 9px; letter-spacing: 2.5px; margin-bottom: 24px; }
.hero-title { font: 800 clamp(72px, 8.6vw, 150px)/.8 var(--display); letter-spacing: -2px; text-transform: uppercase; }
.hero-title > span { display: block; }
.hero-title > span + span { margin-top: 10px; }
.outline-text { color: transparent; -webkit-text-stroke: 1.2px var(--cream); }
.hero-copy { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.hero-copy p { font-size: 22px; line-height: 1.36; font-weight: 500; letter-spacing: -.6px; }
.hero-copy em { color: var(--red-text); }
.hero-copy > span { font-size: 12px; line-height: 1.8; color: #a5a39d; max-width: 420px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 12px; padding: 15px 19px; min-height: 48px; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: #b9292c; }
.button .arrow { font-size: 16px; line-height: 1; }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: 12px; padding: 8px 0; min-height: 44px; }
.text-link .arrow { font-size: 16px; transition: transform .2s; }
.text-link:hover .arrow { transform: translate(3px, 0); }
.text-link:hover { color: var(--red-text); }

/* PANELS */
.panel, .card { position: relative; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line);
  font: 9px var(--mono); letter-spacing: 1.3px; text-transform: uppercase; color: #a29b92; }
.panel-bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel-status { color: var(--cream2); text-align: right; white-space: nowrap; }
.panel-status.red { color: var(--red-text); }
.dot-red { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.dot-red.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,54,57,.6); } 70% { box-shadow: 0 0 0 8px rgba(217,54,57,0); } 100% { box-shadow: 0 0 0 0 rgba(217,54,57,0); } }

.hero-chart { margin: 0; }
.legend-mini { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 18px 0; font-size: 9px; color: var(--muted); }
.legend-mini > span { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 14px; height: 8px; }
.lg-band80 { background: rgba(148, 167, 141, .24); }
.lg-band40 { background: rgba(190, 205, 183, .5); }
.lg-med { height: 0; border-top: 1px dashed var(--cream); }
.lg-real { height: 2px; background: var(--red); }
.chart { width: 100%; height: 360px; }
.chart-tall { height: 440px; }
.hero-chart .chart { height: 340px; padding: 0 6px; }

/* verdict */
.verdict { margin: 0 var(--pad-x); }
.verdict-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding: 30px 28px 32px; }
.verdict-title { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -1.4px; }
.verdict-title .w { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.verdict-title .w.on { opacity: 1; transform: none; }
.verdict-title .hl { color: var(--red-text); }
.verdict-points { list-style: none; margin: 0; padding: 0; counter-reset: vp; display: grid; }
.verdict-points li { counter-increment: vp; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--cream2); font-size: 13px; line-height: 1.6;
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.verdict-points li:first-child { border-top: 0; padding-top: 0; }
.verdict-points li::before { content: counter(vp, decimal-leading-zero); font: 10px/2 var(--mono); letter-spacing: 1.3px; color: var(--red-text); }
.verdict-points li.on { opacity: 1; transform: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px var(--pad-x) 0; border: 1px solid var(--line); }
.stat { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b { font: 700 clamp(34px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.5px; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.stat b#stPeriod { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.stat .mono { color: var(--muted); font-size: 9px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 5.1% 0; font-size: 9px; letter-spacing: 1.1px; color: #a5a39d; }
.hero-bottom a { display: inline-flex; gap: 14px; align-items: center; }
.hero-bottom a:hover { color: var(--red-text); }
.hero-loc { color: var(--cream); }

/* TICKER */
.ticker { height: 83px; border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 42px; align-items: center; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track > span:not(.ticker-divider) { font: 600 34px var(--display); letter-spacing: 1px; white-space: nowrap; color: var(--cream2); text-transform: uppercase; }
.ticker-track > span.hot { color: var(--cream); }
.ticker-track > span.hot b { color: var(--red-text); font-weight: 700; }
.ticker-divider { flex: 0 0 1px; width: 1px; height: 27px; background: #5b413d; transform: rotate(24deg); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: 112px var(--pad-x) 0; scroll-margin-top: 10px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading .eyebrow { margin-bottom: 24px; display: flex; align-items: center; }
.section-heading h2 { font-size: clamp(34px, 3.7vw, 53px); line-height: 1.12; letter-spacing: -2px; font-weight: 500; }
.lede { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 440px; margin-bottom: 6px; flex: 0 1 440px; }
.footnote { color: var(--dim); font-size: 11px; margin: 14px 0 0; line-height: 1.7; }
.sub { font-size: 22px; font-weight: 500; letter-spacing: -.6px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s, transform .65s; }
.reveal.in { opacity: 1; transform: none; }

/* toolbar + tabs */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tabs { position: relative; display: inline-flex; gap: 22px; }
.tabs button { position: relative; z-index: 1; padding: 10px 0; min-height: 40px; font: 11px var(--mono); letter-spacing: 1.3px; text-transform: uppercase; color: #b1afaa; transition: color .2s; }
.tabs button[aria-selected="true"], .tabs button:hover { color: var(--cream); }
.tabs .pill { position: absolute; bottom: 0; left: 0; height: 1px; background: var(--red); transition: transform .35s cubic-bezier(.3,.9,.3,1), width .35s cubic-bezier(.3,.9,.3,1); }
.hz-meta { margin: 0; color: var(--muted); font-size: 9px; }
.seg { display: inline-flex; border: 1px solid var(--line); align-self: flex-start; }
.seg button { padding: 8px 12px; min-height: 36px; font: 9px var(--mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.seg button[aria-pressed="true"] { color: var(--cream); background: #1d1c1b; box-shadow: inset 0 -1px 0 var(--red); }
.select { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.select select { appearance: none; -webkit-appearance: none; border-radius: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d93639' fill='none' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--cream); border: 1px solid var(--line); padding: 9px 34px 9px 12px; min-height: 40px; font: 500 13px var(--sans); max-width: 62vw; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { font: 9px/1 var(--mono); letter-spacing: .6px; padding: 5px 6px; border: 1px solid var(--line); color: var(--cream2); white-space: nowrap; }
.chip.fam { color: var(--fc); border-color: color-mix(in srgb, var(--fc) 45%, transparent); }
.chip.kind-ft { color: var(--sand); border-color: #c9a46b66; }
.chip.kind-bl { color: var(--muted); border-style: dashed; }

/* LEADERBOARD */
.lb-swap { transition: opacity .22s ease, transform .22s ease; }
.lb-swap.out { opacity: 0; transform: translateY(6px); }
.lb-row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(170px, 1.55fr) minmax(130px, 1.05fr) minmax(110px, .9fr) minmax(70px, .6fr) minmax(70px, .55fr); gap: 20px; align-items: center; padding: 15px 22px; border-top: 1px solid var(--line); }
.lb-row.head { border-top: 0; padding-top: 12px; padding-bottom: 12px; background: #0d0d0e; }
.lb-row.body { transition: background .2s ease; }
.lb-row.body:hover { background: #161615; }
.lb-row.base { background: repeating-linear-gradient(135deg, rgba(234,231,223,.018) 0 6px, transparent 6px 12px); }
.lb-row.base .m-name { color: var(--cream2); }
.th { padding: 0; text-align: left; font: 9px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.th:hover, .th.active { color: var(--cream); }
.th .arr { opacity: .4; font-size: 9px; }
.th.active .arr { opacity: 1; color: var(--red-text); }
.th small { display: block; text-transform: none; letter-spacing: .3px; font-family: var(--sans); font-size: 10px; color: var(--dim); }
.m-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank { font: 10px var(--mono); color: var(--dim); width: 18px; text-align: right; flex: none; }
.fam-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; display: inline-block; }
.m-text { min-width: 0; }
.m-name { font-weight: 600; font-size: 15px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--cream); }
a.m-name:hover { color: var(--red-text); }
.metric { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.metric-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.val { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.val.pos { color: var(--pos); }
.val.neg { color: var(--neg); }
.ci { font: 10px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.ns, .sig { font: 8px/1 var(--mono); letter-spacing: 1px; padding: 4px 5px; text-transform: uppercase; border: 1px solid var(--line2); color: var(--muted); }
.sig { color: var(--sage); border-color: #94a78d77; }
.sig.neg { color: var(--red-text); border-color: #d9363988; }
.bar { position: relative; height: 12px; background: #1a1918; }
.bar .zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: #6d6a66; }
.bar .fill { position: absolute; top: 3px; bottom: 3px; transition: left .5s cubic-bezier(.3,.9,.3,1), width .5s cubic-bezier(.3,.9,.3,1); }
.bar .fill.pos { background: var(--sage); }
.bar .fill.neg { background: var(--red); }
.bar .fill.neutral { background: #b8b3a8; }
.bar .whisk { position: absolute; top: 5px; height: 2px; background: var(--cream); opacity: .85; }
.bar .whisk::before, .bar .whisk::after { content: ""; position: absolute; top: -4px; width: 1px; height: 10px; background: var(--cream); }
.bar .whisk::before { left: 0; } .bar .whisk::after { right: 0; }
.bar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--sand); }
.bar .dotv { position: absolute; top: 2px; width: 8px; height: 8px; margin-left: -4px; background: var(--cream); transition: left .5s ease; }
.lb-sort { display: none; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lb-sort .select select { padding: 7px 30px 7px 10px; font-size: 12px; min-height: 36px; }

/* INSIGHT */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 27px; }
.heat-card { display: flex; flex-direction: column; }
.heat-inner { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.heat { display: grid; grid-template-columns: minmax(0, 2.1fr) repeat(4, minmax(0, 1fr)); gap: 3px; font-size: 12px; }
.heat .hc { height: 34px; display: flex; align-items: center; justify-content: center; font: 11px var(--mono); font-variant-numeric: tabular-nums; transition: background .45s ease, color .45s ease; }
.heat .hl { display: flex; align-items: center; gap: 8px; color: var(--cream2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.heat .hh { text-align: center; font: 9px var(--mono); letter-spacing: 1.2px; color: var(--muted); padding-bottom: 2px; text-transform: uppercase; }
.heat .fam-dot { width: 6px; height: 6px; }

/* CALIBRATION */
.cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 27px; }
.cal-grid .chart { height: 340px; }
.cal-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 27px; border: 1px solid var(--line); }
.cal-stat { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.cal-stat:nth-child(4) { border-right: 0; }
.cal-stat.wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
.cal-stat b { display: block; font: 700 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.cal-stat span { font: 9px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cal-stat.wide span { text-transform: none; letter-spacing: 0; font: 12px var(--sans); color: var(--cream2); }

/* GALLERY */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 27px; }
.g-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 18px 4px; }
.g-head b { font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 9px; }
.g-head .muted { font: 9px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; display: inline-block; margin-top: 8px; }
.g-chips { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.g-card .chart { height: 250px; padding: 0 6px; }
.verdict-chip { font: 8px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 5px 6px; white-space: nowrap; border: 1px solid; }
.verdict-chip.hit { color: var(--sage); border-color: #94a78d77; }
.verdict-chip.miss { color: var(--red-text); border-color: #d9363988; }

/* LIVE */
.live-top { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 3fr); gap: 27px; margin-bottom: 44px; }
.live-top:has(.gauges[hidden]) { grid-template-columns: minmax(240px, 440px); }
.price-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.price { font: 700 clamp(48px, 4.6vw, 68px)/.95 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.5px; color: var(--cream); }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.gauge { padding: 16px 12px 14px; text-align: center; border-right: 1px solid var(--line); }
.gauge:last-child { border-right: 0; }
.gauge svg { width: 100%; max-width: 160px; height: auto; display: block; margin: 6px auto 0; overflow: visible; }
.gauge .g-h { font: 9px var(--mono); color: var(--muted); letter-spacing: 1.3px; text-transform: uppercase; }
.gauge .g-p { font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: -2px; }
.gauge .g-r { font: 9px var(--mono); color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.cones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 36px; }
.cone-card .chart { height: 180px; padding: 0 4px; }
.cone-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 4px; font-size: 13px; }
.cone-head b { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pup { font: 10px var(--mono); padding: 3px 6px; flex: none; border: 1px solid var(--line); }
.pup.up { color: var(--sage); border-color: #94a78d66; }
.pup.dn { color: var(--red-text); border-color: #d9363977; }
.pup.flat { color: var(--cream2); }
.lv-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .5fr); gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.lv-row.head { border-top: 0; font: 9px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 1.3px; }

/* METHOD */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.m-card { padding: 28px 26px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.m-card:hover { background: var(--surface); }
.m-num { display: block; color: var(--muted); margin-bottom: 22px; font-size: 10px; }
.m-num.red { color: var(--red-text); }
.m-card h3 { font: 700 28px/1 var(--display); text-transform: uppercase; letter-spacing: .2px; margin-bottom: 14px; }
.m-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* FOOTER */
.footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 48px 5.1% 28px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.foot-credit { margin: 18px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -.5px; }
.foot-credit a:hover { color: var(--red-text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; font-size: 9px; color: var(--cream2); }
.foot-links a { padding: 8px 0; }
.foot-links a:hover, .footer p a:hover { color: var(--red-text); }
.footer h4 { color: var(--cream2); margin-bottom: 16px; font-size: 9px; }
.footer p + p { margin-top: 10px; }
.lic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; font-size: 13px; }
.lic li { display: flex; justify-content: space-between; gap: 8px; color: var(--cream2); border-bottom: 1px solid var(--line); padding: 8px 0; }
.lic li a:hover { color: var(--red-text); }
.lic li span:last-child { font: 10px var(--mono); color: var(--muted); align-self: center; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.foot-bottom a:hover { color: var(--red-text); }

/* tooltip + errors */
.tip { position: fixed; z-index: 120; pointer-events: none; max-width: 280px; background: var(--surface); border: 1px solid var(--line2); padding: 9px 11px; font-size: 12px; color: var(--cream); box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.tip b { font-family: var(--mono); font-weight: 500; }
.load-err { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 560px; margin: 0 auto; padding: 14px 16px; background: #1b0b0c; border: 1px solid var(--red); color: var(--cream); font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .desktop-nav { gap: 22px; }
  .desktop-nav a:nth-child(4) { display: none; }
}
@media (max-width: 1020px) {
  :root { --pad-x: 6%; }
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; }
  .verdict-body { grid-template-columns: 1fr; gap: 24px; }
  .ins-grid, .cal-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .live-top { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { display: block; }
  .lede { margin-top: 20px; max-width: 640px; }
}
@media (max-width: 860px) {
  .lb-row.head { display: none; }
  .lb-row { grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 16px; }
  .lb-row > .m-cell, .lb-row > .metric:nth-child(2) { grid-column: 1 / -1; }
  .lb-row > .metric::before { content: attr(data-label); font: 8px var(--mono); text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
  .lb-sort { display: flex; }
  .gauges { grid-template-columns: 1fr 1fr; }
  .gauge:nth-child(2) { border-right: 0; }
  .gauge:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .site-header { height: 68px; padding: 0 6%; }
  .header-actions { gap: 8px; }
  .hero-topline { padding: 22px 6% 0; font-size: 7px; letter-spacing: .6px; }
  .hero-file { display: none; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: 1.7px; }
  .hero-title { font-size: clamp(64px, 19vw, 120px); letter-spacing: -1.5px; }
  .hero-copy p { font-size: 20px; }
  .hero-chart .chart { height: 290px; }
  .verdict-body { padding: 22px 18px 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-bottom { padding: 22px 6% 0; font-size: 7px; }
  .hero-loc { display: none; }
  .ticker { height: 65px; }
  .ticker-track { gap: 25px; }
  .ticker-track > span:not(.ticker-divider) { font-size: 27px; }
  .ticker-divider { height: 21px; }
  .section { padding-top: 72px; }
  .section-heading h2 { font-size: 34px; letter-spacing: -1.5px; }
  .section-heading .eyebrow { font-size: 9.5px; margin-bottom: 20px; }
  .chart { height: 290px; }
  .chart-tall { height: 380px; }
  .cal-grid .chart { height: 290px; }
  .cal-stats { grid-template-columns: 1fr 1fr; }
  .cal-stat:nth-child(2) { border-right: 0; }
  .cal-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-grid, .foot-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .lic { grid-template-columns: 1fr; }
  .lv-row { padding: 10px 12px; gap: 8px; font-size: 13px; }
  .panel-bar { padding: 11px 14px; font-size: 9.5px; }
  .heat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .heat > div:first-child { display: none; }
  .heat .hl { grid-column: 1 / -1; padding-top: 8px; }
  .heat .hc { font-size: 10.5px; height: 30px; }
  .footer { margin-top: 90px; padding: 36px 6% 24px; }
}
@media (max-width: 400px) {
  .brand { font-size: 13px; }
  .brand-mark { width: 24px; height: 24px; }
  .icon-link { width: 28px; }
  .lang button { padding: 6px 7px; }
  .panel-status { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .verdict-title .w, .verdict-points li { opacity: 1; transform: none; }
  .ticker-track { transform: none; }
}

/* ---------------- loading states ---------------- */
.skel { display: block; position: relative; overflow: hidden; background: #181817; border: 1px solid #1f1e1d; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(234,231,223,.06), transparent); animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { to { transform: translateX(100%); } }
.skel-title { height: .82em; width: 92%; margin: 0 0 .18em; }
.skel-title.short { width: 58%; }
.verdict-points li.skel { list-style: none; height: 14px; margin: 12px 0; width: 86%; opacity: 1; transform: none; }
.verdict-points li.skel.short { width: 54%; }
.skel-line { height: 12px; width: 70%; }
.skel-line.short { width: 42%; }
.skel-price { display: inline-block; width: 220px; max-width: 100%; height: .82em; vertical-align: middle; }
.skel-gauge { width: 72%; height: 92px; margin: 10px auto 4px; }
.skel-cone { height: 180px; margin: 10px 14px 14px; border: 0; }
.skel-chip { display: inline-block; width: 210px; height: 12px; vertical-align: middle; }
body.is-loading .hero-chart .chart { background: linear-gradient(90deg, transparent, rgba(234,231,223,.035), transparent) 0 0 / 200% 100% #0e0e0f;
  animation: skelbg 1.6s linear infinite; }
@keyframes skelbg { from { background-position: 150% 0; } to { background-position: -50% 0; } }
body.is-loading .stat b { color: var(--dim); }

/* live chip in the hero */
.live-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 14px; max-width: 100%;
  border: 1px solid var(--line); background: rgba(17,17,18,.85); color: var(--cream); font-size: 13px; text-decoration: none;
  transition: border-color .2s, background .2s; }
.live-chip:hover { border-color: var(--red); }
.live-chip .lc-k { font-size: 10px; letter-spacing: 1.6px; color: var(--red-text); }
.live-chip .lc-v { font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.live-chip .lc-v b { font-weight: 700; }
.live-chip .up { color: var(--pos); } .live-chip .dn { color: var(--neg); }
.live-chip.is-error { display: none; }

/* live section messages */
.live-msg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -20px 0 28px; padding: 12px 16px;
  border: 1px solid var(--line); border-left: 2px solid var(--sand); background: var(--surface); font-size: 13px; color: var(--cream2, var(--cream)); }
.live-msg.err { border-left-color: var(--red); }
.live-msg button { font: 500 11px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--cream); background: transparent;
  border: 1px solid var(--line); padding: 7px 12px; cursor: pointer; }
.live-msg button:hover { border-color: var(--red); }
.live-msg .spin { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border: 1.5px solid var(--dim); border-top-color: var(--red); border-radius: 50%;
  animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
#live[aria-busy="true"] #liveTabs { visibility: hidden; }
.live-early { padding: 0 18px 14px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .skel::after, .live-msg .spin { animation: none; }
  body.is-loading .hero-chart .chart { animation: none; }
}
.hero-content { min-width: 0; }
@media (max-width: 760px) {
  .live-chip { align-items: flex-start; }
  .live-chip .lc-v { white-space: normal; }
  .live-chip .dot-red, .live-chip .lc-k { margin-top: 5px; }
}

.bar .over { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; line-height: 1; color: var(--red-text); }
.bar .over.l { left: -11px; } .bar .over.r { right: -11px; }
.live-wait { margin: 0; padding: 18px; color: var(--muted); font-size: 13px; }
