/* Nocturne Tabletop Atelier — Spectator Theater (/display) */
html:has(.display-shell), body:has(.display-shell) { height: 100vh !important; max-height: 100vh !important; min-height: 0 !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; }
.display-shell { height: 100vh !important; max-height: 100vh !important; overflow: hidden !important; }
.display-shell .display-topbar { height: 52px !important; min-height: 52px !important; padding: 6px 20px !important; }
.display-shell .display-page { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; }

/* Tablet & Desktop Public Display Screen: Expansive Tabletop Console */
.app-shell.display-shell,
.app-shell:has(.display-page) {
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  margin: 0 auto;
}

@media (min-width: 980px) and (min-aspect-ratio: 4/3), (min-width: 1024px) {
  .app-shell.display-shell,
  .app-shell:has(.display-page) {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Fullscreen mode on Tablets / Desktops */
:fullscreen,
::backdrop {
  background: #FAF6EE;
}

:fullscreen .app-shell,
body:fullscreen .app-shell,
.app-shell.is-fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}


  color: var(--text-primary);
  white-space: nowrap;
}

.display-table-clock {
  font: 700 16px var(--font-serif);
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: rgba(45, 38, 28, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 10px;
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.display-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.display-fullscreen-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.display-sound-btn {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .display-brand-sub {
    display: none;
  }
  .display-brand-title {
    font-size: 14px;
  }
  .display-topbar {
    padding: 10px 14px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .display-topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  .display-topbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
    border-top: 1px dashed rgba(45, 38, 28, 0.08);
  }
}

/* Page Surface */
.display-page {
  min-height: calc(100svh - 68px);
  background: radial-gradient(circle at 50% 8%, #FAF6EE 0%, #F4EFE6 50%, #ECE4D4 100%);
  color: var(--text-primary);
  padding: clamp(20px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.display-eye {
  font-size: 26px;
  color: var(--gold-primary);
}

/* Round Header Typography */
.display-round {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--gold-bright);
}

.display-round span {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 800;
}

.display-round strong {
  font: 700 clamp(54px, 6vw, 76px) var(--font-serif);
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.display-round small {
  font: 20px var(--font-serif);
  color: var(--text-muted);
}

.display-page h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  margin: 10px 0 8px;
  color: var(--text-primary);
}

.display-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.display-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 800;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 12px;
}

.display-score strong {
  font-size: 22px;
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-left: 4px;
}

.display-page .mission-track {
  margin-bottom: 20px;
}

.display-privacy {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin: 20px 12px 10px;
}

.display-wait {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 24px 0 16px;
  text-align: center;
}

/* Legacy single room class preserved & enhanced */
.display-room {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  padding: 26px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.display-room span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.display-room strong {
  font: 700 38px var(--font-serif);
  letter-spacing: 0.14em;
  margin: 8px 0;
  display: block;
  color: var(--text-primary);
}

.display-room small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.display-room img {
  display: block;
  width: 175px;
  height: 175px;
  background: #FFFFFF;
  padding: 10px;
  border-radius: 16px;
  margin: 22px auto 0;
  border: 2px solid var(--gold-primary);
}

/* ==========================================================================
   Responsive Multi-Column Tablet Dashboards
   ========================================================================== */

/* 1. Lobby Waiting Screen */
.display-lobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 820px) {
  .display-lobby-grid {
    grid-template-columns: minmax(320px, 390px) 1fr;
    gap: 32px;
  }
}

.display-hero-qr-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
  box-shadow: 0 16px 40px -12px rgba(45, 38, 28, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.92);
  position: relative;
}

.qr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.display-room-code-wrap {
  margin: 8px 0 18px;
}

.display-room-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-weight: 800;
  display: block;
}

.display-room-code {
  font: 700 clamp(40px, 4.5vw, 54px) var(--font-serif);
  letter-spacing: 0.18em;
  color: var(--text-primary);
  margin: 8px 0;
  display: block;
  line-height: 1;
}

.qr-ornate-frame {
  position: relative;
  display: inline-block;
  padding: 12px;
  margin: 0 auto 16px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(45, 38, 28, 0.08);
  border: 1px solid var(--border-subtle);
}

.qr-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-bright);
  border-style: solid;
  pointer-events: none;
}

.corner-tl { top: 4px; left: 4px; border-width: 3px 0 0 3px; border-top-left-radius: 6px; }
.corner-tr { top: 4px; right: 4px; border-width: 3px 3px 0 0; border-top-right-radius: 6px; }
.corner-bl { bottom: 4px; left: 4px; border-width: 0 0 3px 3px; border-bottom-left-radius: 6px; }
.corner-br { bottom: 4px; right: 4px; border-width: 0 3px 3px 0; border-bottom-right-radius: 6px; }

.display-qr-img {
  display: block;
  width: clamp(170px, 18vw, 220px);
  height: clamp(170px, 18vw, 220px);
  border-radius: 12px;
}

.display-room-guide {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 12px 0 16px;
}

