/* ── Venue display — big screen layout ── */

.bd-display.bdx-shell {
  --bdx-pink: #ff2d95;
  --bdx-purple: #9d4edd;
  --bdx-cyan: #00f0ff;
  --bdx-lime: #c8f830;
  --bdx-ink: #07050f;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #fff8f0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bdx-ink);
}

.bdx-cosmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(157, 78, 221, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(255, 45, 149, 0.18), transparent 50%),
    var(--bdx-ink);
}

.bdx-cosmos__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: bdx-orb-drift 18s ease-in-out infinite;
}

.bdx-cosmos__orb--1 {
  width: 28rem;
  height: 28rem;
  top: -12rem;
  left: -6rem;
  background: var(--bdx-purple);
}

.bdx-cosmos__orb--2 {
  width: 22rem;
  height: 22rem;
  bottom: -8rem;
  right: -2rem;
  background: var(--bdx-pink);
  animation-delay: -7s;
}

@keyframes bdx-orb-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.5rem, -1rem); }
}

/* Header */
.bdx-head {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 2rem;
  padding: 1rem clamp(1.5rem, 4vw, 3rem) 0.75rem;
}

.bdx-head__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(1rem, 1.8vmin, 1.25rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, 0.65);
}

.bdx-head__brand img {
  width: clamp(1.5rem, 2.5vmin, 2rem);
  height: clamp(1.5rem, 2.5vmin, 2rem);
  object-fit: contain;
}

.bdx-head__brand em {
  font-style: normal;
  color: var(--bdx-pink);
}

.bdx-head__title {
  margin: 0;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2.75rem, 6.5vmin, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff8f0;
}

.bdx-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.bdx-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 1.4vmin, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bdx-pink);
}

.bdx-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bdx-pink);
  box-shadow: 0 0 10px var(--bdx-pink);
  animation: bdx-dot-blink 1.4s ease-in-out infinite;
}

.bdx-code {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2.75rem, 6.5vmin, 5rem);
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--bdx-lime);
}

@keyframes bdx-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Sponsors */
.bdx-sponsors {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 0.75rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.bdx-sponsors[hidden] {
  display: none !important;
}

.bdx-sponsors__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bdx-sponsors__label {
  margin: 0;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(1rem, 1.8vmin, 1.25rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bdx-lime);
}

.bdx-sponsors__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3.5rem;
}

.bdx-sponsor__logo {
  height: clamp(4.75rem, 9.5vmin, 7.5rem);
  width: auto;
  max-width: 18rem;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
}

.bdx-sponsor__fallback {
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 8vmin, 6.5rem);
  height: clamp(4.5rem, 8vmin, 6.5rem);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bdx-purple), var(--bdx-pink));
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2.25rem, 4vmin, 3rem);
  color: #fff;
}

.bdx-sponsor__name {
  font-size: clamp(1.25rem, 2.5vmin, 1.75rem);
  font-weight: 700;
  color: #fff8f0;
}

.bdx-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* Main stage */
.bdx-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem clamp(1.5rem, 4vw, 3rem) max(1.25rem, env(safe-area-inset-bottom));
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bdx-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 34vw);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: stretch;
}

.bdx-stage--hit {
  animation: bdx-flash 0.45s ease;
}

@keyframes bdx-flash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.15); }
  100% { filter: brightness(1); }
}

/* Left column */
.bdx-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 3.5vh, 3rem);
  min-height: 0;
  min-width: 0;
}

/* Scoreboard */
.bdx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
  padding-bottom: clamp(1rem, 2vh, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bdx-stat__label {
  display: block;
  font-size: clamp(0.875rem, 1.8vmin, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 127, 168, 0.95);
  margin-bottom: 0.35rem;
}

.bdx-stat__num {
  display: block;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(4.5rem, 12vmin, 9rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: #fff8f0;
}

.bdx-stat__num em {
  font-style: normal;
  font-size: 0.38em;
  color: rgba(107, 98, 136, 0.9);
  margin-left: 0.08em;
}

.bdx-stat--songs.is-pop .bdx-stat__num {
  animation: bdx-pop 0.55s ease;
}

@keyframes bdx-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); color: var(--bdx-lime); }
  100% { transform: scale(1); }
}

