/* Loser's Game: 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.5vh; 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: minmax(0, 1fr) 29vw; grid-template-rows: auto minmax(0, 1fr); gap: 1.6vh 1.6vw; padding: 2.4vh 2vw; }
.t-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 2.4vw; }
.t-head h1 { font-size: 5vh; display: flex; align-items: center; gap: 1vw; white-space: nowrap; }
.t-head .logo { width: 3.6vh; height: 5vh; border-radius: .6vh; background: var(--paper); border: .3vh solid var(--gold); position: relative; transform: rotate(-8deg); box-shadow: .5vh .5vh 0 var(--stamp); }
.t-head .logo::after { content: '♣'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cblk); font: 800 3vh/1 var(--body); }
.t-info { flex: 1; font-size: 2.5vh; color: var(--dim); } .t-info b { color: var(--paper); }
.t-code { font: 700 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }

.t-felt { position: relative; min-height: 0; }
.t-oval { position: absolute; inset: 6% 10%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, var(--felt3), var(--felt2) 70%); border: 1.6vh solid #4a2e1b; box-shadow: inset 0 0 0 .4vh #6b4429, 0 1.5vh 4vh #0009, inset 0 0 6vh #0007; }
.t-seat { position: absolute; transform: translate(-50%, -50%); min-width: 12vw; background: #0b1c15e6; border: .35vh solid var(--line); border-radius: 1.6vh; padding: 1vh 1vw; display: grid; justify-items: center; gap: .4vh; z-index: 2; }
.t-seat.up { border-color: var(--gold); box-shadow: 0 0 2.4vh #e2b33c77; }
.t-seat.takes { border-color: var(--good); }
.t-name { font-size: 2.6vh; font-weight: 800; white-space: nowrap; max-width: 16vw; overflow: hidden; text-overflow: ellipsis; }
.t-name .bot, .t-name .off { font-size: 1.5vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .5vw; border-radius: 99px; background: var(--felt3); color: var(--dim); margin-left: .5vw; vertical-align: middle; }
.t-score { font: 800 5.4vh/1 var(--display); color: var(--paper); }
.t-line { display: flex; gap: 1vw; align-items: center; font-size: 2vh; color: var(--dim); white-space: nowrap; } .t-line b { color: var(--paper); font-size: 1.2em; }
.t-pile i { width: 1.4vh; height: 1.9vh; }
.t-callr { position: absolute; top: -1.6vh; left: -.6vw; background: var(--paper); color: var(--cblk); font-size: 1.8vh; font-weight: 800; padding: .2vh .7vw; border-radius: 99px; border: .2vh solid var(--gold); }
.t-callr.red { color: var(--cred); }
.t-tag { position: absolute; top: -1.6vh; right: -.6vw; background: var(--gold); color: #231a05; font-size: 1.8vh; font-weight: 800; padding: .2vh .8vw; border-radius: 99px; }
.t-mid { position: absolute; inset: 0; }
.t-play { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.t-play .pc { --cw: 7.2vh; }
.t-play.win .pc { box-shadow: 0 0 0 .5vh var(--gold), 0 0 3vh #e2b33ccc; }
.t-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 3.2vh var(--display); color: var(--dim); white-space: nowrap; }
.t-tally { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40vw; z-index: 3; display: grid; gap: 1vh; }
.t-tally h2 { text-align: center; font-size: 3vh; }
.t-tally table.tally { font-size: 2.3vh; box-shadow: 0 1vh 3vh #000a; }

.t-side { display: flex; flex-direction: column; gap: 2vh; min-height: 0; }
.t-trump .tbadge b { font-size: 5vh; border-width: .4vh; }
.t-trump .tbadge i { font: 700 3.4vh var(--display); }
.t-trump .tbadge.none i { font-size: 2.6vh; }
.t-side h3 { font-size: 2vh; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8vh; font-family: var(--body); }
.t-aside div { display: flex; gap: .5vw; } .t-aside .pc { --cw: 4.4vh; }
.t-sheetbox { min-height: 0; }
.t-sheet { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--pencil); border-radius: 1vh; overflow: hidden; font-size: 2.1vh; }
.t-sheet th { font-size: 1.6vh; padding: .6vh .3vw; border-bottom: .2vh solid #c9bd9b; max-width: 5vw; overflow: hidden; white-space: nowrap; }
.t-sheet td { text-align: center; padding: .5vh .3vw; border-bottom: .1vh dashed #d8cdae; font-weight: 800; }
.t-sheet td:first-child { color: #6d6a5f; font-weight: 700; }
.t-sheet td small { display: block; font-size: .65em; font-weight: 700; color: #2f7a3c; }
.t-sheet td.miss small { color: var(--stamp); }
.t-none { color: var(--dim); font-size: 2vh; }
.t-feed { margin-top: auto; font-size: 2.1vh; color: var(--dim); display: grid; gap: .5vh; } .t-feed div:last-child { color: var(--ink); }
.t-banner { position: fixed; left: 37%; top: 11vh; transform: translateX(-50%); z-index: 8; pointer-events: none; padding: 1.4vh 2.6vw; border-radius: 1vh; font: 700 3.6vh var(--display); background: var(--paper); color: var(--pencil); box-shadow: 0 1vh 4vh #000a; animation: bannerin .3s ease-out; max-width: 56vw; text-align: center; }
.t-banner.good { background: var(--gold); color: #231a05; } .t-banner.bad { background: var(--stamp); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