.display-copy-btn {
  width: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px;
}

.display-roster-board {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.roster-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roster-board-header h2 {
  font-size: 22px;
  margin: 4px 0 0;
  color: var(--text-primary);
}

.roster-count-badge {
  font: 700 24px var(--font-serif);
  color: var(--gold-bright);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.roster-count-badge span {
  font-size: 14px;
  color: var(--text-muted);
}

.display-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.display-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #FAF7F0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.display-player-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.display-seat-num {
  font: 700 12px var(--font-serif);
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.display-player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 15px var(--font-serif);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.display-player-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}

.display-player-tag {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

.display-lobby-status-banner {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(196, 154, 69, 0.08);
  border: 1px solid rgba(196, 154, 69, 0.25);
  font-size: 13px;
  color: var(--text-primary);
  text-align: center;
}

.display-theme-quote {
  font: italic 13px/1.7 var(--font-serif);
  color: var(--text-muted);
  border-left: 3px solid var(--gold-primary);
  padding-left: 14px;
  margin: 6px 0 0;
}

/* ==========================================================================
   Public Display Spectator Theater Architecture (100vh Zero-Scroll)
   ========================================================================== */

/* Universal Display Page 100vh Containment on Landscape Screens */
@media (min-width: 980px) and (min-aspect-ratio: 4/3), (min-width: 1024px) {
  .display-page {
    flex: 1 !important;
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

/* --------------------------------------------------------------------------
   M3.1 Avalon 100vh Spectator Theater & Arthurian Round Table Mandala
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .avalon-display-page {
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    padding: 10px 24px 12px !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

.avalon-display-page {
  background: radial-gradient(circle at 50% 12%, #FAF6EE 0%, #F4EFE6 55%, #E9E0CE 100%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Row 1: The Holy Grail Quest Track Banner */
.quest-track-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(45, 38, 28, 0.08);
  gap: 12px;
}

.quest-score-flank {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  padding: 6px 14px;
  border-radius: 14px;
}

.good-flank {
  background: rgba(30, 70, 104, 0.08);
  border: 1px solid rgba(30, 70, 104, 0.22);
}

.evil-flank {
  background: rgba(124, 29, 29, 0.08);
  border: 1px solid rgba(124, 29, 29, 0.22);
  justify-content: flex-end;
}

.score-emblem {
  font-size: 22px;
  line-height: 1;
}

.good-flank .score-emblem { color: #1E4668; }
.evil-flank .score-emblem { color: #7C1D1D; }

.score-meta {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.score-val {
  font: 700 20px var(--font-serif);
  line-height: 1;
  color: var(--text-primary);
}

.score-val small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.quest-crests-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex: 1;
  max-width: 780px;
}

.quest-crest-node {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #FAF7F0;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
}

.quest-crest-shield {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.quest-num {
  font: 700 13px var(--font-serif);
  color: var(--gold-bright);
  line-height: 1;
}

.quest-badge-icon {
  font-size: 14px;
  margin: 2px 0;
  line-height: 1;
}

.quest-status-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.quest-sub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 3px;
}

.quest-team-pill,
.quest-protect-pill,
.quest-fail-count {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
}

.quest-team-pill {
  background: rgba(45, 38, 28, 0.08);
  color: var(--text-secondary);
}

.quest-protect-pill {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #B45309;
}

.quest-fail-count {
  background: rgba(220, 38, 38, 0.15);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.quest-crest-node.quest-good {
  background: linear-gradient(145deg, #1A3E5D 0%, #255782 100%);
  border-color: #5591C5;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(26, 62, 93, 0.25);
}
.quest-crest-node.quest-good .quest-num { color: #A5C8E8; }
.quest-crest-node.quest-good .quest-badge-icon { color: #F59E0B; }
.quest-crest-node.quest-good .quest-team-pill { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

.quest-crest-node.quest-evil {
  background: linear-gradient(145deg, #6E1A1A 0%, #902323 100%);
  border-color: #E25B5B;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(110, 26, 26, 0.25);
}
.quest-crest-node.quest-evil .quest-num { color: #FCA5A5; }
.quest-crest-node.quest-evil .quest-badge-icon { color: #FCA5A5; }
.quest-crest-node.quest-evil .quest-team-pill { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }

.quest-crest-node.quest-current {
  background: #FFFFFF;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(196, 154, 69, 0.25), 0 8px 24px rgba(196, 154, 69, 0.18);
  animation: questCrestPulse 2.4s ease-in-out infinite;
}
.quest-crest-node.quest-current .quest-badge-icon { color: var(--gold-bright); }

@keyframes questCrestPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(196, 154, 69, 0.25), 0 6px 18px rgba(196, 154, 69, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(196, 154, 69, 0.4), 0 10px 28px rgba(196, 154, 69, 0.28); }
}

@keyframes dangerPulseText {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Row 2: Theater Main Stage Grid */
.theater-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .theater-stage-grid {
    grid-template-columns: minmax(290px, 330px) 1fr minmax(240px, 270px);
    gap: 16px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

/* Left Flank: Dossier & Rejection Gauge */
.stage-dossier-flank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 0;
}

.display-phase-dossier {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.dossier-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dossier-quest-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
}

.dossier-phase-title {
  font: 700 20px/1.3 var(--font-serif);
  color: var(--text-primary);
  margin: 0 0 6px;
}

.dossier-phase-msg {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}

.dossier-progress-block {
  margin-top: 4px;
}

.dossier-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.dossier-progress-meta strong {
  font: 700 16px var(--font-serif);
  color: var(--text-primary);
}

.dossier-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
  margin-top: 8px;
}

.dossier-action-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  margin: 8px 0;
}

.leader-action-banner {
  background: rgba(196, 154, 69, 0.08);
  border: 1px solid rgba(196, 154, 69, 0.28);
}

.assassin-action-banner {
  background: rgba(124, 29, 29, 0.08);
  border: 1px solid rgba(124, 29, 29, 0.3);
}

.banner-icon { font-size: 24px; }
.banner-text strong { font-size: 13px; display: block; color: var(--text-primary); }
.banner-text small { font-size: 11px; color: var(--text-secondary); display: block; }

.dossier-roster-group {
  margin-top: 10px;
}

.roster-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.dossier-victory-showcase {
  text-align: center;
  padding: 14px 10px;
  background: rgba(196, 154, 69, 0.08);
  border-radius: 14px;
  border: 1px solid var(--border-gold);
}

.victory-crest-mark {
  font-size: 32px;
  color: var(--gold-bright);
}

.dossier-victory-showcase h3 {
  font: 700 18px var(--font-serif);
  margin: 4px 0;
  color: var(--text-primary);
}

.dossier-victory-showcase p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

/* Rejection Gauge */
.display-rejection-gauge {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.rejection-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rejection-gauge-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.gauge-icon {
  color: var(--gold-bright);
}

.rejection-status-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rejection-status-pill.pill-danger {
  color: #DC2626;
  animation: dangerPulseText 1.6s infinite;
}

.rejection-pip-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 8px 0 6px;
}

.rejection-pip-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 8px;
  background: #FAF7F0;
  border: 1px solid var(--border-subtle);
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
}

.rejection-pip-step.is-filled {
  background: rgba(196, 154, 69, 0.14);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.rejection-pip-step.is-forced.is-filled {
  background: rgba(220, 38, 38, 0.16);
  border-color: #DC2626;
  color: #DC2626;
}

.rejection-alert-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 0;
}

.display-rejection-gauge.is-danger {
  border-color: rgba(220, 38, 38, 0.45);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

/* Centerpiece: Arthurian Round Table Mandala */
.stage-mandala-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.display-mandala-theater {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mandala-table-surface {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #FAF6EE 0%, #F5EFE4 45%, #E6DCB8 100%);
  border: 4px solid var(--gold-bright);
  box-shadow: 0 16px 48px -12px rgba(45, 38, 28, 0.14), inset 0 0 32px rgba(196, 154, 69, 0.15);
}

.mandala-outer-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(196, 154, 69, 0.35);
  pointer-events: none;
}

.mandala-inner-ring {
  position: absolute;
  inset: 68px;
  border-radius: 50%;
  border: 1px solid rgba(196, 154, 69, 0.2);
  pointer-events: none;
}

.mandala-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border-gold);
  box-shadow: 0 8px 24px rgba(45, 38, 28, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  z-index: 2;
}

.hub-crest-emblem {
  font-size: 22px;
  line-height: 1;
  color: var(--gold-bright);
}

.hub-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
}

.hub-round-title {
  font: 700 12px var(--font-serif);
  color: var(--text-primary);
  line-height: 1.2;
  display: block;
}

.hub-sub-stat {
  font-size: 9px;
  color: var(--gold-bright);
  font-weight: 700;
}

.mandala-knights-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mandala-seat {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: transform 0.25s ease;
  z-index: 3;
}

.mandala-seat:hover {
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 5;
}

.mandala-seat-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 4px 8px 4px 4px;
  box-shadow: 0 4px 14px rgba(45, 38, 28, 0.08);
  position: relative;
  white-space: nowrap;
}

.seat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FAF6EE;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px var(--font-serif);
  color: var(--gold-bright);
}

.seat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.seat-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-num {
  font-size: 9px;
  color: var(--text-muted);
}

.seat-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  line-height: 1.2;
}

.leader-crown-badge {
  background: #F59E0B;
  color: #78350F;
  border: 1px solid #B45309;
}

.team-nominated-badge {
  background: #1E4668;
  color: #FFFFFF;
  border: 1px solid #5591C5;
}

.lake-holder-badge {
  background: #0284C7;
  color: #FFFFFF;
  border: 1px solid #38BDF8;
}

.seat-role-ribbon {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 2px;
}

.seat-role-ribbon.role-good {
  background: rgba(30, 70, 104, 0.15);
  color: #1E4668;
}

.seat-role-ribbon.role-evil {
  background: rgba(124, 29, 29, 0.15);
  color: #7C1D1D;
}

.mandala-seat.is-leader .mandala-seat-card {
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3), 0 6px 18px rgba(245, 158, 11, 0.2);
}

.mandala-seat.is-nominated .mandala-seat-card {
  border-color: #1E4668;
  box-shadow: 0 0 0 2px rgba(30, 70, 104, 0.3), 0 6px 18px rgba(30, 70, 104, 0.2);
}

.mandala-seat.is-lake-holder .mandala-seat-card {
  border-color: #0284C7;
}

/* Right Flank: Spectator Access & Oracle */
.stage-oracle-flank {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 0;
}

.display-spectator-badge {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.badge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.badge-sub-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
}

.badge-code-wrap {
  margin: 4px 0 8px;
}

.badge-code-lead {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.badge-room-code {
  font: 700 28px var(--font-serif);
  letter-spacing: 0.15em;
  color: var(--text-primary);
  line-height: 1;
}

.mini-qr-frame {
  position: relative;
  display: inline-block;
  padding: 8px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.mini-qr-img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
}

.mini-copy-btn {
  padding: 8px 12px;
  font-size: 11px;
}

.display-lake-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.lake-mini-icon {
  font-size: 20px;
  color: #0284C7;
}

.display-lake-mini-card strong {
  font-size: 12px;
  color: var(--text-primary);
  display: block;
}

.display-lake-mini-card small {
  font-size: 10px;
  color: var(--text-secondary);
}

.display-rule-oracle {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(45, 38, 28, 0.08);
  border: 1px solid var(--border-subtle);
}

.oracle-icon {
  color: var(--gold-bright);
  font-size: 14px;
}

.oracle-text strong {
  font-size: 12px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.oracle-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Row 3: Footer */
.display-theater-footer {
  text-align: center;
  padding: 4px 0;
  flex-shrink: 0;
}

.footer-privacy-text {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Lobby Theater Layout */
.display-lobby-theater-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .display-lobby-theater-grid {
    grid-template-columns: minmax(300px, 360px) 1fr;
    gap: 28px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   M3.2 Las Vegas Royale 100vh Spectator Theater (Casino Baize Felt Arena)
   -------------------------------------------------------------------------- */

.vegas-page.display-page {
  min-height: calc(100svh - 52px);
  background: radial-gradient(ellipse at 50% 25%, #065F46 0%, #064E3B 50%, #022C22 100%);
  color: #F8FAF9;
  padding: clamp(10px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.vegas-page.display-page::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(217, 119, 6, 0.42);
  outline: 1px dashed rgba(217, 119, 6, 0.22);
  outline-offset: -5px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 980px) and (min-aspect-ratio: 4/3), (min-width: 1024px) {
  .vegas-page.display-page {
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    overflow: hidden !important;
    padding: 10px 14px !important;
  }
  .vegas-theater-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .vegas-theater-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 12px;
  }
  .vegas-stations-arena {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    min-height: 0;
    height: 100%;
  }
  .vegas-sidebar-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  .vegas-podium-card {
    flex: 1.25;
    min-height: 0;
    overflow: hidden;
  }
  .vegas-bank-telemetry-card {
    flex: 0.95;
    min-height: 0;
    overflow: hidden;
  }
  .display-back-bottom {
    margin-top: 0 !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
}

@media (min-width: 1400px) and (min-aspect-ratio: 4/3) {
  .vegas-theater-layout {
    grid-template-columns: 1fr 390px;
    gap: 16px;
  }
  .vegas-stations-arena {
    gap: 14px;
  }
}

/* Spectator HUD Banner */
.vegas-theater-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(2, 44, 34, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 14px;
  padding: 6px 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
  z-index: 2;
}

.hud-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-round-pill {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 10px;
  padding: 4px 10px;
}

.hud-round-kicker {
  font: 800 10px var(--font-mono);
  color: #FBBF24;
  letter-spacing: 0.12em;
}

.hud-round-number {
  font: 700 20px var(--font-serif);
  color: #FFFBEB;
  line-height: 1;
}

.hud-round-total {
  font: 11px var(--font-serif);
  color: rgba(255, 255, 255, 0.45);
}

.hud-title-col {
  display: flex;
  flex-direction: column;
}

.hud-mode-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-mode-row .tag-deluxe {
  background: rgba(217, 119, 6, 0.25);
  border-color: #D97706;
  color: #FDE68A;
}

.tag-neutral-dice {
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #E2E8F0;
  border-radius: 6px;
  font-weight: 700;
}

.vegas-page.display-page .hud-stage-title,
.hud-stage-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin: 1px 0 0 !important;
  line-height: 1.2 !important;
}

.hud-center-spotlight {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 78, 59, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
}

.spotlight-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: liveBeacon 2s infinite;
}

.spotlight-msg-text {
  font-size: 12px;
  font-weight: 600;
  color: #E6F4EA;
}

.hud-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-roller-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 10px;
  padding: 4px 10px;
}

.hud-roller-label {
  font-size: 11px;
  color: #FDE68A;
}

.hud-roller-name {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

/* 6 Casino Stations Arena */
.vegas-page.display-page .theater-station-card,
.theater-station-card.casino-card {
  background: radial-gradient(circle at 85% 15%, rgba(6, 95, 70, 0.7) 0%, rgba(2, 44, 34, 0.98) 100%) !important;
  border: 1px solid rgba(217, 119, 6, 0.45) !important;
  border-top: 1px solid rgba(217, 119, 6, 0.45) !important;
  border-radius: 16px !important;
  padding: 10px 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.18, 1, 0.22, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
  z-index: 2 !important;
  overflow: hidden !important;
  color: #FFFFFF !important;
}

.vegas-page.display-page .theater-station-card:hover,
.theater-station-card.casino-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(217, 119, 6, 0.75) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 14px rgba(217, 119, 6, 0.3) !important;
}

.station-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
}

.station-heading-left {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.station-die-frame {
  width: 36px;
  height: 36px;
  background: #FFFBEB;
  border: 1.5px solid rgba(217, 119, 6, 0.45);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #064E3B;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.station-title-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.station-num-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}

.vegas-page.display-page .station-num-row h3,
.station-num-row h3 {
  font-size: 14px !important;
  margin: 0 !important;
  color: #FFFBEB !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.station-board-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #FDE68A;
  border-radius: 6px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.station-board-tag.basic {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
}

.station-pool-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.station-pool-tag strong {
  font-size: 13px;
  color: #FBBF24;
  font-family: var(--font-serif);
  margin-left: 3px;
}

/* Banknote Prize Slates */
.theater-station-bills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.theater-banknote {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, var(--bill-bg) 100%);
  border: 1px solid var(--bill-border);
  border-left: 4px solid var(--bill-accent);
  border-radius: 10px;
  padding: 5px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.banknote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banknote-role-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--bill-accent);
  letter-spacing: 0.05em;
}

.banknote-currency-code {
  font: 700 11px var(--font-mono);
  color: rgba(255, 255, 255, 0.55);
}

.banknote-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.banknote-symbol {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.vegas-page.display-page .banknote-amount,
.banknote-amount {
  font: 800 18px var(--font-serif);
  color: #FFFFFF !important;
  line-height: 1;
  letter-spacing: 0.02em;
}

.banknote-footer {
  margin-top: 2px;
}

.theater-bill-recipient {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 6px;
}

.theater-bill-recipient.is-winner {
  background: var(--p-bg);
  border: 1px solid var(--p-accent);
  color: #FFFFFF;
}

.recipient-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--p-accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font: 700 9px var(--font-serif);
}

.recipient-name {
  font-weight: 800;
}

.theater-bill-recipient.is-bank {
  background: rgba(100, 116, 139, 0.2);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  color: #CBD5E1;
}

.theater-bill-recipient.is-playing {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.theater-bill-recipient.is-pending {
  color: #FDE68A;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.vegas-page.display-page .station-rule-footnote,
.station-rule-footnote {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Sidebar Rail: Ranking Podium */
.vegas-podium-card {
  background: rgba(2, 44, 34, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.38);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.podium-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.podium-title-wrap h2 {
  font-size: 15px;
  margin: 1px 0 0;
  color: #FFFBEB;
}

.podium-count-badge {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.podium-player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.podium-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.podium-player-row.is-leader {
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.45);
}

.podium-rank-cell {
  flex-shrink: 0;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  font: 800 11px var(--font-mono);
}

.rank-badge.rank-gold {
  background: #D97706;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

.rank-badge.rank-silver {
  background: #64748B;
  color: #FFFFFF;
}

.rank-badge.rank-bronze {
  background: #B45309;
  color: #FFFFFF;
}

.rank-badge.rank-other {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.podium-avatar-cell {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-bg);
  border: 1.5px solid var(--p-color);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font: 700 11px var(--font-serif);
  flex-shrink: 0;
}

.podium-info-cell {
  flex: 1;
  min-width: 0;
}

.podium-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
}

.podium-player-name {
  font-size: 12px;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-starter-badge {
  font-size: 9px;
  padding: 1px 4px;
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 4px;
  color: #FDE68A;
}

.podium-asset-pills {
  display: flex;
  gap: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.podium-money-cell {
  text-align: right;
  flex-shrink: 0;
}

.podium-total-money {
  font: 800 15px var(--font-serif);
  color: #FBBF24;
  display: block;
}

.podium-gain-tag {
  font-size: 10px;
  color: #34D399;
  font-weight: 700;
}

/* Right Sidebar Rail: Bank Vault Telemetry */
.vegas-bank-telemetry-card {
  background: rgba(2, 44, 34, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.38);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.bank-telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bank-title-wrap h3 {
  font-size: 13px;
  margin: 1px 0 0;
  color: #FFFBEB;
}

.bank-total-money-badge {
  text-align: right;
}

.bank-total-money-badge small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.bank-total-money-badge strong {
  font: 800 15px var(--font-serif);
  color: #FBBF24;
}

.bank-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 6px;
}

.bank-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}

.metric-value {
  font: 700 12px var(--font-serif);
  color: #FFFFFF;
}

.metric-value small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

.bank-denom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.denom-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 5px;
}

.denom-cell.is-exhausted {
  opacity: 0.35;
  filter: grayscale(0.8);
}

.denom-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
}

.denom-title {
  color: var(--denom-color, #34D399);
  font-weight: 700;
}

.denom-qty {
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.denom-meter {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.denom-meter-fill {
  height: 100%;
  background: var(--denom-color, #34D399);
}

/* --------------------------------------------------------------------------
   M3.3 Modern Art 100vh Spectator Theater (Alabaster Linen Museum Wall)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .art-page.display-page.art-theater-page {
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    padding: 10px 18px 8px !important;
    gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: 
      radial-gradient(circle at 25% 15%, rgba(255, 252, 240, 0.95) 0%, rgba(248, 246, 240, 0.8) 45%, rgba(240, 236, 226, 0.95) 100%),
      var(--bg-atelier);
  }
}

.art-theater-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .art-theater-container {
    grid-template-columns: minmax(400px, 42%) minmax(540px, 58%);
    gap: 16px;
    align-items: stretch;
    height: 100%;
    overflow: hidden;
  }
}

/* Left Wing: Curatorial Stage & Easel Showcase */
.art-theater-stage-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.art-auction-stage {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: clamp(12px, 1.6vw, 18px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.92) inset;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .art-auction-stage {
    overflow-y: hidden;
  }
}

.stage-top-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(45, 38, 28, 0.14);
  padding-bottom: 6px;
  flex-shrink: 0;
}

.stage-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--ink-primary);
  line-height: 1.2;
}

.phase-tag-badge {
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Easel & Painting Frame */
.stage-active-lot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.lot-easel-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 250, 230, 0.8) 0%, rgba(248, 246, 240, 0.1) 70%, transparent 100%);
  border-radius: 16px;
  flex-shrink: 0;
}

.gallery-overhead-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 10px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45) 0%, transparent 100%);
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.art-canvas-frame-wrap {
  position: relative;
  background: #2D241E;
  padding: 6px;
  border-radius: 12px;
  border: 3px solid #855604;
  box-shadow: 
    0 14px 32px -8px rgba(45, 38, 28, 0.35),
    0 0 0 1px rgba(255, 215, 0, 0.35) inset,
    0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 250px;
  width: 100%;
}

.art-museum-matting {
  background: #FAF7F0;
  padding: 6px;
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}

.art-vector-canvas {
  width: 100%;
  height: auto;
  max-height: clamp(120px, 16vh, 160px);
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.art-double-badge {
  position: absolute;
  bottom: -8px;
  right: 10px;
  background: #1C1917;
  color: #FEF3C7;
  border: 1px solid #CA8A04;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lot-provenance-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 10px 12px;
  flex: 1;
  min-height: 0;
  justify-content: space-around;
}

.provenance-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.lot-artist-zh {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--ink-primary);
}

.lot-artist-en {
  font-size: 11px;
  color: var(--ink-tertiary);
  font-style: italic;
}

.lot-movement-desc {
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.lot-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.lot-type-tag,
.lot-count-tag,
.lot-auctioneer-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lot-type-tag {
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.3);
  color: #B45309;
}

.lot-rule-guide-box {
  background: #FFFFFF;
  border-left: 3px solid var(--gold-primary);
  padding: 5px 8px;
  border-radius: 0 8px 8px 0;
}

.lot-guide-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-secondary);
  margin: 0;
}

/* Live Bidding Status Widgets */
.fixed-price-announcement {
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
}

.fixed-price-label {
  font-size: 10px;
  color: #B45309;
  font-weight: 700;
  display: block;
}

.fixed-price-num {
  font: 700 22px var(--font-serif);
  color: #B45309;
  display: block;
}

.fixed-price-announcement small {
  font-size: 9px;
  color: var(--ink-tertiary);
}

.sealed-progress-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 6px 10px;
}

.sealed-banner-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
}

.sealed-progress-banner .meter-bar {
  height: 6px;
  margin: 4px 0;
}

.sealed-guidance {
  font-size: 9px;
  color: var(--ink-tertiary);
  margin: 0;
}

.revealed-bids-showcase {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 6px 8px;
}

.bids-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 4px;
}

.bids-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 5px;
}

.bid-card-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.bid-card-item.is-bid-winner {
  background: rgba(180, 83, 9, 0.15);
  border-color: #B45309;
  font-weight: 800;
}

.bids-tiebreak-hint {
  font-size: 9px;
  color: var(--ink-tertiary);
  margin: 3px 0 0;
}

.buyer-confirm-banner {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.16) 100%);
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 12px;
  padding: 6px 10px;
}

