/* ══════════════════════════════════════════════
   V-DART PRO — STADIUM MODEL DISPLAY STYLES
   LED Ribbons, Header, Intact Canvas & Bumpers
   ══════════════════════════════════════════════ */
body,
html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: var(--bg-primary, #0a0e1a) !important;
}

#stadium-app {
  display: grid;
  grid-template-rows: 56px 1fr;
  width: 100vw !important;
  height: 100vh !important;
  gap: 0;
  background-color: var(--bg-primary, #0a0e1a) !important;
  transition: grid-template-rows 0.2s ease-out;
}

#stadium-app.has-top-ribbon {
  grid-template-rows: 64px 56px 1fr;
}

#stadium-app.has-bottom-ribbon {
  grid-template-rows: 56px 1fr 64px;
}

#stadium-app.has-both-ribbons {
  grid-template-rows: 64px 56px 1fr 64px;
}

/* ══════════════════════════════════════════════
   1. LED PERIMETER RIBBONS (PDC DARTS STADIUM MODEL)
   ══════════════════════════════════════════════ */
.led-ribbon-container {
  width: 100vw;
  height: 64px;
  background: linear-gradient(180deg, #070a12 0%, #0f172a 100%);
  border-top: 1px solid rgba(255, 209, 102, 0.4);
  border-bottom: 1px solid rgba(255, 209, 102, 0.4);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
  z-index: 200;
}

#led-perimeter-top {
  border-top: none;
}

#led-perimeter-bottom {
  border-bottom: none;
}

.led-track {
  width: max-content !important;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}

.led-block {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}

.led-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.led-ribbon-item.brand {
  border-color: rgba(6, 214, 160, 0.3);
  background: rgba(6, 214, 160, 0.06);
}

.led-ribbon-item.promo {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
}

.led-item-logo {
  height: 28px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.led-item-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.led-item-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
}

.led-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   2. HEADER & HUD MICRO-BRANDING
   ══════════════════════════════════════════════ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

header .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.badge-pro {
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-gold), #e6a817);
  color: #1a1a2e;
}

.hud-micro-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  position: absolute;
  top: 100%;
  left: 28px;
  /* Commence sous le 'D' de V-DART */
  margin-top: -8px;
  /* Collé au logo */
}

.micro-brand-label {
  font-size: 0.50rem;
  /* Taille de POWERED BY */
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.8px;
}

#hud-brand-name {
  font-size: 0.55rem;
  /* Taille de DPNR Club */
  font-weight: 700;
  color: #ffffff;
}

#hud-brand-logo {
  height: 12px !important;
  max-height: 12px !important;
  object-fit: contain;
}

.b2b-client-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(6, 214, 160, 0.1);
  border: 1px solid rgba(6, 214, 160, 0.3);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-admin-code {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-code:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.turn-info {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.turn-info .player-name {
  font-weight: 700;
  transition: color 0.3s;
}

.turn-info .darts-left {
  font-size: 0.75rem;
  opacity: 0.7;
}

header .status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
  transition: background 0.3s, box-shadow 0.3s;
}

.status-dot.connected {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ══════════════════════════════════════════════
   3. CENTRAL GAME CORE (DYNAMIC 0-2 AD COLUMNS & CANVAS)
   ══════════════════════════════════════════════ */
#game-core {
  display: flex;
  height: 100%;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Dynamic Left & Right Game Ad Columns (0-2 slots) */
.game-ad-col,
.drop-zone-col,
#sim-col-left,
#sim-col-right {
  width: clamp(120px, 12.5vw, 260px) !important;
  flex: 0 0 clamp(120px, 12.5vw, 260px) !important;
  height: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.95);
  border-right: 1px solid var(--glass-border);
  z-index: 80;
  transition: all 0.2s ease-out;
}

.game-ad-col.col-right {
  border-right: none;
  border-left: 1px solid var(--glass-border);
}

