body.kv-tv{--kv-tv-bg:var(--kv-color-pine-deep);--kv-tv-text:var(--kv-color-paper);--kv-tv-accent:var(--kv-paper-lemon);--kv-tv-number:25vmin;--kv-tv-glass:#ffffff1f;--kv-tv-veil:#00000038;--kv-tv-cell:#ffffff12;--kv-tv-muted:#ffffffb8;--kv-tv-line:#ffffff73;--kv-tv-halo:#ffffff59;--kv-focus-color:var(--kv-tv-text);--kv-focus:3px solid var(--kv-focus-color);background:var(--kv-tv-bg);min-height:100vh;color:var(--kv-tv-text);flex-direction:column;font-size:clamp(16px,2.5vmin,28px);display:flex}body.kv-tv p{margin:0}dialog{--kv-focus:3px solid currentColor}body.kv-tv main{flex:1;display:flex}.kv-tv-screen{gap:var(--kv-space-4);width:100%;padding:var(--kv-space-4) var(--kv-gutter);flex-direction:column;display:flex}.kv-tv-game{gap:var(--kv-space-3);flex-direction:column;min-width:0;display:flex}.kv-tv-top{align-items:center;gap:var(--kv-space-2) var(--kv-space-3);flex-wrap:wrap;display:flex}body.kv-tv h1{margin:0;font-size:clamp(24px,5.5vmin,72px);line-height:1.1}.kv-tv-count{padding:var(--kv-space-1) var(--kv-space-3);background:var(--kv-tv-glass);border-radius:999px;font-weight:800}.kv-tv-top-actions,.kv-tv-dock-buttons{gap:var(--kv-space-2);margin-left:auto;display:flex}.kv-tv-icon{background:var(--kv-tv-glass);width:64px;height:64px;color:inherit;cursor:pointer;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.kv-tv-icon svg{width:32px;height:32px}#sound[aria-pressed=true] .kv-tv-icon-off,#sound[aria-pressed=false] .kv-tv-icon-on{display:none}#shortcuts-open{font-size:32px;font-weight:800;line-height:1}@media (hover:none){#shortcuts-open{display:none}}.kv-tv-stage{justify-content:center;align-items:center;gap:var(--kv-space-2);--kv-tv-ball-diameter:min(70vw, 40vh);flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.kv-tv-ball{width:var(--kv-tv-ball-diameter);aspect-ratio:1;background:var(--kv-color-paper);box-shadow:0 0 0 1.7vmin var(--kv-color-mandarin), 0 0 0 2.1vmin var(--kv-color-mandarin-edge);border-radius:50%;place-items:center;display:grid}#last-number,.kv-tv-rolling{color:var(--kv-color-pine);font-size:var(--kv-tv-number);grid-area:1/1;font-weight:800;line-height:1}#last-number:empty:before{content:"?";opacity:.3}.kv-tv-rolling{filter:blur(.6vmin);place-items:center;animation:.14s ease-in-out infinite alternate kv-tv-roll;display:none}.kv-tv-ball[data-rolling] .kv-tv-rolling{display:grid}.kv-tv-ball[data-rolling] #last-number{opacity:0}@keyframes kv-tv-roll{to{rotate:2deg}}.kv-tv-reading{color:var(--kv-tv-accent);font-family:var(--kv-font-hand);font-size:clamp(18px,2.6vmin,32px)}.kv-tv-recent{text-align:center}#recent-label{margin:0 0 var(--kv-space-1);font-size:clamp(14px,2.2vmin,26px)}.kv-tv-minis{justify-content:center;align-items:center;gap:var(--kv-space-2);flex-wrap:wrap;display:flex}#last-numbers:empty,#last-numbers:not(:empty)+#tv-ready{display:none}.kv-tv-mini{background:var(--kv-color-paper);width:7vmin;height:7vmin;color:var(--kv-color-pine);box-shadow:0 0 0 .3vmin var(--kv-tv-halo);border-radius:50%;place-items:center;font-size:3.6vmin;font-weight:800;line-height:1;display:grid}.kv-tv-mini:first-child{width:9vmin;height:9vmin;box-shadow:0 0 0 .5vmin var(--kv-color-mandarin);font-size:4.6vmin}.kv-tv-status{color:var(--kv-tv-accent);text-align:center;font-size:clamp(16px,2.2vmin,26px);font-weight:800}.kv-tv-dock{align-items:center;gap:var(--kv-space-3);padding:var(--kv-space-3);border-radius:var(--kv-radius-xl);background:var(--kv-tv-veil);flex-wrap:wrap;display:flex}#draw{min-height:96px;margin-top:0;font-size:clamp(20px,3vmin,40px)}.kv-tv-seg{border:0;min-width:0;margin:0;padding:0}.kv-tv-seg legend{padding:0}.kv-tv-seg-options{gap:var(--kv-space-1);flex-wrap:wrap;display:flex}.kv-tv-seg label{display:inline-flex;position:relative}.kv-tv-seg input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.kv-tv-seg label span{min-height:var(--kv-tap);padding:0 var(--kv-space-3);color:var(--kv-tv-muted);white-space:nowrap;border-radius:999px;place-items:center;font-weight:800;display:grid}.kv-tv-seg input:focus-visible+span{outline:var(--kv-focus);outline-offset:2px}.kv-tv-seg input:checked+span{background:var(--kv-color-paper);color:var(--kv-color-pine)}.kv-tv-dock-buttons{flex-wrap:wrap}#pause,#undo,#new-game,#check,#cards-link{color:inherit;border:2px solid var(--kv-tv-line)}.kv-board{width:100%;border-spacing:var(--kv-space-1);table-layout:fixed;text-align:center;font-variant-numeric:tabular-nums}.kv-board__cell{padding:var(--kv-space-1);border-radius:var(--kv-radius);background:var(--kv-tv-cell);color:var(--kv-tv-muted);font-size:clamp(12px,2.6vmin,32px);font-weight:800;line-height:1.15;position:relative}.kv-board__cell[data-drawn=true]{background:var(--kv-color-paper);color:var(--kv-color-pine)}.kv-board__cell[data-last=true]{background:var(--kv-color-mandarin);color:var(--kv-color-paper);box-shadow:0 0 0 2px var(--kv-color-paper)}.kv-board__mark{font-size:.55em;line-height:1;position:absolute;inset:.15em .3em auto auto}@media (orientation:landscape) and (width>=720px){.kv-tv-screen{justify-content:space-between;gap:var(--kv-space-5);flex-direction:row}.kv-tv-game{flex:1;min-height:0}.kv-tv-stage{--kv-tv-ball-diameter:min(46vmin, 42vw)}#draw{flex:none;width:auto}.kv-board{width:min(42vw,78vh);height:78vh}}body.kv-tv{--kv-tv-number:28vmin}body.kv-tv main{min-height:100vh}.kv-tv-ball{margin-block:2.1vmin}.kv-tv-reading{min-height:1.5em;font-size:clamp(20px,3vmin,40px)}#tv-ready{counter-reset:kv-step;flex-wrap:wrap;place-content:center;gap:1vmin 3vmin;min-height:9vmin;margin:0;padding:0;font-size:clamp(14px,2.2vmin,26px);list-style:none;display:flex}.kv-tv-recent:has(#last-numbers:empty) #recent-label{visibility:hidden}#tv-ready li{counter-increment:kv-step;align-items:center;gap:1vmin;display:flex}#tv-ready li:before{content:counter(kv-step);background:var(--kv-color-mandarin);width:1.6em;height:1.6em;color:var(--kv-color-ink);border-radius:50%;place-items:center;font-weight:800;display:grid}.kv-tv-status{font-size:clamp(16px,3vmin,36px)}.kv-board__cell{font-size:clamp(12px,4vmin,52px)}.kv-board__cell[data-last=true]{color:var(--kv-color-ink)}#pause,#undo,#new-game,#check,#cards-link{min-height:max(var(--kv-tap), 6vmin);padding-inline:max(var(--kv-space-3), 1.6vmin);font-size:clamp(16px,2.2vmin,26px)}#pause:disabled,#undo:disabled{color:var(--kv-tv-muted);cursor:default;background:0 0;border-color:#fff3}#pause[hidden]{display:none}.kv-tv-dock-buttons,.kv-tv-seg-options,.kv-tv-top-actions{gap:max(var(--kv-space-3), 1.2vmin)}.kv-tv-seg label span{min-height:max(var(--kv-tap), 6vmin);padding-inline:max(var(--kv-space-3), 1.6vmin);font-size:clamp(16px,2.2vmin,26px)}@media (orientation:landscape) and (width>=720px){.kv-tv-stage{--kv-tv-ball-diameter:min(45vmin, 42vw)}}@media (orientation:landscape) and (height<=920px){body.kv-tv{--kv-tv-number:21vmin}.kv-tv-stage{--kv-tv-ball-diameter:min(34vmin, 38vw)}.kv-tv-screen{padding-block:var(--kv-space-3)}.kv-tv-game{gap:var(--kv-space-2)}#pause,#undo,#new-game,#check,#cards-link{padding-inline:max(var(--kv-space-2), 1.2vmin)}}@supports (height:1cqh){@media (orientation:landscape) and (width>=720px){.kv-tv-screen{height:100vh}.kv-tv-stage{--kv-tv-ball-room:calc(100cqh - 4.2vmin - var(--kv-space-2) - 1.5 * clamp(20px, 3vmin, 40px));container-type:size}.kv-tv-stage>*{--kv-tv-ball-diameter:min(45vmin, 42vw, var(--kv-tv-ball-room))}#last-number,.kv-tv-rolling{font-size:min(var(--kv-tv-number), var(--kv-tv-ball-diameter) * .62)}.kv-tv-stage .kv-mascot--tv{width:min(24vmin, 26vw, var(--kv-tv-ball-diameter) * .7)}}@media (orientation:landscape) and (height<=920px){.kv-tv-stage>*{--kv-tv-ball-diameter:min(34vmin, 38vw, var(--kv-tv-ball-room))}}}@media (orientation:landscape) and (width>=720px){#voice-warning{right:var(--kv-gutter);bottom:max(var(--kv-space-5), 4vmin);width:min(42vw,78vh);font-size:clamp(14px,2.2vmin,26px);position:absolute}}@media (orientation:landscape) and (width>=720px) and (height<=600px){#recent-label,#last-numbers{display:none}.kv-tv-icon{width:48px;height:48px}.kv-tv-icon svg{width:26px;height:26px}#shortcuts-open{font-size:26px}#draw{min-height:64px}.kv-tv-stage .kv-mascot--tv{bottom:calc(30px + var(--kv-space-2))}}.kv-tv-brand{color:var(--kv-tv-muted);letter-spacing:.02em;align-self:flex-end;margin:0;font-size:clamp(12px,1.8vmin,22px);font-weight:700}@media (orientation:landscape) and (width>=720px){body.kv-tv main{position:relative}.kv-tv-brand{right:var(--kv-gutter);position:absolute;bottom:.8vmin}}body.kv-tv .kv-dialog{width:min(720px,100% - 32px);font-size:clamp(18px,2.4vmin,28px)}#check-result{margin:var(--kv-space-3) 0 0;font-size:24px;font-weight:800}#check-dialog .kv-tcard-grid td{font-size:clamp(16px,2.4vmin,28px)}@media (orientation:landscape) and (width>=720px){body.kv-tv .kv-banner{left:auto;right:var(--kv-gutter);bottom:var(--kv-space-4);border-radius:var(--kv-radius-lg);width:min(560px,42vw)}body.kv-tv{padding-bottom:0}}
