/* Buck The Trend: the TV. 1920x1080, read from across the room: everything is sized in vh/vw.
   The middle of the screen is the play sheet itself (docs/board.json), the target star beside it. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; right: 2vw; top: 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 .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.6vh; padding: 2.2vh 2.4vw 2.4vh; }
.t-head { display: flex; align-items: baseline; gap: 2.4vw; }
.t-head h1 { font-size: 5vh; }
.t-turn { flex: 1; font-size: 2.4vh; color: var(--dim); font-weight: 600; } .t-turn b { color: var(--ink); }
.t-code { font: 800 4vh var(--display); letter-spacing: .5vh; color: var(--dim); margin-right: 14vw; }

.t-main { display: grid; grid-template-columns: minmax(0, 1fr) 17vw; gap: 1.6vw; min-height: 0; }
.board { display: grid; grid-template-rows: auto repeat(3, minmax(0, 1fr)) auto; border: .3vh solid var(--rule); background: var(--paper); min-height: 0; }
.b-nums { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.b-nums span { text-align: center; font: 700 2.6vh/1 var(--display); padding: .6vh 0; border-left: .15vh solid var(--rule); }
.b-nums span:first-child { border-left: 0; }
.b-nums span.red { color: var(--red); }
.b-nums.top { border-bottom: .15vh solid var(--rule); } .b-nums.bottom { border-top: .15vh solid var(--rule); }
.b-row { position: relative; min-height: 0; background: linear-gradient(90deg, var(--s0) 0 33.334%, var(--s1) 33.334% 66.667%, var(--s2) 66.667% 100%) 0 0 / calc(300% / var(--cols)) 100% repeat-x; }
.b-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); z-index: 3; }
.b-cell { border-left: .15vh solid var(--rule); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .3vh .2vw; padding: .3vh .1vw; font-size: 2.3vh; position: relative; }
.b-cell:first-child { border-left: 0; }
.b-row.r-spot::before { content: ""; position: absolute; inset: 0; background: #3a4a6a1f; z-index: 1; }
.b-cell .gain { position: absolute; top: .2vh; right: .2vw; font-size: 2.2vh; background: #fff; padding: 0 .3vw; border-radius: 1vh; box-shadow: 0 .2vh .6vh #0003; z-index: 2; }
.b-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 2; }
.b-cell .pawn { position: relative; z-index: 1; }
.b-word { font: 300 12vh/1 var(--display); color: #4b4a55; opacity: .5; letter-spacing: -.02em; }
.b-pay { font-size: 1.9vh; font-weight: 600; color: var(--ink); opacity: .8; margin-top: -.6vh; }
.b-row.right { outline: .7vh solid var(--good); outline-offset: -.35vh; z-index: 3; }
.b-row.right .b-word { opacity: .8; color: var(--good); }
.pawn { font-size: inherit; }

.t-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; text-align: center; }
.star.big { width: 15vw; height: 15vw; max-width: 30vh; max-height: 30vh; }
.star.big .star-die { font-size: 7vh; margin-top: 1vh; }
.star.big .star-cap { font-size: 1.7vh; bottom: -.5vh; }
.t-holder { font-size: 2.8vh; line-height: 1.3; } .t-holder .die-ico { font-size: 3.4vh; }
.t-rollwas { display: grid; justify-items: center; gap: 1.4vh; font-size: 2.8vh; line-height: 1.3; }
.t-rollwas .die { font-size: 7vh; }

.t-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; min-height: 9vh; }
.t-feed { font-size: 2.3vh; color: var(--dim); display: grid; gap: .3vh; } .t-feed div:last-of-type { color: var(--ink); font-weight: 600; }
.t-changes { font-size: 2.1vh; color: var(--under); text-align: right; font-weight: 700; }
.t-seats { display: flex; justify-content: center; flex-wrap: wrap; gap: 1vh .8vw; }
.t-seat { position: relative; display: flex; align-items: center; gap: .6vw; min-width: 0; background: #fff; border: .3vh solid var(--line); border-radius: 1.6vh; padding: .8vh .9vw; font-size: 2vh; }
.t-seat .pawn { font-size: 2vh; }
.t-seat.up { border-color: var(--over); box-shadow: 0 0 0 .4vh #1f7a8c55; transform: translateY(-.6vh); }
.t-seat.roller::after { content: "🎲"; position: absolute; top: -1.6vh; right: -.4vw; font-size: 2.6vh; }
.t-who { display: grid; min-width: 0; }
.t-name { font-size: 2.3vh; font-weight: 800; white-space: nowrap; max-width: 11vw; overflow: hidden; text-overflow: ellipsis; }
.t-name .bot, .t-name .off { font-size: 1.4vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .1vh .4vw; border-radius: 99px; background: var(--paper2); color: var(--dim); vertical-align: middle; }
.t-st { font-size: 1.9vh; font-weight: 700; }
.t-score { font: 800 3.6vh/1 var(--display); min-width: 2.2ch; text-align: right; }
.t-seats.many .t-seat { padding: .6vh .6vw; } .t-seats.many .t-name { max-width: 7.5vw; font-size: 2vh; } .t-seats.many .t-score { font-size: 3vh; }
.t-banner { pointer-events: none; padding: 1.2vh 2.4vw; border-radius: 99px; font: 800 4vh var(--display); margin-left: auto;
  background: var(--ink); color: var(--paper); box-shadow: 0 1vh 3vh #0004; white-space: nowrap; }
.t-banner.spot { background: var(--spot); color: #fff; }
