/* The backdrop may bleed. All readable stage content fits in the 5% title-safe region. */
html.tv-mode,
body.tv-mode {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050711;
}
#main-content.tv-viewport,
#main-content.tv-viewport:fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: #f2f3ff;
  background: #050711;
  font: 28px/1.2 var(--sans, Arial, sans-serif);
}
.tv-stage,
.tv-stage * {
  box-sizing: border-box;
}
.tv-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, -50%) scale(var(--tv-scale, 1));
  transform-origin: center;
  background:
    radial-gradient(ellipse at 93% 1%, #35316b 0%, transparent 45%),
    radial-gradient(ellipse at -8% 108%, #124655 0%, transparent 45%),
    linear-gradient(120deg, #101a32, #131831 62%, #201a3b);
}
.tv-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.tv-atmosphere::before,
.tv-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 105% -52%,
    transparent 0 84px,
    #aca7f020 86px 88px,
    transparent 90px 118px
  );
}
.tv-atmosphere::after {
  transform: rotate(180deg);
  opacity: 0.45;
}
.tv-safe {
  position: absolute;
  inset: 54px 96px;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 130px;
  gap: 24px;
}
.tv-mast {
  display: flex;
  gap: 34px;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 2px solid #b7c0ee38;
  min-width: 0;
  padding-right: 170px;
}
.tv-brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font: 750 44px/0.98 var(--headline, Arial, sans-serif);
  letter-spacing: -2.7px;
}
.tv-brand b {
  color: var(--aqua, #69e7dc);
  font-weight: 750;
}
.tv-brand .icon {
  width: 58px;
  height: 58px;
  padding: 7px;
  border-radius: 15px;
  color: #0f2634;
  background: var(--aqua, #69e7dc);
  stroke-width: 1.75;
}
.tv-identity {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
  font: 600 27px/1 var(--sans, Arial, sans-serif);
}
.tv-identity > span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tv-code,
.tv-label,
.tv-overline,
.tv-podium span,
.tv-live,
.tv-pack {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.085em;
}
.tv-code {
  flex: none;
  font-size: 24px;
  border: 1px solid #6b7597;
  border-radius: 6px;
  padding: 9px 12px;
}
.tv-live {
  position: absolute;
  top: 62px;
  right: 96px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b3f5eb;
  font-size: 22px;
  border: 1px solid #467d83;
  border-radius: 24px;
  padding: 0 20px;
  background: #142b39;
}
.tv-live::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #69e7dc;
  box-shadow: 0 0 12px #69e7dc66;
}
.tv-live[data-tv-connection="disconnected"] {
  background: #392b3e;
  border-color: #956481;
  color: #ffe0ee;
  font-size: 20px;
}
.tv-live[data-tv-connection="disconnected"]::before {
  background: #ed9ebe;
}
.tv-stage [hidden],
.tv-controls [hidden] {
  display: none !important;
}
.tv-round {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 66px;
  gap: 20px;
  min-height: 0;
}
.tv-question-box {
  text-align: center;
  max-width: 1660px;
  justify-self: center;
}
.tv-round-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.tv-overline,
.tv-pack {
  font-size: 23px;
  color: #7deddf;
}
.tv-pack {
  color: #d1c7f5;
  border-left: 2px solid #626b88;
  padding-left: 22px;
}
.tv-question {
  margin: 13px auto 0;
  font: 730 63px/1.08 var(--headline, Arial, sans-serif);
  letter-spacing: -2.7px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.tv-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 13px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
}
.tv-slot {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 69px minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 32px 10px 22px;
  gap: 21px;
  overflow: hidden;
  border: 2px solid #485477;
  border-radius: 13px;
  background: linear-gradient(110deg, #152038, #2a2846 50%, #19213a);
  box-shadow: inset 0 2px #b4adf31c;
}
.tv-slot.gr-hidden-answer {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 4px;
}
.tv-slot.gr-hidden-answer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 50px,
    #a5a2dc2c 52px 54px,
    transparent 56px 76px
  );
  mask-image: linear-gradient(90deg, transparent, #000 33%, #000 67%, transparent);
}
.tv-dial {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid #79709c;
  background: #272941;
  color: #e1dbff;
  font: 700 41px/1 var(--display, sans-serif);
}
.tv-slot.gr-revealed {
  border-color: #3b7a82;
  background: linear-gradient(105deg, #194850, #182e43 70%, #213448);
  box-shadow: inset 6px 0 #6ce8d9;
}
.tv-index {
  color: #72f0dd;
  border-right: 2px solid #4b8991;
  font: 700 37px/1.2 var(--display, sans-serif);
}
.tv-slot .gr-answer-text {
  font: 700 46px/1.05 var(--display, sans-serif);
  color: #f2f6ff;
  overflow-wrap: anywhere;
}
.tv-slot .gr-pts {
  color: #80efdc;
  font: 750 62px/1 var(--display, sans-serif);
}
.tv-podium {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 8px;
  min-width: 0;
}
.tv-bank,
.tv-strikes,
.tv-timer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tv-podium span {
  font-size: 20px;
  color: #c1cbe3;
}
.tv-bank b,
.tv-timer b {
  font: 700 48px/1 var(--display, sans-serif);
  color: #c1afff;
  min-width: 34px;
  font-variant-numeric: tabular-nums;
}
.tv-timer b[data-timer-status="running"] {
  color: #79eddc;
}
.tv-timer b[data-timer-status="expired"] {
  color: #ffb8cf;
}
.tv-buzz-state {
  margin: 0 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
  color: #b9f6ed;
  font-size: 30px;
}
.tv-strikes b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #97a0bb;
  background: #252a40;
  border: 1px solid #555a76;
  border-radius: 5px;
  font: 600 38px/1 var(--display, sans-serif);
}
.tv-strikes b.active {
  color: #ffe1eb;
  background: #913f65;
  border-color: #f59ebf;
}
.tv-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 0;
}
.tv-team {
  --channel: #80eede;
  --wash: #19414c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #4a5b77;
  border-radius: 13px;
  padding: 18px 30px;
  background: linear-gradient(110deg, var(--wash), #172439 60%, #1d2338);
}
.tv-team[data-team-id="b"] {
  --channel: #c1adff;
  --wash: #3c3159;
}
.tv-team::before {
  content: "";
  position: absolute;
  inset: 20px auto 20px 0;
  width: 6px;
  border-radius: 0 4px 4px 0;
  background: var(--channel);
}
.tv-team-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.tv-label {
  font-size: 19px;
  color: var(--channel);
}
.tv-team-name {
  font: 650 41px/1.03 var(--headline, sans-serif);
  letter-spacing: -1.6px;
  overflow-wrap: anywhere;
}
.tv-team-value {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.tv-team-value strong {
  color: var(--channel);
  font: 700 66px/0.86 var(--display, sans-serif);
}
.tv-team-value span {
  font-size: 19px;
  color: #c4cee3;
  line-height: 1.3;
}
.tv-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 70px;
}
.tv-invitation h1,
.tv-pair h1,
.tv-finale h1 {
  font: 750 112px/0.98 var(--headline, sans-serif);
  letter-spacing: -6px;
  margin: 18px 0;
  text-wrap: balance;
}
.tv-invitation p,
.tv-pair p {
  color: #cbd5ed;
  font-size: 34px;
  max-width: 930px;
  margin: 0;
  overflow-wrap: anywhere;
}
.tv-join-code {
  margin: 25px 0 22px;
  font: 700 108px/1 var(--display, sans-serif);
  letter-spacing: 0.14em;
  color: #97f3e9;
}
.tv-presence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 21px;
  font-size: 26px;
  color: #c5d1e7;
}
.tv-presence strong {
  color: #f0f6ff;
}
.tv-presence span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-qr-block {
  display: grid;
  justify-items: center;
  text-align: center;
  align-items: center;
  gap: 20px;
}
.tv-qr-block a {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 3px solid #99f1e0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 0 0 12px #85e5dc18;
}
.tv-qr-block img {
  display: block;
  width: 340px;
  height: 340px;
  image-rendering: pixelated;
}
.tv-qr-block p {
  font-size: 26px;
  color: #d2daee;
  max-width: 480px;
  margin: 0;
}
.tv-safe[data-tv-screen="entry"],
.tv-safe[data-tv-screen="closed"] {
  grid-template-rows: 74px minmax(0, 1fr);
}
.tv-pair {
  align-self: center;
  justify-self: center;
  width: 1120px;
  text-align: center;
}
.tv-pair p {
  max-width: 100%;
}
.tv-pair form {
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: left;
  gap: 20px;
  margin-top: 50px;
}
.tv-pair label {
  display: grid;
  gap: 12px;
  font-size: 25px;
  font-weight: 600;
}
.tv-pair input {
  font:
    650 45px/1 ui-monospace,
    monospace;
  width: 420px;
  height: 95px;
  padding: 14px 24px;
  text-transform: uppercase;
}
.tv-pair button {
  height: 95px;
  border: none;
  padding: 0 40px;
  border-radius: 8px;
  background: #69e7dc;
  color: #102330;
  font: 650 33px/1 var(--sans, sans-serif);
}
.tv-effect-layer {
  pointer-events: none;
  position: absolute;
  inset: 54px 96px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.tv-effect {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 610px;
  min-height: 265px;
  padding: 32px 70px;
  border: 2px solid #af9ff5;
  border-radius: 25px;
  background: linear-gradient(135deg, #383058, #171c38 70%);
  color: #f8f5ff;
  box-shadow: 0 12px 80px #080b20bb;
  animation: tv-intro 1.25s both;
}
.tv-effect b {
  font: 760 98px/1 var(--headline, sans-serif);
  letter-spacing: -0.055em;
}
.tv-effect-strike {
  min-width: 315px;
  min-height: 290px;
  border-color: #ff9aba;
  background: #652b4bea;
  color: #ffcedf;
  font: 700 36px/1 var(--display, sans-serif);
  text-transform: uppercase;
  animation: tv-strike 0.95s both;
}
.tv-strike-cross {
  font: 750 190px/0.72 var(--headline, sans-serif);
}
.tv-answer-reveal {
  animation: tv-reveal 0.66s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  transform-origin: 50% 50%;
}
.tv-finale {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.tv-finale h1 {
  max-width: 96%;
  font-size: 106px;
  overflow-wrap: anywhere;
  animation: tv-victory-in 0.9s ease-out both;
}
.tv-finale p {
  margin: 0;
  font: 650 48px var(--display, sans-serif);
  color: #bfb1f8;
}
.tv-victory-orbit {
  display: grid;
  place-items: center;
  position: relative;
  width: 180px;
  height: 180px;
  margin: 12px 0 24px;
  animation: tv-victory-in 1.1s both;
}
.tv-victory-orbit .icon {
  width: 94px;
  height: 94px;
  color: #9ff6e9;
}
.tv-victory-orbit i {
  position: absolute;
  width: 105px;
  height: 105px;
  border: 2px solid #a99ae4;
  border-radius: 50%;
  animation: tv-wave 2.6s ease-out 2 both;
}
.tv-victory-orbit i:nth-child(2) {
  animation-delay: 0.4s;
}
.tv-victory-orbit i:nth-child(3) {
  animation-delay: 0.8s;
}
.tv-alert {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 12px 23px;
  background: #502c45;
  color: #ffd7e7;
  border: 1px solid #ae6087;
  border-radius: 6px;
  font-size: 28px;
  text-align: center;
  z-index: 5;
}
.tv-controls {
  position: fixed;
  z-index: 7;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 98vw;
  padding: 5px 8px;
  border: 1px solid #7683aa;
  border-radius: 10px;
  background: #131a2af7;
  color: #e5ebff;
  transition: opacity 0.2s ease;
  font: 600 14px var(--sans, Arial, sans-serif);
}
.tv-controls[data-visible="false"] {
  opacity: 0;
  pointer-events: none;
}
.tv-controls button {
  border: 1px solid #46506b;
  background: #263049;
  color: inherit;
  border-radius: 5px;
  padding: 6px 9px;
  min-height: 32px;
  font: inherit;
  white-space: nowrap;
}
.tv-controls [aria-pressed="true"] {
  color: #8af0df;
  border-color: #427b7b;
}
.tv-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.tv-controls input {
  width: 72px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #79e8d6;
}
@media (max-width: 600px) {
  .tv-controls {
    flex-wrap: wrap;
    justify-content: center;
    width: max-content;
  }
}
@keyframes tv-intro {
  0% {
    opacity: 0;
    transform: scale(0.91) translateY(17px);
  }
  16%,
  79% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes tv-strike {
  0% {
    opacity: 0;
    transform: scale(1.2) rotate(-3deg);
  }
  20%,
  74% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}
@keyframes tv-reveal {
  0% {
    transform: perspective(800px) rotateX(-87deg);
    opacity: 0.1;
  }
  55% {
    transform: perspective(800px) rotateX(6deg);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}
@keyframes tv-victory-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tv-wave {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tv-viewport *,
  .tv-viewport *::before,
  .tv-viewport *::after {
    animation: none !important;
    transition: none !important;
  }
  .tv-victory-orbit i:nth-child(2) {
    transform: scale(1.3);
  }
  .tv-victory-orbit i:nth-child(3) {
    transform: scale(1.6);
  }
}
.tv-lightning-turn,
.tv-lightning-reveal {
  min-height: 0;
}
.tv-lightning-turn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: 60px;
}
.tv-lightning-turn h1 {
  font: 750 112px/1 var(--headline, sans-serif);
  letter-spacing: -0.056em;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.tv-lightning-turn p {
  color: #c4cde3;
  font-size: 36px;
}
.tv-stopwatch {
  width: 405px;
  height: 405px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 5px solid #a391e3;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 24%, #353257, #20273e 70%);
  box-shadow:
    0 0 0 14px #a491de22,
    0 0 0 30px #9384bc12;
}
.tv-stopwatch strong {
  color: #8df4e4;
  font: 750 132px/0.95 var(--display, sans-serif);
  font-variant-numeric: tabular-nums;
}
.tv-bonus-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 34px;
  border: 2px solid #5c5678;
  border-radius: 14px;
  background: linear-gradient(110deg, #2c2946, #1d283c);
}
.tv-bonus-footer strong {
  display: flex;
  gap: 20px;
  align-items: center;
  font: 650 38px/1 var(--headline, sans-serif);
}
.tv-bonus-footer strong b {
  font: 700 76px/1 var(--display, sans-serif);
  color: #bda7ff;
}
.tv-bonus-footer span {
  color: #d2d7eb;
  font-size: 32px;
}
.tv-lightning-reveal {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}
.tv-l-prompt {
  text-align: center;
}
.tv-l-prompt h1 {
  margin: 8px auto 0;
  font: 700 50px/1.05 var(--headline, sans-serif);
  max-width: 1600px;
  text-wrap: balance;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.tv-bonus-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-height: 0;
}
.tv-bonus-column {
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.tv-bonus-column h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 40px/1 var(--headline, sans-serif);
  color: #7ae8d7;
  margin: 0;
  overflow-wrap: anywhere;
}
.tv-bonus-column[data-lightning-player="1"] h2 {
  color: #c6b2ff;
}
.tv-bonus-column ol {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tv-bonus-column li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 7px 20px;
  border: 1px solid #526180;
  border-radius: 8px;
  background: linear-gradient(110deg, #20394a, #20283b);
}
.tv-bonus-column[data-lightning-player="1"] li {
  background: linear-gradient(110deg, #35304b, #23273d);
}
.tv-l-index {
  color: #a5afc8;
  font: 600 27px var(--display, sans-serif);
}
.tv-l-answer {
  font: 700 39px/1.03 var(--display, sans-serif);
  overflow-wrap: anywhere;
}
.tv-l-answer.tv-long {
  font-size: 26px;
}
.tv-bonus-column [data-lightning-points] {
  color: #8feadf;
  font: 700 43px var(--display, sans-serif);
}
.tv-bonus-column[data-lightning-player="1"] [data-lightning-points] {
  color: #c6b2ff;
}
.tv-column-hidden {
  display: grid;
  place-items: center;
  border: 2px dashed #52576c;
  border-radius: 10px;
  color: #a8adc5;
}
.tv-controls button:disabled {
  opacity: 0.66;
}
.tv-stage.tv-offline .tv-mast {
  padding-right: 520px;
}
