/* attached-css-v37: user supplied stylesheet applied to rewards carousel build. */
:root {
  --bg: #14006f;
  --card: rgba(255, 255, 255, 0.118);
  --card-strong: rgba(255, 255, 255, 0.19);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #fdc820;
  --accent-2: #22cddc;
  --accent-3: #8a16ff;
  --hot: #ff2bb8;
  --danger: #ff8d8d;
  --good: #67dd42;
  --ink: #170052;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(253, 200, 32, 0.28), transparent 18rem),
    radial-gradient(circle at 86% 8%, rgba(34, 205, 220, 0.26), transparent 20rem),
    radial-gradient(circle at 42% 42%, rgba(255, 43, 184, 0.16), transparent 18rem),
    linear-gradient(135deg, #14006f 0%, #37008c 48%, #061a78 100%);
  overflow-x: hidden;
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

a { color: var(--accent-2); }

button, input, textarea, select { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: max(10px, var(--safe-top)) 10px calc(22px + var(--safe-bottom));
}

.card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin: 10px 0;
}

.compact-card { padding: 16px; }

.hero {
  text-align: left;
  padding: 18px 16px;
}

.brand-hero {
  display: grid;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(232px, 76vw);
  max-height: 190px;
  object-fit: contain;
  margin: -10px auto -6px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}

.brand-copy .brand-pill { margin: 0 auto; }
.brand-copy h1 { text-shadow: 0 4px 0 rgba(23, 0, 82, 0.22); }

.game-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-logo {
  width: clamp(54px, 17vw, 86px);
  height: clamp(54px, 17vw, 86px);
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.32));
}

.game-brand-line h2 { margin-top: 5px; }

h1, h2 { margin: 8px 0; line-height: 1.04; }
h1 { font-size: clamp(1.85rem, 9vw, 3.2rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.35rem, 5.6vw, 2rem); letter-spacing: -0.03em; }
p { line-height: 1.45; }

.hero p, .intro-copy { margin-bottom: 0; }
.muted, .legal { color: var(--muted); }
.legal { font-size: 0.84rem; margin: 2px 0 0; }
.tight { margin: 5px 0 0; }

.brand-pill, .seat-pill, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 207, 74, 0.16);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.69rem;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(125, 249, 216, 0.14);
  color: var(--accent-2);
}

.seat-pill {
  background: rgba(169, 255, 186, 0.14);
  color: var(--good);
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.remember-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(125, 249, 216, 0.2);
  border-radius: 18px;
  background: rgba(125, 249, 216, 0.09);
}

.remember-panel p { margin: 4px 0 0; color: var(--muted); font-size: 0.82rem; }

.mini-button {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

form { display: grid; gap: 11px; margin-top: 14px; }
label { display: grid; gap: 6px; font-weight: 800; font-size: 0.94rem; }

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 13px 13px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  outline: none;
  font-size: 16px;
}

input::placeholder { color: rgba(255, 255, 255, 0.48); }
input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(125, 249, 216, 0.14); }
input[type="checkbox"] { width: 22px; min-height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.optional { color: var(--muted); font-weight: 700; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 650; line-height: 1.35; }
.remember-check { color: rgba(255, 255, 255, 0.9); }
.error { color: var(--danger); min-height: 1.3em; margin: 0; font-weight: 800; }

button, .primary, .secondary, .ghost {
  appearance: none;
  border: 0;
  border-radius: 18px;
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

button:active, .primary:active, .secondary:active, .ghost:active { transform: translateY(1px) scale(0.99); }
button:disabled { cursor: not-allowed; opacity: 0.48; box-shadow: none; }

.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--accent), #ff7a18);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(255, 207, 74, 0.24);
}

.secondary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: #101329;
  box-shadow: 0 12px 24px rgba(125, 249, 216, 0.18);
}

.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.start-button { width: 100%; }
.hidden { display: none !important; }

.game-card {
  overflow: visible;
  padding: 13px;
  min-height: calc(100dvh - 20px - var(--safe-top) - var(--safe-bottom));
}

.game-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.game-title-block h2 { margin-bottom: 0; }

.caller-stage {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 9px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 106px;
}

.caller-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.call-ball {
  display: grid;
  place-items: center;
  width: clamp(72px, 23vw, 112px);
  height: clamp(72px, 23vw, 112px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, #fff 0 33%, var(--accent) 34% 100%);
  color: var(--ink);
  font-weight: 1000;
  font-size: clamp(1.24rem, 6.2vw, 2.2rem);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), inset -10px -14px 24px rgba(0, 0, 0, 0.16);
}

.call-ball.pop { animation: ballPop 360ms cubic-bezier(.2, 1.4, .45, 1); }

@keyframes ballPop {
  from { transform: scale(0.72) rotate(-12deg); opacity: 0.2; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.bingo-wrap {
  margin-top: 12px;
  padding: 9px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.5vw, 8px);
}

.bingo-head { display: none !important; }

.board button {
  aspect-ratio: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: clamp(10px, 3.2vw, 17px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 1000;
  font-size: clamp(0.72rem, 3.75vw, 1.05rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}


.call-ball.sending {
  animation: ballSendPulse 720ms ease-in-out infinite;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 32px rgba(255, 207, 74, 0.44), inset -10px -14px 24px rgba(0, 0, 0, 0.16);
}

@keyframes ballSendPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

.match-flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, #fff 0 33%, var(--accent) 34% 100%);
  color: var(--ink);
  font-weight: 1000;
  font-size: clamp(0.9rem, 5vw, 1.46rem);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.48), 0 0 32px rgba(255, 207, 74, 0.42);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.match-flyer::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.7);
  opacity: 0.45;
}

.board button.match-target {
  box-shadow: 0 0 0 3px rgba(125, 249, 216, 0.42), 0 0 28px rgba(125, 249, 216, 0.32);
  transform: translateY(-2px) scale(1.03);
}

.board button.match-impact {
  animation: cardImpact 620ms cubic-bezier(.2, 1.4, .45, 1);
}

@keyframes cardImpact {
  0% { transform: scale(1); filter: brightness(1); }
  36% { transform: scale(1.12) rotate(-2deg); filter: brightness(1.38); }
  100% { transform: scale(1); filter: brightness(1); }
}

.board button.callable {
  background: rgba(255, 207, 74, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 207, 74, 0.34), 0 0 22px rgba(255, 207, 74, 0.34);
  transform: translateY(-2px);
  animation: pulseSquare 920ms ease-in-out infinite;
}

@keyframes pulseSquare {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}

.board button.marked {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: #101329;
  transform: scale(0.94) rotate(-1deg);
}

.board button.free {
  background: rgba(255, 207, 74, 0.88);
  color: #20112d;
}

.board button.bingo-line {
  box-shadow: 0 0 0 4px rgba(255, 207, 74, 0.42), 0 0 28px rgba(255, 207, 74, 0.34);
}

.caller-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 11px 0 9px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.caller-copy { display: grid; gap: 3px; min-width: 0; }
.caller-copy strong { font-size: 0.96rem; }
.caller-copy span { color: var(--muted); font-size: 0.84rem; }
.draw-count { color: var(--accent); font-weight: 1000; font-size: 0.96rem; white-space: nowrap; }

