/* Whakka Mole: 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(--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; gap: 2vh; padding: 2.6vh 2.6vw; }
.t-head { display: flex; align-items: baseline; gap: 2.4vw; }
.t-head h1 { font-size: 5.4vh; }
.t-line { flex: 1; font-size: 3vh; color: var(--dim); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-goal { font-size: 3vh; color: var(--dim); white-space: nowrap; } .t-goal b { color: var(--sun); font-size: 1.3em; }
.t-code { font: 800 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }

.t-plots { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2vh 1.8vw; min-height: 0; }
.tv.n2 .t-plots { --cols: 2; padding: 0 12vw; }
.tv.n3 .t-plots { --cols: 3; }
.tv.n4 .t-plots { --cols: 4; }
.tv.n5 .t-plots, .tv.n6 .t-plots { --cols: 3; }
.plot { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 1vh; min-height: 0; padding: 1.4vh 1.2vw; border-radius: 2.2vh;
  background: #0000003d; border: .35vh solid var(--line); }
.plot.lead { border-color: var(--sun); }
.plot.struck { border-color: var(--red); background: #e2462c1f; }
.p-head { display: flex; align-items: center; gap: .6vw; font-size: 3vh; font-weight: 800; min-width: 0; }
.p-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-score { font: 800 5vh var(--display); color: var(--ink); }
.plot.lead .p-score { color: var(--sun); }
.p-head .bot, .p-head .off { font-size: 1.6vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--soil3); color: var(--dim); }
.p-bar { height: 1.2vh; border-radius: 1vh; background: #ffffff18; overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--grass); border-radius: 1vh; transition: width .6s; }
.p-sheet { min-height: 0; display: flex; justify-content: center; }
.p-sheet .sheet { width: auto; max-width: 100%; aspect-ratio: 1; }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 1vw; font-size: 2.3vh; color: var(--dim); min-height: 3.4vh; }
.p-by { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-lock { font-weight: 800; white-space: nowrap; } .p-lock.on { color: var(--good); }
.p-gain { font-weight: 800; color: var(--ink); white-space: nowrap; } .p-gain.good { color: var(--sun); }

.t-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2vw; min-height: 9vh; }
.t-feed { font-size: 2.4vh; color: var(--dim); display: grid; gap: .3vh; min-width: 0; } .t-feed div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .t-feed div:last-of-type { color: var(--ink); }
.t-changes { font-size: 2.2vh; color: var(--sun); text-align: right; }
.t-banner { position: fixed; left: 50%; top: 42vh; transform: translateX(-50%) rotate(-4deg); z-index: 8; pointer-events: none; padding: 1.6vh 3.4vw; border-radius: 2vh;
  font: 900 9vh var(--display); background: var(--sun); color: var(--inkd); border: .6vh solid var(--inkd); box-shadow: 0 1.4vh 5vh #000c; animation: bannerin .35s cubic-bezier(.3, 1.6, .5, 1); }
.t-banner:not(.good) { background: var(--soil3); color: var(--ink); font-size: 5vh; border-color: var(--line); }
@keyframes bannerin { from { opacity: 0; transform: translateX(-50%) rotate(-4deg) scale(.5); } }
