/* Tricky Quest: Tactics: 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: 3vw; bottom: 21vh; 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; gap: 1.4vh; padding: 2vh 1.6vw; }
.t-head { display: flex; align-items: baseline; gap: 2vw; }
.t-head h1 { font-size: 4.2vh; }
.t-floor { font-size: 2.4vh; color: var(--dim); }
.t-boss { margin-left: auto; font-size: 3vh; } .t-boss b { color: #ff6b6b; font-size: 1.3em; }
.t-code { font: 700 3.4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-main { display: grid; grid-template-columns: minmax(0, 1fr) 30vw; gap: 1.4vw; min-height: 0; }
.t-board { position: relative; min-height: 0; background: #0b0f18; border-radius: 2vh; overflow: hidden; }
.t-board svg.board { position: absolute; inset: 0; }
.pops { position: absolute; inset: 0; pointer-events: none; }
.pop { position: absolute; transform: translate(-50%, -100%); font: 900 4.2vh var(--body); animation: popup 1.8s ease-out forwards; paint-order: stroke; -webkit-text-stroke: .25vh #000; }
.pop.dmg { color: #ffda6b; } .pop.hurt { color: #ff6b6b; } .pop.heal { color: #7bf0a6; }
@keyframes popup { from { opacity: 1; margin-top: 0; } to { opacity: 0; margin-top: -6vh; } }
.restpanel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60%; background: #0e1420ee; border: .3vh solid var(--amber); border-radius: 2vh; padding: 2.4vh 2vw; font-size: 2.3vh; }
.restpanel h2 { font-size: 4vh; color: var(--amber); margin-bottom: 1vh; }
.rp-row { display: flex; gap: 1.4vw; align-items: center; padding: .8vh 0; border-bottom: 1px solid var(--line); } .rp-row b { margin-left: auto; color: var(--good); }
.t-side { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; gap: 1.2vh; min-height: 0; }
.t-phase { font: 700 2.6vh var(--display); color: var(--amber); } .t-phase .suitbig { font-size: 3.4vh; }
.t-trick { display: flex; flex-wrap: wrap; gap: .8vw; align-items: flex-end; }
.tr-slot { display: grid; justify-items: center; gap: .4vh; padding: .6vh .4vw; border-radius: 1.2vh; border-bottom: .5vh solid var(--seat, #e0475b); }
.tr-slot.up { background: #ffb84a22; }
.tr-slot.mon { margin-left: auto; border-bottom-color: #e0475b; } .tr-slot.mon.offsuit { background: #e0475b33; }
.tr-name { font-size: 1.8vh; font-weight: 800; white-space: nowrap; max-width: 9vw; overflow: hidden; text-overflow: ellipsis; } .tr-name .lead { color: var(--amber); font-size: .85em; }
.tr-note { font-size: 1.6vh; color: var(--dim); }
.tv .card { width: 6.4vw; height: 13vh; padding: .7vh .5vw; border-radius: 1.1vh; font-size: 1.5vh; }
.tv .card .c-rank { font-size: 3.4vh; } .tv .card .c-suit { font-size: 3vh; } .tv .card .c-act, .tv .card .c-pts { font-size: 1.4vh; } .tv .card .c-print { font-size: 1.4vh; }
.tv .card .chip { font-size: 1.2vh; }
.tv .card.back { font-size: 5vh; }
.t-order { font-size: 2.1vh; display: flex; flex-wrap: wrap; align-items: center; gap: .3vw; min-height: 3.4vh; }
.ord { padding: .3vh .6vw; border-radius: 99px; border: .25vh solid var(--seat, #e0475b); white-space: nowrap; }
.ord.mon { border-color: #e0475b; color: #ffb3bc; } .ord.cur { background: var(--amber); color: var(--inkd); border-color: var(--amber); } .ord.done { opacity: .4; }
.ord + .arrow, .arrow { font-style: normal; color: var(--dim); }
.t-dungeon { font-size: 2vh; color: var(--dim); } .t-dungeon b { color: #ffb3bc; }
.t-spent { display: flex; gap: .5vw; margin-top: .5vh; font-weight: 800; color: var(--ink); } .t-spent .red { color: #ff6b7e; } .t-spent .hero { text-decoration: underline; }
.t-feed { font-size: 2vh; color: var(--dim); display: grid; gap: .3vh; align-content: end; min-height: 0; overflow: hidden; } .t-feed div:last-of-type { color: var(--ink); }
.t-hold { color: var(--amber) !important; font-weight: 700; }
.t-changes { font-size: 1.8vh; color: var(--storm); }
.t-heroes { display: flex; justify-content: center; gap: 1.2vw; }
.hcard { min-width: 18vw; background: #0006; border: .35vh solid var(--seat); border-radius: 1.6vh; padding: 1vh 1vw; display: grid; gap: .5vh; font-size: 2vh; }
.hcard.acting { background: #ffb84a1f; transform: translateY(-.6vh); box-shadow: 0 0 2vh var(--seat); }
.hcard.down { opacity: .55; filter: grayscale(.7); }
.hc-top { display: flex; align-items: center; gap: .5vw; font-size: 2.3vh; white-space: nowrap; }
.hl-icon { color: var(--seat); } .hl-cls { color: var(--dim); font-size: .85em; }
.hcard .bot, .hcard .off { font-size: 1.4vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .1vh .5vw; border-radius: 99px; background: var(--night3); color: var(--dim); }
.hc-cards span { margin-left: .5vw; } .hc-cards .lost { color: #ff8a8a; }
.hc-row { display: flex; gap: .5vw; align-items: center; } .hc-row .sh { color: #9fd3ff; font-weight: 800; } .hc-row .chg { color: var(--amber); } .hc-row .ko { color: #ff6b6b; font-weight: 800; }
.t-banner { position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.2vh 2.6vw; border-radius: 99px; font: 700 3.8vh var(--display); background: var(--paper); color: var(--inkd); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; max-width: 80vw; text-align: center; }
.t-banner.good { background: var(--amber); } .t-banner.bad { background: #c2334a; color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
.t-snd { font-size: 2.6vh; padding: .2vh .6vw; border-radius: 1vh; background: transparent; border: none; }