.ball-tray {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 1px 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tray-ball {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-weight: 1000;
  font-size: 0.76rem;
}

.tray-ball.possible-hit { color: #fff; border-color: rgba(125, 249, 216, 0.38); }
.tray-ball.filled { background: linear-gradient(135deg, var(--accent-2), #91a7ff); color: #101329; }
.tray-ball.miss { opacity: 0.7; }

.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 2px 0 9px; }
.progress div { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 260ms ease; }

.game-controls {
  position: sticky;
  bottom: calc(8px + var(--safe-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(19, 15, 38, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.game-controls button { min-height: 56px; border-radius: 16px; font-size: 1rem; }
.fill-action { text-transform: uppercase; letter-spacing: 0.04em; }
.auto-action { grid-column: 1 / -1; min-height: 46px !important; }

.result-card { text-align: center; }
.result-card .prize-code {
  display: inline-block;
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
}

.share-row { display: grid; gap: 10px; margin-top: 16px; }

@media (max-width: 359px) {
  .shell { padding-left: 7px; padding-right: 7px; }
  .card { border-radius: 20px; padding: 12px; }
  .game-card { padding: 10px; }
  .caller-stage { min-width: 92px; padding: 8px; }
  .call-ball { width: 66px; height: 66px; }
  .game-controls button { min-height: 52px; font-size: 0.95rem; }
}

@media (min-width: 700px) {
  .shell { width: min(920px, 100%); padding: 18px; }
  .card { padding: 22px; border-radius: 28px; margin: 14px 0; }
  .hero { text-align: left; padding: 26px 24px; }
  .brand-hero { grid-template-columns: 265px 1fr; text-align: left; gap: 18px; }
  .brand-logo { width: 265px; margin: -10px 0 -14px; }
  .brand-copy .brand-pill { margin: 0; }
  .entry-card form { grid-template-columns: 1fr 1fr; }
  .entry-card .check, .entry-card .legal, .entry-card .primary, .entry-card .error { grid-column: 1 / -1; }
  .game-card { min-height: auto; padding: 22px; }
  .game-top { grid-template-columns: 1fr auto; gap: 18px; }
  .bingo-wrap { padding: 14px; }
  .caller-panel { margin: 16px 0 12px; padding: 14px; }
  .tray-ball { min-width: 44px; height: 44px; font-size: 0.84rem; }
  .progress { height: 10px; margin-bottom: 16px; }
  .game-controls { position: static; grid-template-columns: 1.2fr 1.2fr 0.9fr; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
  .auto-action { grid-column: auto; min-height: 56px !important; }
  .share-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Winning-line celebration */
.bingo-wrap {
  position: relative;
}

.winning-line-draw {
  position: absolute;
  z-index: 12;
  height: clamp(9px, 2.2vw, 15px);
  margin-top: clamp(-5px, -1.1vw, -7px);
  border-radius: 999px;
  pointer-events: none;
  transform-origin: left center;
  transform: rotate(var(--line-angle, 0deg)) scaleX(0);
  background: linear-gradient(90deg, #fff7a6, var(--accent), #ff7d4a);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 0 34px rgba(255, 207, 74, 0.68), 0 0 58px rgba(255, 125, 74, 0.36);
  opacity: 0;
}

.winning-line-draw.is-visible {
  opacity: 1;
  animation: winningLineDraw 840ms cubic-bezier(.18, 1.15, .32, 1) forwards, winningLineGlow 980ms ease-in-out 820ms infinite;
}

.winning-line-draw::after {
  content: "BINGO";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(0.62rem, 2.6vw, 0.82rem);
  font-weight: 1000;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

@keyframes winningLineDraw {
  0% { transform: rotate(var(--line-angle, 0deg)) scaleX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: rotate(var(--line-angle, 0deg)) scaleX(1); opacity: 1; }
}

@keyframes winningLineGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.board button.bingo-line {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #fff8a8, var(--accent));
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 207, 74, 0.52), 0 0 34px rgba(255, 207, 74, 0.48);
}

.board button.line-win-pop {
  animation: lineSquareWin 780ms cubic-bezier(.18, 1.45, .34, 1) both;
}

@keyframes lineSquareWin {
  0% { transform: scale(0.94) rotate(-1deg); }
  45% { transform: scale(1.15) rotate(2deg); }
  100% { transform: scale(1.02) rotate(0deg); }
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  width: 10px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
  animation: confettiFall linear forwards;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.confetti-piece:nth-child(5n + 1) { background: var(--accent-2); }
.confetti-piece:nth-child(5n + 2) { background: #ff8a4a; }
.confetti-piece:nth-child(5n + 3) { background: #fff; }
.confetti-piece:nth-child(5n + 4) { background: #91a7ff; }
.confetti-piece.circle { border-radius: 999px; width: 9px; height: 9px; }
.confetti-piece.ribbon { width: 6px; height: 22px; border-radius: 999px; }

@keyframes confettiFall {
  0% { transform: translate3d(0, -24px, 0) rotate(0deg); }
  100% { transform: translate3d(var(--drift, 0px), calc(100vh + 70px), 0) rotate(var(--spin, 720deg)); }
}

.winner-burst {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(255,207,74,0.92));
  color: var(--ink);
  font-size: 2.4rem;
  box-shadow: 0 0 0 8px rgba(255, 207, 74, 0.14), 0 20px 44px rgba(0, 0, 0, 0.32);
  animation: winnerBurst 900ms cubic-bezier(.2, 1.5, .36, 1) both;
}

@keyframes winnerBurst {
  from { transform: scale(0.55) rotate(-12deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* v3: unmistakable win event - fixed viewport line, overlay, JS-driven confetti */
.bingo-wrap.win-active {
  box-shadow: 0 0 0 4px rgba(255, 207, 74, 0.28), 0 0 58px rgba(255, 207, 74, 0.28);
  animation: boardWinGlow 1100ms ease-in-out infinite;
}

@keyframes boardWinGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.winning-line-draw {
  position: fixed !important;
  z-index: 2147482500;
  height: clamp(15px, 4vw, 24px);
  margin-top: clamp(-12px, -2vw, -8px);
  border-radius: 999px;
  pointer-events: none;
  transform-origin: left center;
  transform: rotate(var(--line-angle, 0deg)) scaleX(0);
  background: linear-gradient(90deg, #ffffff, #ffcf4a 42%, #ff6b35);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.42),
    0 0 34px rgba(255, 207, 74, 0.88),
    0 0 72px rgba(255, 107, 53, 0.64);
  opacity: 0;
}

.winning-line-draw.is-visible {
  opacity: 1;
  animation: winningLineDraw 760ms cubic-bezier(.18, 1.25, .28, 1) forwards, winningLineGlow 860ms ease-in-out 760ms infinite;
}

.winning-line-draw::after {
  content: "BINGO!";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff;
  color: #17112a;
  font-size: clamp(0.72rem, 3.5vw, 1rem);
  font-weight: 1000;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.bingo-win-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 170ms ease, transform 170ms ease;
}

.bingo-win-overlay.is-showing {
  opacity: 1;
  transform: scale(1);
}

.bingo-win-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.04);
  transition-duration: 360ms;
}

.bingo-win-card {
  width: min(86vw, 390px);
  padding: 22px 18px;
  border-radius: 30px;
  text-align: center;
  color: #17112a;
  background: radial-gradient(circle at 50% 0%, #fff 0 32%, #ffcf4a 33% 100%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), 0 0 0 9px rgba(255, 255, 255, 0.18);
  animation: bingoWinCardPop 720ms cubic-bezier(.18, 1.48, .34, 1) both;
}

.bingo-win-card strong {
  display: block;
  font-size: clamp(2.7rem, 17vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.bingo-win-card span {
  display: block;
  font-weight: 1000;
}

.bingo-win-eyebrow {
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes bingoWinCardPop {
  0% { transform: scale(0.58) rotate(-6deg); opacity: 0; }
  55% { transform: scale(1.07) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.confetti-layer {
  z-index: 2147482700 !important;
}

.confetti-layer .confetti-piece {
  position: fixed;
  top: 0;
  width: 12px;
  height: 16px;
  border-radius: 3px;
  animation: none !important;
  will-change: transform, opacity;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.confetti-layer .confetti-piece.circle {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.confetti-layer .confetti-piece.ribbon {
  width: 7px;
  height: 26px;
  border-radius: 999px;
}

.winner-proof {
  display: inline-block;
  margin: 2px 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 207, 74, 0.22);
  color: #fff;
  font-weight: 900;
}

/* numbers-only-v5: play-area B/I/N/G/O headers are intentionally hidden; play balls use numeric labels only. */
body[data-build="numbers-only-v5"] .bingo-head { display: none !important; }


/* logo-v7: TC Bingo logo and palette applied to player game. */
body[data-build="logo-v7-numbers-result-cleanup"] .brand-pill {
  background: rgba(253, 200, 32, 0.18);
  color: #ffe876;
  box-shadow: inset 0 0 0 1px rgba(253, 200, 32, 0.18);
}
body[data-build="logo-v7-numbers-result-cleanup"] .card {
  border-color: rgba(255, 255, 255, 0.22);
}
body[data-build="logo-v7-numbers-result-cleanup"] .call-ball,
body[data-build="logo-v7-numbers-result-cleanup"] .match-flyer {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.2) 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, #fff 0 33%, var(--accent) 34% 66%, #ff7a18 67% 100%);
}
body[data-build="logo-v7-numbers-result-cleanup"] .confetti-piece:nth-child(5n + 1) { background: var(--accent-2); }
body[data-build="logo-v7-numbers-result-cleanup"] .confetti-piece:nth-child(5n + 2) { background: var(--hot); }
body[data-build="logo-v7-numbers-result-cleanup"] .confetti-piece:nth-child(5n + 3) { background: var(--accent); }
body[data-build="logo-v7-numbers-result-cleanup"] .confetti-piece:nth-child(5n + 4) { background: var(--good); }

/* logo-v9: top hero artwork removed; logo and hero text animated in place. */
body[data-build="logo-v9-animated-hero"] .brand-pill {
  background: linear-gradient(135deg, rgba(253, 200, 32, 0.26), rgba(255, 43, 184, 0.14));
  color: #fff2a2;
  box-shadow: inset 0 0 0 1px rgba(253, 200, 32, 0.24), 0 0 22px rgba(253, 200, 32, 0.12);
}

body[data-build="logo-v9-animated-hero"] .card {
  border-color: rgba(255, 255, 255, 0.23);
}

body[data-build="logo-v9-animated-hero"] .call-ball,
body[data-build="logo-v9-animated-hero"] .match-flyer {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.2) 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, #fff 0 33%, var(--accent) 34% 66%, #ff7a18 67% 100%);
}

body[data-build="logo-v9-animated-hero"] .confetti-piece:nth-child(5n + 1) { background: var(--accent-2); }
body[data-build="logo-v9-animated-hero"] .confetti-piece:nth-child(5n + 2) { background: var(--hot); }
body[data-build="logo-v9-animated-hero"] .confetti-piece:nth-child(5n + 3) { background: var(--accent); }
body[data-build="logo-v9-animated-hero"] .confetti-piece:nth-child(5n + 4) { background: var(--good); }

.animated-hero-shell {
  overflow: hidden;
  padding: 18px 16px 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% -8%, rgba(253, 200, 32, 0.26), transparent 16rem),
    radial-gradient(circle at 9% 18%, rgba(255, 43, 184, 0.22), transparent 12rem),
    radial-gradient(circle at 92% 30%, rgba(34, 205, 220, 0.23), transparent 13rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
}

.animated-hero-shell::before,
.animated-hero-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.animated-hero-shell::before {
  inset: -34% -30% auto;
  height: 230px;
  background: conic-gradient(from 90deg, transparent, rgba(34, 205, 220, 0.28), transparent, rgba(253, 200, 32, 0.28), transparent);
  filter: blur(26px);
  animation: heroAuraSpin 9s linear infinite;
}

.animated-hero-shell::after {
  inset: 0;
  background:
    radial-gradient(circle at 13% 68%, rgba(255, 255, 255, 0.44) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.38) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 78%, rgba(253, 200, 32, 0.6) 0 2px, transparent 3px),
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.16) 43%, transparent 55%);
  transform: translateX(-140%);
  animation: heroSweep 4.4s ease-in-out infinite;
}

.animated-brand-hero {
  position: relative;
  gap: 4px;
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: -2px auto 0;
  width: min(270px, 82vw);
  min-height: 168px;
}

.logo-stage::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 64%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 43, 184, 0.2), rgba(34, 205, 220, 0.14), transparent 68%);
  filter: blur(16px);
  animation: logoGlow 2.7s ease-in-out infinite;
}

.logo-stage::after {
  content: "";
  position: absolute;
  inset: 17% 3%;
  border-radius: 50%;
  border: 2px solid rgba(34, 205, 220, 0.24);
  box-shadow: 0 0 28px rgba(255, 43, 184, 0.24), inset 0 0 26px rgba(253, 200, 32, 0.12);
  transform: rotate(-7deg);
  animation: logoRingPulse 2.9s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(248px, 76vw);
  max-height: 190px;
  margin: -10px auto -6px;
  transform-origin: 50% 68%;
  animation: logoFloatPop 3.6s ease-in-out infinite;
}

.logo-spark {
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 24px var(--accent), 0 0 38px var(--hot);
  opacity: 0;
  animation: sparklePop 2.4s ease-in-out infinite;
}

.spark-one { top: 18%; left: 13%; animation-delay: 0s; }
.spark-two { top: 28%; right: 10%; animation-delay: 0.75s; }
.spark-three { bottom: 18%; left: 28%; animation-delay: 1.35s; }

.hero-copy-animated {
  position: relative;
  z-index: 2;
  animation: heroCopyRise 0.75s cubic-bezier(.2,.95,.28,1) both;
}

.hero-copy-animated h1 {
  text-shadow:
    0 4px 0 rgba(23, 0, 82, 0.3),
    0 0 22px rgba(34, 205, 220, 0.22),
    0 0 38px rgba(255, 43, 184, 0.18);
  animation: heroHeadlinePulse 2.7s ease-in-out infinite;
}

.hero-copy-animated p {
  margin-top: 8px;
  animation: heroTextFadeUp 0.85s cubic-bezier(.2,.95,.28,1) 0.14s both;
}

.hero-word-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.hero-word-row span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 8px 10px;
  border-radius: 16px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.035em;
  font-size: clamp(1rem, 5.2vw, 1.45rem);
  color: #180054;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  background: linear-gradient(180deg, #fff384, #fdc820 54%, #ff8b17);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 0 rgba(23, 0, 82, 0.35), 0 0 22px rgba(253, 200, 32, 0.2);
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  animation: wordTilePop 0.72s cubic-bezier(.18,1.35,.28,1) forwards, wordTileBounce 2.8s ease-in-out infinite;
}

.hero-word-row span:nth-child(1) { animation-delay: 0.18s, 1.05s; }
.hero-word-row span:nth-child(2) { animation-delay: 0.34s, 1.2s; background: linear-gradient(180deg, #81f5ff, #22cddc 52%, #0087ff); color: #fff; text-shadow: 0 2px 0 rgba(23,0,82,0.4); }
.hero-word-row span:nth-child(3) { animation-delay: 0.5s, 1.35s; background: linear-gradient(180deg, #ff8ae0, #ff2bb8 54%, #9f00ff); color: #fff; text-shadow: 0 2px 0 rgba(23,0,82,0.42); }

.game-hype-strip.text-only {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  padding: 12px 14px;
  margin-top: 10px;
}

.game-hype-strip.text-only span {
  width: 100%;
  animation: hypeTextPulse 2.6s ease-in-out infinite;
}

@keyframes heroAuraSpin {
  to { transform: rotate(360deg); }
}

@keyframes heroSweep {
  0%, 42% { transform: translateX(-140%); }
  66%, 100% { transform: translateX(140%); }
}

@keyframes logoGlow {
  0%, 100% { transform: scale(0.95); opacity: 0.72; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes logoRingPulse {
  0%, 100% { transform: rotate(-7deg) scale(0.98); opacity: 0.58; }
  50% { transform: rotate(4deg) scale(1.05); opacity: 0.96; }
}

@keyframes logoFloatPop {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); filter: drop-shadow(0 18px 24px rgba(0,0,0,0.35)) saturate(1.08); }
  42% { transform: translate3d(0, -7px, 0) rotate(1.2deg) scale(1.025); filter: drop-shadow(0 24px 30px rgba(0,0,0,0.38)) saturate(1.18); }
  56% { transform: translate3d(0, -4px, 0) rotate(-0.5deg) scale(1.012); }
}

@keyframes sparklePop {
  0%, 100% { transform: scale(0.1) rotate(0deg); opacity: 0; }
  18% { transform: scale(1.05) rotate(90deg); opacity: 1; }
  34% { transform: scale(0.2) rotate(180deg); opacity: 0; }
}

@keyframes heroCopyRise {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes heroTextFadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes heroHeadlinePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}

@keyframes wordTilePop {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes wordTileBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.015); }
}

@keyframes hypeTextPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 3px 0 rgba(23, 0, 82, 0.26), 0 0 18px rgba(255, 207, 74, 0.28); }
  50% { transform: scale(1.03); text-shadow: 0 3px 0 rgba(23, 0, 82, 0.3), 0 0 26px rgba(34, 205, 220, 0.38); }
}

@media (min-width: 700px) {
  .animated-hero-shell { padding: 24px; }
  .animated-brand-hero {
    grid-template-columns: 280px 1fr;
    text-align: left;
    gap: 22px;
  }
  .logo-stage { width: 280px; min-height: 196px; margin: 0; }
  .hero-logo { width: 274px; max-height: 210px; margin: -10px 0 -10px; }
  .hero-copy-animated .brand-pill { margin: 0; }
  .hero-word-row { max-width: 430px; }
}

@media (max-width: 380px) {
  .logo-stage { width: min(232px, 82vw); min-height: 148px; }
  .hero-logo { width: min(218px, 76vw); max-height: 164px; }
  .hero-word-row { gap: 6px; }
  .hero-word-row span { min-height: 38px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .animated-hero-shell::before,
  .animated-hero-shell::after,
  .logo-stage::before,
  .logo-stage::after,
  .hero-logo,
  .logo-spark,
  .hero-copy-animated,
  .hero-copy-animated h1,
  .hero-copy-animated p,
  .hero-word-row span,
  .game-hype-strip.text-only span {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


/* v10 policy/play-interval pages */
.play-limit-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(253, 200, 32, 0.13);
  border: 1px solid rgba(253, 200, 32, 0.22);
  color: #fff4b6;
  font-weight: 900;
  font-size: 0.88rem;
}
.legal-shell { width: min(860px, 100%); }
.legal-card { padding: clamp(18px, 4vw, 34px); }
.legal-logo { width: min(230px, 72vw); display: block; margin: -8px auto 8px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.28)); }
.back-link { display: inline-flex; margin-bottom: 10px; color: var(--accent-2); font-weight: 900; text-decoration: none; }
.legal-content {
  margin-top: 18px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  color: #1d1438;
  line-height: 1.62;
  box-shadow: inset 0 0 0 1px rgba(23,0,82,.08);
}
.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4 { color: #170052; letter-spacing: -0.025em; }
.legal-content a { color: #4d16d8; font-weight: 900; }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; }


/* v12: in-play legal popups and once-only interval support */
body.legal-modal-open { overflow: hidden; }
.legal a { font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(14px, var(--safe-top)) 12px max(14px, var(--safe-bottom));
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.legal-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border-radius: 26px 26px 20px 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,242,255,.98));
  color: #1d1438;
  box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.55) inset;
  outline: none;
}
.legal-modal-card .brand-pill { color: #fff; }
.legal-modal-card h2 {
  margin: 10px 42px 12px 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  letter-spacing: -0.04em;
}
.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #ff5fd1, #6d16ff);
  box-shadow: 0 10px 24px rgba(109,22,255,.25);
  font-size: 1.8rem;
  line-height: 1;
}
.legal-modal .legal-content {
  margin-top: 0;
  max-height: none;
  box-shadow: inset 0 0 0 1px rgba(23,0,82,.08);
}
.legal-modal-actions {
  position: sticky;
  bottom: -18px;
  margin: 14px -18px -18px;
  padding: 12px 18px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(246,242,255,0), rgba(246,242,255,.98) 28%);
  display: flex;
  justify-content: flex-end;
}
.legal-modal-actions .secondary { min-width: 130px; }
@media (min-width: 720px) {
  .legal-modal { align-items: center; }
  .legal-modal-card { border-radius: 28px; padding: 24px; }
  .legal-modal-actions { margin: 18px -24px -24px; padding: 14px 24px 18px; }
}

.game-legal { text-align: center; margin: 12px 0 calc(70px + var(--safe-bottom)); font-size: 0.82rem; }
@media (min-width: 720px) { .game-legal { margin-bottom: 8px; } }

/* v14: confirm-square wording and no Play/Match/Win hero strip. */
.hero-word-row,
.game-hype-strip.text-only {
  display: none !important;
}

/* v15: exact call-to-card matching uses card_index, not label lookup. */

/* v16: lock dynamic play text into fixed slots so status copy never pushes the board, logo, or controls down. */
.game-title-block,
.game-brand-line > div,
.brand-copy,
.hero-copy-animated {
  min-width: 0;
}

.game-title-block {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.game-brand-line h2,
.hero-copy-animated h1,
.brand-copy h1 {
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-brand-line h2 {
  white-space: nowrap;
  max-width: 100%;
}

#playerGreeting {
  min-height: 2.7em;
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.caller-stage {
  align-self: stretch;
  align-content: center;
}

.call-ball,
.tray-ball,
.draw-count {
  font-variant-numeric: tabular-nums;
}

.caller-panel {
  min-height: 76px;
  height: 76px;
  overflow: hidden;
}

.caller-copy {
  min-height: 48px;
  align-content: center;
}

.caller-copy strong,
.caller-copy span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.caller-copy strong {
  min-height: 1.18em;
  max-height: 1.18em;
  -webkit-line-clamp: 1;
}

.caller-copy span {
  min-height: 2.35em;
  max-height: 2.35em;
  -webkit-line-clamp: 2;
}

.draw-count {
  width: 58px;
  text-align: right;
}

.game-controls button {
  height: 56px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-action {
  height: 46px;
}

.tray-ball {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  padding-left: 0;
  padding-right: 0;
}

.hero-copy-animated h1,
.brand-copy h1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.08em;
  max-height: 2.08em;
}

.hero-copy-animated p,
.brand-copy p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.9em;
  max-height: 2.9em;
}

@media (max-width: 359px) {
  .caller-panel {
    min-height: 72px;
    height: 72px;
  }
  .draw-count {
    width: 50px;
    font-size: 0.9rem;
  }
  .caller-copy strong { font-size: 0.9rem; }
  .caller-copy span { font-size: 0.8rem; }
  .game-controls button { height: 52px; }
  .auto-action { height: 44px; }
}

@media (min-width: 700px) {
  .caller-panel {
    min-height: 82px;
    height: 82px;
  }
  .draw-count { width: 68px; }
}

/* v17: make Draw unmistakable and keep the active play screen above the mobile fold. */
#drawBtn.draw-action {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.28rem, 6.5vw, 1.8rem);
  line-height: 1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 16px 34px rgba(255, 207, 74, 0.35), 0 0 32px rgba(255, 207, 74, 0.26);
}

#drawBtn.draw-action::before {
  content: "";
  position: absolute;
  inset: -35% -18%;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,0.58) 48%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
}

#drawBtn.draw-action:not(:disabled) {
  animation: drawButtonPulse 1.18s ease-in-out infinite;
}

#drawBtn.draw-action:not(:disabled)::before {
  animation: drawButtonSweep 1.6s ease-in-out infinite;
}

#drawBtn.draw-action:disabled {
  animation: none;
  letter-spacing: 0.06em;
}

@keyframes drawButtonPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  48% { transform: translateY(-2px) scale(1.035); filter: brightness(1.12); }
}

@keyframes drawButtonSweep {
  0%, 45% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

@media (max-width: 699px) {
  body.game-active {
    overflow: hidden;
  }

  body.game-active .shell {
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: stretch;
    padding: max(4px, var(--safe-top)) 6px max(4px, var(--safe-bottom));
  }

  body.game-active .hero,
  body.game-active #entry,
  body.game-active #result {
    display: none !important;
  }

  body.game-active #game {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 8px);
    max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 8px);
    margin: 0;
    padding: 8px;
    border-radius: 20px;
    overflow: hidden;
  }

  body.game-active .game-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    flex: 0 0 auto;
  }

  body.game-active .game-brand-line {
    gap: 6px;
  }

  body.game-active .game-logo {
    width: clamp(40px, 12vw, 54px);
    height: clamp(40px, 12vw, 54px);
  }

  body.game-active .game-brand-line h2 {
    margin-top: 2px;
    font-size: clamp(1rem, 4.5vw, 1.26rem);
  }

  body.game-active .game-brand-line .brand-pill {
    padding: 4px 7px;
    font-size: 0.54rem;
    letter-spacing: 0.07em;
  }

  body.game-active #playerGreeting {
    min-height: 2.18em;
    max-height: 2.18em;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.1;
  }

  body.game-active .caller-stage {
    min-width: 82px;
    padding: 5px;
    border-radius: 18px;
    gap: 3px;
  }

  body.game-active .caller-label {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  body.game-active .call-ball {
    width: clamp(58px, 17vw, 74px);
    height: clamp(58px, 17vw, 74px);
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  body.game-active .bingo-wrap {
    flex: 0 1 auto;
    margin-top: 6px;
    padding: 6px;
    border-radius: 18px;
  }

  body.game-active .board {
    width: min(100%, max(238px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 294px)));
    margin: 0 auto;
    gap: clamp(3px, 1.1vw, 5px);
  }

  body.game-active .board button {
    border-radius: clamp(8px, 2.4vw, 12px);
    font-size: clamp(0.7rem, 3.4vw, 0.92rem);
  }

  body.game-active .caller-panel {
    flex: 0 0 56px;
    min-height: 56px;
    height: 56px;
    margin: 6px 0 5px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  body.game-active .caller-copy {
    min-height: 40px;
  }

  body.game-active .caller-copy strong {
    font-size: 0.82rem;
  }

  body.game-active .caller-copy span {
    min-height: 2.05em;
    max-height: 2.05em;
    font-size: 0.72rem;
    line-height: 1.02;
  }

  body.game-active .draw-count {
    width: 49px;
    font-size: 0.85rem;
  }

  body.game-active .ball-tray {
    flex: 0 0 33px;
    height: 33px;
    gap: 5px;
    padding: 0 0 4px;
  }

  body.game-active .tray-ball {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    font-size: 0.66rem;
  }

  body.game-active .progress {
    flex: 0 0 5px;
    height: 5px;
    margin: 0 0 5px;
  }

  body.game-active .game-controls {
    position: relative;
    bottom: auto;
    flex: 0 0 auto;
    grid-template-columns: 1.18fr 0.92fr;
    gap: 6px;
    margin-top: 0;
    padding: 6px;
    border-radius: 18px;
  }

  body.game-active .game-controls button {
    min-height: 54px;
    height: 54px;
    border-radius: 14px;
  }

  body.game-active #drawBtn.draw-action {
    min-height: 62px;
    height: 62px;
    font-size: clamp(1.46rem, 7vw, 1.9rem);
  }

  body.game-active .fill-action {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  body.game-active .auto-action {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 0.8rem;
  }

  body.game-active .game-legal {
    flex: 0 0 auto;
    margin: 4px 0 0;
    font-size: 0.66rem;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 699px) and (max-height: 720px) {
  body.game-active #game {
    padding: 6px;
    border-radius: 18px;
  }

  body.game-active .game-logo {
    width: 38px;
    height: 38px;
  }

  body.game-active .game-brand-line h2 {
    font-size: 0.98rem;
  }

  body.game-active #playerGreeting {
    display: none;
  }

  body.game-active .caller-stage {
    min-width: 74px;
    padding: 4px;
  }

  body.game-active .call-ball {
    width: 54px;
    height: 54px;
    font-size: 1.16rem;
  }

  body.game-active .bingo-wrap {
    margin-top: 5px;
    padding: 5px;
  }

  body.game-active .board {
    width: min(100%, max(228px, calc(100dvh - var(--safe-top) - var(--safe-bottom) - 256px)));
  }

  body.game-active .caller-panel {
    flex-basis: 50px;
    min-height: 50px;
    height: 50px;
    margin: 5px 0 4px;
    padding: 6px 8px;
  }

  body.game-active .caller-copy strong {
    font-size: 0.78rem;
  }

  body.game-active .caller-copy span {
    font-size: 0.68rem;
  }

  body.game-active .ball-tray {
    flex-basis: 28px;
    height: 28px;
  }

  body.game-active .tray-ball {
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    height: 26px;
    font-size: 0.62rem;
  }

  body.game-active #drawBtn.draw-action {
    min-height: 58px;
    height: 58px;
    font-size: clamp(1.34rem, 7vw, 1.74rem);
  }

  body.game-active .game-controls button {
    min-height: 50px;
    height: 50px;
  }

  body.game-active .auto-action {
    min-height: 30px !important;
    height: 30px !important;
  }

  body.game-active .game-legal {
    font-size: 0.6rem;
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #drawBtn.draw-action,
  #drawBtn.draw-action::before {
    animation: none !important;
  }
}


/* v20: darker purple play theme and equal-sized DRAW / CONFIRM SQUARE buttons. */
:root {
  --bg: #080027;
  --card: rgba(20, 4, 58, 0.86);
  --card-strong: rgba(35, 8, 86, 0.9);
  --ink: #13003f;
}

body {
  background:
    radial-gradient(circle at 12% 4%, rgba(253, 200, 32, 0.16), transparent 16rem),
    radial-gradient(circle at 86% 8%, rgba(34, 205, 220, 0.14), transparent 18rem),
    radial-gradient(circle at 42% 42%, rgba(255, 43, 184, 0.1), transparent 17rem),
    linear-gradient(135deg, #07001e 0%, #13003d 46%, #25005d 100%);
}

.card,
.game-card,
.entry-card,
.result-card {
  background: linear-gradient(180deg, rgba(31, 6, 79, 0.92), rgba(12, 0, 45, 0.94));
  border-color: rgba(172, 104, 255, 0.24);
}

.bingo-wrap,
.caller-stage,
.caller-panel,
.game-controls {
  background: rgba(12, 0, 45, 0.78);
  border-color: rgba(172, 104, 255, 0.22);
}

.board button {
  background: linear-gradient(180deg, rgba(57, 16, 113, 0.92), rgba(28, 4, 75, 0.94));
  border-color: rgba(205, 166, 255, 0.2);
}

.board button.callable {
  background: linear-gradient(180deg, rgba(253, 200, 32, 0.38), rgba(87, 36, 126, 0.92));
}

.board button.marked {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
}

#drawBtn.draw-action {
  font-size: clamp(1rem, 4.6vw, 1.24rem);
  letter-spacing: 0.08em;
}

@keyframes drawButtonPulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  48% { transform: translateY(-1px) scale(1.018); filter: brightness(1.1); }
}

