/* Through The Gate: the TV. 1920x1080, read from across the room: sized in vh/vw. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1vh; 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 auto; gap: 1.2vh; padding: 1.6vh 1.6vw 6.2vh; }
.t-head { display: flex; align-items: center; gap: 1.4vw; height: 7vh; }
.t-logo .emblem { height: 7vh; width: auto; display: block; }
.t-head h1 { font-size: 5vh; white-space: nowrap; }
.t-meta { display: flex; gap: 1.4vw; font-size: 2.2vh; color: var(--dim); flex: 1; align-items: center; white-space: nowrap; }
.t-meta .warn { color: var(--bad); }
.t-pile { display: flex; align-items: center; gap: .6vw; font-size: 2vh; }
.t-pile .chip { font-size: 1.9vh; max-width: 18vw; }
.t-deck { display: inline-grid; place-items: center; min-width: 4.4vh; height: 6vh; padding: 0 .5vh; border-radius: .7vh; background: repeating-linear-gradient(45deg, #3d7448 0 .7vh, #2f5e3a .7vh 1.4vh); border: .3vh solid var(--ink); color: #fff; font: 800 2.4vh var(--ui); }
.t-dl { color: var(--dim); font-size: 1.7vh; text-transform: uppercase; letter-spacing: .1em; }
/* the kit puts the room's QR/code in the top right corner: keep clear of it */
.t-code { font: 700 3.4vh var(--display); letter-spacing: .4vh; color: var(--dim); margin-right: 9vw; }

.t-main { display: grid; grid-template-columns: minmax(0, 1fr) 36vw; gap: 1.4vw; min-height: 0; }
.t-road { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1.2vh; min-height: 0; background: #fffaf066; border: .2vh solid var(--line); border-radius: 2vh; padding: 1.4vh 1.2vw; }
.t-trav { display: flex; align-items: center; gap: 1.2vw; font: 700 3.4vh var(--display); }
.t-trav .spd { font-size: 3.4vh; } .t-trav .spd .ico { width: 1.4em; height: 1.4em; }
.t-chip { font: 700 1.9vh var(--ui); padding: .3vh .8vw; border-radius: 99px; background: var(--paper3); }
.t-chip.bad { background: #f2c8bd; color: var(--bad); }
.t-ask { font: 600 2.7vh var(--body); background: var(--card); border: .25vh solid var(--gold); border-radius: 1.2vh; padding: .9vh 1vw; display: flex; align-items: center; gap: .8vw; }
.t-ask .q { display: inline-grid; place-items: center; width: 3.6vh; height: 3.6vh; border-radius: 50%; background: var(--gold); color: #fff; font: 800 2.4vh var(--ui); flex: none; }
.t-ask.hold { border-color: var(--line); color: var(--dim); }
.t-cards { display: flex; gap: 1.6vw; align-items: flex-start; justify-content: center; min-height: 0; }
.t-group { display: grid; gap: .6vh; justify-items: center; }
.t-gl { font: 700 1.8vh var(--ui); text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.t-group.now .t-gl { color: var(--gold); }
.t-gc { display: flex; gap: .8vw; }
.t-cards .card { --cw: inherit; }
.t-empty { display: grid; place-items: center; gap: 1vh; color: var(--dim); font: italic 2.6vh var(--body); text-align: center; }
.t-empty .emblem { height: 26vh; width: auto; opacity: .9; }
.t-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6vw; align-items: end; min-height: 12vh; }
.t-roll { display: flex; align-items: center; gap: 1vw; background: var(--card); border: .25vh solid var(--line2); border-radius: 1.4vh; padding: 1vh 1vw; }
.t-roll.none { visibility: hidden; }
.t-roll .dice { font-size: 4.6vh; }
.t-roll.fresh .dice .ico { animation: dieroll .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dieroll { 0% { transform: rotate(-200deg) scale(.3); opacity: 0; } 70% { transform: rotate(12deg) scale(1.15); opacity: 1; } 100% { transform: none; } }
.t-rl { font-size: 2.1vh; line-height: 1.3; } .t-bonus { color: var(--green); font-weight: 700; }
.t-feed { font-size: 2.1vh; color: var(--dim); display: grid; gap: .2vh; }
.t-feed div:last-child { color: var(--ink); font-weight: 600; }

.t-seats { display: flex; flex-direction: column; gap: .9vh; min-height: 0; overflow: hidden; }
.t-seat { flex: 1 1 0; min-height: 0; overflow: hidden; background: #fffaf099; border: .25vh solid var(--line); border-radius: 1.6vh; padding: .9vh .8vw; display: flex; flex-direction: column; gap: .5vh; }
.t-seat.up { border-color: var(--green); box-shadow: 0 0 0 .3vh #3d744855; background: #f3f7e8; }
.t-seat.asked { border-color: var(--gold); }
.t-sh { display: flex; align-items: center; gap: .6vw; }
.t-name { font: 800 2.6vh var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14vw; }
.t-name .bot, .t-name .off { font: 700 1.4vh var(--ui); text-transform: uppercase; letter-spacing: .1em; padding: .2vh .5vw; border-radius: 99px; background: var(--paper3); color: var(--dim); margin-right: .5vw; vertical-align: middle; }
.t-sh .hgs { font-size: 2.2vh; }
.t-lucky, .t-askd { font: 700 1.5vh var(--ui); padding: .2vh .6vw; border-radius: 99px; background: #e5f0d4; color: var(--green); }
.t-askd { background: #fbe9b8; color: var(--gold); margin-left: auto; }
.t-tally .tally { font-size: 2.1vh; gap: .9vw; }
.t-diary { display: flex; flex-wrap: wrap; gap: .4vh .3vw; align-content: flex-start; min-height: 0; overflow: hidden; }
.t-diary .chip { font-size: 1.62vh; padding: .1vh .4vw .1vh .3vw; }
.t-none { color: var(--dim); font-style: italic; font-size: 1.8vh; }
.t-tale { font: italic 1.8vh var(--body); color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-queen { display: flex; align-items: center; gap: 1.2vw; justify-content: center; font: 600 2.2vh var(--body); background: #e3f1f0; border: .25vh solid var(--teal); border-radius: 1.4vh; padding: .7vh 1vw; }
.t-queen .q-t { font: 700 2.4vh var(--display); color: var(--teal); }
.t-queen .q-v { padding: .2vh .6vw; border-radius: 99px; background: var(--card); } .t-queen .q-v.met { background: #cfe9cf; }
.t-changes { font-size: 1.9vh; color: var(--plum); text-align: center; }
.t-banner[hidden] { display: none; }
.t-banner { position: fixed; left: 33vw; bottom: 19vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.2vh 2.4vw; border-radius: 99px; max-width: 70vw; text-align: center;
  font: 700 3.4vh var(--display); background: var(--card); color: var(--ink); border: .3vh solid var(--gold); box-shadow: 0 1vh 4vh #3b2a1a66; animation: bannerin .3s ease-out; }
.t-banner.good { border-color: var(--green); } .t-banner.bad { border-color: var(--bad); }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
body.tvpage .best { font-size: 2.6vh; bottom: auto; top: 2vh; right: 3vw; left: auto; transform: none; }
