/* 16 Memories: 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: 3vh; z-index: 6; }
.atr .atr-title { font-family: var(--serif); }
.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); gap: 2vh; padding: 2.6vh 3vw 3vh; }
.t-head { display: flex; align-items: center; gap: 3vw; }
.t-head h1 { font-size: 5.2vh; }
.t-mode { flex: 1; font-size: 2.6vh; color: var(--paper); font-weight: 700; line-height: 1.25; } .t-mode small { color: var(--dim); font-weight: 600; font-size: 2.2vh; }
.t-code { font: 700 4vh var(--serif); letter-spacing: .5vh; color: var(--dim); }
.t-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3vw; min-height: 0; }
.t-board { height: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.t-board .board { width: auto; height: 100%; max-height: 82vh; }
.t-board .cell .num { font-size: 11cqh; }
.t-side { display: flex; flex-direction: column; gap: 2.2vh; min-width: 0; min-height: 0; }
.t-now { display: flex; align-items: center; gap: 1.4vw; min-height: 11vh; }
.t-clock { font: 700 10vh/1 var(--serif); color: var(--teal); font-variant-numeric: tabular-nums; }
.t-clock:empty { display: none; }
.t-clock.low { color: var(--coral); }
.t-line { font: 700 4vh/1.2 var(--serif); color: var(--paper); }
.die.big { width: 9vh; height: 9vh; border-radius: 1.8vh; font-size: 5.5vh; box-shadow: 0 .6vh 0 #b9ae9b; }
.t-players { flex-direction: column; gap: 1.2vh; }
.t-players .sc { padding: 1.2vh 1.4vw; border-radius: 1.6vh; border-width: .3vh; }
.t-players .sc-name { font-size: 3.2vh; }
.t-players .sc-n { font-size: 5vh; } .t-players .sc-n small { font-size: 1.8vh; }
.t-players .sc-st { font-size: 2.2vh; }
.t-players .bot, .t-players .kid, .t-players .off { font-size: 1.6vh; padding: .2vh .6vw; }
.t-side .calls { gap: 1vh; } .t-side .calls li { font-size: 2.4vh; padding: .5vh 1vw .5vh .5vh; border-radius: 1.2vh; gap: .8vw; }
.t-side .calls li .mini { width: 5.6vh; height: 5.6vh; border-radius: .9vh; }
.t-piles { display: grid; gap: 1vh; font-size: 2.4vh; }
.t-piles div { display: flex; flex-wrap: wrap; align-items: center; gap: .5vw; }
.t-piles b { margin-right: .6vw; min-width: 8vw; }
.t-piles em { color: var(--dim); font-style: normal; }
.t-piles .mini { width: 4.6vh; height: 4.6vh; border-radius: .8vh; box-shadow: 0 0 0 .2vh #111; }
.t-feed { margin-top: auto; font-size: 2.3vh; color: var(--dim); display: grid; gap: .4vh; } .t-feed div:last-of-type { color: var(--ink); }
.t-changes { font-size: 2vh; color: var(--teal); }
.t-banner { position: fixed; left: 50%; top: 11vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.4vh 3vw; border-radius: 99px; font: 700 4.4vh var(--serif); background: var(--paper); color: var(--inkd); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; max-width: 90vw; text-align: center; }
.t-banner.good { background: var(--gold); } .t-banner.bad { background: var(--teal); color: var(--inkd); }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