@media (max-width: 699px) {
  body.game-active .game-controls {
    grid-template-columns: 1fr 1fr;
  }

  body.game-active .game-controls button,
  body.game-active #drawBtn.draw-action,
  body.game-active .fill-action {
    min-height: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: clamp(0.84rem, 4.1vw, 1.06rem);
    line-height: 1.05;
  }

  body.game-active #drawBtn.draw-action {
    letter-spacing: 0.09em;
  }
}

@media (max-width: 699px) and (max-height: 720px) {
  body.game-active .game-controls button,
  body.game-active #drawBtn.draw-action,
  body.game-active .fill-action {
    min-height: 50px;
    height: 50px;
    font-size: clamp(0.82rem, 4vw, 1rem);
  }
}

/* v21: straighten FREE square and lighten bingo squares against the dark purple play theme. */
.board button {
  background: linear-gradient(180deg, rgba(126, 72, 207, 0.96), rgba(78, 31, 154, 0.96));
  border-color: rgba(237, 222, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 20px rgba(22, 0, 66, 0.2),
    0 7px 15px rgba(0, 0, 0, 0.18);
}

.board button:not(.marked):not(.free):not(.callable) {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.board button.free,
.board button.free.marked {
  background: linear-gradient(135deg, #fff3a3, #ffd65a 48%, #ffb92e);
  color: #24102e;
  border-color: rgba(255, 255, 255, 0.62);
  transform: scale(0.96) rotate(0deg) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.board button.free.match-target,
.board button.free.match-impact,
.board button.free.bingo-line,
.board button.free.line-win-pop {
  transform: scale(0.96) rotate(0deg) !important;
}

.board button.callable:not(.free) {
  background: linear-gradient(180deg, rgba(255, 219, 87, 0.56), rgba(132, 75, 198, 0.98));
  border-color: rgba(255, 236, 156, 0.52);
}

.board button.marked:not(.free) {
  background: linear-gradient(135deg, #7df9d8, #fdc820);
  color: #101329;
}


/* v22: vertically center Auto Draw and add icon. */
.auto-action,
body.game-active .auto-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  line-height: 1 !important;
  text-align: center;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-action::before {
  content: '▶';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 999px;
  font-size: 0.78em;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  flex: 0 0 auto;
}

.auto-action.is-running::before {
  content: '⏸';
}

.auto-action:disabled::before {
  opacity: 0.58;
}


/* v23: rename Confirm Square to CONFIRM and force white button text. */
.fill-action,
body.game-active .fill-action,
#fillBtn {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

#fillBtn:disabled {
  color: rgba(255, 255, 255, 0.9) !important;
}


/* v24: keep the numbered ball visibly parked on a confirmed square. */
.board button {
  position: relative;
  overflow: hidden;
}

.board button.confirmed-with-ball:not(.free) {
  color: transparent !important;
  text-shadow: none !important;
  transform: scale(0.96) rotate(0deg);
  background: linear-gradient(180deg, rgba(92, 39, 169, 0.98), rgba(48, 12, 114, 0.98));
}

.board button.confirmed-with-ball:not(.free)::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.22) 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, #fff 0 34%, var(--accent) 35% 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    inset -5px -7px 12px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(255, 207, 74, 0.3);
}

.board button.confirmed-with-ball:not(.free)::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  opacity: 0.48;
  pointer-events: none;
}

.confirmed-ball {
  position: absolute;
  inset: 10%;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #101329;
  font-weight: 1000;
  font-size: clamp(0.76rem, 3.8vw, 1.05rem);
  line-height: 1;
  text-shadow: none;
  pointer-events: none;
}

.board button.confirmed-with-ball.match-impact:not(.free) {
  animation: cardImpact 620ms cubic-bezier(.2, 1.4, .45, 1);
}


/* v25: stylize card squares with more visual depth and polish. */
.board {
  gap: clamp(8px, 2.2vw, 12px);
}

.board button {
  border-radius: 18px;
  border-width: 1.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.26), rgba(255,255,255,0.08) 16%, transparent 17%),
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(164, 116, 237, 0.98), rgba(94, 43, 178, 0.98) 58%, rgba(62, 20, 138, 1));
  border-color: rgba(247, 232, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -16px 24px rgba(30, 2, 76, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(12, 0, 35, 0.24),
    0 0 0 2px rgba(255, 255, 255, 0.04);
}

.board button:not(.confirmed-with-ball):not(.free)::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0) 38%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
}

