:root{--surface:#fff;--surface-2:#f3f6f7;--line:#d2dce1;--text:#34495a;--muted:#5d7280;--accent:#25869b;color-scheme:light}
body{font-weight:500}.top-nav>*,.button,.segmented button,.player-name,.summary-band h2,.inventory-item strong,.brand-stack small,.dialog label,.result-entry strong,.chat-message strong,.board-labels{font-weight:700}.summary-values strong,.pot-value,.selection-summary strong,.detail-summary strong,.dialog-heading h2{font-weight:750}body{min-height:100dvh;display:flex;flex-direction:column}.value-mark{width:18px;height:18px;display:inline-block;vertical-align:-2px;object-fit:contain}.pot-value .value-mark{width:19px;height:19px;vertical-align:0}.summary-values strong small{font-size:inherit}.skin-thumb.more{font-size:14px;font-weight:800;color:var(--text)}.detail-items .item-stack{max-height:none}.auto-select{display:flex;align-items:end;gap:10px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:12px}.auto-select label{flex:1}.auto-select input{max-width:190px}.auto-select input[readonly]{background:var(--surface-2);font-weight:700}.auto-select .button{flex:none}.auto-note{color:var(--muted);font-size:11px;margin-top:8px;min-height:17px}.round-lookup{display:flex;align-items:end;gap:10px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.round-lookup label{flex:1}.round-lookup .button{flex:none}#round-status{font-size:12px;line-height:1.6;padding-bottom:15px}.theme-control{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 0;border-top:1px solid var(--line)}.theme-control select{width:auto;max-width:160px}.header-actions>.theme-toggle{display:grid}.terms-list h3{font-size:14px;margin:20px 0 7px}.terms-list p{margin-bottom:12px;color:var(--muted)}.legal-link{color:var(--accent);text-decoration:underline}.terms-list ul{padding-left:20px;font-size:12px;line-height:1.8}.legal-fallback{padding:40px 22px;font-size:14px;line-height:1.7}
/* Compact rows: thumbnails stay on one line; app.js hides what does not fit and counts it in the +N chip. */
.game-main{min-height:84px;padding-block:10px}.game-bottom{min-height:24px;padding-block:4px}.avatar{width:40px;height:40px}.player{gap:4px}.games-list .item-stack{flex-wrap:nowrap;max-height:none;min-width:0}.skin-thumb{width:60px;height:54px}.skin-thumb img{width:56px;height:50px;object-fit:contain}
.chat-messages{height:clamp(240px,calc(100dvh - 430px),460px);min-height:240px;padding:6px 10px}.chat-message{padding:6px 0;line-height:1.45}.chat-message p{margin-top:1px}.chat-empty{padding:20px 5px}.result-entry{padding:9px 12px}.recent-panel h2{padding:9px}
/* Readable text: shared tokens instead of the faint fixed greys, and no label below 10px. */
.player-name,.pot-value,.summary-values strong,.selection-summary strong,.detail-summary strong,.dialog-heading h2,.info-list strong,.result-entry strong,.inventory-item span,.brand{color:var(--text)}
.player-note,.pot-label,.game-bottom,.summary-values>div>span,.board-labels,.text-button,.chat-message p,.chat-message time,.result-entry small,.inventory-note,.selection-summary span,.info-list p,.dialog-disclaimer,.eyebrow,.toggle-row small,.inventory-item strong,.segmented button,.sort-control,.connection,.versus,.lobby-footnote,.chat-empty,.activity-empty,.recent-panel h2,.summary-band h2,.brand-stack small,.dialog label,.detail-summary p,.join-target,.seed-settings,.empty-state{color:var(--muted)}
.player-note,.pot-label,.game-bottom,.game-bottom .text-button,.summary-values>div>span,.board-labels,.result-entry small,.chat-message time,.lobby-footnote,.inventory-note,.selection-summary span,.dialog-disclaimer,.eyebrow,.footer,.footer .text-button,.connection,.segmented button span,.test-label,.test-domain{font-size:10px}.chat-message,.chat-empty,.activity-empty,.recent-panel h2,.inventory-item strong{font-size:11px}.eyebrow{font-weight:700;letter-spacing:.04em}.segmented button.active{color:var(--text)}.footer{background:#69747c;color:#eef2f4}.footer .text-button{color:#fff}
.test-player-tag{display:inline-block;padding:1px 5px;border:1px solid #c9a35a;border-radius:2px;background:#fbf3e2;color:#7b5715;font-size:9px;font-weight:800;letter-spacing:.04em;line-height:1.3;white-space:nowrap}
.round-record{display:grid;gap:8px;margin:0 0 18px;padding:12px 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:3px;font-size:12px;line-height:1.5}.round-record>div{display:grid;grid-template-columns:165px minmax(0,1fr);gap:10px}.round-record dt{color:var(--muted)}.round-record dd{margin:0;font-weight:700;overflow-wrap:anywhere}.round-record code{font:600 12px Consolas,monospace}.round-record .record-note{font-weight:500;color:var(--muted)}
.verify-result{display:grid;gap:4px}.verify-result>strong{font-size:13px}.verify-result .check-row{display:flex;justify-content:space-between;gap:12px}.verify-result .check-row span:last-child{font-weight:700;text-align:right;overflow-wrap:anywhere}.verify-result.mismatch{background:#fff4ef;border-color:#e3c7b9;color:#8f5a3f}.verify-result small{color:inherit;opacity:.85}
[data-theme=dark]{color-scheme:dark;--surface:#232629;--surface-2:#2b2f33;--line:#444a50;--text:#edf1f3;--muted:#b2bfc6;--accent:#74cfda;--red:#ed9e94;--gold:#e0bd74}
[data-theme=dark] body{background:#191c1f;color:var(--text)}
[data-theme=dark] .topbar,[data-theme=dark] .summary-band,[data-theme=dark] .board-labels,[data-theme=dark] .chat-box,[data-theme=dark] .recent-panel,[data-theme=dark] .result-entry,[data-theme=dark] .dialog,[data-theme=dark] .segmented button.active,[data-theme=dark] .sort-control select{background:var(--surface);border-color:var(--line);color:var(--text)}
[data-theme=dark] .game,[data-theme=dark] .inventory-item,[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] .skin-thumb,[data-theme=dark] .inventory-search,[data-theme=dark] .side-select button,[data-theme=dark] .button:not(.primary){background:var(--surface-2);color:var(--text);border-color:var(--line)}
[data-theme=dark] .game:nth-child(even){background:#262a2e}[data-theme=dark] .game:hover,[data-theme=dark] .result-entry:hover,[data-theme=dark] .inventory-item:hover,[data-theme=dark] .button:not(.primary):hover,[data-theme=dark] .segmented button:hover,[data-theme=dark] .icon-button:hover{background:#30363b;color:var(--text)}
[data-theme=dark] .game-bottom,[data-theme=dark] .game.finished .game-bottom{background:#20282c;border-color:var(--line)}
[data-theme=dark] .player-name,[data-theme=dark] .pot-value,[data-theme=dark] .summary-values strong,[data-theme=dark] .summary-band h2,[data-theme=dark] .dialog-heading h2,[data-theme=dark] .dialog label,[data-theme=dark] .inventory-item strong,[data-theme=dark] .inventory-item span,[data-theme=dark] .selection-summary strong,[data-theme=dark] .detail-summary strong,[data-theme=dark] .info-list strong,[data-theme=dark] .result-entry strong,[data-theme=dark] .brand,[data-theme=dark] .top-nav>*,[data-theme=dark] .skin-thumb.more{color:var(--text)}
[data-theme=dark] .top-nav>*{border-color:var(--line)}[data-theme=dark] .top-nav>.active{background:var(--surface-2);color:#fff}[data-theme=dark] .top-nav>:hover{background:#30363b}[data-theme=dark] .game.finished .pot-value{color:#8fd3aa}[data-theme=dark] .result-value{color:#8fd3aa}
[data-theme=dark] .player-note,[data-theme=dark] .pot-label,[data-theme=dark] .game-bottom,[data-theme=dark] .summary-values>div>span,[data-theme=dark] .inventory-note,[data-theme=dark] .selection-summary span,[data-theme=dark] .info-list p,[data-theme=dark] .detail-summary p,[data-theme=dark] .dialog .muted,[data-theme=dark] .chat-message p,[data-theme=dark] .chat-heading,[data-theme=dark] .chat-empty,[data-theme=dark] .recent-panel h2,[data-theme=dark] .activity-empty,[data-theme=dark] .dialog-disclaimer{color:var(--muted)}
[data-theme=dark] .inventory-item.selected,[data-theme=dark] .side-select button.active{background:#173c42;border-color:var(--accent)}
[data-theme=dark] .primary{background:#278b9c;border-color:#278b9c;color:#fff}[data-theme=dark] .text-button,[data-theme=dark] .chat-message strong{color:var(--accent)}
[data-theme=dark] .detail-summary,[data-theme=dark] .selection-summary,[data-theme=dark] .info-list>div,[data-theme=dark] .toggle-row,[data-theme=dark] #chat-form,[data-theme=dark] .chat-message,[data-theme=dark] .recent-panel h2,[data-theme=dark] .result-entry,[data-theme=dark] .top-nav{border-color:var(--line)}
[data-theme=dark] .footer{background:#24292d}[data-theme=dark] .test-strip{background:#222f32;color:#c1d8dc}[data-theme=dark] .test-label{background:#35515a;color:#eaf5f8}[data-theme=dark] .verify-result,[data-theme=dark] .toast{background:#24382e;border-color:#476652;color:#c4dfca}[data-theme=dark] .toast.error,[data-theme=dark] .verify-result.mismatch{background:#432c28;color:#f2c3b6;border-color:#765249}
[data-theme=dark] .test-player-tag{background:#3a3122;border-color:#7a6236;color:#ecd096}
@media(max-width:1000px){.skin-thumb{width:52px;height:50px}.skin-thumb img{width:48px;height:46px}.game-main{min-height:76px}}
@media(max-width:760px){.skin-thumb{width:48px;height:44px}.skin-thumb img{width:44px;height:40px}.skin-thumb.more{font-size:13px}.avatar{width:36px;height:36px}.auto-select{flex-wrap:wrap}.auto-select label{min-width:110px}.auto-select .button{font-size:11px;padding:9px}.header-actions{gap:4px}.header-actions .theme-toggle{width:29px;height:30px;min-width:29px}.user-chip>span:last-child{max-width:54px}.brand{font-size:23px}.footer>div{flex-wrap:wrap;justify-content:flex-start;gap:8px 15px}.footer{padding-block:15px}.round-lookup .button{padding:9px 10px;font-size:11px}.round-record>div{grid-template-columns:minmax(0,1fr);gap:2px}.summary-values>div>span,.board-labels{font-size:9px}.chat-messages{height:200px;min-height:200px}}
@media(max-width:380px){.top-nav>*{font-size:10px;gap:4px;padding-inline:3px}.top-nav .lucide{width:13px;height:13px}.header-actions .button{padding:8px 8px}.brand{font-size:21px}}