.col-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  max-height: 48%;
  /* Max 2 slots per column */
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  box-sizing: border-box;
}

.col-slot:last-child {
  border-bottom: none;
}

.col-slot img,
.sim-ad-card img,
.drop-zone-col img,
.game-ad-col img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: clamp(75px, 12vh, 150px) !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 4px auto !important;
  border-radius: 8px !important;
}

.col-slot-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.col-slot-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.sidebar-ad-card {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid var(--accent-gold);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

#board-area {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9) 0%, rgba(7, 10, 18, 1) 100%);
}

#board-area::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

#dartboard-canvas {
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(6, 214, 160, 0.08));
}

/* ── Laser Pointer Overlay ── */
#laser-pointer {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff2222 0%, rgba(255, 0, 0, 0.6) 40%, transparent 70%);
  box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.5), 0 0 30px 8px rgba(255, 0, 0, 0.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: none;
  transition: opacity 0.15s;
}

#laser-pointer.active {
  display: block;
  animation: laser-pulse 1s ease-in-out infinite;
}

@keyframes laser-pulse {

  0%,
  100% {
    box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.5), 0 0 30px 8px rgba(255, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 18px 6px rgba(255, 0, 0, 0.7), 0 0 40px 12px rgba(255, 0, 0, 0.3);
  }
}

/* ── Impact & Floor Overlays ── */
#impact-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  text-shadow: 0 0 40px rgba(6, 214, 160, 0.5);
  white-space: pre-line;
  text-align: center;
  line-height: 1.1;
}

#impact-overlay.show {
  animation: impact-pop 1.4s ease-out forwards;
}

@keyframes impact-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }

  25% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -65%) scale(1);
    opacity: 0;
  }
}

#floor-overlay {
  position: absolute;
  bottom: 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-pink);
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.4);
  padding: 10px 24px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#floor-overlay.show {
  animation: floor-bounce 2s ease-out forwards;
}

@keyframes floor-bounce {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }

  20% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════
   4. SIDEBAR & GAME CARDS
   ══════════════════════════════════════════════ */
#sidebar {
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  flex-shrink: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto;
  background: var(--bg-card);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.card,
.history-item,
.history-analytics-row {
  max-width: 100%;
  word-break: break-word;
  box-sizing: border-box;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

#connect-card {
  text-align: center;
}

#connect-card .room-code {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--accent-gold);
  margin: 6px 0 12px 0;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.3);
}

#qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#qr-container canvas,
#qr-container img {
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
}

.hint {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.players-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.players-header h3 {
  margin-bottom: 0;
}

#btn-add-player {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent-cyan);
  background: rgba(6, 214, 160, 0.1);
  color: var(--accent-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

#btn-add-player:hover {
  background: var(--accent-cyan);
  color: #1a1a2e;
}

#players-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#players-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#players-list li.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 214, 160, 0.08);
}

#history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

#history-list li.history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ══════════════════════════════════════════════
   5. EVENT BUMPER STINGER OVERLAY (1.2s FLASH)
   ══════════════════════════════════════════════ */
.event-bumper-layer {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   B2B CONFIGURATION MODAL (NO NATIVE PROMPT)
   ══════════════════════════════════════════════ */
.tv-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.tv-modal-card {
  background: rgba(22, 28, 45, 0.95);
  border: 1px solid rgba(6, 214, 160, 0.3);
  box-shadow: 0 0 40px rgba(6, 214, 160, 0.2), 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 48px;
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
}

.event-bumper-layer.active {
  animation: bumperFlash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bumperFlash {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.bumper-card {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 20px 36px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 50px rgba(255, 209, 102, 0.4), inset 0 0 30px rgba(255, 209, 102, 0.2);
}

.bumper-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
  letter-spacing: 1px;
}

.bumper-sponsor {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   8. TV SECURITY LOCK OVERLAY
   ══════════════════════════════════════════════ */
.tv-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 18, 0.97);
  backdrop-filter: blur(24px);
  animation: lockFadeIn 0.4s ease-out;
}

@keyframes lockFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tv-lock-card {
  text-align: center;
  max-width: 560px;
  padding: 48px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.08) 0%, rgba(17, 24, 39, 0.95) 50%, rgba(139, 92, 246, 0.06) 100%);
  border: 1.5px solid rgba(239, 71, 111, 0.3);
  box-shadow: 0 0 60px rgba(239, 71, 111, 0.12), 0 0 120px rgba(139, 92, 246, 0.06);
}