.board button:not(.confirmed-with-ball):not(.free)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 28%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.06));
  filter: blur(0.2px);
  opacity: 0.72;
  pointer-events: none;
}

.board button:not(.marked):not(.free):not(.callable) {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(10, 0, 28, 0.38);
}

.board button.callable:not(.free) {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 16%, transparent 17%),
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, rgba(255, 227, 121, 0.94), rgba(190, 113, 255, 0.98) 56%, rgba(94, 34, 178, 1));
  border-color: rgba(255, 244, 196, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -16px 24px rgba(67, 11, 112, 0.22),
    0 0 0 2px rgba(255, 219, 87, 0.18),
    0 12px 24px rgba(34, 8, 70, 0.28),
    0 0 18px rgba(255, 214, 80, 0.24);
}

.board button.marked:not(.free):not(.confirmed-with-ball) {
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.34), rgba(255,255,255,0.1) 18%, transparent 19%),
    linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #8bf6de 0%, #f7ef88 44%, #f8bf2e 100%);
  color: #23113a;
  border-color: rgba(255, 248, 198, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 0 -10px 20px rgba(140, 87, 10, 0.14),
    0 0 0 2px rgba(255, 255, 255, 0.09),
    0 12px 22px rgba(23, 6, 49, 0.24);
  text-shadow: none;
}