.bdx-stat__bar {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 22rem;
  height: clamp(0.4rem, 0.8vmin, 0.65rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bdx-stat__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bdx-purple), var(--bdx-lime));
  transition: width 0.5s ease;
}

/* Pattern block — grid + copy side by side */
.bdx-pattern {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  min-width: 0;
}

.bdx-pattern.is-flip {
  animation: bdx-fade-swap 0.5s ease;
}

@keyframes bdx-fade-swap {
  0% { opacity: 1; }
  40% { opacity: 0.4; }
  100% { opacity: 1; }
}

.bdx-pattern__visual {
  width: clamp(11rem, 28vmin, 20rem);
  flex-shrink: 0;
}

.bdx-pattern__tag {
  margin: 0 0 0.35rem;
  font-size: clamp(0.875rem, 1.6vmin, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bdx-cyan);
}

.bdx-pattern__title {
  margin: 0 0 0.75rem;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2.5rem, 6vmin, 5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bdx-lime);
}

.bdx-pattern__hint {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vmin, 1.625rem);
  line-height: 1.4;
  color: rgba(200, 191, 216, 0.95);
  max-width: 36rem;
}

/* Pattern grid cells */
.bdx-pattern .bd-pat-letters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.bdx-pattern .bd-pat-letter {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(0.875rem, 2vmin, 1.375rem);
  text-align: center;
  color: rgba(255, 248, 240, 0.85);
}

.bdx-pattern .bd-pat-letter--n {
  color: var(--bdx-cyan);
}

.bdx-pattern .bd-pat-grid-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
}

.bdx-pattern .bd-pat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.25rem;
  height: 100%;
}

.bdx-pattern .bd-pat-cell {
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.bdx-pattern .bd-pat-cell--free {
  border-color: rgba(255, 45, 149, 0.55);
  background: rgba(255, 45, 149, 0.28);
}

.bdx-pattern .bd-pat-cell--free span {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(0.5rem, 1.2vmin, 0.75rem);
  color: #fff;
}

.bdx-pattern .bd-pat-cell--win {
  border-color: rgba(200, 248, 48, 0.6);
  background: rgba(200, 248, 48, 0.18);
}

.bdx-pattern .bd-pat-lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 0.25rem;
  pointer-events: none;
}

.bdx-pattern .bd-pat-line {
  opacity: 0;
  border-radius: 8px;
  border: 3px solid var(--bdx-lime);
  background: rgba(200, 248, 48, 0.1);
  animation: bdx-line-blink 12s linear infinite;
}

.bdx-pattern .bd-pat-line--row {
  grid-column: 1 / -1;
  grid-row: calc(var(--line-i) + 1);
}

.bdx-pattern .bd-pat-line--col {
  grid-row: 1 / -1;
  grid-column: calc(var(--line-i) + 1);
}

.bdx-pattern .bd-pat-line--diag {
  grid-area: 1 / 1 / 6 / 6;
  border: none;
  background: transparent;
}

.bdx-pattern .bd-pat-line--diag-a {
  background: linear-gradient(135deg, transparent 46%, rgba(200, 248, 48, 0.5) 48%, rgba(200, 248, 48, 0.5) 52%, transparent 54%);
}

.bdx-pattern .bd-pat-line--diag-b {
  background: linear-gradient(45deg, transparent 46%, rgba(200, 248, 48, 0.5) 48%, rgba(200, 248, 48, 0.5) 52%, transparent 54%);
}