.tv-lock-icon {
  font-size: 4.5rem;
  margin-bottom: 16px;
  animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}

.tv-lock-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-pink);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.tv-lock-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.tv-lock-key-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 20px;
}

.tv-lock-key-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.tv-lock-key-value {
  font-family: 'Outfit', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 2px;
  user-select: all;
}

.tv-lock-status {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.tv-lock-status.unauthorized {
  background: rgba(239, 71, 111, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(239, 71, 111, 0.4);
}

.tv-lock-status.expired {
  background: rgba(255, 209, 102, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 209, 102, 0.4);
}

.tv-lock-retry-btn {
  display: block;
  margin: 0 auto 16px;
  padding: 12px 32px;
  border: 1px solid rgba(6, 214, 160, 0.4);
  border-radius: 12px;
  background: rgba(6, 214, 160, 0.08);
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tv-lock-retry-btn:hover {
  background: rgba(6, 214, 160, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.tv-lock-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.6);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════
   GAMIFICATION: Energy Gauge, Combo, Flash Promo
   ══════════════════════════════════════════════ */

/* ── Bullseye Rush: Energy Gauge ── */
.energy-gauge {
  position: fixed;
  right: 12px;
  bottom: 80px;
  width: 28px;
  height: 180px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 214, 160, 0.3);
  border-radius: 14px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 200;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.15);
}

.energy-gauge-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ffd166, #06d6a0);
  border-radius: 0 0 14px 14px;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.4);
}

.energy-gauge-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.energy-gauge-title {
  position: absolute;
  bottom: -20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  white-space: nowrap;
}

.energy-gauge.gauge-full {
  border-color: #ffd166;
  animation: gauge-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes gauge-pulse {
  from {
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.4);
  }

  to {
    box-shadow: 0 0 24px rgba(255, 209, 102, 0.8), 0 0 40px rgba(255, 209, 102, 0.3);
  }
}

/* ── Combo Overlay ── */
.combo-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffd166;
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6), 0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 4px;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transition: none;
}

#combo-overlay.show, #happy-strike-overlay.show, .combo-overlay.show {
  animation: combo-pop 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999 !important;
}

@keyframes combo-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }

  15% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }

  40% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -60%) scale(1);
    opacity: 0;
  }
}

/* ── Flash Happy Hour ── */
body.flash-happy-hour {
  animation: flash-neon-border 1.5s ease-in-out infinite alternate;
}

body.flash-happy-hour .led-ribbon-container {
  background: rgba(239, 71, 111, 0.15) !important;
}

body.flash-happy-hour .led-track {
  color: #ef476f !important;
}

@keyframes flash-neon-border {
  0% {
    box-shadow: inset 0 0 30px rgba(239, 71, 111, 0.08);
  }

  100% {
    box-shadow: inset 0 0 60px rgba(239, 71, 111, 0.2), inset 0 0 120px rgba(255, 209, 102, 0.08);
  }
}

/* ================================================================
   DIGITAL MENU BUILDER OVERLAY (TV)
   ================================================================ */
