/* Ziggurat: 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: 2.4vh; z-index: 6; }
.atr .atr-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
.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: minmax(0, 1fr) 36vw; grid-template-rows: auto minmax(0, 1fr); gap: 2vh 3vw; padding: 3vh 3vw 3.4vh; }
.t-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 3vw; }
.t-head h1 { font-size: 6vh; }
.t-stage { flex: 1; font-size: 3.4vh; font-weight: 700; color: var(--stone); }
.t-code { font: 700 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-board { min-height: 0; min-width: 0; display: grid; place-items: center; }
.t-board .zig { max-width: 100%; max-height: 100%; }
.t-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 2.2vh; min-height: 0; }
.t-seats { display: grid; gap: 1.2vh; }
.t-seat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4vh 1.4vw; background: #0006; border: .4vh solid var(--line); border-radius: 1.6vh; padding: 1.1vh 1.4vw; }
.t-seat.up { border-color: var(--gold); background: #f0c04e1c; }
.t-name { font-size: 3.2vh; font-weight: 800; white-space: nowrap; 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(--bg3); color: var(--dim); margin-left: .7vw; vertical-align: middle; }
.t-score { grid-row: span 2; font: 700 7vh/1 var(--display); color: var(--gold); min-width: 5vw; text-align: right; }
.t-tiles { display: flex; align-items: center; gap: .35vw; min-height: 2.6vh; font-size: 2.2vh; color: var(--dim); font-weight: 700; }
.t-tiles i { width: 1.25vw; height: 2.6vh; border-radius: .5vh; background: var(--brick2); border: .25vh solid var(--brick); }
.t-tiles span { margin-left: .5vw; }
.t-tag { position: absolute; top: -1.6vh; left: 1.2vw; background: var(--gold); color: var(--inkd); font-size: 1.8vh; font-weight: 800; padding: .1vh .9vw; border-radius: 99px; }
.t-layers { gap: 1vw; justify-content: flex-start; flex-wrap: wrap; }
.t-layers .layer { padding: .6vh .5vw; border-width: .3vh; border-radius: 1.2vh; gap: .4vh; }
.t-layers .layer svg { width: 7vh; height: 7vh; }
.t-layers .layer span { font-size: 2vh; }
.t-feed { font-size: 2.5vh; color: var(--dim); display: grid; gap: .4vh; align-content: end; min-height: 0; overflow: hidden; } .t-feed div:last-of-type { color: var(--ink); }
.t-changes { font-size: 2vh; color: var(--dim); text-align: right; }
.t-banner { position: fixed; right: 3vw; width: 36vw; top: 60vh; z-index: 8; pointer-events: none; padding: 1.4vh 1vw; border-radius: 1.6vh; font: 700 4.2vh var(--display); text-align: center; background: var(--stone); color: var(--inkd); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-banner.good { background: var(--turq); color: #05231f; } .t-banner.level { background: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
@keyframes bannerin { from { opacity: 0; transform: translateY(-2vh); } to { opacity: 1; transform: none; } }
