/* ==========================================================================
   IVEACER Admissions Roadshow Activity — First-Aid Bingo (Multiplayer)
   Follows DESIGN.md (Operate / Read Mode tokens + Light/Dark/High-Contrast)
   ========================================================================== */

body.bingo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--iveacer-canvas, #F8FAFC);
  color: var(--iveacer-text-main, #1e293b);
}

.bingo-main {
  flex: 1 0 auto;
}

/* Connection Status Pill */
.bingo-conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.bingo-conn-badge--online {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(134, 239, 172, 0.55);
  color: #dcfce7;
}

.bingo-conn-badge--local {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(253, 224, 71, 0.55);
  color: #fef08a;
}

/* Landing Header */
.bingo-landing-header {
  max-width: 680px;
}

.bingo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-brand-green, #1e4d2b);
  border: 1px solid var(--iveacer-border, #dce6df);
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
}

.bingo-title {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--iveacer-heading, #14381e);
  text-wrap: balance;
}

.bingo-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--iveacer-text-muted, #53665b);
  text-wrap: pretty;
}

/* Role Selection Cards */
.bingo-role-card {
  display: flex;
  flex-direction: column;
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--iveacer-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
  transition: transform 0.2s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              box-shadow 0.2s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              border-color 0.2s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

@media (hover: hover) and (pointer: fine) {
  .bingo-role-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--iveacer-shadow-md, 0 10px 30px rgba(20, 56, 30, 0.08));
    border-color: var(--iveacer-brand-medium, #2e7d32);
  }
}

.bingo-role-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-brand-green, #1e4d2b);
  margin-bottom: 1rem;
}

