/* Tumblewords: 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; right: 3vw; bottom: 3vh; z-index: 6; }
.atr .atr-title { font-family: var(--slab); }
.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: .95vw; white-space: nowrap; }
.atr .atr-game label { display: inline-flex; align-items: center; gap: .4vw; }
.atr .atr-game select { font-size: .9vw; padding: .15em .3em; }
.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 auto; gap: 1.6vh; padding: 2.6vh 3vw 2.4vh; }
.t-head { display: flex; align-items: center; gap: 2.4vw; }
.t-head h1 { font-size: 5.6vh; line-height: 1; }
.t-bag { font-size: 2.8vh; color: var(--dim); font-weight: 700; } .t-bag b { color: var(--gold); font-size: 1.3em; }
.t-changes { font-size: 2.2vh; color: var(--pb); flex: 1; }
.t-head .clock { font-size: 4.4vh; margin-left: auto; }
.t-code { font: 800 4vh var(--slab); letter-spacing: .5vh; color: var(--dim); margin-left: auto; }
.t-head .clock + .t-code { margin-left: 0; }
.t-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 3vw; align-items: center; min-height: 0; }
.t-binwrap { height: 100%; aspect-ratio: 7 / 6.1; display: grid; align-items: end; }
.t-side { justify-self: center; width: min(100%, 24vw); display: grid; justify-items: center; gap: 1.2vh; padding: 3vh 1.4vw; border-radius: 3vh; background: #0005; border: .5vh solid transparent; border-top: 1.4vh solid var(--pa); }
.t-side.p1 { border-top-color: var(--pb); }
.t-side.up { border-color: var(--gold); border-top-color: var(--pa); background: #ffcf5c14; } .t-side.p1.up { border-top-color: var(--pb); }
.t-name { font-size: 4vh; font-weight: 800; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.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(--felt3); color: var(--dim); margin-right: .6vw; vertical-align: middle; }
.t-score { font: 800 17vh/1 var(--slab); color: var(--ink); }
.t-sub { font-size: 2.6vh; color: var(--dim); }
.t-rack { display: flex; gap: .4vw; min-height: 5vh; padding: 1vh .8vw 1.2vh; border-radius: 1.2vh; background: linear-gradient(#6b4a2a, #50351c); }
.t-rack i { width: 3.6vh; height: 3.9vh; border-radius: .6vh; background: linear-gradient(160deg, #fff6da, var(--tile) 55%, var(--tile2)); box-shadow: 0 .3vh 0 #a88c4e; }
.t-tag { font-size: 2.5vh; font-weight: 800; color: var(--gold); min-height: 3.4vh; }
.t-found { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1vh 1vw; min-height: 6.4vh; font-size: 3.2vh; }
.t-found-l { color: var(--dim); font-weight: 700; }
.t-found .chip { border-width: .3vh; }
.t-feed { font-size: 2.3vh; color: var(--dim); display: grid; gap: .2vh; min-height: 9.6vh; align-content: end; text-align: center; } .t-feed div:last-of-type { color: var(--ink); }
.t-banner { position: fixed; left: 50%; top: 13vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.4vh 3vw; border-radius: 99px; font: 800 6vh var(--slab); letter-spacing: .08em; background: var(--tile); color: var(--tileink); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; white-space: nowrap; }
.t-banner.p0 { box-shadow: 0 0 0 .7vh var(--pa), 0 1vh 4vh #000a; } .t-banner.p1 { box-shadow: 0 0 0 .7vh var(--pb), 0 1vh 4vh #000a; }
.t-banner.zap { background: var(--gold); }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
