/* The Island of Doctor Necreaux: the TV. 1920x1080, read from across the room: sizes in vh/vw.
   The real board on the left with its markers, the card and the decision on the right, the agents below. */
body.tvpage { overflow: hidden; }
body.tvpage #cs-pres-slot { position: fixed; right: 1.5vw; bottom: 22vh; 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-cover { height: 22vh; border-radius: 1vh; box-shadow: 0 1vh 3vh #000a; }
.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: 113.4vh minmax(0, 1fr); grid-template-rows: 79.2vh minmax(0, 1fr); gap: 0 1vw; padding: 0; }
.board { position: relative; grid-column: 1; grid-row: 1; width: 113.4vh; height: 79.2vh; }
.board-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .mk { position: absolute; transform: translate(-50%, -50%); }
.board .countdown { width: 5.6vh; height: 5.6vh; border-radius: 1vh; box-shadow: 0 0 2vh 1vh #ff3b2a; transition: left .6s; }
.board .cd-over { width: 6vh; height: 6vh; display: grid; place-items: center; background: var(--red); color: #fff; font: 3.5vh var(--display); border-radius: 50%; }
.board .draw { width: 4.4vh; height: 4.4vh; border-radius: 50%; box-shadow: 0 0 1.5vh .4vh #6fb6ff; transition: left .4s, top .4s; }
.board .needle { position: absolute; width: 17vh; height: 1.6vh; margin-top: -.8vh; transform-origin: 0 50%; transition: transform .6s;
  background: linear-gradient(90deg, #b5121b 0 18%, #ff2a2a 18%); clip-path: polygon(0 0, 100% 45%, 100% 55%, 0 100%); filter: drop-shadow(0 .3vh .4vh #000a); }
.board .xp { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.board .xp img { width: 7vh; } .board .xp b { font: 9vh/1 var(--display); color: #fff; text-shadow: 0 .4vh 1vh #000; }
.board .loot { position: absolute; width: 6.6vh; height: 40vh; transform: translateX(-50%); }
.board .loot img.card { position: absolute; left: 0; width: 6.6vh; }
.board .slot { position: absolute; transform: translate(-50%, -50%); height: 12vh; display: flex; align-items: center; gap: .6vh; }
.board .slot img.card { height: 12vh; width: auto; }
.board .cnt { font: 3.4vh var(--display); color: #fff; background: #000a; padding: 0 .8vh; border-radius: .8vh; }
.board .loot .cnt { position: absolute; bottom: -4vh; left: 0; }
.board .up-n { position: absolute; top: -2.6vh; left: 0; white-space: nowrap; font-size: 1.7vh; font-weight: 800; color: var(--amber); background: #000b; padding: 0 .6vh; border-radius: .6vh; }

.side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 1.2vh; padding: 1.4vh 1.2vw 1vh 0; min-height: 0; overflow: hidden; }
.now { display: flex; gap: 1vw; }
.now .big img.card { height: 37vh; width: auto; }
.now .big.empty { opacity: .35; }
.now-info { min-width: 0; display: flex; flex-direction: column; gap: .8vh; }
.now-info .turn { font-size: 1.9vh; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.now-info h2 { font-size: 3.6vh; color: var(--amber); line-height: 1.05; }
.now-info .ctext { margin: 0; font-size: 1.85vh; line-height: 1.3; max-height: 18vh; overflow: hidden; }
.mon { display: flex; align-items: center; gap: 1vw; }
.mon-cv, .mon-loot { display: grid; place-items: center; width: 7vh; height: 7vh; border-radius: 50%; }
.mon-cv { background: radial-gradient(#b22, #611); } .mon-loot { background: radial-gradient(#e8b52a, #8a6510); color: var(--inkd); }
.mon-cv b, .mon-loot b { font: 3.8vh/1 var(--display); } .mon-cv span, .mon-loot span { font-size: 1.2vh; font-weight: 800; text-transform: uppercase; margin-top: -1.4vh; }
.mon-hp { display: flex; gap: .4vw; flex-wrap: wrap; flex: 1; }
.mon-hp i { width: 3vh; height: 3vh; border-radius: .6vh; border: .3vh solid var(--red); }
.mon-hp i.hit { background: var(--red); }
.mon-hp span { font-size: 1.8vh; padding: .2vh .6vw; border-radius: .6vh; background: var(--night3); } .mon-hp span.beat { background: var(--good); color: #062; text-decoration: line-through; }
.side .roll { font-size: 2.1vh; } .side .roll .rh { font-size: 2vh; } .side .re { font-size: 2.3vh; } .side .re .rnotes { font-size: 1.5vh; }
.ask { background: var(--night2); border: .25vh solid var(--amber); border-radius: 1.4vh; padding: 1vh 1vw; }
.ask-t { font: 3.2vh/1.1 var(--display); color: var(--amber); }
.ask-x { font-size: 2vh; margin-top: .4vh; }
.ask-w { font-size: 2vh; color: var(--dim); margin-top: .6vh; } .ask-w b { color: var(--ink); }
.feed { margin-top: auto; font-size: 1.75vh; color: var(--dim); display: grid; gap: .2vh; } .feed div:last-child { color: var(--ink); }

.agents { grid-column: 1 / -1; grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .8vw; padding: .8vh 1vw 1vh; min-height: 0; }
.agents .agent { padding: .6vh .6vw; border-width: .25vh; border-radius: 1.2vh; overflow: hidden; }
.agents .agent header { font-size: 2vh; margin-bottom: .4vh; gap: .5vw; }
.agents .badge { font-size: 1.2vh; }
.agents .mat { gap: .4vw; flex-wrap: nowrap; }
.agents .sk { width: 6.6vw; max-width: 9.4vh; } .agents .it { width: 4.6vw; max-width: 6.8vh; }
.agents.n1 .sk, .agents.n2 .sk { width: 9.4vh; }
.agents .sk-name, .agents .it-name { font-size: 1.3vh; }
.agents .chg { font-size: 1.6vh; } .agents .tok { font-size: 1.5vh; } .agents .att { font-size: 1.2vh; }
.t-code { position: fixed; left: .8vw; top: .5vh; z-index: 3; font: 2.6vh var(--display); letter-spacing: .4vh; color: var(--dim); }
.t-hold { position: fixed; left: 50%; bottom: 23vh; transform: translateX(-50%); color: var(--amber); font-weight: 700; font-size: 2.2vh; background: #000a; padding: .4vh 1vw; border-radius: 1vh; }
.t-banner { position: fixed; left: 34vw; top: 30vh; transform: translateX(-50%); z-index: 8; pointer-events: none; display: flex; align-items: center; gap: 1.4vw;
  padding: 1.6vh 2.4vw; border-radius: 2vh; font: 4.6vh var(--display); background: var(--paper); color: var(--inkd); box-shadow: 0 1vh 4vh #000c; animation: bannerin .3s ease-out; max-width: 60vw; }
.t-banner img { height: 24vh; border-radius: 1vh; }
.t-banner.good { background: var(--amber); } .t-banner.bad { background: var(--red); color: #fff; }
@keyframes bannerin { from { opacity: 0; transform: translate(-50%, -2vh); } to { opacity: 1; transform: translate(-50%, 0); } }
