:root { --ink:#141414; --paper:#fff; --floor:#e6e6e6; }
* { box-sizing:border-box; }
body { margin:0; background:#f0f0f0; color:var(--ink); font:14px/1.5 'Microsoft YaHei','PingFang SC',Arial,sans-serif; }
.wrap { max-width:1800px; margin:auto; padding:16px 20px; }
header,.bar,.hud { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
header { margin-bottom:12px; }
h1 { margin:0; font-size:23px; }
h2 { margin:0 0 10px; font-size:17px; }
.sub,.note { color:#555; font-size:12px; }
.bar { margin-bottom:16px; gap:10px; }
.bar label { display:flex; align-items:center; gap:6px; }
button,select { font:inherit; font-weight:700; background:#fff; border:2px solid var(--ink); padding:7px 12px; cursor:pointer; }
button { box-shadow:3px 3px 0 var(--ink); }
button:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--ink); }
button.on,#btnApply { background:var(--ink); color:#fff; }
input[type=checkbox] { accent-color:var(--ink); width:16px; height:16px; }
.arena-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:16px; align-items:start; }
.panel { border:2px solid var(--ink); background:var(--paper); padding:12px; box-shadow:3px 3px 0 var(--ink); min-width:0; }
.stage { padding:8px; }
canvas { display:block; width:100%; aspect-ratio:8 / 5; background:var(--floor); }
.hud { margin:8px 4px 0; gap:8px 16px; font-size:13px; }
.hud b,td { font-variant-numeric:tabular-nums; }
#hBanner { margin-left:auto; }
aside { display:grid; gap:16px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th,td { padding:8px 3px; text-align:center; border-bottom:1px solid #ddd; }
th:first-child,td:first-child { text-align:left; }
.identity { display:flex; align-items:center; gap:7px; font-weight:700; overflow-wrap:anywhere; }
.sw { display:inline-block; width:13px; height:13px; border:1px solid #141414; flex:none; }
.status { display:block; color:#555; font-size:11px; margin-left:20px; }
tr.dead .identity { color:#666; }
tr.win { background:#fff4c5; }
.result { font-weight:700; font-size:13px; margin:12px 0 0; min-height:20px; }
.players { display:grid; grid-template-columns:1fr 1fr; gap:10px 6px; }
.players label { display:flex; align-items:center; gap:5px; font-size:13px; cursor:pointer; }
.setup-actions { display:flex; gap:12px; margin-top:16px; }
.model-status { margin:12px 0 0; padding:9px; background:#f3efff; font-size:12px; line-height:1.7; }
#inferenceHud { color:#555; font-size:12px; }
button:disabled { opacity:.5; cursor:wait; }
.setup-actions button { padding:6px 10px; font-size:13px; }
#selectionError { color:#a51c16; font-size:12px; margin-bottom:0; }
.note { line-height:1.8; }
@media (min-width:1400px) { .arena-layout { grid-template-columns:minmax(0,min(100% - 366px,calc((100vh - 210px) * 1.6))) 350px; justify-content:center; } }
@media (max-width:900px) { .arena-layout { grid-template-columns:1fr; } aside { grid-template-columns:1fr 1fr; align-items:start; } }
@media (max-width:560px) { .wrap { padding:12px 10px; } h1 { font-size:19px; } aside { grid-template-columns:1fr; } button,select { font-size:12px; padding:6px 8px; } .hud { font-size:12px; } }