.bdx-pattern .bd-pat-line:nth-child(1) { animation-delay: 0s; }
.bdx-pattern .bd-pat-line:nth-child(2) { animation-delay: -1s; }
.bdx-pattern .bd-pat-line:nth-child(3) { animation-delay: -2s; }
.bdx-pattern .bd-pat-line:nth-child(4) { animation-delay: -3s; }
.bdx-pattern .bd-pat-line:nth-child(5) { animation-delay: -4s; }
.bdx-pattern .bd-pat-line:nth-child(6) { animation-delay: -5s; }
.bdx-pattern .bd-pat-line:nth-child(7) { animation-delay: -6s; }
.bdx-pattern .bd-pat-line:nth-child(8) { animation-delay: -7s; }
.bdx-pattern .bd-pat-line:nth-child(9) { animation-delay: -8s; }
.bdx-pattern .bd-pat-line:nth-child(10) { animation-delay: -9s; }
.bdx-pattern .bd-pat-line:nth-child(11) { animation-delay: -10s; }
.bdx-pattern .bd-pat-line:nth-child(12) { animation-delay: -11s; }

@keyframes bdx-line-blink {
  0%, 6% { opacity: 1; }
  8.5%, 100% { opacity: 0; }
}

.bdx-bingo-call {
  margin: 0;
  font-size: clamp(1.5rem, 3vmin, 2.5rem);
  color: rgba(176, 165, 200, 0.95);
}

.bdx-bingo-call strong {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.25em;
  letter-spacing: 0.05em;
  color: var(--bdx-pink);
  animation: bdx-bingo-pulse 2.5s ease-in-out infinite;
}

@keyframes bdx-bingo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* QR column — tall, dominant */
.bdx-join {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.bdx-join__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 2.5vh, 2rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  width: 100%;
  min-height: 0;
}

.bdx-join__panel--paper {
  border-color: rgba(200, 248, 48, 0.3);
}

.bdx-join__label {
  margin: 0 0 0.5rem;
  font-size: clamp(0.875rem, 1.6vmin, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bdx-cyan);
}

.bdx-join__title {
  margin: 0 0 1.25rem;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2rem, 4.5vmin, 3.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff8f0;
}

.bdx-join__text {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.8vmin, 1.25rem);
  line-height: 1.4;
  color: rgba(168, 158, 196, 0.95);
  max-width: 16rem;
}

.bdx-join__qr-wrap {
  padding: clamp(0.5rem, 1vmin, 0.875rem);
  border-radius: 16px;
  background: #fff;
  line-height: 0;
}

.bdx-join__qr {
  display: block;
  width: min(100%, clamp(12rem, 24vmin, 18rem));
  height: min(100%, clamp(12rem, 24vmin, 18rem));
  object-fit: contain;
}

.bdx-join__room {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.8vmin, 1.25rem);
  color: rgba(168, 158, 196, 0.95);
}

.bdx-join__room strong {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.5em;
  letter-spacing: 0.12em;
  color: var(--bdx-lime);
  margin-left: 0.35rem;
}

.bdx-loading,
.bdx-error {
  margin: auto;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.5rem;
  color: #a89ec4;
}

@media (max-width: 1000px) {
  #bd-event-mount:has(.bdx-shell) {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .bd-display.bdx-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .bdx-main {
    flex: none;
    overflow: visible;
    height: auto;
  }

  .bdx-stage {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bdx-join {
    order: -1;
  }

  .bdx-join__panel {
    min-height: auto;
    padding: 1.5rem;
  }

  .bdx-pattern {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bdx-pattern__visual {
    margin: 0 auto;
  }

  .bdx-pattern__copy {
    text-align: center;
  }

  .bdx-pattern__hint {
    margin-inline: auto;
  }

  .bdx-stats {
    text-align: center;
  }

  .bdx-stat__bar {
    margin-inline: auto;
  }
}

@media (max-height: 700px) {
  .bdx-stat__num {
    font-size: clamp(3rem, 9vmin, 5.5rem);
  }

  .bdx-pattern__title {
    font-size: clamp(2rem, 4.5vmin, 3rem);
  }

  .bdx-left {
    gap: 1.25rem;
  }
}

/* ── Winner celebration overlay (~10s) ── */

.bdx-winner-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 45, 149, 0.35), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(157, 78, 221, 0.4), transparent 50%),
    rgba(7, 5, 15, 0.92);
  animation: bdx-winner-fade-in 0.45s ease-out;
}

