/* Beacon Dice · the TV screen v1.1.0: the broadcast on a big screen. One 1920 x 1080 stage, scaled to fit any screen (the scale is one transform on the stage). */
html, body { height: 100%; }
body.tv { overflow: hidden; background: var(--ground); }
body.tv.idle { cursor: none; }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; transform: translate(-50%, -50%); }
.tvtop { position: absolute; left: 64px; right: 64px; top: 40px; display: flex; justify-content: space-between; align-items: center; }
.tvtop .lk { gap: 20px; }
.tvtop .lk .mk { width: 72px; height: 72px; }
.tvtop .lk .rw { font-size: 66px; }
.tvtop .tg { margin-top: 8px; font-size: 17px; font-weight: 600; letter-spacing: 0.14em; color: var(--grey); }
.tvclock { text-align: right; }
.tvclock #clk { font: 800 58px/1 var(--display); letter-spacing: 0.02em; color: var(--white); font-variant-numeric: tabular-nums; }
.tvclock #dte { margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: 0.12em; color: var(--grey); }

/* the live stage: the roll on the left, the dice on the right, the countdown under the roll */
.tvmain { position: absolute; left: 64px; top: 170px; width: 1160px; height: 650px; padding: 44px 52px 48px; border-radius: 28px; background: var(--panel); overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 480px minmax(0, 1fr); grid-template-areas: "tag pair" "clock pair"; gap: 0 24px; }
.tvmain::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 36% 60% at 70% 52%, var(--glow-a), var(--glow-b) 60%, transparent 78%); }
.tv .rolltag { grid-area: tag; align-self: start; font-size: 17px; }
.tv .onair { font-size: 17px; padding: 8px 18px 8px 16px; border-radius: 24px; margin-bottom: 14px; }
.tv .onair i { width: 12px; height: 12px; }
.tv .rolltag b { font-size: 136px; margin-top: 8px; }
.tv .rolltag .at { font-size: 24px; }
.tv .pair { grid-area: pair; align-self: center; margin: 0 0 30px; gap: 84px; }
.tv .pair .d { --s: 200px; }
.tv .clock { grid-area: clock; align-self: end; }
.tv #lrNext .lbl { font-size: 18px; }
.tv #lrNext .num { font-size: 116px; }
.tv .clock .k2, .tv #lrToday { font-size: 18px; }
.tv .bar { height: 10px; border-radius: 5px; margin-top: 22px; }

/* the stats desk and the QR code */
.tvside { position: absolute; left: 1264px; top: 170px; width: 592px; height: 650px; display: flex; flex-direction: column; gap: 24px; }
.tvbox { border-radius: 28px; background: var(--panel); padding: 28px 32px; }
.tvside .tvbox:first-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
#tdT { font: 800 32px/1 var(--display); letter-spacing: 0.01em; color: var(--white); }
.tv .sums { height: 156px; gap: 10px; padding-top: 44px; }
.tv .sb .v { font-size: 17px; transform: translateY(-26px); }
.tv .sl { font-size: 24px; gap: 10px; margin-top: 10px; padding-top: 10px; }
.tv .legend { margin-top: 14px; font-size: 14px; color: var(--grey); }
#fact { margin-top: 12px; min-height: 26px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: 0.06em; color: var(--acc2); }
#fact.in { animation: factIn 0.7s ease both; }
@keyframes factIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qrbox { display: flex; gap: 26px; align-items: center; }
#qr { width: 140px; height: 140px; flex: none; border-radius: 12px; overflow: hidden; }
#qr svg { display: block; width: 100%; height: 100%; }
.qrbox .k { font: 800 34px/1 var(--display); letter-spacing: 0.01em; color: var(--white); }
#qrUrl { margin-top: 12px; font: 16px var(--mono); color: var(--acc2); overflow-wrap: anywhere; }

/* earlier rolls, and the ticker along the bottom */
.tvearly { position: absolute; left: 64px; right: 64px; top: 852px; display: grid; grid-template-columns: 180px repeat(6, minmax(0, 1fr)); gap: 18px; align-items: center; }
.tvearly > .k2 { font: 800 28px/1.05 var(--display); letter-spacing: 0.01em; color: var(--white); }
.tv .ecard { flex-direction: row; justify-content: center; gap: 10px; padding: 18px 8px; border-radius: 18px; font-size: 16px; }
.tv .ecard .pr { gap: 10px; margin: 0; }
.tv .ecard span:nth-child(2) { font-size: 30px; }
.tv .mini { width: 44px; height: 44px; }
.tv .ticker { position: absolute; left: 0; right: 0; top: 1012px; height: 68px; }
.tv .tk-l { font-size: 28px; padding: 0 28px 0 64px; }
.tv .tk-r > span { font-size: 22px; gap: 28px; padding-left: 28px; }
.tv .tk-r i { width: 9px; height: 9px; }