.board button.free,
.board button.free.marked {
  border-radius: 19px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.5), rgba(255,255,255,0.18) 18%, transparent 19%),
    linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, #fff7b5, #ffd86a 48%, #ffb92e 100%);
  color: #24102e;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -10px 16px rgba(184, 124, 12, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

.board button.confirmed-with-ball:not(.free) {
  border-color: rgba(255, 229, 160, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 22px rgba(12, 0, 35, 0.28),
    0 0 0 2px rgba(255, 217, 100, 0.08);
}

.confirmed-ball {
  font-size: clamp(0.8rem, 4vw, 1.08rem);
}


/* v26: make the top TC Bingo logo more appealing with an animated confetti burst. */
.logo-stage {
  overflow: visible;
  isolation: isolate;
}

.logo-stage::before {
  width: 102%;
  height: 72%;
  background:
    radial-gradient(circle at 24% 40%, rgba(253, 200, 32, 0.3), transparent 30%),
    radial-gradient(circle at 72% 38%, rgba(255, 43, 184, 0.24), transparent 32%),
    radial-gradient(circle, rgba(34, 205, 220, 0.18), transparent 68%);
  filter: blur(17px) saturate(1.18);
}

.logo-stage::after {
  border-color: rgba(253, 200, 32, 0.42);
  box-shadow:
    0 0 22px rgba(253, 200, 32, 0.28),
    0 0 40px rgba(255, 43, 184, 0.26),
    inset 0 0 28px rgba(34, 205, 220, 0.14);
}

.hero-logo {
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 18px rgba(253, 200, 32, 0.32))
    drop-shadow(0 0 28px rgba(255, 43, 184, 0.2));
}

.logo-confetti-burst,
.game-logo-confetti {
  position: absolute;
  inset: -14% -18%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.logo-confetti-burst span,
.game-logo-confetti span {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 10px;
  height: 16px;
  border-radius: 3px;
  opacity: 0;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(0deg) scale(0.38);
  transform-origin: center;
  animation: logoConfettiBurst 2.65s cubic-bezier(.15,.85,.22,1) infinite;
  box-shadow: 0 0 10px rgba(255,255,255,0.18);
}

.logo-confetti-burst span:nth-child(1) { --x: -105px; --y: -74px; --r: -210deg; background: var(--accent); animation-delay: 0s; }
.logo-confetti-burst span:nth-child(2) { --x: -78px; --y: -106px; --r: 145deg; background: var(--hot); animation-delay: 0.05s; width: 8px; height: 8px; border-radius: 999px; }
.logo-confetti-burst span:nth-child(3) { --x: -35px; --y: -122px; --r: -80deg; background: var(--good); animation-delay: 0.11s; }
.logo-confetti-burst span:nth-child(4) { --x: 28px; --y: -128px; --r: 230deg; background: #ffffff; animation-delay: 0.15s; width: 8px; height: 13px; }
.logo-confetti-burst span:nth-child(5) { --x: 78px; --y: -104px; --r: -155deg; background: var(--accent-2); animation-delay: 0.08s; }
.logo-confetti-burst span:nth-child(6) { --x: 110px; --y: -70px; --r: 170deg; background: #ff8a4a; animation-delay: 0.18s; width: 9px; height: 9px; border-radius: 999px; }
.logo-confetti-burst span:nth-child(7) { --x: -120px; --y: -15px; --r: 100deg; background: #81f5ff; animation-delay: 0.2s; }
.logo-confetti-burst span:nth-child(8) { --x: 126px; --y: -10px; --r: -120deg; background: #fff384; animation-delay: 0.24s; }
.logo-confetti-burst span:nth-child(9) { --x: -82px; --y: 48px; --r: -260deg; background: #ff7bd5; animation-delay: 0.27s; width: 7px; height: 12px; }
.logo-confetti-burst span:nth-child(10) { --x: 82px; --y: 54px; --r: 260deg; background: #71ffbf; animation-delay: 0.3s; width: 7px; height: 12px; }
.logo-confetti-burst span:nth-child(11) { --x: -24px; --y: 76px; --r: 85deg; background: #ffffff; animation-delay: 0.34s; width: 8px; height: 8px; border-radius: 999px; }
.logo-confetti-burst span:nth-child(12) { --x: 26px; --y: 78px; --r: -85deg; background: #fdc820; animation-delay: 0.38s; width: 8px; height: 8px; border-radius: 999px; }

@keyframes logoConfettiBurst {
  0%, 14% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.25);
  }
  20% {
    opacity: 1;
  }
  56% {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1);
  }
  86%, 100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 22px)) rotate(calc(var(--r) + 80deg)) scale(0.72);
  }
}

.game-logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(54px, 17vw, 86px);
  height: clamp(54px, 17vw, 86px);
  flex: 0 0 auto;
  isolation: isolate;
  overflow: visible;
}

.game-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(253, 200, 32, 0.24), rgba(255, 43, 184, 0.14), transparent 68%);
  filter: blur(9px);
  animation: gameLogoGlow 2.2s ease-in-out infinite;
}

.game-logo-wrap .game-logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 9px 14px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 11px rgba(253, 200, 32, 0.25));
}

.game-logo-confetti {
  inset: -32%;
  z-index: 3;
}

.game-logo-confetti span {
  width: 5px;
  height: 9px;
  animation-name: miniLogoConfettiBurst;
  animation-duration: 2.3s;
}

.game-logo-confetti span:nth-child(1) { --x: -34px; --y: -25px; --r: -165deg; background: var(--accent); animation-delay: 0.08s; }
.game-logo-confetti span:nth-child(2) { --x: -10px; --y: -38px; --r: 120deg; background: var(--hot); animation-delay: 0.18s; width: 5px; height: 5px; border-radius: 999px; }
.game-logo-confetti span:nth-child(3) { --x: 28px; --y: -30px; --r: 180deg; background: var(--accent-2); animation-delay: 0.28s; }
.game-logo-confetti span:nth-child(4) { --x: 36px; --y: 2px; --r: -100deg; background: var(--good); animation-delay: 0.36s; }
.game-logo-confetti span:nth-child(5) { --x: -34px; --y: 4px; --r: 95deg; background: #ffffff; animation-delay: 0.42s; width: 5px; height: 5px; border-radius: 999px; }
.game-logo-confetti span:nth-child(6) { --x: 0px; --y: 34px; --r: 210deg; background: #ff8a4a; animation-delay: 0.48s; }

@keyframes miniLogoConfettiBurst {
  0%, 24% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.2); }
  32% { opacity: 1; }
  62% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 12px)) rotate(calc(var(--r) + 70deg)) scale(0.62); }
}

