/* Abs-Trac-Toe: the TV. 1920x1080, read from across the room: everything is sized in vh/vw.
   The sheet of paper in the middle, X's panel on the left, O's on the right. */
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-columns: 22vw minmax(0, 1fr) 22vw; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.6vh 2vw; padding: 2.4vh 3vw 2.2vh; }
.t-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 2.4vw; }
.t-head h1 { font-size: 5.6vh; }
.t-stage { flex: 1; font: 700 3vh var(--display); color: var(--dim); }
.t-code { font: 700 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }
.t-board { min-height: 0; display: grid; place-items: center; }
.t-board .board { height: 100%; width: auto; aspect-ratio: 1; max-width: 100%; background: var(--paper); border-radius: 2.4vh; box-shadow: 0 1.4vh 5vh #000b; }
.t-side { align-self: center; display: grid; justify-items: center; gap: 1.2vh; padding: 3vh 1.2vw; border-radius: 2.4vh; background: #0005; border: .5vh solid var(--edge); transition: border-color .2s, transform .2s; }
.t-side.up { border-color: var(--c); transform: translateY(-.8vh); }
.t-mark { width: 13vh; height: 13vh; border-radius: 2.6vh; display: grid; place-items: center; background: var(--c); color: #fff8ea; font: 800 9.5vh/1 var(--display); }
.t-who { font-size: 3.6vh; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.t-who .bot, .t-who .off { font-size: 1.7vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--desk3); color: var(--dim); margin-left: .6vw; vertical-align: middle; }
.t-score { display: grid; justify-items: center; line-height: 1; }
.t-score b { font: 800 15vh/1 var(--display); color: var(--ink); }
.t-score span { font-size: 2.4vh; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.t-held { font-size: 2.5vh; color: var(--dim); }
.t-job { font-size: 2.5vh; font-weight: 700; color: var(--dim); text-align: center; min-height: 3.6vh; }
.t-job.on { color: var(--pen); background: var(--sun); padding: .2vh 1vw; border-radius: 99px; }
.t-feed { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 2vw; min-height: 4.6vh; padding-right: 20vw; }
.t-last { font-size: 3vh; color: var(--ink); }
.t-wait { font-size: 2.4vh; color: var(--dim); white-space: nowrap; }
.t-banner { position: fixed; left: 50%; top: 13vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.2vh 3vw; border-radius: 99px; font: 800 5vh var(--display); background: var(--paper2); color: var(--pen); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; }
.t-banner.s0 { background: var(--x); color: #fff8ea; } .t-banner.s1 { background: var(--o); color: #fff8ea; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
