.tv-board{--tv-wood:#432d24;--tv-brass:#d3ad78;color:#f4ebdd;background:linear-gradient(145deg,#674538,#382820 72%);border:1px solid #98714c;border-radius:14px;padding:clamp(7px,1.8vw,18px);box-shadow:0 8px 22px #21140735,inset 0 0 0 3px #ffffff0b;max-width:860px;margin:auto}
.tv-board *{box-sizing:border-box}
.tv-head,.tv-foot,.tv-side,.tv-options{display:flex;align-items:center;gap:.6em}
.tv-head{justify-content:space-between;margin:0 .25em .65em;gap:1em}.tv-side{flex-wrap:wrap;font:600 clamp(11px,1.8vw,15px)/1.2 system-ui}.tv-side small{color:#ead3ad;font-size:.8em;font-weight:400}.tv-side>.tv-chip{width:1.16em}
.tv-felt{border:2px solid #30221b;border-radius:5px;overflow:hidden;display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) .64fr repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:1.96;background:repeating-linear-gradient(85deg,#d3b68b39 0 1px,transparent 1px 4px),#d2af82;box-shadow:0 1px 0 #e0bc86}
.tv-board button{font:inherit;color:inherit;cursor:pointer}.tv-board button:disabled{opacity:1;cursor:default}.tv-board button:focus-visible{outline:3px solid #17d7d2;outline-offset:-3px;z-index:3}
.tv-point{border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;margin:0;position:relative;display:flex;align-items:center;min-width:0;min-height:0;isolation:isolate;flex-direction:column}.tv-point::before{content:'';position:absolute;inset:0 2% 3%;background:#88482e;clip-path:polygon(0 0,100% 0,50% 100%);z-index:-1}.tv-point.tv-dark::before{background:#404e4e}.tv-point.tv-lower{flex-direction:column-reverse}.tv-point.tv-lower::before{transform:rotate(180deg);inset:3% 2% 0}
.tv-num{color:#f9ead0;font:600 clamp(8px,1.25vw,12px)/1.25 ui-monospace,monospace;padding:.12em 0;z-index:1}.tv-stack{width:100%;min-height:0;flex:1;display:flex;flex-direction:column;align-items:center}.tv-lower .tv-stack{flex-direction:column-reverse}
.tv-chip{display:inline-grid;place-items:center;aspect-ratio:1;border-radius:50%;width:78%;border:1px solid var(--tv-rim);background:radial-gradient(circle at 40% 33%,var(--tv-core) 0 46%,var(--tv-rim) 49%,var(--tv-core) 57%,var(--tv-rim) 100%);box-shadow:0 1px 2px #231711a8;color:var(--tv-text);font:700 clamp(9px,1.25vw,13px)/1 system-ui}.tv-chip-0{--tv-core:#f6edd7;--tv-rim:#beaa86;--tv-text:#3e3429}.tv-chip-1{--tv-core:#3e3939;--tv-rim:#191b1b;--tv-text:#fff2d9}.tv-stack{container-type:size}.tv-stack .tv-chip{width:min(85cqw,19.5cqh);height:min(85cqw,19.5cqh);flex:none}
.tv-bar{background:linear-gradient(90deg,#433026,#674c3d,#483126)!important;grid-column:7;grid-row:1 / 3;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4%;border:0!important;border-radius:0!important;padding:0!important}.tv-bar-word{writing-mode:vertical-rl;color:var(--tv-brass);font:700 9px/1 ui-monospace,monospace;letter-spacing:.15em}.tv-bar .tv-chip{font-size:clamp(8px,1.5vw,12px)}
.tv-source::after,.tv-target::after{content:'';position:absolute;left:40%;right:40%;bottom:8%;aspect-ratio:1;border-radius:50%;background:#fff4d5;box-shadow:0 0 0 1px #352a21}.tv-lower.tv-source::after,.tv-lower.tv-target::after{bottom:auto;top:8%}.tv-bar.tv-source,.tv-bar.tv-selected,.tv-point.tv-selected,.tv-tray.tv-target{box-shadow:inset 0 0 0 3px #fff6c1!important}.tv-bar::after,.tv-tray::after{display:none}.tv-target::after{background:#74ffdb;box-shadow:0 0 0 2px #134d40;left:37%;right:37%}.tv-bar,.tv-tray{position:relative}
.tv-foot{margin-top:.6em;min-height:35px;justify-content:space-between;flex-wrap:wrap;font:500 clamp(11px,1.65vw,14px)/1.3 system-ui}.tv-instruction{flex:1}.tv-tray,.tv-small{min-height:34px;display:flex;align-items:center;justify-content:center;gap:.5em;background:#32261f;border:1px solid #b59977;border-radius:6px;padding:.35em .75em}.tv-tray:disabled{color:#d7c0a6!important}.tv-tray b{color:var(--tv-brass)}.tv-options:empty{display:none}
@media(max-width:540px){.tv-felt{aspect-ratio:1.30}.tv-side{gap:.3em}.tv-side small{display:block}.tv-foot{gap:.3em}.tv-tray,.tv-small{min-height:40px}.tv-num{font-size:9px}.tv-board{padding:6px}}