.bdx-winner-overlay__burst {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 45, 149, 0.15),
    rgba(0, 240, 255, 0.12),
    rgba(200, 248, 48, 0.15),
    rgba(157, 78, 221, 0.12),
    rgba(255, 45, 149, 0.15)
  );
  animation: bdx-winner-spin 8s linear infinite;
  opacity: 0.75;
}

.bdx-winner-overlay__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bdx-winner-confetti {
  position: absolute;
  top: -8%;
  left: calc(4% + (var(--i) * 3.8%));
  width: 0.55rem;
  height: 1.1rem;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 15deg), 90%, 62%);
  opacity: 0;
  animation: bdx-winner-confetti 2.8s ease-in infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

.bdx-winner-overlay__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 3rem;
  animation: bdx-winner-pop 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.bdx-winner-overlay__kicker {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vmin, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--bdx-lime);
  text-shadow:
    0 0 24px rgba(200, 248, 48, 0.55),
    0 0 48px rgba(255, 45, 149, 0.35);
  animation: bdx-winner-pulse 1.1s ease-in-out infinite;
}

.bdx-winner-overlay__title {
  margin: 0;
  font-size: clamp(2rem, 6vmin, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff8f0;
}

.bdx-winner-overlay__sub {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.5vmin, 1.75rem);
  color: rgba(255, 248, 240, 0.78);
}

@keyframes bdx-winner-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bdx-winner-pop {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(2rem);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes bdx-winner-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes bdx-winner-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bdx-winner-confetti {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(540deg);
  }
}

.bdx-scan-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: bdx-scan-flash-in 0.35s ease-out;
}

.bdx-scan-flash--valid {
  background: radial-gradient(
    circle at center,
    rgba(34, 197, 94, 0.35) 0%,
    rgba(34, 197, 94, 0.08) 45%,
    transparent 70%
  );
}

.bdx-scan-flash--invalid {
  background: radial-gradient(
    circle at center,
    rgba(239, 68, 68, 0.35) 0%,
    rgba(239, 68, 68, 0.08) 45%,
    transparent 70%
  );
}