@keyframes gameLogoGlow {
  0%, 100% { opacity: 0.52; transform: scale(0.92); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

@media (max-width: 699px) {
  body.game-active .game-logo-wrap {
    width: clamp(40px, 12vw, 54px);
    height: clamp(40px, 12vw, 54px);
  }
}

@media (max-width: 699px) and (max-height: 720px) {
  body.game-active .game-logo-wrap {
    width: 38px;
    height: 38px;
  }

  body.game-active .game-logo-confetti {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-confetti-burst span,
  .game-logo-confetti span,
  .game-logo-wrap::before {
    animation: none !important;
  }

  .logo-confetti-burst span,
  .game-logo-confetti span {
    opacity: 0.88;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(0.82);
  }
}

/* logo-v27: flying bingo balls replace logo confetti. */
.logo-ball-burst,
.game-logo-balls {
  position: absolute;
  inset: -20% -24%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.logo-ball-burst span,
.game-logo-balls span {
  position: absolute;
  left: 50%;
  top: 53%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  opacity: 0;
  color: #231041;
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.05em;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.64) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #ffffff 0 42%, #fdc820 43% 68%, #ff7a18 69% 100%);
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(253, 200, 32, 0.34);
  transform: translate(-50%, -50%) rotate(0deg) scale(0.28);
  transform-origin: center;
  animation: logoConfettiBurst 2.75s cubic-bezier(.15,.85,.22,1) infinite;
}

.logo-ball-burst span:nth-child(2n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #ffffff 0 42%, #2de2ff 43% 68%, #087dff 69% 100%);
}

.logo-ball-burst span:nth-child(3n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #ffffff 0 42%, #ff4dc4 43% 68%, #a200ff 69% 100%);
}

.logo-ball-burst span:nth-child(4n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #ffffff 0 42%, #67ffbc 43% 68%, #0fa55d 69% 100%);
}

.logo-ball-burst span:nth-child(1) { --x: -112px; --y: -78px; --r: -260deg; animation-delay: 0s; }
.logo-ball-burst span:nth-child(2) { --x: -86px; --y: -118px; --r: 190deg; animation-delay: 0.05s; width: 24px; height: 24px; }
.logo-ball-burst span:nth-child(3) { --x: -34px; --y: -134px; --r: -90deg; animation-delay: 0.11s; width: 26px; height: 26px; }
.logo-ball-burst span:nth-child(4) { --x: 32px; --y: -136px; --r: 230deg; animation-delay: 0.15s; }
.logo-ball-burst span:nth-child(5) { --x: 88px; --y: -112px; --r: -165deg; animation-delay: 0.08s; width: 25px; height: 25px; }
.logo-ball-burst span:nth-child(6) { --x: 124px; --y: -72px; --r: 205deg; animation-delay: 0.18s; }
.logo-ball-burst span:nth-child(7) { --x: -132px; --y: -16px; --r: 110deg; animation-delay: 0.2s; width: 24px; height: 24px; }
.logo-ball-burst span:nth-child(8) { --x: 136px; --y: -10px; --r: -130deg; animation-delay: 0.24s; width: 24px; height: 24px; }
.logo-ball-burst span:nth-child(9) { --x: -92px; --y: 54px; --r: -280deg; animation-delay: 0.27s; }
.logo-ball-burst span:nth-child(10) { --x: 94px; --y: 58px; --r: 285deg; animation-delay: 0.3s; width: 25px; height: 25px; }
.logo-ball-burst span:nth-child(11) { --x: -26px; --y: 84px; --r: 95deg; animation-delay: 0.34s; width: 24px; height: 24px; }
.logo-ball-burst span:nth-child(12) { --x: 28px; --y: 86px; --r: -95deg; animation-delay: 0.38s; width: 24px; height: 24px; }

.game-logo-balls {
  inset: -36%;
  z-index: 3;
}

.game-logo-balls span {
  width: 17px;
  height: 17px;
  font-size: 0.48rem;
  border-width: 1px;
  animation-name: miniLogoConfettiBurst;
  animation-duration: 2.4s;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28), 0 0 10px rgba(253, 200, 32, 0.3);
}

.game-logo-balls span:nth-child(1) { --x: -38px; --y: -26px; --r: -165deg; animation-delay: 0.08s; }
.game-logo-balls span:nth-child(2) { --x: -10px; --y: -42px; --r: 120deg; animation-delay: 0.18s; }
.game-logo-balls span:nth-child(3) { --x: 32px; --y: -32px; --r: 180deg; animation-delay: 0.28s; }
.game-logo-balls span:nth-child(4) { --x: 40px; --y: 3px; --r: -100deg; animation-delay: 0.36s; }
.game-logo-balls span:nth-child(5) { --x: -38px; --y: 5px; --r: 95deg; animation-delay: 0.42s; }
.game-logo-balls span:nth-child(6) { --x: 0px; --y: 38px; --r: 210deg; animation-delay: 0.48s; }

.confetti-layer .bingo-burst-ball {
  position: fixed;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #241044;
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: -0.05em;
  line-height: 1;
  font-style: normal;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #fff 0 42%, #fdc820 43% 68%, #ff7a18 69% 100%);
  border: 2px solid rgba(255, 255, 255, 0.78);
  animation: none !important;
  will-change: transform, opacity;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), 0 0 16px rgba(253, 200, 32, 0.26);
}

.confetti-layer .bingo-burst-ball:nth-child(2n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #fff 0 42%, #2de2ff 43% 68%, #087dff 69% 100%);
}

.confetti-layer .bingo-burst-ball:nth-child(3n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #fff 0 42%, #ff4dc4 43% 68%, #a200ff 69% 100%);
}

.confetti-layer .bingo-burst-ball:nth-child(4n) {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.62) 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, #fff 0 42%, #67ffbc 43% 68%, #0fa55d 69% 100%);
}

@media (max-width: 699px) and (max-height: 720px) {
  body.game-active .game-logo-balls {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-ball-burst span,
  .game-logo-balls span,
  .confetti-layer .bingo-burst-ball {
    animation: none !important;
  }

  .logo-ball-burst span,
  .game-logo-balls span {
    opacity: 0.92;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(0.82);
  }
}

/* v28 prize image showcase */
.rewards-showcase {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 225, 255, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255,255,255,0.08);
}
.rewards-showcase::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 224, 255, 0.22), transparent 60%);
  pointer-events: none;
}
.rewards-head { position: relative; z-index: 1; }
.rewards-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(138px, 43%);
  gap: 10px;
  overflow-x: auto;
  padding: 4px 1px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.reward-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 86px auto;
  min-height: 160px;
  padding: 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(75, 24, 171, 0.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 14px 28px rgba(0,0,0,0.22);
}
.reward-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at 35% 20%, rgba(255,255,255,0.42), rgba(0, 224, 255, 0.14) 42%, rgba(24, 0, 100, 0.46));
  border: 1px solid rgba(255,255,255,0.16);
}
.reward-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reward-placeholder {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 1.75rem;
  background: linear-gradient(145deg, #ffdc2f, #ff8c00);
  box-shadow: 0 10px 20px rgba(255, 200, 0, 0.24), inset 0 2px 0 rgba(255,255,255,0.55);
}
.reward-copy { padding: 8px 2px 0; }
.reward-copy strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.34);
}
.reward-copy p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.72rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-rewards-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin: -2px 0 8px;
  padding: 6px 8px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(10, 0, 65, 0.46);
  border: 1px solid rgba(255,255,255,0.12);
  scrollbar-width: none;
}
.game-rewards-mini::-webkit-scrollbar { display: none; }
.game-rewards-mini > span {
  flex: 0 0 auto;
  color: #ffe95c;
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  max-width: 112px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}
.mini-reward img,
.mini-reward b {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffe76b, #ff8a00);
  font-size: 0.85rem;
}
.mini-reward small {
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.winner-prize-image {
  width: min(100%, 260px);
  max-height: 180px;
  object-fit: cover;
  border-radius: 22px;
  margin: 8px auto 12px;
  display: block;
  box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 0 3px rgba(255,255,255,0.12);
}
@media (min-width: 760px) {
  .rewards-track { grid-auto-columns: minmax(180px, 220px); }
  .reward-card { grid-template-rows: 110px auto; }
}
@media (max-height: 740px) {
  .game-rewards-mini { display: none; }
}


/* v29: active play rewards belong at the bottom of the card-show screen, never beside the bingo card. */
.game-rewards-bottom,
body.game-active .game-rewards-bottom {
  order: 90;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  justify-content: flex-start;
  margin: 8px 0 4px;
  padding: 7px 8px;
  clear: both;
  float: none;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}

body.game-active .game-controls { order: 80; }
body.game-active .game-rewards-bottom + .game-legal { order: 100; }
body.game-active .game-rewards-bottom .mini-reward {
  max-width: 132px;
}

@media (min-width: 700px) {
  .game-rewards-bottom,
  body.game-active .game-rewards-bottom {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 18px;
  }
}

@media (max-width: 699px) {
  body.game-active .game-rewards-bottom {
    min-height: 40px;
    height: 40px;
    gap: 6px;
    margin: 5px 0 2px;
    padding: 5px 7px;
  }
  body.game-active .game-rewards-bottom > span {
    font-size: 0.66rem;
  }
  body.game-active .game-rewards-bottom .mini-reward {
    max-width: 102px;
    padding: 2px 7px 2px 2px;
  }
  body.game-active .game-rewards-bottom .mini-reward img,
  body.game-active .game-rewards-bottom .mini-reward b {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 0.78rem;
  }
  body.game-active .game-rewards-bottom .mini-reward small {
    font-size: 0.62rem;
  }
}

@media (max-height: 740px) {
  body.game-active .game-rewards-bottom { display: flex; }
}

@media (max-width: 699px) and (max-height: 720px) {
  body.game-active .game-rewards-bottom {
    min-height: 14px;
    height: 34px;
    margin-top: 4px;
    padding: 4px 6px;
  }
  body.game-active .game-rewards-bottom .mini-reward img,
  body.game-active .game-rewards-bottom .mini-reward b {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}


/* v30: hard-lock rewards to the bottom of the active card-show screen. This overrides prior side/left layouts. */
#game.game-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

#game.game-card > .game-top { order: 10 !important; width: 100%; }
#game.game-card > .bingo-wrap { order: 20 !important; width: 100%; align-self: stretch; }
#game.game-card > .caller-panel { order: 30 !important; width: 100%; }
#game.game-card > .ball-tray { order: 40 !important; width: 100%; }
#game.game-card > .progress { order: 50 !important; width: 100%; }
#game.game-card > .game-controls { order: 60 !important; width: 100%; }
#game.game-card > .game-rewards-bottom,
#game.game-card > .rewards-bottom-locked {
  order: 70 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-column: 1 / -1 !important;
  clear: both !important;
  float: none !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 10px 0 0 !important;
}
#game.game-card > .game-legal { order: 80 !important; width: 100%; }

body.game-active #game.game-card > .game-rewards-bottom > span,
body.game-active #game.game-card > .rewards-bottom-locked > span {
  flex: 0 0 auto;
}

@media (min-width: 700px) {
  body.game-active .shell {
    display: flex;
    justify-content: center;
  }
  body.game-active #game.game-card {
    width: min(640px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.game-active #game.game-card > .game-rewards-bottom,
  body.game-active #game.game-card > .rewards-bottom-locked {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 699px) {
  body.game-active #game.game-card > .game-rewards-bottom,
  body.game-active #game.game-card > .rewards-bottom-locked {
    margin-top: 6px !important;
  }
}


/* v31: the landing prize showcase must never sit beside the active card screen.
   Hide the pre-game showcase during gameplay/results and keep the active game in a single column. */
body.game-active .landing-rewards-showcase,
body.game-active > .shell > .rewards-showcase,
body.result-active .landing-rewards-showcase,
body.result-active > .shell > .rewards-showcase {
  display: none !important;
}

body.game-active .shell,
body.result-active .shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

body.game-active .hero,
body.game-active #entry,
body.game-active #result {
  display: none !important;
}

