/* Up & Over: 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: 30vh; z-index: 6; }
.atr .atr-title { font-family: var(--display); }
.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: 2vh; padding: 3vh 3vw; }
.t-head { display: flex; align-items: center; gap: 3vw; }
.t-head h1 { font-size: 5.4vh; color: var(--amber); white-space: nowrap; }
.t-goal { flex: 1; font-size: 3vh; color: var(--dim); font-weight: 700; } .t-goal b { color: var(--bar); }
.t-code { font: 800 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-main { display: grid; grid-template-columns: 24vw minmax(0, 1fr) 10vw; align-items: center; gap: 2.5vw; min-height: 0; padding: 2vh 2.5vw; border-radius: 4vh;
  background: radial-gradient(120% 100% at 50% 0%, #2b2758, #1a1838); border: .4vh solid var(--line); }
.t-sum { display: grid; justify-items: center; gap: 1vh; }
.t-sum > span { font-size: 2.4vh; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); }
.t-sum > b { font: 800 26vh/0.95 var(--display); color: var(--paper); font-variant-numeric: tabular-nums; }
.t-sum.exact > b { color: var(--good); } .t-sum.over > b { color: var(--bad); }
.t-sum .climb { width: 100%; height: 2.4vh; margin-top: 4vh; }
.t-sum .climb .cl-bar { top: -1vh; bottom: -1vh; width: .7vh; margin-left: -.35vh; } .t-sum .climb .cl-bar b { font-size: 2.6vh; }
.t-sum .climb .cl-dot { width: 3.6vh; height: 3.6vh; margin: -1.8vh 0 0 -1.8vh; border-width: .6vh; }
.t-trick { --cw: 8.4vw; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; justify-self: center; gap: 1.6vh 1.2vw; min-height: 0; max-height: 100%; overflow: hidden; padding: 1vh .6vw; box-sizing: content-box; }
.t-trick .card { border-width: .25vh; box-shadow: 0 .6vh 1.6vh #0008; }
.t-trick .t-card { gap: .5vh; }
.t-trick .t-card .t-count { font-size: 3vh; } .t-trick .t-card .t-who { font-size: 2vh; max-width: calc(var(--cw) + 1vw); }
.t-trick.many .t-card .t-count { font-size: 2.4vh; } .t-trick.many .t-card .t-who { font-size: 1.7vh; }
.t-trick .t-card.latest .card { box-shadow: 0 0 0 .6vh var(--amber), 0 .8vh 2vh #0009; }
.t-deck { display: grid; justify-items: center; gap: .6vh; color: var(--dim); font-size: 2vh; }
.t-deck i { width: 6vw; aspect-ratio: 5 / 7; border-radius: 1vh; background: repeating-linear-gradient(45deg, var(--night3) 0 .8vh, var(--line) .8vh 1.6vh); border: .3vh solid var(--line); box-shadow: .5vh .5vh 0 #0006, 1vh 1vh 0 #0004; }
.t-deck b { font: 800 4vh var(--display); color: var(--ink); }
.t-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; min-height: 10vh; }
.t-feed { flex: 1 1 0; min-width: 0; font-size: 2.5vh; color: var(--dim); display: grid; gap: .3vh; } .t-feed div:last-of-type { color: var(--ink); }
.t-changes { flex: 0 1 auto; max-width: 22vw; font-size: 2.2vh; color: var(--bar); text-align: right; }
.t-seats { display: flex; justify-content: center; align-items: center; gap: .8vw; }
.t-arrow { font-size: 4vh; color: var(--line); font-weight: 800; }
.t-seat { position: relative; min-width: 14vw; background: #0006; border: .4vh solid var(--line); border-radius: 2vh; padding: 1.2vh 1.2vw; display: grid; gap: .6vh; justify-items: center; }
.t-seat.up { border-color: var(--amber); background: #ff85521c; transform: translateY(-.8vh); }
.t-seat.took { border-color: var(--good); background: #2fd6a81f; }
.t-name { font-size: 2.8vh; font-weight: 800; white-space: nowrap; max-width: 15vw; overflow: hidden; text-overflow: ellipsis; }
.t-name .bot, .t-name .off { font-size: 1.6vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--night3); color: var(--dim); margin-right: .6vw; vertical-align: middle; }
.t-tricks { display: flex; align-items: baseline; gap: .5vw; } .t-tricks b { font: 800 6vh/1 var(--display); color: var(--bar); font-variant-numeric: tabular-nums; } .t-tricks span { font-size: 2vh; color: var(--dim); }
.t-cards { display: flex; gap: .35vw; min-height: 4.4vh; }
.t-cards i { width: 3.1vh; height: 4.4vh; border-radius: .6vh; background: repeating-linear-gradient(45deg, var(--night3) 0 .6vh, var(--line) .6vh 1.2vh); border: .25vh solid var(--line); font-style: normal; }
.t-tag { position: absolute; top: -1.8vh; right: -.6vw; background: var(--amber); color: var(--inkd); font-size: 1.9vh; font-weight: 800; padding: .2vh .9vw; border-radius: 99px; }
.t-tag.good { background: var(--good); } .t-tag.dim { background: var(--night3); color: var(--dim); }
.t-banner { flex: none; align-self: center; padding: 1.2vh 2.6vw; border-radius: 99px; font: 800 4.2vh var(--display); background: var(--paper); color: var(--inkd); box-shadow: 0 1vh 4vh #000a; white-space: nowrap; }
.t-banner.in { animation: bannerin .3s ease-out; }
.t-banner.good { background: var(--good); } .t-banner.bad { background: var(--bad); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translateY(-2vh); } to { opacity: 1; transform: none; } }
