/* Waiting For The Game To Start: the TV. 1920x1080, read from across the room: everything is sized in vh/vw.
   The shared dice across the top, then one row per player's sheet; rows shrink to fit up to twelve. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; right: 2.4vw; bottom: 1.6vh; 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 .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 auto minmax(0, 1fr) auto; gap: 1.8vh; padding: 2.6vh 2.6vw 2vh; }
.t-head { display: flex; align-items: baseline; gap: 3vw; }
.t-head h1 { font-size: 4.6vh; }
.t-round { flex: 1; font-size: 3.6vh; color: var(--dim); font-weight: 700; } .t-round b { color: var(--ink); }
.t-code { font: 700 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }

.t-dice { display: flex; justify-content: center; gap: 2.4vw; }
.t-dice .die { width: 9.5vw; padding: .6vh .3vw; }
.t-dice .die .die-svg { max-width: none; width: 13vh; }
.t-dice .die .d-lab { font-size: 2vh; } .t-dice .die .d-lab b { display: inline; font-size: 1.8vh; color: var(--dim); }
.t-dice.rolling .die .die-svg { animation: tumble .6s ease-in-out infinite; }
@keyframes tumble { 25% { transform: rotate(-14deg) translateY(-.6vh); } 75% { transform: rotate(12deg); } }

.t-board { --rh: min(6.6vh, calc(58vh / var(--rows))); display: grid; align-content: start; gap: calc(var(--rh) * .12); min-height: 0;
  background: var(--paper); color: var(--pen); border-radius: 1.6vh; padding: 1.2vh 1.2vw; box-shadow: 0 1vh 3vh #0007; font-size: calc(var(--rh) * .46); }
.t-row { display: grid; grid-template-columns: 13vw 22vw minmax(0, 1fr) 21vw 5vw; align-items: center; gap: 1.2vw; min-height: var(--rh);
  border-bottom: .15vh solid var(--rule); padding: 0 .6vw; border-radius: .8vh; }
.t-row:last-child { border-bottom: 0; }
.t-row.lead { background: #f2b33d2e; }
.t-row.t-cols { min-height: 0; font: 700 1.7vh var(--body); color: #7a7360; text-transform: uppercase; border-bottom: .25vh solid var(--rule); padding-bottom: .4vh; }
.t-name { display: flex; align-items: center; gap: .5vw; font-weight: 800; white-space: nowrap; overflow: hidden; }
.t-name span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.t-name .tag { font-size: .55em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .1em .6em; border-radius: 99px; background: var(--paper2); color: #6b6450; flex: none; }
.t-name .tag.off { background: #ffd9d9; }
.t-row .mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25vw; width: 100%; }
.t-row .mini i { min-width: 0; background: #0000000b; color: var(--blue); font-family: var(--hand); border-bottom-width: .22em; min-width: 2.1em; }
.t-row .mini i.carried { color: var(--green); }
.t-row .mini i.keep { background: #17803f40; }
.mini-h { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25vw; } .mini-h i { font-style: normal; text-align: center; color: var(--k); font-size: 1.4vh; white-space: nowrap; }
.t-doing { display: flex; align-items: center; gap: 1vw; min-width: 0; }
.t-st { font-size: .85em; color: #6b6450; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .t-st.in { color: var(--green); } .t-st.dim { color: #b5ad96; }
.t-row.wait .t-st { font-size: .85em; color: var(--orange); }
.t-words { font-size: .78em; font-family: var(--hand); color: var(--orange); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.t-plus { margin-left: auto; color: var(--orange); font-size: 1.15em; }
.t-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4vw; }
.t-boxes i { font-style: normal; display: grid; place-items: center; height: calc(var(--rh) * .82); border: .2vh solid #00000026; border-radius: .7vh; background: #fff;
  color: var(--orange); font: 700 1em var(--hand); }
.t-boxes i.now { border-color: var(--gold2); }
.t-boxes i.junk { background: #fff1d6; }
.t-boxes.h i { height: auto; border: 0; background: none; color: #7a7360; font: 700 1.7vh var(--body); }
.t-total { text-align: right; font: 800 1.2em var(--display); }
.t-cols .t-total { font: inherit; }
.t-feed { font-size: 2.3vh; color: var(--dim); display: grid; gap: .3vh; min-height: 5.6vh; } .t-feed div:last-of-type { color: var(--ink); }
.t-banner { position: fixed; left: 50%; bottom: 1.4vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.4vh 3vw; border-radius: 99px; max-width: 80vw;
  font: 700 4vh var(--display); background: var(--paper); color: var(--pen); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; text-align: center; }
.t-banner.good { background: var(--gold); color: #2a1d05; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, 2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
