/* Write and Roll: Powers 'n Points: the TV. 1920x1080, read from across the room: everything is sized in vh/vw.
   Two sheets side by side, the dice between them. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 9vh; 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: 2.4vw; }
.t-head h1 { font-size: 4.2vh; } .t-head h1 span { color: var(--paper); }
.t-step { flex: 1; font-size: 2.6vh; color: var(--dim); font-weight: 700; }
.t-code { font: 700 3.6vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-main { display: grid; grid-template-columns: minmax(0, 1fr) 17vw minmax(0, 1fr); gap: 1.2vw; min-height: 0; }
.t-side { display: grid; grid-template-rows: auto auto auto; gap: .8vh; align-content: start; min-width: 0; }
.t-who { display: flex; align-items: center; gap: 1vw; font-size: 2.8vh; }
.t-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-side.seat0 .t-name { color: #9db7f5; } .t-side.seat1 .t-name { color: #f2a596; }
.t-name .bot, .t-name .off { font-size: 1.5vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--desk3); color: var(--dim); margin-right: .5vw; vertical-align: middle; }
.t-name .holder { font-size: 1.6vh; vertical-align: middle; }
.t-state { font-size: 2vh; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.t-state.choosing { color: var(--hi); } .t-state.rolling { color: var(--hi); } .t-state.locked-in { color: #8fd6a3; }
.t-score { margin-left: auto; font-size: 2.4vh; color: var(--dim); } .t-score b { font: 800 5vh/1 var(--display); color: #fff; }
.t-side .sheet { --bx: 4.3vh; padding: 1.1vh; gap: 1.2vh; }
.t-side .pw-row { gap: .5vh; }
.t-lower { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1vw; align-items: start; }
.t-side .sh-track { align-self: stretch; }
.t-side .tk { font-size: 1.4vh; line-height: 2.62vh; }
.t-side .tk .mk { font-size: 1.2vh; }
.t-fx { display: flex; gap: .6vw; min-height: 3.4vh; flex-wrap: wrap; }
.t-fx span { font-size: 2vh; padding: .3vh .8vw; border-radius: 99px; background: var(--desk3); color: var(--chalk); font-weight: 700; }
.t-mid { display: flex; flex-direction: column; align-items: center; gap: 1.2vh; padding-top: 6vh; min-height: 0; }
.t-mid .die { --d: 9vh; }
.t-mid .dice { gap: 1.2vw; }
.t-sum { font-size: 3vh; color: var(--dim); } .t-sum b { font: 800 6vh/1 var(--display); color: var(--hi); }
.t-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: .8vh; width: 100%; font-size: 1.9vh; line-height: 1.25; }
.t-acts li { padding: .7vh .7vw; border-radius: 1vh; background: var(--desk2); border-left: .6vh solid var(--pc); }
.t-acts li.stopped { opacity: .6; text-decoration: line-through; }
.t-acts li.none { border-left-color: var(--line); color: var(--dim); }
.t-mid.past .dice { opacity: .45; } .t-was { font-size: 1.9vh; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.t-changes { font-size: 1.8vh; color: var(--hi); text-align: center; }
.t-feed { font-size: 2.2vh; color: var(--dim); display: grid; gap: .2vh; min-height: 7vh; } .t-feed div:last-of-type { color: var(--chalk); }
.t-banner { position: fixed; left: 50%; top: 10vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.4vh 3vw; border-radius: 99px; font: 700 3.6vh var(--display); background: var(--paper); color: var(--ink); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; max-width: 80vw; text-align: center; }
.t-banner.good { background: var(--hi); } .t-banner.bad { background: var(--red); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
