/* Cube Digger: the TV. 1920x1080, read from across the room: everything is sized in vh/vw. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.2vh; z-index: 6; }
.atr .atr-title { font-family: var(--display); font-style: italic; text-transform: uppercase; }
.atr .atr-game { display: flex; flex-direction: column; align-items: center; gap: .8vh; }
.atr .atr-game .opts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5vh 1.2vw; font-size: .9vw; white-space: nowrap; }
.atr .atr-game label { display: inline-flex; align-items: center; gap: .4vw; }
.atr .atr-game select { font-size: .85vw; padding: .15em .3em; max-width: 17vw; }
.atr .atr-game .buttons { display: flex; gap: .7vw; }
.atr .atr-game .buttons button { font-size: 1vw; padding: .35em 1em; }

.tv { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 2vh; padding: 2.6vh 2.4vw 6.5vh; }
.t-head { display: flex; align-items: baseline; gap: 2vw; }
.t-head h1 { font-size: 6vh; text-shadow: 0 .5vh 0 #0008; }
.t-sub { flex: 1; font-size: 2.6vh; color: var(--dim); }
.t-code { font: 900 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-cube { min-height: 0; container-type: size; display: grid; place-items: center; }
.t-cube .cube { --ar: 4.9; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); }
.t-cube .cube.n5 { --ar: 5.1; grid-template-columns: repeat(5, 1fr); gap: 1vw; }
.t-row { display: grid; grid-template-columns: 26vw minmax(0, 1fr) 26vw; gap: 2vw; align-items: stretch; min-height: 22vh; }
.t-seat { background: #0007; border: .4vh solid var(--line); border-radius: 2vh; padding: 1.6vh 1.4vw; display: grid; gap: 1vh; align-content: start; }
.t-seat.s0 { border-color: #ff8f4a66; } .t-seat.s1 { border-color: #9ad4ff66; }
.t-seat.up.s0 { border-color: var(--c0); background: #ff8f4a1f; } .t-seat.up.s1 { border-color: var(--c1); background: #9ad4ff1f; }
.t-name { font-size: 3.6vh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .5vw; }
.t-name .ico { width: 1.3em; height: 1.3em; flex: none; margin: 0; }
.t-name .bot, .t-name .off { font-size: 1.7vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--pit3); color: var(--dim); }
.t-facts { display: flex; flex-wrap: wrap; gap: .6vh 1.2vw; font-size: 2.4vh; color: var(--dim); }
.t-facts span { white-space: nowrap; } .t-facts .got { color: var(--gold); font-weight: 800; }
.t-doing { font-size: 2.6vh; font-weight: 800; min-height: 3.6vh; }
.t-seat.s0 .t-doing { color: var(--c0); } .t-seat.s1 .t-doing { color: var(--c1); }
.t-doing i { display: block; font-style: normal; font-weight: 600; font-size: 2.1vh; color: var(--dim); }
.t-mid { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 1vh; min-width: 0; }
.t-feed { font-size: 2.6vh; color: var(--dim); display: flex; flex-direction: column; justify-content: flex-end; gap: .5vh; text-align: center; }
.t-feed div:last-of-type { color: var(--ink); font-size: 3vh; }
.t-feed .cap { color: var(--paper); font-size: 3.2vh; }
.t-legend { display: flex; justify-content: center; gap: 1.1vw; font-size: 1.6vh; color: var(--dim); white-space: nowrap; overflow: hidden; }
.t-banner { position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.6vh 3.4vw; border-radius: 99px; font: italic 900 5vh var(--display); text-transform: uppercase; background: var(--paper); color: var(--inkd); box-shadow: 0 1vh 4vh #000c; white-space: nowrap; }
.t-banner.fresh { animation: bannerin .3s ease-out; }
.t-banner.good { background: var(--gold); } .t-banner.bad { background: var(--bad); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
