:root { color-scheme: dark; --p-quest:#3987e5; --p-pcvr:#d95926; --p-pc:#199e70; --p-android:#c98500; --p-ios:#d55181; --p-tvos:#0ca30c; --p-visionos:#9085e9; --p-frame:#e66767; --p-other:#77705f; --bg:#0b0a08; --panel:#15130f; --line:#342c1e; --text:#ede7da; --muted:#a89f8c; --gold:#e6b53d; --green:#93d6a5; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(circle at 80% 0%,#372a10 0%,var(--bg) 38%) fixed; color:var(--text); font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:var(--gold); text-underline-offset:3px; }
a:hover { color:#ffe1a0; }
.wrap { width:min(1120px,100%); margin:auto; padding-inline:clamp(18px,4vw,32px); }
.masthead { border-bottom:1px solid var(--line); background:#0b0a08c9; }
.masthead-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { color:var(--text); font-size:21px; font-weight:800; letter-spacing:.025em; text-decoration:none; white-space:nowrap; }
.brand:first-letter { color:var(--gold); }
.back { font-size:14px; }
.intro { padding:clamp(60px,10vw,112px) 0 65px; }
.eyebrow { margin:0 0 12px; color:var(--gold); font:600 12px/1.4 ui-monospace,monospace; letter-spacing:.16em; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:"Arial Narrow","Barlow Semi Condensed",system-ui,sans-serif; line-height:1.05; }
h1 { max-width:780px; font-size:clamp(52px,8vw,96px); margin-bottom:23px; letter-spacing:-.035em; }
h2 { font-size:clamp(31px,4vw,46px); margin-bottom:0; }
h3 { font-size:27px; margin:0; }
.lede { max-width:640px; color:#cfc7b8; font-size:clamp(17px,2vw,20px); }
.summary { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:44px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--line); }
.summary div { padding:22px 25px; background:var(--panel); display:flex; flex-direction:column; }
.summary strong { font:700 43px/1 "Arial Narrow",system-ui,sans-serif; color:var(--gold); }
.summary span { color:var(--muted); margin-top:7px; font-size:14px; }
.record { padding:35px 0 70px; border-top:1px solid var(--line); }
.record-since { margin:0; color:var(--muted); font:600 12px/1.4 ui-monospace,monospace; letter-spacing:.08em; text-transform:uppercase; text-align:right; }
.record-tiles { margin-top:0; }
.record-tiles strong { font-variant-numeric:tabular-nums; }
.record-chart { margin:16px 0 0; padding:20px 24px 16px; background:var(--panel); border:1px solid var(--line); border-radius:10px; }
.record-chart figcaption { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; color:var(--muted); font-size:14px; }
.record-chart figcaption span:last-child { color:var(--gold); font-weight:600; }
.record-chart svg { display:block; width:100%; height:120px; }
.record-chart rect { fill:#8a6a1f; }
.record-chart rect.empty { fill:var(--line); }
.record-chart rect.today { fill:var(--gold); }
.record-axis { display:flex; justify-content:space-between; margin-top:8px; padding-top:8px; border-top:1px solid var(--line); color:var(--muted); font:12px/1.4 ui-monospace,monospace; }
.record-top { margin:18px 0 0; color:var(--muted); font-size:15px; }
.record-top strong { color:var(--text); }
.board { padding:35px 0 60px; border-top:1px solid var(--line); }
.board-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:26px; }
button { min-width:110px; padding:10px 17px; border:1px solid var(--gold); border-radius:7px; background:transparent; color:var(--gold); font:700 15px system-ui,sans-serif; cursor:pointer; }
button:hover { background:var(--gold); color:#1b1403; }
button:disabled { opacity:.6; cursor:wait; }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.status { min-height:26px; color:var(--muted); font-size:14px; }
.status.error { color:#ffad9e; }
.games { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.game { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:24px; }
.game-top { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:18px; }
.badge { white-space:nowrap; padding:5px 9px; border:1px solid #765c24; border-radius:30px; color:var(--gold); font:600 11px/1.2 ui-monospace,monospace; letter-spacing:.07em; text-transform:uppercase; }
.badge.playing { color:var(--green); border-color:#477055; }
.meta { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.meta span { border:1px solid var(--line); border-radius:4px; padding:5px 8px; color:var(--muted); font-size:13px; }
.game-time { margin-top:14px; font-size:13px; color:var(--muted); }
.game-bottom { display:flex; justify-content:space-between; gap:10px; margin-top:18px; padding-top:17px; border-top:1px solid var(--line); font-size:14px; }
.game-bottom strong { color:var(--text); }
.game-bottom .closed { color:var(--muted); }
.empty { grid-column:1/-1; padding:54px 30px; border:1px dashed var(--line); border-radius:10px; text-align:center; color:var(--muted); }
.empty strong { display:block; color:var(--text); font-size:22px; margin-bottom:8px; }
.note { color:var(--muted); margin-top:26px; font-size:14px; }
.footer { border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:14px; padding-top:25px; padding-bottom:35px; color:var(--muted); font-size:14px; }
.players { padding:35px 0 60px; border-top:1px solid var(--line); }
.range { display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.range button { min-width:0; border:0; border-radius:0; padding:9px 14px; color:var(--muted); font-size:14px; }
.range button + button { border-left:1px solid var(--line); }
.range button[aria-pressed="true"] { background:var(--gold); color:#1b1403; }
.players-top { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hero { padding:22px 25px; background:var(--panel); border:1px solid var(--line); border-radius:10px; display:flex; flex-direction:column; }
.hero strong { font:700 56px/1 "Arial Narrow",system-ui,sans-serif; color:var(--gold); font-variant-numeric:tabular-nums; }
.hero span { color:var(--text); margin-top:8px; font-size:15px; }
.hero small { color:var(--muted); margin-top:4px; font-size:13px; min-height:1.4em; }
.panel { margin:16px 0 0; padding:20px 24px 18px; background:var(--panel); border:1px solid var(--line); border-radius:10px; }
.panel figcaption { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; color:var(--text); font-size:15px; font-weight:600; }
.muted { color:var(--muted); font-weight:400; font-size:13px; }
.share-bar { display:flex; gap:2px; height:22px; border-radius:5px; overflow:hidden; background:var(--line); }
.share-bar > div { min-width:3px; transition:flex-grow .5s ease; }
.share-bar > div:hover { filter:brightness(1.25); }
.legend { list-style:none; display:flex; flex-wrap:wrap; gap:8px 20px; margin:14px 0 0; padding:0; font-size:14px; color:var(--muted); }
.legend li { display:flex; align-items:center; gap:7px; }
.legend b { color:var(--text); font-weight:600; font-variant-numeric:tabular-nums; }
.swatch { width:10px; height:10px; border-radius:3px; flex:none; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ranked { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.ranked li { display:grid; grid-template-columns:minmax(90px,38%) 1fr auto; align-items:center; gap:12px; font-size:14px; }
.ranked .name { color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ranked .track { height:10px; background:#221e16; border-radius:0 4px 4px 0; }
.ranked .fill { height:100%; background:#8a6a1f; border-radius:0 4px 4px 0; transition:width .5s ease; }
.ranked li.top .fill { background:var(--gold); }
.ranked .value { color:var(--muted); font-variant-numeric:tabular-nums; min-width:5.5em; text-align:right; }
.ranked .empty-row { display:block; color:var(--muted); }
.tag { margin-left:6px; padding:1px 6px; border:1px solid #765c24; border-radius:20px; color:var(--gold); font:600 10px/1.4 ui-monospace,monospace; letter-spacing:.06em; text-transform:uppercase; vertical-align:1px; }
.trend svg { display:block; width:100%; height:140px; }
.trend rect.hit { fill:transparent; }
.trend g:hover rect:not(.hit) { filter:brightness(1.25); }
.table-view { margin-top:16px; color:var(--muted); font-size:14px; }
.table-view summary { cursor:pointer; color:var(--gold); }
.table-view table { width:100%; margin-top:12px; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.table-view th, .table-view td { text-align:left; padding:6px 10px; border-bottom:1px solid var(--line); }
.table-view td:not(:first-child), .table-view th:not(:first-child) { text-align:right; }
.devices { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:14px; font-size:13px; color:var(--muted); }
.devices span { display:inline-flex; align-items:center; gap:6px; }
.devices b { color:var(--text); font-weight:600; }
.devices .mixed { color:#ffcf8a; }
.tip { position:fixed; z-index:10; pointer-events:none; max-width:260px; padding:9px 11px; background:#0b0a08f2; border:1px solid #765c24; border-radius:7px; color:var(--text); font-size:13px; line-height:1.45; box-shadow:0 8px 24px #000a; }
.tip[hidden] { display:none; }
.tip .row { display:flex; align-items:center; gap:7px; }
.tip .row b { margin-left:auto; padding-left:12px; font-variant-numeric:tabular-nums; }
@media(prefers-reduced-motion:reduce) { .share-bar > div, .ranked .fill { transition:none; } }
@media(max-width:760px) { .summary { grid-template-columns:repeat(2,1fr); } .split, .players-top { grid-template-columns:1fr; } .players .board-heading { flex-wrap:wrap; align-items:start; } .hero strong { font-size:44px; } .games { grid-template-columns:1fr; } .record .board-heading { flex-wrap:wrap; align-items:start; } .record-since { text-align:left; } .record-chart { padding:16px; } }
@media(max-width:480px) { .ranked li { grid-template-columns:1fr auto; row-gap:6px; } .ranked .track { grid-column:1/-1; grid-row:2; } .masthead-inner,.footer { flex-wrap:wrap; } .brand { font-size:18px; } .summary div { padding:17px; } .summary strong { font-size:35px; } .game-top { flex-wrap:wrap; } }
