:root{color-scheme:dark;background:#111917;color:#eef6ef;font:16px system-ui,sans-serif;--green:#82edaa;--orange:#ffab68;--muted:#aabdb2}
*{box-sizing:border-box}
body{margin:0}
main{max-width:1220px;margin:auto;padding:clamp(20px,5vw,68px)}
header{margin-bottom:30px}
header p{color:var(--muted);margin:.7rem 0}
.kicker{color:var(--green);font-size:.875rem;letter-spacing:.16em;font-weight:700}
h1{font-size:clamp(2.65rem,7vw,5rem);line-height:1;margin:.15em 0;letter-spacing:-.065em}
em{color:var(--green);font-style:normal}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px, .37fr);gap:18px}
.stage,aside{border:1px solid #34473e;border-radius:18px;background:#18231e;overflow:hidden}
.stage{position:relative;display:grid;place-items:center;min-height:310px;align-self:start}
.empty{width:100%;display:grid;justify-items:center;gap:10px;text-align:center;padding:36px 10px}
.empty[hidden]{display:none}
.empty span,#status{color:var(--muted)}
.checkers{width:120px;aspect-ratio:1;border-radius:8px;background:repeating-conic-gradient(#2c483a 0% 25%,#547863 0% 50%) 0/30px 30px;margin-bottom:12px}
video,canvas{width:100%;display:block}
[hidden]{display:none!important}
#overlay{position:absolute;inset:0;height:100%;touch-action:none}
aside{padding:18px;display:grid;align-content:start;gap:10px}
button,.button,select{font:inherit;color:inherit;border:1px solid #466154;border-radius:10px;background:#22342a;padding:10px 13px}
button,.button,summary{cursor:pointer}
button,.button{text-align:left}
.primary{background:var(--green);color:#13241a;border-color:transparent;font-weight:700}
button:hover,.button:hover{filter:brightness(1.2)}
:focus-visible{outline:2px solid white;outline-offset:2px}
.button{position:relative}
.button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.button:focus-within{outline:2px solid white}
details>*{margin-top:8px}
details label{display:grid;gap:4px}
details button{width:100%}
.legend{display:flex;gap:14px;margin-top:12px;font-size:.875rem}
.legend i{display:inline-block;width:.7em;height:.7em;border-radius:50%;background:var(--green);margin-right:5px}
.legend span+span i{background:var(--orange)}
#status{line-height:1.45;margin:0;overflow-wrap:anywhere}
@media(max-width:700px){.workspace{grid-template-columns:1fr}.stage{min-height:0}}
.stage:has(video:not([hidden])),.stage:has(.empty[hidden]){min-height:0}
.stage:has(video[hidden]) #overlay:not([hidden]){position:static;height:auto}
video::-webkit-media-controls{z-index:2}
#overlay:not([hidden]){z-index:1}
.stage:has(video[controls]) #overlay{pointer-events:none}
.stage:has(video[controls]) #overlay.picking{pointer-events:auto}