.bdx-scan-flash__inner {
  text-align: center;
  padding: 1.5rem 2.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: bdx-scan-flash-pop 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.bdx-scan-flash__kicker {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bdx-scan-flash--valid .bdx-scan-flash__kicker {
  color: #4ade80;
}

.bdx-scan-flash--invalid .bdx-scan-flash__kicker {
  color: #f87171;
}

.bdx-scan-flash__code {
  margin: 0.35rem 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

@keyframes bdx-scan-flash-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bdx-scan-flash-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bdx-audio-unlock {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.bdx-audio-unlock--urgent {
  animation: bdx-audio-pulse 1.2s ease-in-out infinite;
}

.bdx-audio-unlock__card {
  max-width: 22rem;
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(200, 248, 48, 0.35);
  background: linear-gradient(165deg, rgba(26, 18, 48, 0.98), rgba(8, 5, 15, 0.98));
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.bdx-audio-unlock__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.bdx-audio-unlock__card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.bdx-audio-unlock__card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.bdx-audio-unlock__btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(200, 248, 48, 0.16);
  border: 1px solid rgba(200, 248, 48, 0.45);
  color: #d8ff8a;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes bdx-audio-pulse {
  0%,
  100% {
    background: rgba(4, 2, 10, 0.72);
  }
  50% {
    background: rgba(24, 8, 8, 0.82);
  }
}

/* ── Now playing — emoji hints + reveal ── */
.bdx-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vh, 1.25rem);
  text-align: center;
  padding: clamp(1.1rem, 3vh, 2.25rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: 1.5rem;
  background: linear-gradient(
    160deg,
    rgba(157, 78, 221, 0.22),
    rgba(255, 45, 149, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.bdx-now__label {
  margin: 0;
  font-size: clamp(0.9rem, 2vmin, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bdx-cyan);
}

.bdx-now__emojis {
  font-size: clamp(3rem, 9vmin, 6.5rem);
  line-height: 1.1;
  letter-spacing: 0.12em;
  filter: drop-shadow(0 0.5rem 1.5rem rgba(0, 0, 0, 0.4));
  animation: bdx-emoji-pop 0.45s ease;
}

.bdx-now__title {
  margin: 0;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(2.25rem, 6vmin, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--bdx-lime);
}

.bdx-now--reveal {
  background: linear-gradient(
    160deg,
    rgba(200, 248, 48, 0.22),
    rgba(0, 240, 255, 0.12)
  );
  border-color: rgba(200, 248, 48, 0.45);
  animation: bdx-reveal-flash 0.6s ease;
}

.bdx-now--reveal .bdx-now__label {
  color: var(--bdx-lime);
}

/* Paused: freeze the hints visually so the room knows playback is on hold */
.bdx-now--paused .bdx-now__emojis {
  opacity: 0.45;
  filter: grayscale(0.35) drop-shadow(0 0.5rem 1.5rem rgba(0, 0, 0, 0.4));
  animation: none;
}
.bdx-now--paused .bdx-now__label {
  color: var(--bdx-amber, #ffce5a);
  animation: bdx-paused-pulse 1.6s ease-in-out infinite;
}
@keyframes bdx-paused-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes bdx-emoji-pop {
  0% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bdx-reveal-flash {
  0% {
    transform: scale(0.96);
    filter: brightness(1.4);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

/* ── Recently played ── */
.bdx-history {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(0.75rem, 2vh, 1.25rem);
}

.bdx-history__label {
  margin: 0 0 clamp(0.5rem, 1.5vh, 1rem);
  font-size: clamp(0.8rem, 1.7vmin, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(138, 127, 168, 0.95);
}

.bdx-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1vh, 0.6rem);
}

.bdx-history__item {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1rem);
  padding: clamp(0.4rem, 1vh, 0.7rem) clamp(0.6rem, 1.5vw, 1rem);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}

.bdx-history__item:first-child {
  background: rgba(200, 248, 48, 0.12);
  border: 1px solid rgba(200, 248, 48, 0.25);
}

.bdx-history__emoji {
  font-size: clamp(1.5rem, 3.5vmin, 2.5rem);
  flex: 0 0 auto;
}

.bdx-history__name {
  font-size: clamp(1rem, 2.2vmin, 1.65rem);
  font-weight: 700;
  color: #fff8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdx-history__artist {
  font-size: clamp(0.8rem, 1.7vmin, 1.2rem);
  color: rgba(138, 127, 168, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
}

.bdx-history__empty {
  font-size: clamp(0.9rem, 1.9vmin, 1.3rem);
  color: rgba(138, 127, 168, 0.85);
  font-style: italic;
}

/* ==========================================================================
   Venue display v2 — emoji hero + compact info rail (back-of-room legible)
   ========================================================================== */

.bd-display.bdx-shell .bdx-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(19rem, 25vw, 25rem);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: stretch;
}

/* ── Left hero: the guessing game ── */
.bdx-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: clamp(1rem, 2.2vh, 1.75rem);
}

.bdx-hero .bdx-now {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2.25rem);
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 30px;
  border-width: 2px;
}

.bdx-hero .bdx-now__label {
  font-size: clamp(1.25rem, 3vmin, 2.5rem);
  letter-spacing: 0.22em;
}

.bdx-hero .bdx-now__emojis {
  font-size: clamp(4.5rem, 17vmin, 14rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.bdx-hero .bdx-now__title {
  font-size: clamp(2.75rem, 9vmin, 7rem);
}

/* Recently played — horizontal strip across the hero base */
.bdx-hero .bdx-history {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.bdx-hero .bdx-history__list {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1vw, 0.9rem);
}

.bdx-hero .bdx-history__item {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: clamp(0.5rem, 1.2vh, 0.85rem) clamp(0.6rem, 1.2vw, 1rem);
}

.bdx-hero .bdx-history__emoji {
  font-size: clamp(1.85rem, 4vmin, 3rem);
}

.bdx-hero .bdx-history__name {
  font-size: clamp(0.9rem, 1.7vmin, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bdx-hero .bdx-history__artist {
  display: block;
  margin-left: 0;
  font-size: clamp(0.75rem, 1.4vmin, 1.05rem);
  line-height: 1.1;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bdx-hero .bdx-history__empty {
  flex: 1 1 100%;
  text-align: center;
}

/* ── Right rail: join + pattern + score ── */
.bdx-side {
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.3vh, 1.15rem);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.bdx-card {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: clamp(0.85rem, 1.7vh, 1.4rem);
  backdrop-filter: blur(8px);
}

.bdx-card__kicker {
  margin: 0 0 clamp(0.6rem, 1.2vh, 1rem);
  font-size: clamp(0.8rem, 1.5vmin, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bdx-cyan);
}

/* Join card — compact QR */
.bdx-card--join .bdx-join__body {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.bdx-card--join .bdx-join__qr-wrap {
  flex: 0 0 auto;
  padding: clamp(0.4rem, 0.8vmin, 0.7rem);
  border-radius: 14px;
  background: #fff;
  line-height: 0;
}

.bdx-card--join .bdx-join__qr {
  display: block;
  width: clamp(6.5rem, 11vw, 9.5rem);
  height: clamp(6.5rem, 11vw, 9.5rem);
  object-fit: contain;
}

.bdx-join__meta {
  min-width: 0;
}

.bdx-join__scan {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vmin, 1.75rem);
  font-weight: 800;
  color: #fff8f0;
}

.bdx-join__roomline {
  margin: 0.4rem 0 0;
  font-size: clamp(0.95rem, 1.7vmin, 1.3rem);
  color: rgba(168, 158, 196, 0.95);
}

.bdx-join__roomline strong {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.5em;
  letter-spacing: 0.1em;
  color: var(--bdx-lime);
  margin-left: 0.35rem;
}

.bdx-card--paper {
  border-color: rgba(200, 248, 48, 0.3);
}

/* Pattern card */
.bdx-card--pattern .bdx-pattern {
  display: flex !important;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

.bdx-card--pattern .bdx-pattern__visual {
  flex: 0 0 auto;
  width: clamp(5rem, 8vw, 7.5rem);
}

.bdx-card--pattern .bdx-pattern__title {
  margin: 0;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(1.5rem, 2.8vmin, 2.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.bdx-card--pattern .bdx-pattern__hint {
  margin: 0.4rem 0 0;
  font-size: clamp(0.85rem, 1.5vmin, 1.2rem);
  line-height: 1.3;
  color: rgba(168, 158, 196, 0.95);
}

.bdx-card--pattern .bdx-bingo-call {
  margin: clamp(0.75rem, 1.5vh, 1.1rem) 0 0;
  font-size: clamp(1rem, 1.8vmin, 1.4rem);
}

/* Score card — compact so nothing clips */
.bdx-card--score .bdx-stats {
  border-bottom: none;
  padding-bottom: 0;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.bdx-card--score .bdx-stat__label {
  font-size: clamp(0.7rem, 1.3vmin, 0.95rem);
  margin-bottom: 0.15rem;
}

.bdx-card--score .bdx-stat__num {
  font-size: clamp(1.85rem, 4.4vmin, 3.25rem);
}

.bdx-card--score .bdx-stat__bar {
  max-width: none;
  margin-top: 0.4rem;
}

/* ── Narrow / portrait screens — stack into one column ── */
@media (max-width: 1000px) {
  .bd-display.bdx-shell .bdx-stage {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bdx-hero .bdx-history__list {
    flex-wrap: wrap;
  }

  .bdx-hero .bdx-history__item {
    flex: 1 1 30%;
  }
}

/* ── Venue premium layer: cosmos, fullscreen, sponsor carousel ── */

.bdx-cosmos__orb--3 {
  width: 18rem;
  height: 18rem;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bdx-cyan);
  opacity: 0.2;
  animation-delay: -4s;
}

.bdx-cosmos__eq {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: clamp(3rem, 8vmin, 5rem);
  opacity: 0.18;
}

.bdx-cosmos__eq span {
  width: clamp(4px, 0.6vmin, 8px);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--bdx-cyan), var(--bdx-purple));
  animation: bdx-cosmos-eq 0.85s ease-in-out infinite;
  height: 40%;
}

.bdx-cosmos__eq span:nth-child(odd) { height: 55%; }
.bdx-cosmos__eq span:nth-child(3n) { height: 70%; }
.bdx-cosmos__eq span:nth-child(4n) { height: 35%; }

@keyframes bdx-cosmos-eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.bdx-cosmos__float {
  position: absolute;
  font-size: clamp(1.25rem, 2.5vmin, 2rem);
  opacity: 0.35;
  animation: bdx-cosmos-float 6s ease-in-out infinite;
}

.bdx-cosmos__float--1 { top: 18%; left: 8%; }
.bdx-cosmos__float--2 { top: 28%; right: 10%; animation-delay: -2s; }
.bdx-cosmos__float--3 { bottom: 22%; left: 12%; animation-delay: -4s; }

@keyframes bdx-cosmos-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

.bdx-cosmos__ball {
  position: absolute;
  width: clamp(2rem, 3.5vmin, 2.75rem);
  height: clamp(2rem, 3.5vmin, 2.75rem);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(0.85rem, 1.6vmin, 1.1rem);
  font-weight: 700;
  color: #1a1028;
  opacity: 0.45;
  animation: bdx-cosmos-ball 7s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bdx-cosmos__ball--b { top: 12%; right: 22%; background: linear-gradient(145deg, #ff6b9d, #ff2d95); }
.bdx-cosmos__ball--i { bottom: 30%; right: 6%; background: linear-gradient(145deg, #a78bfa, #7c3aed); color: #fff; animation-delay: -2s; }
.bdx-cosmos__ball--n { bottom: 12%; left: 8%; background: linear-gradient(145deg, #5eead4, #14b8a6); animation-delay: -4s; }

@keyframes bdx-cosmos-ball {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -10px); }
}

.bdx-cosmos__spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 70%);
  animation: bdx-spotlight 8s ease-in-out infinite;
}

@keyframes bdx-spotlight {
  0%, 100% { opacity: 0.6; transform: translateX(-50%); }
  50% { opacity: 1; transform: translateX(-48%); }
}

.bdx-fullscreen-btn {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(7, 5, 15, 0.65);
  color: rgba(255, 248, 240, 0.85);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.bdx-fullscreen-btn:hover {
  background: rgba(157, 78, 221, 0.35);
  border-color: rgba(157, 78, 221, 0.5);
}

.bdx-fullscreen-btn:active { transform: scale(0.94); }

.bdx-sponsors__inner--rotate .bdx-sponsors__row {
  display: none;
}

.bdx-sponsors__carousel {
  position: relative;
  min-height: clamp(5rem, 10vmin, 7rem);
  display: grid;
  place-items: center;
}

.bdx-sponsors__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.bdx-sponsors__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.bdx-sponsor--slide .bdx-sponsor__logo {
  height: clamp(4rem, 8vmin, 6rem);
}

.bdx-now.bdx-now--swap {
  animation: bdx-song-swap 0.45s ease;
}

@keyframes bdx-song-swap {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.bdx-stat--players.is-pop .bdx-stat__num {
  animation: bdx-pop 0.55s ease;
  color: var(--bdx-lime);
}

@media (prefers-reduced-motion: reduce) {
  .bdx-cosmos__eq span,
  .bdx-cosmos__float,
  .bdx-cosmos__ball,
  .bdx-cosmos__spotlight,
  .bdx-cosmos__orb,
  .bdx-sponsors__slide {
    animation: none !important;
    transition: none !important;
  }
  .bdx-sponsors__slide { opacity: 1; position: relative; }
  .bdx-sponsors__slide:not(:first-child) { display: none; }
}
