
:root{color-scheme:dark;--bg:#0b100e;--panel:#121b16;--line:#27382e;--muted:#92a69a;--green:#bbf87b;--orange:#ffaf73}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0%,#1b3020 0,transparent 55%),var(--bg);color:#eef3e9;font-family:Inter,"PingFang SC",system-ui,sans-serif;min-height:100vh}main{max-width:1150px;padding:36px 32px;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px}.brand{font-size:19px;font-weight:750;letter-spacing:-.5px}.brand b{display:inline-block;background:var(--green);color:#14200c;padding:3px 7px;border-radius:7px;margin-right:9px}.tag,.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted)}.hero{display:flex;align-items:end;justify-content:space-between;margin:34px 0 25px}.eyebrow{color:var(--green)}h1{font-size:clamp(32px,5vw,52px);letter-spacing:-2px;margin:7px 0 8px;font-weight:650}p{color:var(--muted);font-size:14px;line-height:1.7;margin:0}.live{font-size:12px;border:1px solid var(--line);padding:8px 12px;border-radius:30px;color:var(--green);white-space:nowrap}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:7px;box-shadow:0 0 10px #bbf87b88}.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.arena,.card{border:1px solid var(--line);border-radius:18px;background:#111a14d9}.arena{padding:22px}.scores{display:flex;justify-content:space-between;margin-bottom:20px}.score label{font-size:11px;color:var(--muted);letter-spacing:1px}.score strong{display:block;font-size:29px;margin-top:4px;font-weight:550;font-variant-numeric:tabular-nums}.score:first-child strong{color:var(--green)}.board{position:relative;aspect-ratio:1;background:#0c1510;border:1px solid #233929;border-radius:10px;overflow:hidden}canvas{width:100%;height:100%;display:block}.overlay{position:absolute;inset:0;display:none;align-items:center;justify-content:center;background:#0b100ea8;backdrop-filter:blur(3px);text-align:center;flex-direction:column;gap:9px}.overlay strong{font-size:27px}.overlay span{font-size:13px;color:var(--muted)}.legend{display:flex;gap:20px;align-items:center;font-size:11px;color:var(--muted);margin:17px 0 19px}.square{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;background:var(--green)}.square.food{background:var(--orange);border-radius:50%}.controls{display:flex;gap:10px}button{font:inherit;font-size:13px;cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#1a2820;color:#edf5e5;padding:11px 17px;transition:.2s}button:hover{background:#2a3c2f;border-color:#557849}button.primary{background:var(--green);color:#18300c;border-color:var(--green);font-weight:650;flex:1}button:disabled{opacity:.5;cursor:wait}.side{display:flex;flex-direction:column;gap:16px}.card{padding:22px}.card h2{font-size:14px;font-weight:600;margin:0 0 18px}.row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin:11px 0}.value{color:#eef3e9;font-variant-numeric:tabular-nums}.decision{display:flex;align-items:center;gap:13px;margin:16px 0 22px}.arrow{width:52px;height:52px;background:#243822;border:1px solid #3a552d;color:var(--green);border-radius:13px;font-size:32px;display:grid;place-items:center}.decision strong{font-size:19px;font-weight:600}.decision small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.bar-row{margin-top:14px}.bar-label{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:7px}.track{height:5px;background:#243027;border-radius:9px;overflow:hidden}.fill{height:100%;background:#67805c;border-radius:9px;transition:width .2s}.fill.winner{background:var(--green)}.empty{font-size:12px;color:var(--muted);line-height:1.8}.history{display:flex;gap:6px;flex-wrap:wrap;min-height:32px}.history span{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:7px;color:#b7d19e;font-size:18px}.note{font-size:12px;line-height:1.8;color:var(--muted)}.note b{color:#c5d6bc;font-weight:500}.foot{display:flex;justify-content:space-between;margin-top:22px;font-size:11px;color:#6c8575}.error{color:#ffb88f;font-size:12px;line-height:1.6;margin-top:12px}.status{font-size:12px;color:var(--muted);min-height:18px}a{color:var(--green);text-decoration:none}@media(max-width:800px){main{padding:22px 18px}.layout{grid-template-columns:1fr}.side{display:grid;grid-template-columns:1fr 1fr}.hero{margin-top:26px}.tag{display:none}.arena{padding:16px}.card{padding:18px}}@media(max-width:480px){.side{display:flex}.hero .live{display:none}.foot{line-height:1.8;gap:20px}h1{letter-spacing:-1px}}

/* Compact dashboard: size the board from the available viewport height. */
main{max-width:1040px;padding:16px 24px}
.top{padding-bottom:10px}.brand{font-size:15px}.brand b{padding:2px 6px}
.tag,.eyebrow{font-size:10px;letter-spacing:1.4px}
.hero{margin:14px 0 12px;align-items:center}h1{font-size:26px;letter-spacing:-.8px;margin:4px 0}
p{font-size:12px;line-height:1.5}.live{font-size:11px;padding:5px 10px}
.layout{grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.arena,.card{border-radius:12px}.arena{padding:12px}
.scores{margin-bottom:10px}.score label{font-size:10px;letter-spacing:.5px}
.score strong{font-size:22px;margin-top:2px}
.board{width:min(100%,max(200px,calc(100dvh - 365px)));margin:auto}
.legend{margin:9px 0;gap:12px;font-size:10px}
.controls{gap:8px}button{font-size:12px;padding:7px 12px;border-radius:7px}
.side{display:flex;flex-direction:column;gap:10px}.card{padding:12px 14px}
.card h2{font-size:12px;margin:0 0 9px}.status{font-size:11px;min-height:16px}
.decision{gap:9px;margin:10px 0 12px}.arrow{width:36px;height:36px;font-size:24px;border-radius:9px;flex-shrink:0}
.decision strong{font-size:15px}.decision small{font-size:10px;margin-top:3px}
.bar-row{margin-top:9px}.bar-label{font-size:11px;margin-bottom:4px}.track{height:4px}
.row{font-size:11px;margin:7px 0}.history{gap:4px;min-height:22px}
.history span{width:23px;height:23px;font-size:15px;border-radius:5px}
.note,.empty{font-size:11px;line-height:1.6}.error{font-size:11px;margin-top:8px}.error:empty{display:none}
.foot{margin-top:10px;font-size:10px;gap:12px}.overlay strong{font-size:22px}.overlay span{font-size:12px}
@media(max-height:720px) and (min-width:761px){
 main{padding-top:10px;padding-bottom:10px}.hero{margin:9px 0}.eyebrow{display:none}
 .card{padding:10px 12px}.side{gap:8px}.note{line-height:1.45}.board{width:min(100%,max(200px,calc(100dvh - 335px)))}
}
@media(max-width:760px){
 main{padding:12px}.layout{grid-template-columns:1fr;gap:10px}.tag{display:none}
 .hero{margin:10px 0}.eyebrow{display:none}h1{font-size:22px}.hero p{font-size:11px}
 .board{width:min(100%,max(180px,calc(100dvh - 470px)))}
 .side{display:grid;grid-template-columns:1fr 1fr;gap:8px}.side .card:last-child{grid-column:1/-1}
 .card{padding:10px}.note{font-size:10px;line-height:1.45}.foot{font-size:9px}.history{gap:3px}
 .history span{width:20px;height:20px}.hero .live{display:block}
}

.board svg{width:100%;height:100%;display:block}.history-spacer{height:8px}

/* Keep the agent entry compact alongside the live model demo. */
.top-links{font-size:12px;white-space:nowrap}.top-links a:hover{text-decoration:underline}
.agent-install{display:flex;align-items:center;gap:16px;margin:0 0 12px;padding:10px 14px;border:1px solid #3a552d;border-radius:12px;background:#152219}
.agent-prompt{flex:1;min-width:0}.agent-prompt label{display:block;font-size:12px;font-weight:600;color:var(--green);margin-bottom:4px}
.agent-prompt textarea{display:block;width:100%;height:34px;border:0;padding:0;resize:none;background:transparent;color:#d4e2d0;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:auto}
.agent-prompt textarea:focus-visible{outline:1px solid var(--green);outline-offset:3px;border-radius:3px}
.agent-install-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px 12px;max-width:220px;font-size:11px}
.agent-install-actions button{white-space:nowrap;background:var(--green);color:#18300c;font-weight:600}
#agent-copy-status{flex-basis:100%;font-size:10px;color:var(--muted);text-align:right}#agent-copy-status:empty{display:none}
.board{width:min(100%,max(200px,calc(100dvh - 445px)))}
@media(max-height:720px) and (min-width:761px){.board{width:min(100%,max(200px,calc(100dvh - 415px)))}}
@media(max-width:760px){.agent-install{gap:8px;flex-direction:column;align-items:stretch;padding:10px}.agent-prompt textarea{height:50px}.agent-install-actions{max-width:none;justify-content:flex-start}.agent-install-actions #agent-copy-status{flex-basis:auto;text-align:left}.board{width:min(100%,max(180px,calc(100dvh - 575px)))}.top-links{font-size:11px}}