.confirm-banner-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
}

.confirm-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #047857;
  animation: pulse-dot 1.4s infinite;
}

.confirm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 3px 0;
}

.confirm-buyer-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.confirm-amount {
  font: 700 20px var(--font-serif);
  color: #047857;
}

.confirm-detail {
  font-size: 9px;
  color: var(--ink-secondary);
  margin: 0;
}

/* Resting & Concluded Stages */
.stage-resting-box,
.stage-concluded-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  flex: 1;
}

.resting-easel-glyph,
.stage-victory-crest {
  font-size: 36px;
  margin-bottom: 6px;
}

.resting-title,
.stage-victory-title {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink-primary);
}

.resting-msg,
.stage-victory-sub {
  font-size: 11px;
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 0 12px;
}

.resting-auctioneer-badge,
.stage-winner-plaque {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}

.resting-auctioneer-badge span,
.stage-winner-plaque span {
  font-size: 9px;
  color: var(--gold-bright);
  display: block;
}

.resting-auctioneer-badge strong,
.stage-winner-plaque strong {
  font: 700 14px var(--font-serif);
  color: var(--ink-primary);
}

/* Right Wing: 5-Artist Cumulative Valuation Board */
.art-theater-market-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.art-valuation-board {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1.15;
  min-height: 0;
  box-sizing: border-box;
}