.bingo-role-card__badge--player {
  background: var(--iveacer-danger-surface, #fff1ec);
  color: var(--iveacer-danger-text, #a13928);
}

.bingo-role-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.bingo-role-card__icon--host {
  background: var(--iveacer-brand-green, #1e4d2b);
  color: var(--iveacer-on-brand, #ffffff);
}

.bingo-role-card__icon--player {
  background: #b91c1c;
  color: #ffffff;
}

.bingo-role-card__title {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--iveacer-heading, #14381e);
  margin-bottom: 0.5rem;
}

.bingo-role-card__desc {
  font-size: 0.95rem;
  color: var(--iveacer-text-muted, #53665b);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.bingo-role-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--iveacer-text-main, #1e293b);
}

.bingo-role-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.bingo-role-list i {
  color: var(--iveacer-brand-medium, #2e7d32);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Buttons */
.bingo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              border-color 0.18s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              color 0.18s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              transform 0.12s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.bingo-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.bingo-btn:focus-visible {
  outline: 3px solid var(--iveacer-focus, #b8941f);
  outline-offset: 3px;
}

.bingo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bingo-btn--sm {
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.bingo-btn--lg {
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  font-size: 1.075rem;
}

.bingo-btn--primary {
  background: var(--iveacer-brand-green, #1e4d2b);
  color: var(--iveacer-on-brand, #ffffff);
}

@media (hover: hover) and (pointer: fine) {
  .bingo-btn--primary:hover:not(:disabled) {
    background: var(--iveacer-brand-deep, #14381e);
    color: var(--iveacer-on-brand, #ffffff);
  }
}

.bingo-btn--accent {
  background: #c81e1e;
  color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .bingo-btn--accent:hover:not(:disabled) {
    background: #9b1c1c;
    color: #ffffff;
  }
}

.bingo-btn--secondary {
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-heading, #14381e);
  border-color: var(--iveacer-border, #dce6df);
}

@media (hover: hover) and (pointer: fine) {
  .bingo-btn--secondary:hover:not(:disabled) {
    background: var(--iveacer-surface-subtle, #e8f5e9);
    border-color: var(--iveacer-brand-medium, #2e7d32);
  }
}

.bingo-btn--ghost {
  background: transparent;
  color: var(--iveacer-text-main, #1e293b);
  border-color: var(--iveacer-border, #dce6df);
}

@media (hover: hover) and (pointer: fine) {
  .bingo-btn--ghost:hover:not(:disabled) {
    background: var(--iveacer-surface-soft, #f1f8f4);
  }
}

.bingo-btn--dark {
  background: #14381e;
  color: #ffffff;
}

.bingo-btn--danger {
  background: #b91c1c;
  color: #ffffff;
}

/* Inputs */
.bingo-label {
  display: block;
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--iveacer-heading, #14381e);
  margin-bottom: 0.45rem;
}

.bingo-input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-text-main, #1e293b);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.bingo-input:focus {
  outline: 3px solid var(--iveacer-focus, #b8941f);
  outline-offset: 2px;
  background: var(--iveacer-surface, #ffffff);
  border-color: var(--iveacer-brand-green, #1e4d2b);
}

.bingo-input--code {
  text-align: center;
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.bingo-code-input-group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

@media (max-width: 420px) {
  .bingo-code-input-group {
    grid-template-columns: 1fr;
  }
}

.bingo-field-error {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: var(--iveacer-danger-surface, #fff1ec);
  color: var(--iveacer-danger-text, #a13928);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Global Alert */
.bingo-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  background: var(--iveacer-danger-surface, #fff1ec);
  color: var(--iveacer-danger-text, #a13928);
  border: 1px solid rgba(161, 57, 40, 0.28);
  font-size: 0.925rem;
  font-weight: 500;
}

.bingo-alert__close {
  margin-left: auto;
  min-width: 36px;
  min-height: 36px;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  cursor: pointer;
}

/* Join View Card */
.bingo-join-card {
  max-width: 460px;
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: var(--iveacer-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
}

.bingo-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-danger-surface, #fff1ec);
  color: var(--iveacer-danger-text, #a13928);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Panels & Host Workspace */
.bingo-panel {
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--iveacer-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
}

.bingo-panel__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--iveacer-text-muted, #53665b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.bingo-host-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 14px;
}

.bingo-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-brand-green, #1e4d2b);
}

.bingo-code-inline {
  color: #b91c1c;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

html[data-theme='dark'] .bingo-code-inline,
html[data-bs-theme='dark'] .bingo-code-inline {
  color: #fca5a5;
}

.bingo-round-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-text-muted, #53665b);
  vertical-align: middle;
}

.bingo-room-code-display {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b91c1c;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

html[data-theme='dark'] .bingo-room-code-display,
html[data-bs-theme='dark'] .bingo-room-code-display {
  color: #fca5a5;
}

.bingo-qr-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 14px;
  min-width: 184px;
  min-height: 184px;
}

.bingo-qr-frame img,
.bingo-qr-frame canvas {
  display: block;
  width: 168px;
  height: 168px;
}

.bingo-url-preview {
  font-size: 0.78rem;
  color: var(--iveacer-text-muted, #53665b);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bingo-player-roster {
  border-top: 1px solid var(--iveacer-border, #dce6df);
}

.bingo-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0.15rem 0.55rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-brand-green, #1e4d2b);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bingo-player-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
}

.bingo-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  border: 1px solid var(--iveacer-border, #dce6df);
  font-size: 0.9rem;
}

.bingo-player-row__status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}

.bingo-player-row__status--playing {
  background: var(--iveacer-success-surface, #e8f5e9);
  color: var(--iveacer-success-text, #166534);
}

.bingo-player-row__status--bingo {
  background: #facc15;
  color: #1e293b;
}

.bingo-empty-note {
  font-size: 0.875rem;
  color: var(--iveacer-text-muted, #53665b);
}

/* Winner Banner */
.bingo-winner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 14px;
  background: #fef08a;
  color: #1e293b;
  border: 2px solid #ca8a04;
  box-shadow: 0 8px 24px rgba(202, 138, 4, 0.22);
}

.bingo-winner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ca8a04;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bingo-winner-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #713f12;
}

.bingo-winner-names {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

/* Drawn Item Stage */
.bingo-progress-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-heading, #14381e);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.bingo-drawn-stage {
  padding: 2.25rem 1.25rem;
  border-radius: 14px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  border: 2px dashed var(--iveacer-border, #dce6df);
}

.bingo-drawn-icon {
  font-size: clamp(3rem, 6vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.bingo-drawn-text {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 800;
  color: var(--iveacer-heading, #14381e);
  line-height: 1.3;
}

.bingo-drawn-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--iveacer-text-muted, #53665b);
}

.bingo-host-controls {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.bingo-confirm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--iveacer-warning-surface, #fff6da);
  color: var(--iveacer-warning-text, #825c0a);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

/* Drawn History Chips */
.bingo-history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bingo-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-text-main, #1e293b);
  border: 1px solid var(--iveacer-border, #dce6df);
}

.bingo-history-chip--latest {
  background: #c81e1e;
  color: #ffffff;
  border-color: #9b1c1c;
}

/* Player View */
.bingo-player-shell {
  max-width: 520px;
}

.bingo-player-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  box-shadow: var(--iveacer-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
}

.bingo-player-meta {
  font-size: 0.85rem;
  color: var(--iveacer-text-muted, #53665b);
  line-height: 1.5;
}

.bingo-player-meta strong {
  color: var(--iveacer-text-main, #1e293b);
}

.bingo-player-latest__label {
  font-size: 0.75rem;
  color: var(--iveacer-text-muted, #53665b);
}

.bingo-player-latest__value {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--iveacer-heading, #14381e);
}

.bingo-info-banner,
.bingo-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.bingo-info-banner {
  background: var(--iveacer-info-surface, #edf4fb);
  color: var(--iveacer-info-text, #0c4a6e);
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.bingo-success-banner {
  justify-content: flex-start;
  background: var(--iveacer-success-surface, #e8f5e9);
  color: var(--iveacer-success-text, #166534);
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.bingo-success-banner i {
  font-size: 1.4rem;
}

/* 5x5 Board */
.bingo-board-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0.6rem 6px;
  background: var(--iveacer-brand-deep, #14381e);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
  text-align: center;
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-weight: 700;
  font-size: 1rem;
}

.bingo-board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--iveacer-border, #dce6df);
  border-radius: 0 0 12px 12px;
}

.bingo-cell {
  aspect-ratio: 1 / 1;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface, #ffffff);
  color: var(--iveacer-text-main, #1e293b);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.16s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              border-color 0.16s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              color 0.16s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
              transform 0.12s var(--iveacer-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.bingo-cell:active {
  transform: scale(0.95);
}

.bingo-cell:focus-visible {
  outline: 3px solid var(--iveacer-focus, #b8941f);
  outline-offset: 2px;
  z-index: 2;
}

.bingo-cell.is-marked {
  background: #c81e1e;
  border-color: #9b1c1c;
  color: #ffffff;
}

.bingo-cell.is-free {
  background: var(--iveacer-brand-green, #1e4d2b);
  border-color: var(--iveacer-brand-deep, #14381e);
  color: #ffffff;
  cursor: default;
}

.bingo-cell.is-winning {
  box-shadow: inset 0 0 0 3px #facc15;
}

.bingo-cell__icon {
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  line-height: 1.1;
  margin-bottom: 3px;
}

.bingo-cell__label {
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: clamp(0.64rem, 2.3vw, 0.78rem);
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Claim Bingo Button */
.bingo-claim-btn {
  width: 100%;
  min-height: 58px;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  border: 2px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-neutral-surface, #f1f5f9);
  color: var(--iveacer-text-muted, #53665b);
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: not-allowed;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.bingo-claim-btn.is-ready {
  background: #facc15;
  border-color: #ca8a04;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(202, 138, 4, 0.28);
}

.bingo-claim-btn.is-ready:active {
  transform: scale(0.97);
}

.bingo-claim-btn.is-claimed {
  background: var(--iveacer-brand-green, #1e4d2b);
  border-color: var(--iveacer-brand-deep, #14381e);
  color: #ffffff;
  cursor: default;
}

/* Host Projector Fullscreen Mode */
body.bingo-host-fullscreen .adm-topbar,
body.bingo-host-fullscreen .adm-navbar,
body.bingo-host-fullscreen .adm-footer {
  display: none !important;
}

body.bingo-host-fullscreen .bingo-drawn-icon {
  font-size: clamp(4rem, 8vw, 6rem);
}

body.bingo-host-fullscreen .bingo-drawn-text {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* ==========================================================================
   Admission Page Embedded Activity Banner (#activity-bingo on admission.html)
   ========================================================================== */
.adm-activity-section {
  background: var(--iveacer-surface-soft, #f1f8f4);
  border-top: 1px solid var(--iveacer-border, #dce6df);
  border-bottom: 1px solid var(--iveacer-border, #dce6df);
}

.adm-activity-shell {
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--iveacer-shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
}

@media (max-width: 575.98px) {
  .adm-activity-shell {
    padding: 1.25rem;
  }
}

.adm-activity-role-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  border-radius: 14px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  border: 1px solid var(--iveacer-border, #dce6df);
}

.adm-activity-role-box--player {
  background: var(--iveacer-surface, #ffffff);
}

/* High Contrast Overrides */
html[data-contrast='high'] .bingo-role-card,
html[data-contrast='high'] .bingo-panel,
html[data-contrast='high'] .bingo-cell,
html[data-contrast='high'] .adm-activity-shell,
html[data-contrast='high'] .bingo-modal {
  box-shadow: none !important;
  border-width: 2px;
}

/* ==========================================================================
   Strict Call-Only Tap Hint, Verified/Rank Badges & Inspection Modal
   ========================================================================== */
.bingo-tap-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--iveacer-warning-surface, #fff6da);
  color: var(--iveacer-warning-text, #825c0a);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
}

.bingo-cell.is-uncalled-hint {
  border-color: #d97706;
  background: var(--iveacer-warning-surface, #fff6da);
}

.bingo-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--iveacer-radius-pill, 9999px);
  background: var(--iveacer-success-surface, #e8f5e9);
  color: var(--iveacer-success-text, #166534);
  font-size: 0.78rem;
  font-weight: 700;
}

.bingo-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: #facc15;
  color: #0f172a;
  font-family: var(--iveacer-font-heading, 'Prompt', sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bingo-inspect-btn {
  border: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface, #ffffff);
  color: var(--iveacer-brand-green, #1e4d2b);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}

.bingo-inspect-btn:focus-visible {
  outline: 3px solid var(--iveacer-focus, #b8941f);
  outline-offset: 2px;
}

/* Native Dialog Modal */
.bingo-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--iveacer-border, #dce6df);
  border-radius: 16px;
  background: var(--iveacer-surface, #ffffff);
  color: var(--iveacer-text-main, #1e293b);
  box-shadow: var(--iveacer-shadow-lg, 0 20px 50px rgba(20, 56, 30, 0.22));
  overflow: hidden;
}

.bingo-modal--wide {
  width: min(760px, calc(100vw - 24px));
}

.bingo-modal::backdrop {
  background: rgba(11, 17, 14, 0.62);
}

.bingo-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface-soft, #f1f8f4);
}

.bingo-modal__close {
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface, #ffffff);
  color: var(--iveacer-text-main, #1e293b);
  cursor: pointer;
}

.bingo-modal__body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}

.bingo-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--iveacer-border, #dce6df);
  background: var(--iveacer-surface-soft, #f1f8f4);
}

.bingo-inspect-board .bingo-cell {
  cursor: default;
}

.bingo-inspect-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--iveacer-text-muted, #53665b);
}

.bingo-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.bingo-legend-dot--win {
  background: #c81e1e;
  box-shadow: inset 0 0 0 2px #facc15;
}

.bingo-legend-dot--called {
  background: #c81e1e;
}

.bingo-legend-dot--free {
  background: var(--iveacer-brand-green, #1e4d2b);
}

/* QR Code Kit Callout & Export Cards */
.bingo-qr-kit-callout {
  max-width: 920px;
  padding: 1.15rem 1.35rem;
  border-radius: 14px;
  background: var(--iveacer-surface, #ffffff);
  border: 1px solid var(--iveacer-border, #dce6df);
}

.bingo-qr-kit-callout__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  color: var(--iveacer-brand-green, #1e4d2b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bingo-qr-export-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--iveacer-surface-soft, #f1f8f4);
  border: 1px solid var(--iveacer-border, #dce6df);
}

.bingo-qr-export-card--player {
  background: var(--iveacer-surface, #ffffff);
}

/* ==========================================================================
   Printable A4 QR Sheet (@media print)
   ========================================================================== */
.bingo-print-sheet {
  display: none;
}

@media print {
  body.bingo-printing-qr > *:not(#bingoPrintSheet) {
    display: none !important;
  }

  body.bingo-printing-qr {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  body.bingo-printing-qr #bingoPrintSheet {
    display: block !important;
    padding: 12mm 14mm;
    color: #0f172a;
    font-family: 'Prompt', 'Sarabun', sans-serif;
  }

  .bingo-print-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #14381e;
    margin-bottom: 16px;
  }

  .bingo-print-org {
    font-size: 13px;
    font-weight: 700;
    color: #14381e;
  }

  .bingo-print-title {
    font-size: 22px;
    font-weight: 800;
    margin: 2px 0;
    color: #0f172a;
  }

  .bingo-print-sub {
    font-size: 12px;
    color: #475569;
  }

  .bingo-print-room {
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 16px;
    border: 2px dashed #b91c1c;
    border-radius: 12px;
    font-size: 18px;
    color: #0f172a;
  }

  .bingo-print-room strong {
    font-size: 32px;
    letter-spacing: 0.2em;
    color: #b91c1c;
    margin-left: 8px;
  }

  .bingo-print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }

  .bingo-print-card {
    border: 2px solid #14381e;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    break-inside: avoid;
  }

  .bingo-print-card--player {
    border-color: #b91c1c;
  }

  .bingo-print-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .bingo-print-badge--host {
    background: #14381e;
    color: #ffffff;
  }

  .bingo-print-badge--player {
    background: #b91c1c;
    color: #ffffff;
  }

  .bingo-print-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
  }

  .bingo-print-card p {
    font-size: 12px;
    color: #475569;
    margin: 0 0 12px;
  }

  .bingo-print-qr {
    display: flex;
    justify-content: center;
    margin: 8px auto 10px;
  }

  .bingo-print-qr img,
  .bingo-print-qr canvas {
    width: 200px !important;
    height: 200px !important;
  }

  .bingo-print-url {
    font-size: 10px;
    color: #334155;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  .bingo-print-footer {
    text-align: center;
    font-size: 11px;
    color: #475569;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
  }
}