#b2b-full-screen-menu,
#digital-menu-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  z-index: 50 !important;
  background-color: rgba(13, 17, 23, 0.96) !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.digital-menu-canvas.tv-render {
  position: relative !important;
  width: 680px;
  background: var(--cream, #F3ECD9);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.06);
  --ink: #1E3A2B;
  --cream: #F3ECD9;
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--ink);
  overflow: hidden !important;
  /* Centered perfectly in the TV overlay */
  margin: 0 auto;
}
.digital-menu-canvas.tv-render * { box-sizing: border-box; }
.digital-menu-canvas.tv-render .menu-scale-wrapper {
  position: relative !important;
  width: 100%;
  max-width: none !important;
  max-height: none !important;
  transform-origin: top center !important;
}
.digital-menu-canvas.tv-render .block {
  position: absolute !important;
  transform-origin: top left !important;
  margin: 0 !important;
}
.digital-menu-canvas.tv-render .edit-only { display: none !important; }
.digital-menu-canvas.tv-render .handle { display: none !important; }

.digital-menu-canvas.tv-render .brand-block { width: 300px; min-width: 140px; text-align: center; }
.digital-menu-canvas.tv-render .mascot-wrap { margin: 0 auto 6px auto; display: flex; align-items: center; justify-content: center; }
.digital-menu-canvas.tv-render .mascot-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.digital-menu-canvas.tv-render .wordmark {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--ink);
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.15;
  margin-top: 4px;
  word-break: break-word;
}
.digital-menu-canvas.tv-render .slogan {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin-top: 6px;
  text-align: center;
  word-break: break-word;
}

.digital-menu-canvas.tv-render .badge-block { width: 220px; min-width: 120px; }
.digital-menu-canvas.tv-render .badge-text {
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; text-align: center;
  font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; font-size: 12px; letter-spacing: 1px; color: var(--ink); white-space: pre-wrap;
}

.digital-menu-canvas.tv-render .col-block { width: 300px; min-width: 140px; }
.digital-menu-canvas.tv-render .category { margin-bottom: 16px; width: 100%; }
.digital-menu-canvas.tv-render .cat-head {
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px; margin-bottom: 6px; gap: 8px; width: 100%;
}
.digital-menu-canvas.tv-render .cat-title { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 15px; color: var(--ink); word-break: break-word; }
.digital-menu-canvas.tv-render .item-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 0; width: 100%; }
.digital-menu-canvas.tv-render .item-name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); word-break: break-word; }
.digital-menu-canvas.tv-render .item-price { flex: 0 0 auto; width: auto; min-width: 48px; text-align: right; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; margin-left: 8px; }

.digital-menu-canvas.tv-render .image-block { width: 270px; min-width: 100px; }
.digital-menu-canvas.tv-render .illus svg { width: 100%; height: auto; color: var(--ink); display: block; }

.digital-menu-canvas.tv-render .extras-block { width: 270px; min-width: 140px; background: var(--ink); color: var(--cream); border-radius: 10px; padding: 16px 18px; }
.digital-menu-canvas.tv-render .extras-title { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; word-break: break-word; }
.digital-menu-canvas.tv-render .extras-block .item-row { border-bottom: 1px solid rgba(255,255,255,.14); }
.digital-menu-canvas.tv-render .extras-block .item-name, .digital-menu-canvas.tv-render .extras-block .item-price { color: inherit; }

.digital-menu-canvas.tv-render .contact-block { width: 300px; min-width: 140px; text-align: center; }
.digital-menu-canvas.tv-render .contact-line { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; font-size: 12px; letter-spacing: 1px; color: var(--ink); word-break: break-word; }

.digital-menu-canvas.tv-render .custom-block { width: 270px; min-width: 140px; border: 1.5px dashed var(--ink); border-radius: 10px; padding: 14px; }
.digital-menu-canvas.tv-render .custom-title { font-family: 'Roboto Slab', Georgia, serif; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; word-break: break-word; }
.digital-menu-canvas.tv-render .custom-body { font-size: 13px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.digital-menu-canvas.tv-render .media-block { width: 260px; height: 180px; min-width: 60px; min-height: 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; }