.board-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.board-title-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.board-main-title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.3vw, 17px);
  margin: 1px 0 0;
  color: var(--ink-primary);
  font-weight: 700;
}

.board-round-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Valuation Matrix Table */
.art-matrix-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  flex: 1;
  min-height: 0;
}

.matrix-head-row {
  display: grid;
  grid-template-columns: 2.3fr 1.9fr 1fr 1fr 1fr 1fr 1fr 1.2fr;
  background: #EFEBE2;
  border-bottom: 1px solid var(--border-medium);
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-secondary);
  padding: 4px 8px;
  text-align: center;
  flex-shrink: 0;
}

.matrix-head-row > div:first-child { text-align: left; }
.matrix-head-row > div:last-child { text-align: right; }

.matrix-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

.matrix-artist-row {
  display: grid;
  grid-template-columns: 2.3fr 1.9fr 1fr 1fr 1fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 3px 8px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(45, 38, 28, 0.08);
  font-size: 10px;
  transition: background 0.15s ease;
}

.matrix-artist-row:last-child {
  border-bottom: none;
}

.matrix-artist-row:hover {
  background: #FCFBF9;
}

.matrix-artist-row.is-critical-tension {
  background: rgba(245, 158, 11, 0.06);
}

.cell-artist {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.artist-color-swatch {
  width: 8px;
  height: 20px;
  border-radius: 3px;
  background: var(--artist-brand, #CA8A04);
  flex-shrink: 0;
}

.artist-name-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.artist-zh-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-en-name {
  font-size: 8px;
  color: var(--ink-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-deck-badge {
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-tertiary);
  background: #F3EFEA;
  padding: 1px 3px;
  border-radius: 4px;
  margin-left: auto;
}

.cell-freq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 4px;
}

.freq-meter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.freq-pips {
  display: flex;
  gap: 3px;
  flex: 1;
}

.freq-pip {
  flex: 1;
  height: 6px;
  background: #E5E0D5;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.freq-pip.filled {
  background: var(--artist-brand, var(--gold-primary));
}

.freq-pip.fifth-pip.filled {
  background: #DC2626;
  box-shadow: 0 0 5px rgba(220, 38, 38, 0.6);
}

.freq-ratio {
  font: 700 10px var(--font-serif);
  color: var(--ink-primary);
  flex-shrink: 0;
}

.tension-pill {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
}

.tension-pill.pulse-fast {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  animation: pulse-dot 1.2s infinite;
}

.tension-pill.market-closed-pill {
  background: #1C1917;
  color: #FFFFFF;
}

.cell-season {
  text-align: center;
}

.season-badge {
  font: 700 10px var(--font-serif);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  padding: 1px 3px;
  border-radius: 4px;
}

.cell-season.rank-first .season-badge {
  color: #B45309;
  background: rgba(245, 158, 11, 0.14);
}

.cell-season.rank-second .season-badge {
  color: #475569;
  background: rgba(71, 85, 105, 0.12);
}

.cell-season.rank-third .season-badge {
  color: #9A3412;
  background: rgba(154, 52, 18, 0.12);
}

.cell-season.rank-unranked .season-badge {
  color: var(--ink-tertiary);
}

.cell-season.is-active-season {
  background: rgba(245, 158, 11, 0.05);
  border-radius: 4px;
}

.cell-history {
  text-align: center;
  font: 700 11px var(--font-serif);
  color: var(--ink-secondary);
}

.cell-sell {
  text-align: right;
  padding-right: 4px;
}

.sell-price-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 1px 4px;
  border-radius: 4px;
}

.sell-price-chip.sell-active {
  background: rgba(180, 83, 9, 0.12);
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.sell-price-chip.sell-active strong {
  font: 700 12px var(--font-serif);
  color: #B45309;
}

.sell-price-chip.sell-zero strong {
  font: 700 11px var(--font-serif);
  color: var(--ink-tertiary);
}

.sell-price-chip small {
  font-size: 8px;
  color: var(--ink-tertiary);
}

.board-footnote-bar {
  font-size: 9px;
  color: var(--ink-tertiary);
  line-height: 1.35;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(45, 38, 28, 0.14);
  flex-shrink: 0;
}

/* Right Wing: Collector Standings */
.art-collectors-board {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 0.85;
  min-height: 0;
  box-sizing: border-box;
}

.collectors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.collectors-title-group h2 {
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.2vw, 15px);
  margin: 1px 0 0;
  color: var(--ink-primary);
}

.collector-stat-pills {
  display: flex;
  gap: 6px;
}

.stat-pill {
  font-size: 9px;
  color: var(--ink-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 6px;
}

.stat-pill strong {
  color: var(--gold-bright);
}

.collectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.collector-roster-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s ease;
}

.collector-roster-card:hover {
  background: #FFFFFF;
  border-color: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.collector-roster-card.is-winner-card {
  background: #FFFBEB;
  border-color: #F59E0B;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
}

.collector-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.collector-seat-num {
  font: 700 8px var(--font-serif);
  color: var(--gold-bright);
}

.collector-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.collector-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  font: 700 10px var(--font-serif);
  color: var(--gold-bright);
}

.collector-host-crown {
  position: absolute;
  top: -5px;
  right: -4px;
  font-size: 9px;
}

.collector-name-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collector-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.collector-role-tag {
  font-size: 8px;
  color: var(--ink-tertiary);
}

.collector-inventory-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 4px 0;
  text-align: center;
}