body.result-active .hero,
body.result-active #entry,
body.result-active #game,
body.result-active .landing-rewards-showcase,
body.result-active > .shell > .rewards-showcase {
  display: none !important;
}

body.game-active #game.game-card {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: min(640px, 100%) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.game-active #game.game-card > .game-rewards-bottom,
body.game-active #game.game-card > .rewards-bottom-locked {
  order: 70 !important;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  grid-column: 1 / -1 !important;
  margin: 10px 0 0 !important;
  float: none !important;
  clear: both !important;
  position: static !important;
  transform: none !important;
}

body.game-active #game.game-card > .game-legal {
  order: 80 !important;
}

@media (min-width: 700px) {
  body.game-active .shell,
  body.result-active .shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

/* v32: keep inactive screens truly hidden. v30/v31 structural rewards rules forced #game to flex globally, which could reveal the card under the entry form. */
#game.hidden,
#entry.hidden,
#result.hidden,
.hidden {
  display: none !important;
}

/* Only force the active card-show layout while gameplay is actually active. */
body:not(.game-active) #game.game-card {
  display: none !important;
}

body.game-active #game.game-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

body.game-active #game.game-card > .game-top { order: 10 !important; width: 100%; }
body.game-active #game.game-card > .bingo-wrap { order: 20 !important; width: 100%; align-self: stretch; }
body.game-active #game.game-card > .caller-panel { order: 30 !important; width: 100%; }
body.game-active #game.game-card > .ball-tray { order: 40 !important; width: 100%; }
body.game-active #game.game-card > .progress { order: 50 !important; width: 100%; }
body.game-active #game.game-card > .game-controls { order: 60 !important; width: 100%; }
body.game-active #game.game-card > .game-rewards-bottom,
body.game-active #game.game-card > .rewards-bottom-locked {
  order: 70 !important;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  grid-column: 1 / -1 !important;
  margin: 10px 0 0 !important;
  float: none !important;
  clear: both !important;
  position: static !important;
  transform: none !important;
}
body.game-active #game.game-card > .game-legal { order: 80 !important; width: 100%; }

/* v33: make awarded prize image obvious and reliable on the win screen. */
.winner-prize-media {
  width: min(100%, 280px);
  min-height: 150px;
  margin: 10px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  border: 2px solid rgba(255, 231, 107, 0.72);
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.28), transparent 36%),
    linear-gradient(145deg, rgba(253, 200, 32, 0.34), rgba(255, 43, 184, 0.22), rgba(34, 205, 220, 0.18));
  box-shadow: 0 22px 44px rgba(0,0,0,0.34), 0 0 26px rgba(253,200,32,0.28);
  overflow: hidden;
}
.winner-prize-media.has-image {
  background: rgba(10, 0, 36, 0.72);
  padding: 6px;
}
.winner-prize-media .winner-prize-image {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  border-radius: 20px;
  margin: 0;
  display: block;
  box-shadow: none;
}
.winner-prize-placeholder {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 3rem;
  background: linear-gradient(145deg, #ffe76b, #ff8a00);
  box-shadow: inset 0 -8px 18px rgba(132, 52, 0, 0.2), 0 14px 28px rgba(0,0,0,0.24);
}

/* v34: bigger, better-presented rewards on the active play screen, and confetti bursts behind the win image. */
body.game-active #game.game-card > .game-rewards-showcase {
  display: block !important;
  padding: 12px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(160deg, rgba(52, 15, 132, 0.96), rgba(25, 7, 82, 0.94)) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 34px rgba(0,0,0,0.24) !important;
  overflow: hidden;
}

.game-rewards-showcase .game-rewards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.game-rewards-showcase .game-rewards-header strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.game-rewards-showcase .game-rewards-header .seat-pill {
  flex: 0 0 auto;
}
.game-rewards-showcase .game-rewards-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(166px, 58%);
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.game-rewards-showcase .game-rewards-track::-webkit-scrollbar {
  height: 7px;
}
.game-rewards-showcase .game-rewards-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.game-reward-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 114px auto;
  min-height: 196px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(165deg, rgba(255,255,255,0.18), rgba(120, 37, 205, 0.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 12px 24px rgba(0,0,0,0.22);
}
.game-reward-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 20%, rgba(255,255,255,0.5), rgba(0, 224, 255, 0.14) 40%, rgba(12, 0, 62, 0.55));
  border: 1px solid rgba(255,255,255,0.18);
}
.game-reward-image img,
.game-reward-image b {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #2f0d70;
}
.game-reward-image b {
  background: linear-gradient(145deg, #ffe76b, #ff8a00);
}
.game-reward-copy {
  padding: 9px 2px 2px;
}
.game-reward-label {
  display: block;
  margin-bottom: 4px;
  color: #ffe95c;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.game-reward-copy strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.16;
}
.game-reward-copy p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.72rem;
  line-height: 1.26;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 700px) {
  body.game-active #game.game-card > .game-rewards-showcase {
    padding: 14px !important;
  }
  .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(180px, 200px);
  }
}
@media (max-width: 699px) {
  body.game-active #game.game-card > .game-rewards-showcase {
    margin-top: 8px !important;
  }
  .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(152px, 68%);
    gap: 10px;
  }
  .game-reward-card {
    grid-template-rows: 102px auto;
    min-height: 180px;
    padding: 9px;
  }
}

