/* Uncontrolled Squid: the TV. 1920x1080, read from across the room: everything is sized in vh/vw.
   Ink down the left, Brine down the right, the Squid in the middle leaning towards its holder. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 10vh; 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) 30vw minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 2vh 2vw; padding: 2.6vh 2.6vw; }
.t-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 2.5vw; }
.t-head h1 { font-size: 5vh; } .t-head h1 span { color: var(--squid3); }
.t-round { flex: 1; font-size: 2.6vh; color: var(--dim); font-weight: 700; }
.t-code { font: 800 4vh var(--display); letter-spacing: .5vh; color: var(--dim); }

.t-col { display: flex; flex-direction: column; gap: 1.4vh; min-height: 0; }
.t-team { display: flex; align-items: center; gap: .8vw; font: 800 4.4vh var(--display); }
.t-col.t0 .t-team { color: var(--t0); } .t-col.t1 .t-team { color: var(--t1); flex-direction: row-reverse; }
.t-team .mark { color: inherit; }
.t-team .pips { gap: .6vw; margin: 0 .8vw; } .t-team .pips i { width: 2.6vh; height: 2.6vh; border-width: .4vh; }
.t-rows { flex: 1; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 1.2vh; min-height: 0; }
.t-rows.n1 { grid-template-rows: minmax(0, 24vh); } .t-rows.n2 { grid-template-rows: repeat(2, minmax(0, 22vh)); }
.t-seat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 1vw;
  padding: .8vh 1.2vw; border-radius: 1.6vh; background: #0005; border: .35vh solid var(--line); min-height: 0; }
.t-col.t0 .t-seat { border-left: 1vh solid var(--t0); } .t-col.t1 .t-seat { border-right: 1vh solid var(--t1); grid-template-columns: auto minmax(0, 1fr); }
.t-col.t1 .t-seat .t-card { grid-column: 1; } .t-col.t1 .t-seat .t-who, .t-col.t1 .t-seat .t-sub { grid-column: 2; text-align: right; justify-content: flex-end; }
.t-seat.holds { background: #ff8a3d22; border-color: var(--squid); }
.t-seat.out { opacity: .5; }
.t-who { display: flex; align-items: center; gap: .6vw; font-size: 3.2vh; font-weight: 800; min-width: 0; }
.t-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-who .bot, .t-who .off { font-size: 1.5vh; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .2vh .6vw; border-radius: 99px; background: var(--deep3); color: var(--dim); }
.t-badge { display: inline-block; width: 3.2vh; height: 3.6vh; flex: none; }
.t-sub { grid-row: 2; font-size: 2vh; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; }
.t-card { grid-row: 1 / span 2; grid-column: 2; font-size: 4.4vh; }
.t-rows.n5 .t-card, .t-rows.n6 .t-card { font-size: 3.6vh; } .t-rows.n6 .t-who { font-size: 2.8vh; }
.tv.flip .t-card .card { animation: flip .45s ease-out; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }

.t-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6vh; min-height: 0; text-align: center; }
.t-totem { width: 22vh; height: 25vh; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.t-totem.lean0 { transform: translateX(-5vw) rotate(-10deg); } .t-totem.lean1 { transform: translateX(5vw) rotate(10deg); }
.t-totem.loose { animation: wobble 1.4s ease-in-out infinite; }
.t-sqscore { display: flex; align-items: center; gap: 1vw; color: var(--squid); font: 800 3vh var(--display); }
.t-sqscore .pips { gap: .6vw; } .t-sqscore .pips i { width: 2.4vh; height: 2.4vh; border-width: .4vh; }
.t-holder { font-size: 3vh; font-weight: 800; color: var(--squid3); }
.t-how { font-size: 2.6vh; color: var(--ink); background: #ff8a3d33; border: .3vh solid var(--squid); padding: .5vh 1.4vw; border-radius: 99px; font-weight: 700; }
.t-sqcards { display: flex; align-items: center; gap: .6vw; font-size: 3.6vh; } .t-sqcards span { font-size: 2vh; color: var(--dim); margin-right: .4vw; }
.t-feed { grid-column: 1 / -1; font-size: 3vh; text-align: center; color: var(--ink); min-height: 4vh; font-weight: 600; }
@keyframes wobble { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
