/* Bingo game. The stage (cage, balls, overlays) has its own night or holiday
   colours in either site theme; panels around it follow the site theme.
   Cards are styled by the card maker's cards.css. */

.bg {
  --b-B: #2f6fe0; --b-I: #e5484d; --b-N: #f1f1f1; --b-G: #2fa868; --b-O: #f5a623;
  --stage-1: #3b2a6b; --stage-2: #1d1840; --stage-3: #110e27;
  --bingo-1: #ff6b6b; --bingo-2: #e5484d; --bingo-edge: #a3262b;
  --fun: "Fredoka", var(--font-sans, sans-serif);
}
.bg[data-look="holiday"] {
  --b-B: #c1121f; --b-I: #2a9d5c; --b-N: #f8f4e8; --b-G: #c1121f; --b-O: #2a9d5c;
  --stage-1: #23704a; --stage-2: #134a30; --stage-3: #0a2b1b;
  --bingo-1: #ff5d5d; --bingo-2: #c1121f; --bingo-edge: #7d0b14;
}
.bg [hidden] { display: none !important; }

/* ---- Toolbar ---- */
.bg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.bg-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-base-content) 8%, transparent);
}
.bg-tabs button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--fun);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.15s, color 0.15s;
}
.bg-tabs button[aria-selected="true"] { background: var(--color-base-100); color: var(--color-base-content); box-shadow: 0 1px 3px rgb(0 0 0 / 0.14); }
.bg-tabs button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.bg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.bg-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-base-300);
  border-radius: 999px;
  background: var(--color-base-100);
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.15s, border-color 0.15s, background-color 0.15s;
}
.bg-tool:hover { border-color: var(--color-primary); }
.bg-tool svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bg-tool[aria-pressed="false"], .bg-tool.is-off { opacity: 0.55; }
.bg-tool[data-look-toggle][aria-pressed="false"] { opacity: 1; }
.bg-tool[data-look-toggle][aria-pressed="true"] { border-color: #c1121f; background: #c1121f; color: #fff; }

.bg-music { position: relative; }
.bg-music-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--color-base-300);
  border-radius: var(--r-md);
  background: var(--color-base-100);
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.18);
}
.bg-music-now { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.bg-music-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 1rem; }
.bg-music-eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--color-primary); }
.bg-music-eq[data-on="true"] i { animation: bg-eq 0.9s ease-in-out infinite; }
.bg-music-eq i:nth-child(2) { animation-delay: -0.3s; }
.bg-music-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes bg-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.bg-music-buttons { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.bg-music-volume { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.bg-music-volume input { flex: 1; }
.bg-music-head { margin-top: 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.bg-music-list { display: flex; flex-direction: column; gap: 0.2rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.bg-music-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0.4rem; border-radius: 0.5rem; font-size: 0.875rem; }
.bg-music-list li.is-playing { background: color-mix(in oklab, var(--color-primary) 12%, transparent); font-weight: 600; }
.bg-music-list label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.bg-music-play { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--color-primary); }
.bg-music-play:hover { background: color-mix(in oklab, var(--color-primary) 12%, transparent); }

/* ---- Stage ---- */
.bg-stage {
  position: relative;
  height: clamp(18rem, 52vh, 33rem);
  overflow: hidden;
  border-radius: var(--r-lg, 1.25rem);
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgb(255 255 255 / 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 14%, rgb(255 255 255 / 0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 62%, rgb(255 255 255 / 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgb(255 255 255 / 0.3) 0 1px, transparent 2px),
    radial-gradient(ellipse 70% 60% at 50% 38%, var(--stage-1) 0%, var(--stage-2) 58%, var(--stage-3) 100%);
  box-shadow: inset 0 -40px 60px rgb(0 0 0 / 0.25);
  isolation: isolate;
}
.bg[data-look="holiday"] .bg-stage::after {
  /* A strand of lights along the top. */
  content: "";
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  left: 0;
  right: 0;
  height: 0.7rem;
  pointer-events: none;
  background:
    radial-gradient(circle, #ff4d4d 0 3px, transparent 4px) 0 0 / 3.2rem 0.7rem repeat-x,
    radial-gradient(circle, #ffd84d 0 3px, transparent 4px) 0.8rem 0 / 3.2rem 0.7rem repeat-x,
    radial-gradient(circle, #4dd88a 0 3px, transparent 4px) 1.6rem 0 / 3.2rem 0.7rem repeat-x,
    radial-gradient(circle, #6fb3ff 0 3px, transparent 4px) 2.4rem 0 / 3.2rem 0.7rem repeat-x;
  filter: drop-shadow(0 0 4px rgb(255 240 180 / 0.9));
  animation: bg-twinkle 2.4s steps(2) infinite;
}
@keyframes bg-twinkle { 50% { filter: drop-shadow(0 0 7px rgb(255 240 180 / 1)) brightness(1.25); } }
.bingo-snow, .bg-cage, .bg-cage-canvas { position: absolute; inset: 0; }
.bingo-snow { z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.bg-cage { z-index: 1; }
.bg-cage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.bg-cage canvas:active { cursor: grabbing; }
.bg-hud { position: absolute; z-index: 2; top: 1.1rem; left: 1rem; right: 9rem; pointer-events: none; }
.bg-recent { display: flex; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.bg-recent li { animation: bg-slide-in 0.35s ease-out both; }
.bg-progress { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; color: rgb(255 255 255 / 0.75); font-variant-numeric: tabular-nums; }
.bg-hint {
  position: absolute;
  z-index: 2;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.3);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.6s;
}
.bg-hint.is-gone { opacity: 0; }
.bg-timer { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 5px; background: rgb(255 255 255 / 0.12); }
.bg-timer span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, #ffd84d, #ff7ac6); transition: transform 0.1s linear; }
.bg.no-3d .bg-stage { height: 15rem; }
.bg.no-3d .bg-hint { display: none; }

/* ---- Balls (the reveal, recent calls, the board) ---- */
.bg-ball {
  --size: 9.5rem;
  --ball: var(--b-B);
  display: grid;
  place-items: center;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgb(255 255 255 / 0.7) 0 9%, transparent 28%),
    radial-gradient(circle at 50% 56%, var(--ball) 52%, color-mix(in srgb, var(--ball) 55%, #000) 100%);
  box-shadow: 0 calc(var(--size) * 0.1) calc(var(--size) * 0.22) rgb(0 0 0 / 0.38);
  color: #1d1b22;
  font-family: var(--fun);
  font-weight: 700;
  line-height: 1;
}
.bg-ball[data-letter="B"] { --ball: var(--b-B); }
.bg-ball[data-letter="I"] { --ball: var(--b-I); }
.bg-ball[data-letter="N"] { --ball: var(--b-N); }
.bg-ball[data-letter="G"] { --ball: var(--b-G); }
.bg-ball[data-letter="O"] { --ball: var(--b-O); }
.bg-ball-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffdf6;
  box-shadow: inset 0 calc(var(--size) * -0.025) 0 rgb(0 0 0 / 0.08), 0 0 0 calc(var(--size) * 0.015) rgb(0 0 0 / 0.06);
}
.bg-ball-letter { font-size: calc(var(--size) * 0.14); }
.bg-ball-text { font-size: calc(var(--size) * 0.27); font-variant-numeric: tabular-nums; }
.bg-ball.is-word { --size: 11rem; }
.bg-ball.is-word .bg-ball-face { width: 76%; padding: 0.4rem; }
.bg-ball.is-word .bg-ball-text { font-size: calc(var(--size) * 0.105); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.bg-ball.is-mini { --size: 2.5rem; box-shadow: 0 2px 5px rgb(0 0 0 / 0.35); }
.bg-ball.is-mini .bg-ball-face { width: 66%; }
.bg-ball.is-mini .bg-ball-letter { display: none; }
.bg-ball.is-mini .bg-ball-text { font-size: calc(var(--size) * 0.32); }
.bg-ball.is-mini.is-word { --size: 2.5rem; }
.bg-ball.is-mini.is-word .bg-ball-text { font-size: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.bg-reveal { position: absolute; z-index: 3; inset: 0; container-type: size; display: grid; place-items: center; pointer-events: none; }
.bg-reveal .bg-ball { transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1); }
.bg-reveal .bg-ball.is-popping { animation: bg-pop 0.7s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.bg-reveal .bg-ball.is-settled {
  transform: translate(calc(50cqw - var(--size) / 2 - 0.5rem), calc(-50cqh + var(--size) / 2 + 0.5rem)) scale(0.55);
}
@keyframes bg-pop {
  0% { transform: translateY(35%) scale(0.15) rotate(-40deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes bg-slide-in { from { transform: translateX(-0.6rem) scale(0.6); opacity: 0; } }

/* ---- Overlays: win, lose, paused ---- */
.bg-overlay {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(8 6 20 / 0.42);
  backdrop-filter: blur(3px);
  animation: bg-fade 0.3s ease-out both;
}
.bg-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: min(27rem, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--color-base-100);
  color: var(--color-base-content);
  text-align: center;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.4);
  animation: bg-pop-box 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.bg-overlay-kicker { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.bg-overlay-big {
  font-family: var(--fun);
  font-size: clamp(3rem, 12vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #ff5a5f, #ffb400, #2fbf71, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg[data-look="holiday"] .bg-overlay-big { background-image: linear-gradient(90deg, #c1121f, #e9c46a, #2a9d5c, #c1121f); }
.bg-overlay.is-win .bg-overlay-big { animation: bg-wiggle 0.9s ease-in-out 0.3s 2; }
.bg-overlay-big.is-name { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.bg-overlay-text { max-width: 34ch; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
.bg-overlay-card { width: 8.5rem; aspect-ratio: 4 / 5; container-type: size; display: grid; place-items: center; }
.bg-overlay-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.4rem; }
@keyframes bg-fade { from { opacity: 0; } }
@keyframes bg-pop-box { from { transform: scale(0.7) translateY(1rem); opacity: 0; } }
@keyframes bg-wiggle { 25% { transform: rotate(-4deg) scale(1.06); } 75% { transform: rotate(4deg) scale(1.06); } }

/* ---- Body: cards, side panels ---- */
.bg-body { margin-top: 1.25rem; }
.bg-play, .bg-host { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 64rem) {
  .bg-play, .bg-host { grid-template-columns: minmax(0, 1fr) 20rem; }
}
@media (max-width: 63.99rem) {
  /* The side panels join the cards' column: setup above them, the BINGO
     button below and stuck to the bottom of the screen while they scroll. */
  .bg-play .bg-side { display: contents; }
  .bg-play .bg-setup { order: -1; }
  .bg-play .bg-live { order: 2; }
}
.bg-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bg-panel {
  padding: 1.25rem;
  border: 1px solid var(--color-base-300);
  border-radius: var(--r-md);
  background: var(--color-base-100);
}
.bg-panel-title { font-family: var(--fun); font-size: 1.15rem; font-weight: 600; }
.bg-setup { display: flex; flex-direction: column; gap: 0.9rem; }
.bg-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.bg-field legend { margin-bottom: 0.35rem; padding: 0; font-size: 0.875rem; font-weight: 600; }
.bg-seg { display: grid; gap: 0.25rem; padding: 0.25rem; border-radius: var(--r-sm); background: color-mix(in oklab, var(--color-base-content) 7%, transparent); }
.bg-seg-2 { grid-template-columns: repeat(2, 1fr); }
.bg-seg-3 { grid-template-columns: repeat(3, 1fr); }
.bg-seg label { position: relative; cursor: pointer; }
.bg-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bg-seg span { display: block; padding: 0.42rem 0.3rem; border-radius: calc(var(--r-sm) - 0.15rem); font-size: 0.85rem; font-weight: 600; text-align: center; color: var(--muted); white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.bg-seg input:checked + span { background: var(--color-base-100); color: var(--color-base-content); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.bg-seg input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.bg-check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; cursor: pointer; }
.bg-start { font-family: var(--fun); font-size: 1.15rem; }
.bg-stats { font-size: 0.8125rem; color: var(--muted); text-align: center; }
.bg-stats:empty { display: none; }
.bg-help { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.bg textarea, .bg input:not([type="range"]), .bg select { font-size: 1rem; }

.bg-cards { display: grid; gap: 1rem; justify-items: center; }
.bg-cards[data-count="1"] .bg-card-slot { width: min(100%, 27rem); }
@media (min-width: 40rem) {
  .bg-cards[data-count="2"], .bg-cards[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bg-card-slot { width: 100%; aspect-ratio: 4 / 5; container-type: size; display: grid; place-items: center; }
.bg-cards-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 12rem;
  padding: 2rem;
  border: 2px dashed var(--color-base-300);
  border-radius: var(--r-md);
  color: var(--muted);
  text-align: center;
}
.bg-cards button.bingo-cell { cursor: pointer; transition: transform 0.12s ease, background-color 0.2s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .bg-cards button.bingo-cell:hover:not(.is-daubed) { transform: scale(1.05); background: #fffbe8; }
}
.bg-cards button.bingo-cell:active { transform: scale(0.95); }
.bg-cards button.bingo-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.bingo-cell.is-nope { animation: bg-shake 0.4s; background: #ffe4e4 !important; }
@keyframes bg-shake { 20%, 60% { transform: translateX(-4%); } 40%, 80% { transform: translateX(4%); } }

/* The big button. */
.bg-live { display: flex; flex-direction: column; gap: 0.8rem; }
.bg-bingo {
  width: 100%;
  padding: 0.9rem 1rem 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, var(--bingo-1), var(--bingo-2));
  box-shadow: 0 6px 0 var(--bingo-edge), 0 10px 22px rgb(0 0 0 / 0.22);
  color: #fff;
  font-family: var(--fun);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.2);
  filter: saturate(0.6) brightness(0.95);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.2s;
}
.bg-bingo:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--bingo-edge), 0 4px 10px rgb(0 0 0 / 0.2); }
.bg-bingo.is-ready { filter: none; animation: bg-ready 0.9s ease-in-out infinite; }
.bg-bingo.is-nope { animation: bg-shake 0.4s; }
@keyframes bg-ready {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 0 var(--bingo-edge), 0 0 0 0 color-mix(in srgb, var(--bingo-1) 70%, transparent); }
  50% { transform: scale(1.04) rotate(-1deg); box-shadow: 0 6px 0 var(--bingo-edge), 0 0 0 12px transparent; }
}
.bg-claim-hint { min-height: 2.6em; font-size: 0.85rem; line-height: 1.45; color: var(--muted); text-align: center; }
.bg-claim-hint.is-flash { color: var(--color-error); font-weight: 600; }
.bg-live-buttons { display: flex; justify-content: center; gap: 0.4rem; }
@media (max-width: 63.99rem) {
  /* Keep the big button in reach while scrolling the cards on a phone. */
  .bg-live { position: sticky; z-index: 10; bottom: 0.6rem; width: 100%; gap: 0.5rem; padding: 0.8rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); }
  .bg-live .bg-claim-hint { min-height: 0; }
  .bg-live .bg-panel-title, .bg-live .bg-opponents { display: none; }
}

.bg-opponents { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.bg-opponents li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.6rem; font-size: 0.875rem; }
.bg-opp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bg-opp-away { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bg-opp-away.is-warm { color: #d97706; font-weight: 600; }
.bg-opp-away.is-hot { color: var(--color-error); font-weight: 700; }
.bg-opp-dots { display: inline-flex; gap: 2px; }
.bg-opp-dots i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: color-mix(in oklab, var(--color-base-content) 15%, transparent); }
.bg-opp-dots i.is-on { background: var(--bingo-2); }

/* ---- Host ---- */
.bg-host-main { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.bg-host-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.bg-host-controls [data-draw] { font-family: var(--fun); font-size: 1.15rem; }
.bg-host-spacer { flex: 1; }
.bg-board.is-numbers { display: flex; flex-direction: column; gap: 0.3rem; overflow-x: auto; padding-bottom: 0.2rem; }
.bg-board-row { display: grid; grid-template-columns: 1.8rem repeat(15, minmax(2rem, 1fr)); gap: 0.25rem; }
.bg-board-letter { display: grid; place-items: center; font-family: var(--fun); font-size: 1.15rem; font-weight: 700; color: var(--color-primary); }
.bg-board.is-words { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bg-tile {
  --ball: var(--b-B);
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--color-base-300);
  border-radius: 999px;
  background: var(--color-base-100);
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.bg-tile[data-letter="B"] { --ball: var(--b-B); }
.bg-tile[data-letter="I"] { --ball: var(--b-I); }
.bg-tile[data-letter="N"] { --ball: var(--b-N); }
.bg-tile[data-letter="G"] { --ball: var(--b-G); }
.bg-tile[data-letter="O"] { --ball: var(--b-O); }
.bg-tile:hover { border-color: var(--color-primary); }
.bg-tile.is-called {
  border-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.55) 0 10%, transparent 32%), var(--ball);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}
.bg-tile[data-letter="N"].is-called { color: #1d1b22; text-shadow: none; box-shadow: inset 0 0 0 1px #d6d1c2; }
.bg-tile.is-last { transform: scale(1.12); outline: 2px solid var(--color-base-content); outline-offset: 1px; }
.bg-check-row { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.bg-check-row .input { min-width: 0; flex: 1; }
.bg-check-result { margin-top: 0.8rem; }
.bg-verdict { font-weight: 600; }
.bg-verdict.is-yes { color: var(--color-success); }
.bg-verdict.is-no { color: var(--muted); }
.bg-check-card { width: min(100%, 16rem); aspect-ratio: 4 / 5; margin-top: 0.6rem; container-type: size; display: grid; place-items: center; }
.bg-alert { padding: 0.7rem 1rem; border-radius: var(--r-sm); background: color-mix(in oklab, var(--color-error) 10%, var(--color-base-100)); color: var(--color-error); }

/* ---- Full screen, for a TV ---- */
.bg:fullscreen { max-width: none; margin: 0; padding: 1.25rem; overflow: auto; background: var(--color-base-200); }
.bg:fullscreen .bg-stage { height: 62vh; }

/* ---- Confetti layer ---- */
.bingo-confetti { position: fixed; z-index: 60; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .bg-reveal .bg-ball.is-popping, .bg-overlay-box, .bg-overlay.is-win .bg-overlay-big, .bg-bingo.is-ready, .bg[data-look="holiday"] .bg-stage::after { animation: none; }
}
