/* Bounce, Hop, & Crash: 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: 2vw; bottom: 2.4vh; z-index: 6; }
.atr .atr-title { font-family: var(--display); font-style: italic; }
.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) 24vw; grid-template-rows: auto minmax(0, 1fr);
  gap: 1.4vh 1.4vw; padding: 2.2vh 2vw; }
.t-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 2.4vw; border-bottom: .4vh solid var(--ink); padding-bottom: .8vh; }
.t-head h1 { font-size: 5vh; } .t-head h1 i { color: var(--hot); }
.t-round { flex: 1; font: italic 800 3.2vh var(--display); color: var(--dim); }
.t-code { font: 800 3.6vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-board { min-height: 0; display: flex; justify-content: center; align-items: center; }
.t-board svg.sheet { height: 100%; width: auto; max-width: 100%; }

.t-riders { display: flex; flex-direction: column; gap: 1vh; min-height: 0; overflow: hidden; }
.t-rider { min-width: 0; background: #fff; border: .35vh solid var(--c); border-left-width: 1.2vh; border-radius: 1.2vh; padding: .8vh 1vw; display: grid; gap: .4vh; }
.t-rider.out { border-style: dashed; background: color-mix(in srgb, var(--ct) 50%, #fff); }
.t-who { display: flex; align-items: center; gap: .6vw; font-size: 2.7vh; font-weight: 800; min-width: 0; }
.t-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-who .bot, .t-who .off, .t-who .team { font-size: 1.5vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .5vw; border-radius: 99px; background: var(--paper2); color: var(--dim); }
.t-score { margin-left: auto; font: 800 4vh var(--display); color: var(--ci); }
.t-sub { display: flex; justify-content: space-between; gap: .8vw; font-size: 1.8vh; color: var(--dim); }
.t-st { font-weight: 800; white-space: nowrap; } .t-st.on { color: var(--go); } .t-st.ban { color: var(--hot2); text-transform: uppercase; letter-spacing: .05em; }
.t-parts { min-width: 0; text-align: right; }
.t-used { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-used .dz .die { width: 3.2vh; height: 3.2vh; } .t-used .dz span { display: none; }

.t-right { display: flex; flex-direction: column; gap: 1.6vh; min-height: 0; }
.t-cap { font: italic 800 2.4vh var(--display); margin-bottom: .6vh; }
.t-rollbox, .t-lastbox { background: #fff; border: .3vh solid var(--ink); border-radius: 1.2vh; padding: 1.2vh 1vw; }
.t-roll { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6vh .3vw; }
.t-roll .dz .die { width: 6.4vh; height: 6.4vh; } .t-roll .dz span { font-size: 1.5vh; }
.t-half { font-size: 1.7vh; color: var(--dim); margin-top: .6vh; }
.t-none { color: var(--dim); font-size: 2vh; grid-column: 1 / -1; }
.t-lastbox { flex: 1; min-height: 0; overflow: hidden; }
.t-last { list-style: none; margin: 0; padding: 0; display: grid; gap: .8vh; font-size: 1.9vh; line-height: 1.3; }
.t-last li .shp { margin-right: .3vw; }
.t-last li.crash em { color: var(--hot2); font-style: normal; font-weight: 800; }
.t-last li.ban { color: var(--dim); }
.t-last .pts { color: var(--go); font-weight: 800; white-space: nowrap; }
.t-last .none { color: var(--dim); }
.t-wait { font-size: 2.1vh; font-weight: 700; color: var(--dim); min-height: 3vh; }

.t-banner { position: fixed; left: 50%; top: 11vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.2vh 3vw; border-radius: 99px;
  font: italic 800 4.4vh var(--display); background: var(--ink); color: var(--paper); box-shadow: 0 1vh 4vh #0006; animation: bannerin .3s ease-out .7s both; }
.t-banner.bad { background: var(--hot); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