.collector-stat-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 2px;
}

.collector-stat-box .stat-label {
  font-size: 8px;
  color: var(--ink-tertiary);
  display: block;
}

.collector-stat-box .stat-num {
  font: 700 11px var(--font-serif);
  color: var(--ink-primary);
}

.collector-stat-box .stat-num small {
  font-size: 8px;
  font-weight: 400;
  color: var(--ink-tertiary);
}

.collector-owned-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  margin-bottom: 4px;
}

.owned-pills-label {
  font-size: 8px;
  color: var(--ink-tertiary);
}

.owned-none {
  font-size: 8px;
  color: var(--ink-tertiary);
  font-style: italic;
}

.owned-art-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(45, 38, 28, 0.14);
  color: var(--ink-secondary);
}

.chip-color-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chip-color, var(--gold-primary));
}

.collector-vault-strip {
  border-top: 1px solid rgba(45, 38, 28, 0.08);
  padding-top: 4px;
}

.vault-confidential-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 8px;
  color: var(--ink-tertiary);
}

.vault-lock-icon {
  font-size: 8px;
  opacity: 0.7;
}

.vault-revealed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-rank-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.vault-rank-badge.rank-gold {
  background: #FEF3C7;
  color: #B45309;
}

.vault-final-cash {
  font: 700 13px var(--font-serif);
  color: #B45309;
}

