:root { --bg: #090e17; --panel: #101a29; --panel2: #152235; --line: #2b3d52; --text: #f3f5f9; --muted: #aab9c9; --dim: #7e93a8; --blue: #8cccf4; --red: #ff6d7a; --gold: #efcb87; --green: #8dc0ab; --mono: ui-monospace,SFMono-Regular,Consolas,monospace; --sans: Inter,system-ui,sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse 85% 34% at 80% -10%,#253b59 0%,transparent 80%),var(--bg); font: 16px/1.6 var(--sans); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { width: min(1180px,calc(100% - 42px)); margin: auto; }
.mono,.micro { font-family: var(--mono); }
.topbar { border-bottom: 1px solid var(--line); background: #0b121de6; backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 10px 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand b { color: var(--red); }
.links { display: flex; gap: 22px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }
.hero { padding: 82px 0 50px; position: relative; overflow: hidden; }
.hero:after { content: '1.9%'; position: absolute; right: -1%; top: 6%; font: 900 clamp(110px,19vw,290px)/1 var(--sans); letter-spacing: -.12em; color: #ffffff05; pointer-events: none; }
.eyebrow { font: 700 12px var(--mono); letter-spacing: .19em; text-transform: uppercase; color: var(--red); }
h1 { position: relative; max-width: 950px; margin: 16px 0 24px; font-size: clamp(32px,6.6vw,88px); line-height: 1.03; letter-spacing: -.07em; overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--red); }
.lead { position: relative; max-width: 790px; color: var(--muted); font-size: clamp(17px,2vw,21px); line-height: 1.65; }
.lead strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border: 1px solid var(--line); border-radius: 4px; background: #0f1a2a; color: var(--text); font: 600 13px var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { border-color: #4a6684; color: #fff; }
.button.primary { background: #2a1620; border-color: #7d3644; color: #ffd7db; }
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 190px), 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 64px; }
.stat { background: var(--panel); padding: 22px 20px; }
.stat strong { display: block; font: 800 clamp(26px,3vw,36px)/1.1 var(--sans); letter-spacing: -.045em; }
.stat small { display: block; margin-top: 7px; color: var(--dim); font: 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
section { padding: 56px 0; border-top: 1px solid #1b2941; }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 34px; align-items: end; margin-bottom: 34px; }
@media (max-width:820px) {
  .section-head { grid-template-columns: 1fr; gap: 14px; }
}
.kicker { font: 700 11px var(--mono); letter-spacing: .17em; text-transform: uppercase; color: var(--red); margin-bottom: 11px; }
h2 { margin: 0; font: 750 clamp(26px,3.1vw,40px)/1.12 var(--sans); letter-spacing: -.045em; }
h3 { margin: 0 0 10px; font: 700 17px/1.35 var(--sans); letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.note { color: var(--dim); font: 12.5px/1.75 var(--sans); margin: 14px 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 24px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 22px 24px 18px; margin-bottom: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.chart-title { font: 700 15px/1.4 var(--sans); letter-spacing: -.02em; }
.chart-sub { color: var(--dim); font: 11px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #20314a; stroke-width: 1; }
.chart .axis { fill: var(--dim); font: 11px var(--mono); }
.chart .axis-strong { fill: var(--muted); font: 11px var(--mono); }
.chart .val { fill: var(--text); font: 600 11px var(--mono); }
.chart .caprule { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .caplabel { fill: var(--red); font: 700 11px var(--mono); letter-spacing: .09em; }
.bar { transition: opacity .12s; }
.chart:hover .bar { opacity: .55; }
.chart .bar:hover { opacity: 1; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; font: 11.5px var(--sans); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.small-multiples { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width:780px) {
  .small-multiples { grid-template-columns: 1fr; }
}
#tip { position: fixed; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .1s; background: #0a121e; border: 1px solid #3d5673; border-radius: 5px; padding: 9px 12px; max-width: 290px; box-shadow: 0 10px 30px #0009; font: 12px/1.55 var(--sans); color: var(--text); }
#tip b { display: block; font-size: 12.5px; margin-bottom: 3px; }
#tip em { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { position: sticky; top: 0; background: #132033; text-align: left; padding: 11px 13px; font: 700 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 13px; border-bottom: 1px solid #1b2941; vertical-align: top; }
tbody tr:hover { background: #16233619; }
.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.absent { color: var(--red); font-weight: 600; }
.present { color: var(--green); }
.grade { display: inline-block; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 3px; font: 700 11px var(--mono); letter-spacing: .05em; }
.grade.A { background: #12332a; color: #9fdcc4; border: 1px solid #2f6b57; }
.grade.B { background: #2f2a14; color: #e7cd91; border: 1px solid #6d5e2c; }
.grade.C { background: #2a1a20; color: #e2959e; border: 1px solid #6b3743; }
.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.controls input,.controls select { background: #0d1726; border: 1px solid var(--line); border-radius: 4px; color: var(--text); padding: 9px 12px; font: 13px var(--sans); }
.controls input { min-width: 230px; flex: 1 1 230px; }
.controls input:focus,.controls select:focus { outline: 2px solid #3f6a92; outline-offset: 1px; }
#gcount { color: var(--dim); font: 12px var(--mono); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 238px), 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.card figure { margin: 0; height: 124px; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 60%,#1d2d44 0%,#0d1524 72%); border-bottom: 1px solid var(--line); position: relative; }
.card figure img { max-width: 88%; max-height: 104px; object-fit: contain; }
.card figure .noimg { color: #43566d; font: 11px var(--mono); letter-spacing: .1em; }
.card .rarity { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.card .body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .nm { font: 600 13px/1.4 var(--sans); letter-spacing: -.01em; min-height: 36px; }
.card .nm span { display: block; color: var(--gold); font: 11px var(--mono); }
.card .price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card .price b { font: 800 19px/1 var(--sans); letter-spacing: -.04em; }
.scale { height: 5px; border-radius: 3px; background: #1a2940; overflow: hidden; }
.scale i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#4d7ea6,#8cccf4); }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 6px; font: 11px var(--mono); color: var(--dim); }
.chip { border: 1px solid #27394f; border-radius: 3px; padding: 1px 5px; white-space: nowrap; }
.chip.steam-no { border-color: #6b3743; color: #e2959e; }
.chip.steam-yes { border-color: #2f6b57; color: #9fdcc4; }
.chip.ex { border-color: #4a3a20; color: #c3a771; text-decoration: line-through; }
.chip.hi { border-color: #5a4a7a; color: #c3aee0; }
.verify { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: auto; padding-top: 9px; border-top: 1px solid #1b2941; font: 11px var(--mono); }
.verify span { color: #9eb2c7; letter-spacing: .06em; }
.verify a { color: #7e9ab5; text-decoration: none; border-bottom: 1px dotted #3d5673; }
.verify a:hover { color: #fff; border-bottom-color: #8cccf4; }
td.verify { display: table-cell; border-top: 0; padding: 10px 13px; white-space: nowrap; }
td.verify a { margin-right: 9px; }
td .strong,td.strong { font-weight: 700; }
.gallery-empty { grid-column: 1/-1; padding: 40px; text-align: center; color: var(--dim); }
.callout { border: 1px solid #6b3743; background: #1d1119; border-radius: 7px; padding: 20px 22px; margin: 20px 0; }
.callout h3 { color: #ffb8c0; }
.callout p { margin: 0; color: #e3c6cb; font-size: 14.5px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: start; }
.cols article { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 19px 20px; }
.cols article p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.cols article p+p { margin-top: 9px; }
footer.page { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--dim); font-size: 12.5px; }
