/* BeatDesk Live Events — mode picker, display screen, guest join */

/* ── Mode picker ── */

.bd-event-mode-modal {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bd-event-mode-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 15, 0.88);
  backdrop-filter: blur(6px);
}

.bd-event-mode-card {
  position: relative;
  width: min(100%, 32rem);
  padding: 1.75rem;
  border-radius: 16px;
  border: 2px solid var(--party-violet, #9d4edd);
  background: linear-gradient(160deg, #16102a, #0a0612);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.bd-event-mode-kicker {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--party-lime, #b8ff3c);
}

.bd-event-mode-card h2 {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #fff8f0;
}

.bd-event-mode-card > p {
  margin: 0 0 1.25rem;
  color: var(--party-muted, #a89ec4);
  line-height: 1.55;
}

.bd-event-mode-options {
  display: grid;
  gap: 0.75rem;
}

.bd-event-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  width: 100%;
  padding: 1rem 1.125rem;
  border-radius: 12px;
  border: 2px solid rgba(157, 78, 221, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: #fff8f0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bd-event-mode-btn strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.bd-event-mode-btn span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--party-muted, #a89ec4);
}

.bd-event-mode-btn:hover {
  border-color: var(--party-lime, #b8ff3c);
  background: rgba(184, 255, 60, 0.06);
}

.bd-event-mode-btn--online {
  border-color: rgba(255, 45, 149, 0.45);
}

.bd-event-mode-btn--online:hover {
  border-color: var(--party-hot, #ff2d95);
  background: rgba(255, 45, 149, 0.08);
}

body.bd-event-mode-open {
  overflow: hidden;
}

/* ── Host dashboard (unified controls) ── */

.bd-host-console {
  max-width: min(100%, 72rem);
  width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0 var(--booth-pad, 1rem);
}

.bd-host-console-shell {
  border-radius: 16px;
  border: 1px solid rgba(157, 78, 221, 0.28);
  background: linear-gradient(165deg, rgba(18, 14, 32, 0.96), rgba(8, 5, 15, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.bd-host-console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.bd-host-console-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7fa8;
}

.bd-host-console-title {
  margin: 0;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff8f0;
  line-height: 1;
}

.bd-host-console-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
}

.bd-host-console-badge-live,
.bd-host-console-badge-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bd-host-console-badge-live {
  border: 1px solid rgba(255, 45, 149, 0.45);
  background: rgba(255, 45, 149, 0.12);
  color: #ff2d95;
}

.bd-host-console-badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ff2d95;
  box-shadow: 0 0 8px #ff2d95;
}

.bd-host-console-badge-offline {
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(157, 78, 221, 0.1);
  color: #c8bfd8;
}

.bd-host-console-badge-code {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.16em;
  color: #b8ff3c;
}

.bd-host-console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

@media (min-width: 1024px) {
  .bd-host-console-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .bd-host-console-panel#bd-host-console-sponsors {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.bd-host-console-panel {
  padding: 1rem 1.25rem 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.bd-host-console-panel + .bd-host-console-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.bd-host-console-panel--wide {
  grid-column: 1 / -1;
  border-left: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bd-host-console-note a {
  color: #b8ff3c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bd-sponsor-picks {
  display: grid;
  gap: 0.625rem;
}

.bd-sponsor-pick {
  display: grid;
  gap: 0.375rem;
}

.bd-sponsor-pick-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6288;
}

.bd-sponsor-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.5rem 2rem 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.28);
  background: rgba(8, 5, 15, 0.65);
  color: #fff8f0;
  font: inherit;
  font-size: 0.8125rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #a89ec4 50%),
    linear-gradient(135deg, #a89ec4 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 2px),
    calc(100% - 11px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.bd-sponsor-select:focus {
  outline: none;
  border-color: rgba(184, 255, 60, 0.55);
  box-shadow: 0 0 0 2px rgba(184, 255, 60, 0.12);
}

.bd-sponsor-pick-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  font-weight: 600;
  color: #c8bfd8;
}

.bd-sponsor-pick-preview img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 0.1rem;
}

.bd-sponsor-pick-fallback {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  background: rgba(157, 78, 221, 0.35);
  color: #fff8f0;
  font-size: 0.75rem;
  font-weight: 800;
}

.bd-host-console-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00f0ff;
}
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00f0ff;
}

.bd-host-console-lead {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #a89ec4;
}

.bd-host-console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bd-host-btn {
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff8f0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bd-host-btn:hover {
  border-color: rgba(184, 255, 60, 0.45);
  background: rgba(184, 255, 60, 0.06);
}

.bd-host-btn--primary {
  background: #b8ff3c;
  color: #0a0612;
  border-color: #b8ff3c;
}

.bd-host-btn--primary:hover {
  background: #d4ff7a;
  border-color: #d4ff7a;
}

.bd-host-btn--danger {
  border-color: rgba(255, 45, 149, 0.35);
  color: #ffb3d4;
}

.bd-host-console-subsection + .bd-host-console-subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bd-host-console-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff2d95;
}

.bd-host-console-subhead small {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #8a7fa8;
}

.bd-host-console-subhead strong {
  color: #b8ff3c;
  margin-left: 0.25rem;
}

.bd-host-pattern-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}

.bd-host-pattern-btn {
  min-height: 2.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #fff8f0;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bd-host-pattern-btn.is-active {
  border-color: #b8ff3c;
  background: rgba(184, 255, 60, 0.12);
  color: #b8ff3c;
}

.bd-host-players-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 10rem;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(157, 78, 221, 0.28);
  background: rgba(0, 0, 0, 0.18);
}

.bd-host-players-empty {
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  color: #8a7fa8;
  text-align: center;
}

.bd-host-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bd-host-player:last-child {
  border-bottom: none;
}

.bd-host-player-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff8f0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-host-player-time {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #8a7fa8;
}

.bd-host-console-note {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #8a7fa8;
}

.bd-host-sponsor-status {
  margin: 0.625rem 0 0;
  min-height: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8ff3c;
  opacity: 0;
  transition: opacity 0.2s;
}

.bd-host-sponsor-status.is-visible {
  opacity: 1;
}

@media (max-width: 1023px) {
  .bd-host-console-panel#bd-host-console-sponsors {
    grid-column: 1 / -1;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (min-width: 761px) {
  .bd-host-pattern-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bd-host-console-grid {
    grid-template-columns: 1fr;
  }

  .bd-host-console-panel + .bd-host-console-panel {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bd-host-console-head {
    flex-direction: column;
  }

  .bd-host-console-badge {
    align-items: flex-start;
  }

  .bd-host-console-actions {
    flex-direction: column;
  }

  .bd-host-btn {
    width: 100%;
  }

  .bd-sponsor-logo-row {
    grid-template-columns: 1fr;
  }

  .bd-sponsor-upload {
    width: 100%;
  }
}

/* ── Standalone event pages ── */

html.bd-event-page,
body.bd-event-page {
  height: 100%;
  overflow: hidden;
}

body.bd-event-page {
  overflow-x: clip;
}

body.bd-event-page .site-header,
body.bd-event-page footer {
  display: none !important;
}

#bd-event-mount {
  height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#bd-event-mount:has(.bd-display) {
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

/* Display screen styles → beatdesk-display.css */


/* ── Join page (guest phone) ── */

.bd-join {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #08050f;
  color: #fff8f0;
  padding: 0;
  overflow-y: auto;
}

.bd-join:has(.bd-join-game) {
  overflow: hidden;
}

.bd-join-welcome,
.bd-join-msg,
.bd-join-error {
  max-width: 24rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: calc(2rem + env(safe-area-inset-top));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  text-align: center;
}

.bd-join-logo {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.bd-join-welcome h1,
.bd-join-msg h1 {
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.bd-join-welcome > p,
.bd-join-msg > p {
  color: #a89ec4;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.bd-join-field {
  display: grid;
  gap: 0.375rem;
  text-align: left;
  margin-bottom: 1rem;
}

.bd-join-field span {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a89ec4;
}

.bd-join-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  border: 1px solid rgba(157, 78, 221, 0.45);
  background: #0a0612;
  color: #fff8f0;
  font: inherit;
  box-sizing: border-box;
}

.bd-join-btn {
  width: 100%;
  min-height: 3rem;
  border: 2px solid #0a0612;
  border-radius: 10px;
  background: #b8ff3c;
  color: #0a0612;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.bd-join-alt {
  margin-top: 1rem !important;
  font-size: 0.8125rem !important;
}

/* Active game — full-height card layout */
.bd-join-game {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding:
    max(0.375rem, env(safe-area-inset-top))
    max(0.375rem, env(safe-area-inset-right))
    max(0.25rem, env(safe-area-inset-bottom))
    max(0.375rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  overflow: hidden;
}

.bd-join-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(157, 78, 221, 0.35);
  background: rgba(18, 16, 28, 0.92);
  font-size: 0.75rem;
  line-height: 1.25;
}

.bd-join-head > div {
  min-width: 0;
  flex: 1;
}

.bd-join-head strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-join-head > span:last-child {
  flex-shrink: 0;
  max-width: 5.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a89ec4;
  font-size: 0.6875rem;
}

.bd-join-win-pattern {
  flex-shrink: 0;
  margin: 0;
  padding: 0.375rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(184, 255, 60, 0.35);
  background: rgba(184, 255, 60, 0.08);
  font-size: 0.6875rem;
  color: #a89ec4;
  text-align: center;
}

.bd-join-win-pattern strong {
  color: #b8ff3c;
}

.bd-join-bingo {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 5, 15, 0.82);
  backdrop-filter: blur(6px);
  animation: bd-bingo-in 0.35s ease;
}

@keyframes bd-bingo-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.bd-join-bingo-card {
  position: relative;
  width: min(100%, 20rem);
  padding: 1.75rem 1.25rem 1.25rem;
  border-radius: 16px;
  border: 3px solid #b8ff3c;
  background: linear-gradient(160deg, #16102a, #0a0612);
  box-shadow: 0 20px 60px rgba(184, 255, 60, 0.25);
  text-align: center;
}

.bd-join-bingo-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.bd-join-bingo-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.bd-join-bingo-pattern {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #d4cce8;
}

.bd-join-bingo-pattern strong {
  color: #b8ff3c;
}

.bd-join-bingo-dismiss {
  display: block;
  width: 100%;
  margin-top: 1rem;
  min-height: 2.75rem;
  border: 2px solid rgba(157, 78, 221, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff8f0;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.bd-join-bingo-dismiss:hover {
  border-color: rgba(184, 255, 60, 0.55);
}

.bd-join-bingo-kicker {
  margin: 0 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00f0ff;
}

.bd-join-bingo-card h2 {
  margin: 0 0 0.5rem;
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: #b8ff3c;
  text-shadow: 0 0 24px rgba(184, 255, 60, 0.45);
}

.bd-join-bingo-card p:last-child {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #a89ec4;
}

.bd-join-code {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(184, 255, 60, 0.45);
  background: rgba(184, 255, 60, 0.12);
  color: #b8ff3c;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.bd-join-now {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 45, 149, 0.4);
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.16), rgba(157, 78, 221, 0.12));
}

.bd-join-now > div {
  min-width: 0;
  flex: 1;
}

.bd-join-now-letter {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #9d4edd, #7b2cbf);
  font-family: "Bebas Neue", impact, sans-serif;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.45);
}

.bd-join-now small {
  display: block;
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00f0ff;
}

.bd-join-now strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-join-card-wrap {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  container-type: size;
  container-name: join-card;
}

.bd-join-hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.625rem;
  color: #8a7fa8;
  line-height: 1.3;
  margin: 0;
  padding: 0 0.25rem;
}

/* ── Mobile guest bingo card ── */

.bd-digital-card--mobile.bingo-card,
.bd-digital-card--mobile {
  --bingo-ink: #fff8f0;
  --bingo-paper: #14101f;
  --bingo-muted: #1c1729;
  --bingo-muted-alt: #241f35;
  --bingo-line: rgba(157, 78, 221, 0.35);
  --bingo-line-strong: rgba(255, 255, 255, 0.14);
  --bingo-grid: rgba(255, 255, 255, 0.1);

  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1 1 0;
  border: 2px solid rgba(157, 78, 221, 0.55);
  border-radius: 12px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.bd-digital-card--mobile .bingo-card-header {
  display: none;
}

.bd-digital-card--mobile .bingo-board {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bd-digital-card--mobile .bingo-letter-row {
  flex: 0 0 clamp(2rem, 6vmin, 2.75rem);
  border-bottom: none;
}

.bd-digital-card--mobile .bingo-letter-cell {
  min-height: 0;
  height: 100%;
  border-right-color: rgba(0, 0, 0, 0.2);
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(1) {
  background: #ff2d95;
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(2) {
  background: #9d4edd;
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(3) {
  background: #00f0ff;
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(4) {
  background: #b8ff3c;
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(5) {
  background: #ff6b35;
}

.bd-digital-card--mobile .bingo-letter-cell:nth-child(4) span,
.bd-digital-card--mobile .bingo-letter-cell:nth-child(5) span {
  color: #0a0612;
}

.bd-digital-card--mobile .bingo-letter-cell span {
  font-size: clamp(1rem, 4.5vmin, 1.5rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.bd-digital-card--mobile .bingo-columns {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.bd-digital-card--mobile .bingo-column {
  display: grid !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  height: 100% !important;
  min-height: 0 !important;
}

.bd-digital-card--mobile .bingo-cell {
  flex: unset !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0.35rem 0.25rem !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.12s ease, transform 0.1s ease;
}

.bd-digital-card--mobile .bingo-song-text {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.12rem;
  overflow: hidden;
}

.bd-digital-card--mobile .bingo-song-title {
  width: 100%;
  font-size: clamp(0.8125rem, 3.8vmin, 1.125rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--bingo-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}

@supports (font-size: 1cqh) {
  .bd-digital-card--mobile .bingo-letter-row {
    flex: 0 0 clamp(2rem, 7cqh, 2.75rem);
  }

  .bd-digital-card--mobile .bingo-letter-cell span {
    font-size: clamp(1rem, 5cqh, 1.5rem);
  }

  .bd-digital-card--mobile .bingo-cell {
    padding: clamp(0.25rem, 1.5cqh, 0.5rem) clamp(0.15rem, 1.2cqw, 0.35rem) !important;
  }

  .bd-digital-card--mobile .bingo-song-title {
    font-size: clamp(0.8125rem, 4.8cqh, 1.125rem);
  }

  .bd-digital-card--mobile .bingo-song-artist {
    font-size: clamp(0.6875rem, 3.6cqh, 0.9375rem);
  }

  .bd-digital-card--mobile .bingo-free-label {
    font-size: clamp(0.75rem, 4.5cqh, 1.125rem);
  }
}

.bd-digital-card--mobile .bingo-song-artist {
  width: 100%;
  font-size: clamp(0.6875rem, 3vmin, 0.9375rem);
  font-weight: 600;
  line-height: 1.1;
  color: #9d94b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bd-digital-card--mobile .bingo-cell-alt {
  background: var(--bingo-muted);
}

.bd-digital-card--mobile .bingo-column-n .bingo-cell,
.bd-digital-card--mobile .bingo-column-n .bingo-cell-alt {
  background: var(--bingo-paper);
}

.bd-digital-card--mobile .bingo-column-n .bingo-cell-alt {
  background: var(--bingo-muted);
}

.bd-digital-card--mobile .bingo-cell-free {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 4px,
      rgba(157, 78, 221, 0.08) 4px,
      rgba(157, 78, 221, 0.08) 5px
    ),
    var(--bingo-muted) !important;
}

.bd-digital-card--mobile .bingo-free-text {
  border-color: rgba(157, 78, 221, 0.65);
  background: #1a1628;
  padding: 0.2rem 0.35rem;
}

.bd-digital-card--mobile .bingo-free-label {
  font-size: clamp(0.75rem, 3.5vmin, 1.125rem);
  color: #b8ff3c;
  letter-spacing: 0.12em;
}

/* Digital card tap marks */
.bd-digital-card .bingo-cell[data-bd-mark] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.bd-digital-card--mobile .bingo-cell[data-bd-mark]:active {
  transform: scale(0.97);
  background: rgba(157, 78, 221, 0.22) !important;
}

.bd-digital-card .bingo-cell.is-marked {
  background: rgba(255, 45, 149, 0.18) !important;
  box-shadow: inset 0 0 0 2px #ff2d95;
}

.bd-digital-card--mobile .bingo-cell.is-marked::after {
  content: "✓";
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  font-size: clamp(0.6875rem, 3.5cqh, 1rem);
  font-weight: 800;
  line-height: 1;
  color: #ff2d95;
  pointer-events: none;
}

.bd-digital-card .bingo-cell.is-called:not(.bingo-cell-free) {
  box-shadow: inset 0 0 0 2px rgba(184, 255, 60, 0.55);
}

.bd-digital-card--mobile .bingo-cell.is-called:not(.bingo-cell-free):not(.is-marked) {
  background: rgba(184, 255, 60, 0.08) !important;
}

@media (max-width: 380px) {
  .bd-digital-card--mobile .bingo-song-title {
    -webkit-line-clamp: 4;
  }
}

@media (min-width: 768px) {
  .bd-join-game {
    max-width: 28rem;
    margin: 0 auto;
  }
}

.bd-join-loading {
  text-align: center;
  padding: 3rem 1rem;
  padding-top: calc(3rem + env(safe-area-inset-top));
  color: #a89ec4;
}