/* Discrete Floating Return Dock */
.display-back-dock {
  position: fixed;
  bottom: 12px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all 0.2s ease;
}

.display-back-dock:hover {
  background: #FFFFFF;
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink-primary);
}

@media (max-width: 1023px) {
  .display-back-dock {
    position: static;
    width: 100%;
    margin-top: 16px;
    border-radius: 12px;
    padding: 10px;
  }
}

/* Reduced motion honoring */
@media (prefers-reduced-motion: reduce) {
  .theater-station-card,
  .podium-player-row,
  .spotlight-pulse-dot,
  .quest-crest-node.quest-current,
  .rejection-status-pill.pill-danger,
  .confirm-pulse-dot,
  .tension-pill.pulse-fast {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Animations */
@keyframes liveBeacon {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

@keyframes questGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(196, 154, 69, 0.25), 0 8px 24px rgba(196, 154, 69, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(196, 154, 69, 0.4), 0 12px 36px rgba(196, 154, 69, 0.28); }
}

/* ==========================================================================
   Rules & Records Sections
   ========================================================================== */

.rules-heading, .records-heading {
  margin: 12px 2px 24px;
}

.rules-card {
  padding: 22px;
  margin: 14px 0;
}

.rules-card h2 {
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.rules-card > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-list > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flow-list > div > span {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  background: rgba(160, 115, 20, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font: 700 12px var(--font-mono);
  flex: none;
}

.flow-list p {
  margin: 0;
}

.flow-list strong {
  font-size: 12px;
  color: var(--text-primary);
}

.flow-list small {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.6;
  display: block;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 18px 0;
}

.size-grid div {
  text-align: center;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px 2px;
}

.size-grid small {
  font-size: 9px;
  color: var(--text-muted);
  display: block;
}

.mini-qr-frame, .qr-frame-inner, .display-qr-frame { background: #FFFFFF !important; }
