/* Pitter Pattern: 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: 3vh; 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-columns: 27vw minmax(0, 1fr) 25vw; gap: 2vw; padding: 3vh 2.5vw; }
.t-left { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.t-left h1 { font-size: 4.6vh; }
.t-code { font: 700 3.4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-die { display: flex; align-items: center; gap: 1.4vw; background: var(--bg2); border-radius: 2vh; padding: 1.6vh 1.2vw; font-size: 2.8vh; font-weight: 700; }
.t-die .die { width: 11vh; height: 11vh; flex: none; }
.t-die.stale .die { opacity: .4; }
.t-fill { font-size: 2.3vh; color: var(--dim); }
.t-phase { background: var(--bg2); border-left: .6vh solid var(--rain); border-radius: 1vh 2vh 2vh 1vh; padding: 1.6vh 1.2vw; font-size: 2.7vh; font-weight: 700; }
.t-worth { display: grid; gap: .8vh; }
.t-worth span { display: grid; grid-template-columns: 5vh 1fr auto; align-items: center; gap: 1vw; font-size: 2.3vh; color: var(--dim); }
.t-worth .pcard { width: 5vh; height: 5vh; }
.t-worth em { font-style: normal; }
.t-worth b { color: var(--ink); font-size: 3.2vh; font-family: var(--display); }
.t-feed { margin-top: auto; font-size: 2.2vh; color: var(--dim); display: grid; gap: .5vh; padding-bottom: 7vh; } .t-feed div:last-of-type { color: var(--ink); }
.t-changes { font-size: 2vh; color: var(--rain); margin-top: -6vh; padding-bottom: 7vh; }
.t-board { min-height: 0; min-width: 0; }
.t-seats { display: flex; flex-direction: column; justify-content: center; gap: 2vh; min-height: 0; }
.t-seat { position: relative; background: #0006; border: .4vh solid var(--line); border-radius: 2vh; padding: 1.4vh 1.2vw; display: grid; grid-template-columns: 1fr auto; gap: .6vh 1vw; align-items: center; }
.t-seat.up { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.t-name { grid-column: 1; font-size: 3.2vh; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: .6vw; }
.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(--bg3); color: var(--dim); }
.t-card { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: center; gap: .3vh; font-size: 1.8vh; color: var(--dim); }
.t-card .pcard { width: 9vh; height: 9vh; }
.t-num { grid-column: 1; font-size: 2.3vh; color: var(--dim); } .t-num b { color: var(--ink); font: 700 3.6vh var(--display); }
.t-tag { position: absolute; top: -1.7vh; left: 1vw; background: var(--c); color: var(--inkd); font-size: 1.8vh; font-weight: 800; padding: .2vh .9vw; border-radius: 99px; }
.t-banner { position: fixed; left: 50%; bottom: 2.2vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.1vh 2.4vw; border-radius: 99px; font: 700 3.2vh var(--display); background: var(--c, var(--tile)); 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(--rain); }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, 2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