.result-card {
  overflow: visible;
}
.result-card.winner-result {
  position: relative;
}
.result-card.winner-result .winner-prize-media {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.result-card.winner-result .winner-prize-image,
.result-card.winner-result .winner-prize-placeholder {
  position: relative;
  z-index: 2;
}
.winner-prize-bursts {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  z-index: 0;
}
.winner-burst-cluster {
  position: absolute;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.winner-burst-cluster.burst-left {
  left: -40px;
  animation: winnerBurstFloatLeft 2.8s ease-in-out infinite;
}
.winner-burst-cluster.burst-right {
  right: -40px;
  animation: winnerBurstFloatRight 2.8s ease-in-out infinite 0.2s;
}
.winner-burst-cluster i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 18px;
  margin: -9px 0 0 -5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #ffe95c 60%, #ff46b7);
  opacity: 0.95;
  transform-origin: 50% 48px;
  animation: winnerConfettiFlicker 1.8s ease-in-out infinite;
}
.winner-burst-cluster i:nth-child(1) { transform: rotate(-68deg) translateY(-42px); background: linear-gradient(180deg, #fff, #6bf1ff); }
.winner-burst-cluster i:nth-child(2) { transform: rotate(-30deg) translateY(-46px); background: linear-gradient(180deg, #fff, #ffe76b); animation-delay: .15s; }
.winner-burst-cluster i:nth-child(3) { transform: rotate(0deg) translateY(-50px); background: linear-gradient(180deg, #fff, #ff8a4a); animation-delay: .3s; }
.winner-burst-cluster i:nth-child(4) { transform: rotate(30deg) translateY(-46px); background: linear-gradient(180deg, #fff, #71ffbf); animation-delay: .45s; }
.winner-burst-cluster i:nth-child(5) { transform: rotate(58deg) translateY(-42px); background: linear-gradient(180deg, #fff, #ff7bd5); animation-delay: .6s; }
.winner-burst-cluster i:nth-child(6) { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; transform: rotate(82deg) translateY(-44px); background: linear-gradient(180deg, #fff, #fdc820); animation-delay: .75s; }

@keyframes winnerBurstFloatLeft {
  0%, 100% { transform: translateY(-50%) rotate(-6deg) scale(1); }
  50% { transform: translateY(calc(-50% - 5px)) rotate(3deg) scale(1.05); }
}
@keyframes winnerBurstFloatRight {
  0%, 100% { transform: translateY(-50%) rotate(6deg) scale(1); }
  50% { transform: translateY(calc(-50% - 5px)) rotate(-3deg) scale(1.05); }
}
@keyframes winnerConfettiFlicker {
  0%, 100% { opacity: .72; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .winner-burst-cluster,
  .winner-burst-cluster i {
    animation: none !important;
  }
}


/* v35: reward showcase presentation fix and real confetti behind the winner image. */
body[data-build="logo-v35-rewards-confetti"].game-active #game.game-card > .game-rewards-showcase {
  overflow: visible !important;
  padding: 14px !important;
  margin-top: 12px !important;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-rewards-showcase .game-rewards-header {
  margin-bottom: 12px;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-rewards-showcase .game-rewards-track {
  grid-auto-columns: minmax(250px, 88%);
  gap: 14px;
  padding: 4px 3px 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: stretch;
  min-height: 134px;
  height: auto;
  padding: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(112, 42, 211, 0.72), rgba(37, 10, 111, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 16px 30px rgba(0,0,0,0.28);
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-image {
  min-height: 110px;
  height: 100%;
  border-radius: 20px;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-image img {
  object-fit: contain;
  padding: 5px;
  background: rgba(255,255,255,0.07);
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-copy {
  min-width: 0;
  padding: 2px 0;
  align-self: center;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-copy strong {
  font-size: 1.04rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-copy p {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.86);
  font-size: 0.78rem;
  line-height: 1.32;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(253, 200, 32, 0.16);
  border: 1px solid rgba(253, 200, 32, 0.28);
}

@media (max-width: 420px) {
  body[data-build="logo-v35-rewards-confetti"].game-active .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(240px, 94%);
  }
  body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 122px;
    gap: 10px;
    padding: 10px;
  }
  body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-image {
    min-height: 98px;
  }
}

@media (min-width: 760px) {
  body[data-build="logo-v35-rewards-confetti"].game-active .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(310px, 360px);
  }
  body[data-build="logo-v35-rewards-confetti"].game-active .game-reward-card {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 150px;
  }
}

body[data-build="logo-v35-rewards-confetti"] .winner-prize-media {
  width: min(100%, 330px);
  min-height: 190px;
  padding: 10px;
  overflow: visible;
}

body[data-build="logo-v35-rewards-confetti"] .winner-prize-media.has-image {
  background:
    radial-gradient(circle at 50% 50%, rgba(253, 200, 32, 0.18), transparent 58%),
    rgba(10, 0, 36, 0.8);
}

body[data-build="logo-v35-rewards-confetti"] .winner-prize-media .winner-prize-image {
  position: relative;
  z-index: 3;
  max-height: 240px;
  background: rgba(255,255,255,0.08);
}

body[data-build="logo-v35-rewards-confetti"] .winner-prize-confetti {
  position: absolute;
  inset: -36px -42px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

body[data-build="logo-v35-rewards-confetti"] .winner-prize-confetti span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: var(--s, 20px);
  line-height: 1;
  transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
  opacity: 0;
  text-shadow: 0 5px 12px rgba(0,0,0,0.24);
  animation: prizeConfettiBurst var(--d, 1900ms) cubic-bezier(.18,.74,.28,1) infinite;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

@keyframes prizeConfettiBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.54) rotate(0deg);
  }
  12% { opacity: 1; }
  70% { opacity: 0.96; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-build="logo-v35-rewards-confetti"] .winner-prize-confetti span {
    animation: none !important;
    opacity: 0.9;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.92) rotate(var(--r));
  }
}

/* v36 base: preserve v35 reward/winner fixes under the carousel build marker. */
body[data-build="logo-v36-rewards-carousel"].game-active #game.game-card > .game-rewards-showcase {
  overflow: visible !important;
  padding: 14px !important;
  margin-top: 12px !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-rewards-showcase .game-rewards-header {
  margin-bottom: 12px;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-rewards-showcase .game-rewards-track {
  grid-auto-columns: minmax(250px, 88%);
  gap: 14px;
  padding: 4px 3px 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 12px;
  align-items: stretch;
  min-height: 134px;
  height: auto;
  padding: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(112, 42, 211, 0.72), rgba(37, 10, 111, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 16px 30px rgba(0,0,0,0.28);
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-image {
  min-height: 110px;
  height: 100%;
  border-radius: 20px;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-image img {
  object-fit: contain;
  padding: 5px;
  background: rgba(255,255,255,0.07);
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-copy {
  min-width: 0;
  padding: 2px 0;
  align-self: center;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-copy strong {
  font-size: 1.04rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-copy p {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.86);
  font-size: 0.78rem;
  line-height: 1.32;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(253, 200, 32, 0.16);
  border: 1px solid rgba(253, 200, 32, 0.28);
}

@media (max-width: 420px) {
  body[data-build="logo-v36-rewards-carousel"].game-active .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(240px, 94%);
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 122px;
    gap: 10px;
    padding: 10px;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-image {
    min-height: 98px;
  }
}

@media (min-width: 760px) {
  body[data-build="logo-v36-rewards-carousel"].game-active .game-rewards-showcase .game-rewards-track {
    grid-auto-columns: minmax(310px, 360px);
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .game-reward-card {
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 150px;
  }
}

body[data-build="logo-v36-rewards-carousel"] .winner-prize-media {
  width: min(100%, 330px);
  min-height: 190px;
  padding: 10px;
  overflow: visible;
}

body[data-build="logo-v36-rewards-carousel"] .winner-prize-media.has-image {
  background:
    radial-gradient(circle at 50% 50%, rgba(253, 200, 32, 0.18), transparent 58%),
    rgba(10, 0, 36, 0.8);
}

body[data-build="logo-v36-rewards-carousel"] .winner-prize-media .winner-prize-image {
  position: relative;
  z-index: 3;
  max-height: 240px;
  background: rgba(255,255,255,0.08);
}

body[data-build="logo-v36-rewards-carousel"] .winner-prize-confetti {
  position: absolute;
  inset: -36px -42px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

body[data-build="logo-v36-rewards-carousel"] .winner-prize-confetti span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: var(--s, 20px);
  line-height: 1;
  transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
  opacity: 0;
  text-shadow: 0 5px 12px rgba(0,0,0,0.24);
  animation: prizeConfettiBurst var(--d, 1900ms) cubic-bezier(.18,.74,.28,1) infinite;
  animation-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

@keyframes prizeConfettiBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.54) rotate(0deg);
  }
  12% { opacity: 1; }
  70% { opacity: 0.96; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-build="logo-v36-rewards-carousel"] .winner-prize-confetti span {
    animation: none !important;
    opacity: 0.9;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.92) rotate(var(--r));
  }
}



/* v36: make active play rewards a real carousel and allow the page to scroll down to it. */
body[data-build="logo-v36-rewards-carousel"].game-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100dvh !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .shell {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: max(18px, var(--safe-bottom)) !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active #game.game-card {
  max-height: none !important;
  min-height: auto !important;
  overflow: visible !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active #game.game-card > .reward-carousel {
  order: 70 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 13px !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 211, 229, 0.24), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(253, 200, 32, 0.24), transparent 32%),
    linear-gradient(150deg, rgba(57, 15, 131, 0.96), rgba(20, 0, 92, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 40px rgba(0,0,0,0.28) !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 11px !important;
  position: relative;
  z-index: 2;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-header strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.1;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-nav {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 8px 18px rgba(0,0,0,0.22);
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-nav:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  outline: none;
  touch-action: pan-y;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 211, 229, 0.36);
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-track {
  display: flex !important;
  gap: 0 !important;
  width: 100%;
  overflow: visible !important;
  padding: 0 !important;
  scroll-snap-type: none !important;
  transform: translate3d(0,0,0);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  scroll-snap-align: none !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-card {
  display: grid !important;
  grid-template-columns: minmax(118px, 36%) minmax(0, 1fr) !important;
  gap: 13px !important;
  align-items: stretch !important;
  min-height: 154px !important;
  height: auto !important;
  padding: 13px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.26), transparent 34%),
    linear-gradient(145deg, rgba(124, 45, 219, 0.90), rgba(36, 8, 114, 0.98)) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 30px rgba(0,0,0,0.26) !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image {
  min-height: 130px !important;
  height: 100% !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 35% 15%, rgba(255,255,255,0.45), rgba(255,255,255,0.10) 42%, rgba(255,255,255,0.06)) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 170px !important;
  object-fit: contain !important;
  padding: 6px !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image b {
  width: 78px !important;
  height: 78px !important;
  font-size: 2.15rem !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-copy {
  min-width: 0 !important;
  padding: 4px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-label {
  display: inline-flex !important;
  width: fit-content !important;
  margin-bottom: 7px !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(253, 200, 32, 0.16) !important;
  border: 1px solid rgba(253, 200, 32, 0.32) !important;
  color: #ffe76b !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-copy strong {
  display: block !important;
  color: #fff !important;
  font-size: clamp(1.06rem, 4.4vw, 1.35rem) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-copy p {
  display: block !important;
  margin: 8px 0 0 !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: clamp(0.82rem, 3.2vw, 0.94rem) !important;
  line-height: 1.34 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 11px 0 0;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-dots button {
  width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.36);
  box-shadow: none;
}

body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-dots button.is-active {
  width: 24px;
  background: linear-gradient(90deg, #14d3e5, #fdc820);
}

@media (max-width: 699px) {
  body[data-build="logo-v36-rewards-carousel"].game-active .shell {
    align-items: stretch !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active #game.game-card {
    margin-bottom: 20px !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active #game.game-card > .reward-carousel {
    margin-top: 10px !important;
    padding: 11px !important;
    border-radius: 21px !important;
      min-height:400px!important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-actions .seat-pill {
    display: none !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 12px !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image {
    min-height: 150px !important;
    height: 150px !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image img {
    max-height: 150px !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-copy {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 380px) {
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel .game-reward-image {
    min-height: 126px !important;
    height: 126px !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-header strong {
    font-size: 0.95rem !important;
  }
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-nav {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-build="logo-v36-rewards-carousel"].game-active .reward-carousel-track {
    transition: none !important;
  }
}

/* v39: optional CMS-uploaded image behind the active play card. */
.game-card.has-play-card-bg {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: rgba(12, 0, 45, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.24);
}

.game-card.has-play-card-bg::before,
.game-card.has-play-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.game-card.has-play-card-bg::before {
  z-index: 0;
  background-image: var(--play-card-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.46;
  filter: saturate(1.12) contrast(1.06) brightness(0.72);
}

.game-card.has-play-card-bg::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 18%, rgba(253, 200, 32, 0.18), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(34, 205, 220, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(8, 0, 39, 0.38), rgba(8, 0, 39, 0.78));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.game-card.has-play-card-bg > * {
  position: relative;
  z-index: 2;
}

.game-card.has-play-card-bg .game-top,
.game-card.has-play-card-bg .caller-panel,
.game-card.has-play-card-bg .game-controls,
.game-card.has-play-card-bg .reward-carousel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.game-card.has-play-card-bg .bingo-wrap {
  background: rgba(8, 0, 39, 0.64) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.game-card.has-play-card-bg .board button {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -16px 24px rgba(30, 2, 76, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(12, 0, 35, 0.34),
    0 0 0 2px rgba(255, 255, 255, 0.05);
}

@media (max-width: 699px) {
  body.game-active .game-card.has-play-card-bg::before {
    opacity: 0.4;
    filter: saturate(1.08) contrast(1.04) brightness(0.66);
  }
}


/* v40: CMS-controlled gameplay panel opacity for uploaded play-card backgrounds. */
.game-card.has-play-card-bg {
  --play-panel-opacity: var(--play-panel-opacity, 0.88);
  background: rgba(12, 0, 45, var(--play-panel-opacity, 0.88)) !important;
}

.game-card.has-play-card-bg::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(253, 200, 32, 0.16), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(34, 205, 220, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(8, 0, 39, 0.22), rgba(8, 0, 39, 0.46)) !important;
}

.game-card.has-play-card-bg .bingo-wrap,
.game-card.has-play-card-bg .caller-panel,
.game-card.has-play-card-bg .caller-stage,
.game-card.has-play-card-bg .game-controls,
.game-card.has-play-card-bg .reward-carousel,
.game-card.has-play-card-bg .game-rewards-showcase {
  background: rgba(8, 0, 39, var(--play-panel-opacity, 0.88)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-card.has-play-card-bg .bingo-wrap {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 34px rgba(0,0,0,0.28);
}

.game-card.has-play-card-bg .game-controls,
.game-card.has-play-card-bg .caller-panel,
.game-card.has-play-card-bg .caller-stage {
  border-color: rgba(255, 255, 255, 0.24) !important;
}

/* Keep numbers legible even when panels are set very transparent. */
.game-card.has-play-card-bg .board button {
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.5);
}


/* v41: redemption button on the winner panel. */
.redeem-button {
  background: linear-gradient(135deg, #67dd42, #22cddc) !important;
  color: #101329 !important;
  box-shadow: 0 14px 28px rgba(34, 205, 220, 0.22), 0 0 26px rgba(103, 221, 66, 0.2) !important;
}
.result-card .share-row.has-redeem {
  grid-template-columns: 1fr;
}
.result-card .redeem-note {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.84);
  font-size: 0.86rem;
}
@media (min-width: 720px) {
  .result-card .share-row.has-redeem { grid-template-columns: 1.25fr 1fr 1fr; }
}
