:root{color-scheme:dark;font:16px/1.45 system-ui,sans-serif;color:#fff0d6;background:#15130f}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 70% 0%,#383125,transparent 60%),#15130f;min-height:100vh}
main{max-width:1230px;margin:auto;padding:18px clamp(12px,3vw,40px) 32px}
.toolbar,.brand,.tools,.settings,.buttons{display:flex;align-items:center;gap:10px}
.toolbar,.settings{justify-content:space-between}.toolbar{margin-bottom:14px}
.brand img{width:62px;height:40px;object-fit:contain}
h1,h2,p{margin:0}h1{font-size:1.05rem;font-weight:650}h2{font-size:1.35rem}
button,input{font:inherit;color:inherit;background:#29251f;border:1px solid #655c4d;border-radius:8px}
button{font-weight:600;padding:.55rem .9rem;cursor:pointer}
button:hover{background:#40382d}button:focus-visible,input:focus-visible{outline:3px solid #f9c774;outline-offset:3px}
button[aria-pressed=true]{background:#f4c374;border-color:#f4c374;color:#23190d}
.screen{overflow:hidden;border:1px solid #675337;border-radius:14px;background:#151719;box-shadow:0 12px 40px #0005}
canvas{display:block;width:100%;height:auto;aspect-ratio:1200/530}
.preview-stage{position:relative}
.history{display:flex;gap:16px;align-items:center;padding:10px 20px;background:#211e19;border-top:1px solid #564832;min-height:52px}
.history strong,legend,.names label{font-size:.75rem;letter-spacing:.045em;color:#d6c4ab}
.history .tv-credit{margin-left:auto;align-self:flex-end;white-space:nowrap;font:400 clamp(9px,.65vw,12px)/1.25 Arial,sans-serif;color:rgba(255,241,220,.48)}
#numbers,.buttons{display:flex;flex-wrap:wrap;gap:7px}#numbers span{min-width:30px;text-align:center;border-radius:5px;background:#332e26;color:#e3d5bf;font-weight:700;padding:2px 5px}#numbers .latest{color:#24190a;background:#f1c07b}
.panel{padding:19px 0}.settings p,.names small{color:#c0b6a5;font-size:.89rem}
.panel > .buttons{margin-bottom:16px}
#sequence{white-space:nowrap;border-color:#a48356}.choices{display:flex;flex-wrap:wrap;gap:12px 24px;margin:15px 0}
fieldset{padding:0;margin:0;border:0}legend{padding:0 0 5px;font-weight:700}.names{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.names input{padding:6px 10px;width:160px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.screen:fullscreen{width:100vw;height:100vh;display:flex;flex-direction:column;justify-content:center;border:0;border-radius:0;background:#121415}
.screen:fullscreen canvas{max-height:calc(100vh - 60px);object-fit:contain}
@media(max-width:650px){main{padding:10px}.toolbar{gap:4px}.brand img{width:38px}.tools{gap:4px}.tools button{padding:7px}.history{gap:8px;padding:7px 10px}.history strong{max-width:55px}.settings{align-items:flex-start;flex-wrap:wrap}#numbers span{font-size:.82rem;min-width:23px}.names small{width:100%}}
