/* ==========================================================================
   Decision Arcade (Fate Arena) - Main Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0b14;
  --bg-surface: rgba(18, 20, 36, 0.85);
  --bg-surface-elevated: rgba(28, 32, 58, 0.95);
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.1);

  --accent-cyan: #00f0ff;
  --accent-magenta: #ff007f;
  --accent-yellow: #ffe600;
  --accent-green: #00ff88;
  --accent-purple: #9d4edd;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;

  --font-display: 'Chakra Petch', 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
  --shadow-glow-magenta: 0 0 25px rgba(255, 0, 127, 0.45);
  --shadow-glow-gold: 0 0 25px rgba(255, 230, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Base App Shell */
#app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 10%, rgba(30, 25, 60, 0.8) 0%, rgba(10, 11, 20, 1) 100%);
}

/* Background Ambient Canvas / Grid */
#ambient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Top Arcade Header */
.arcade-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow-cyan);
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.68rem;
  letter-spacing: 1.2px;
  color: var(--accent-magenta);
  text-transform: uppercase;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 60%;
}

.header-actions::-webkit-scrollbar {
  display: none;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  min-width: 38px;
  width: auto;
  padding: 0 8px;
  white-space: nowrap;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn:hover, .icon-btn:active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
}

.icon-btn.active {
  background: var(--accent-cyan);
  color: #05060b;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* Mode Switcher Nav Tabs */
.mode-nav {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  gap: 6px;
  background: rgba(12, 14, 25, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mode-nav::-webkit-scrollbar {
  display: none;
}

.mode-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-tab .tab-icon {
  font-size: 14px;
}

.mode-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.mode-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(0, 240, 255, 0.25));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  font-weight: 700;
}

/* Main Viewport Stage */
.stage-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  z-index: 10;
  margin-bottom: 32px;
}

.game-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-stage.active {
  display: flex;
  opacity: 1;
}

/* Mode Overlay HUD */
.stage-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

.stage-hud > * {
  pointer-events: auto;
}

.badge-tag {
  background: rgba(18, 20, 36, 0.85);
  border: 1px solid var(--border-glow);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hud-controls {
  display: flex;
  gap: 8px;
}

.hud-btn {
  background: rgba(20, 24, 45, 0.9);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.2);
  color: #ffffff;
}

/* Generic Canvas Layer */
.full-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  touch-action: none;
}

/* Universal Button Styles */
.glow-btn {
  background: linear-gradient(135deg, var(--accent-magenta), #b000ff);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-glow-magenta);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.glow-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.7);
}

.glow-btn:active {
  transform: translateY(1px) scale(0.98);
}

.glow-btn.cyan {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: var(--shadow-glow-cyan);
}

.glow-btn.cyan:hover {
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.7);
}

.glow-btn.gold {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #12100e;
  box-shadow: var(--shadow-glow-gold);
}

/* Modals & Popovers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #ffffff;
}

/* Quick Floating Bottom Toast */
#toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 20, 36, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Doom Balloon Stage Styles
   ========================================================================== */
.doom-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.doom-turn-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.turn-indicator {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.turn-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.balloon-stage {
  position: relative;
  width: 240px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doom-balloon-graphic {
  width: 140px;
  height: 165px;
  background: radial-gradient(circle at 35% 30%, #ff5e7e, #d90429, #590d22);
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 -10px 20px rgba(0, 0, 0, 0.4), inset 0 10px 20px rgba(255, 255, 255, 0.4);
  transform-origin: 50% 90%;
  transition: transform 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.balloon-face {
  font-size: 46px;
  user-select: none;
}

.balloon-knot {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  background: #a00028;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.doom-meter-container {
  width: 85%;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.doom-meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-magenta));
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
}

.doom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pump-counter {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3D Coin Flipper Stage Styles (Redesigned & Premium)
   ========================================================================== */
.coin-stage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 96%;
  max-width: 480px;
  height: 100%;
  padding: 50px 10px 16px 10px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.coin-control-panel {
  width: 100%;
  background: rgba(14, 18, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.coin-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 520px) {
  .coin-category-bar {
    justify-content: center;
  }
}

.coin-category-bar::-webkit-scrollbar {
  display: none;
}

.coin-cat-tab {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.coin-cat-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.coin-cat-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 119, 255, 0.2));
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

.coin-selector-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 4px 2px;
}

.coin-selector-bar::-webkit-scrollbar {
  display: none;
}

.coin-theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.coin-theme-btn:hover {
  border-color: rgba(255, 230, 0, 0.4);
  transform: translateY(-1px);
}

.coin-theme-btn.active {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.26), rgba(255, 140, 0, 0.18));
  border-color: #ffe600;
  color: #ffe600;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.45);
  transform: translateY(-1px);
}

.coin-symbol {
  font-size: 46px;
}

.coin-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-top: 3px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 0 8px;
}

.coin-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.coin-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.coin-instruction {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.coin-land-glow {
  animation: coinGlowPulse 1.2s ease-in-out infinite alternate;
}

@keyframes coinGlowPulse {
  0% { filter: drop-shadow(0 0 15px rgba(255, 230, 0, 0.5)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 35px rgba(255, 230, 0, 0.95)); transform: scale(1.05); }
}

/* ==========================================================================
   MOBILE RESPONSIVE HEADER & BUTTONS (No overlaps on phone screens)
   ========================================================================== */
@media (max-width: 600px) {
  .arcade-header {
    padding: 8px 10px;
  }
  .logo-badge {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .logo-text h1 {
    font-size: 0.92rem;
    letter-spacing: 0.6px;
  }
  .logo-text p {
    display: none;
  }
  .header-actions {
    gap: 4px;
    max-width: 65%;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    padding: 0;
  }
  .icon-btn.in-room {
    width: auto;
    padding: 0 6px;
    font-size: 0.68rem;
  }
}


/* ==========================================================================
   TOURNAMENT HUD BAR (Best of 3 / 5 Mode)
   ========================================================================== */
#tournament-hud-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: linear-gradient(90deg, rgba(20, 15, 45, 0.95), rgba(30, 20, 60, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid #ffe600;
  box-shadow: 0 4px 25px rgba(255, 230, 0, 0.35);
  z-index: 19;
  position: relative;
  animation: slideDown 0.35s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tourney-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tourney-tag {
  background: linear-gradient(135deg, #ffe600, #ff8800);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.tourney-stakes {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tourney-center-scores {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-score-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-score-item .p-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.beads-group {
  display: flex;
  gap: 4px;
}

.score-bead {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-bead.filled {
  transform: scale(1.15);
}

.vs-divider {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffe600;
  letter-spacing: 1px;
  opacity: 0.8;
}

.tourney-right-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   GRAND CHAMPION CORONATION MODAL
   ========================================================================== */
#modal-coronation .modal-card {
  max-width: 440px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(40, 30, 80, 0.98), rgba(12, 10, 24, 0.98));
  border: 2px solid #ffe600;
  box-shadow: 0 0 50px rgba(255, 230, 0, 0.5), inset 0 0 30px rgba(255, 230, 0, 0.2);
  padding: 30px 24px;
}

.trophy-container {
  font-size: 80px;
  margin-bottom: 12px;
  animation: trophyFloat 2.5s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(255, 230, 0, 0.7));
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.coronation-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #ffe600;
  text-transform: uppercase;
  font-weight: 800;
}

.coronation-champ-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 6px 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px #ffe600;
}

/* ==========================================================================
   PARTY ROOMS (WI-FI MULTI-DEVICE)
   ========================================================================== */
.room-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.room-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.room-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
}

.room-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--border-subtle);
}

.room-player-item.host {
  border-color: #ffe600;
  background: rgba(255, 230, 0, 0.08);
}

.room-player-item .p-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex: 1;
  margin-left: 8px;
}

.room-player-item .p-role-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.room-player-item.host .p-role-tag {
  background: #ffe600;
  color: #000;
}

.icon-btn.in-room {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.icon-btn.bgm-active {
  background: rgba(255, 0, 127, 0.2);
  border-color: var(--accent-magenta);
  color: var(--accent-magenta);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Real-Time Live Room Active HUD Bar */
#room-live-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 127, 0.12));
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  z-index: 95;
  overflow-x: auto;
}

.room-live-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.room-live-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.room-live-code {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.room-live-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.room-live-badge.host {
  background: #ffe600;
  color: #000;
}

.room-live-badge.guest {
  background: var(--accent-cyan);
  color: #000;
}

.room-live-players {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  padding: 2px 4px;
}

.hud-player-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #ffffff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-player-chip.is-me {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.room-live-right {
  flex-shrink: 0;
}




/* ==========================================================================
   FINGER SHOCK FLOATING ACTION BAR
   ========================================================================== */
.finger-floating-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 16;
  flex-wrap: wrap;
  justify-content: center;
  width: 94%;
}
.finger-act-btn { padding: 8px 14px; font-size: 0.8rem; }

/* ==========================================================================
   WHEEL OF FATE INTERACTIVE UX
   ========================================================================== */
.wheel-live-readout {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(10, 12, 28, 0.92);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.wheel-live-readout .readout-tag { color: var(--accent-magenta); font-weight: 800; font-size: 0.68rem; }
.wheel-live-readout .readout-value { color: #fff; font-weight: 700; }
.wheel-live-readout.celebrating { border-color: #ffe600; box-shadow: var(--shadow-glow-gold); }
.wheel-live-readout.celebrating .readout-value { color: #ffe600; }

.wheel-ux-dock, .marble-roster-dock {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 560px;
  z-index: 15;
  background: rgba(14, 18, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wheel-ux-top-row { display: flex; flex-direction: column; gap: 6px; }
.wheel-theme-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wheel-theme-ribbon::-webkit-scrollbar { display: none; }
.wheel-theme-ribbon .ribbon-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffe600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wheel-theme-scroll {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.wheel-theme-scroll::-webkit-scrollbar { display: none; }
.wheel-theme-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e0e5ff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.wheel-theme-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.wheel-theme-pill.active {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.28), rgba(255, 140, 0, 0.22));
  border-color: #ffe600;
  color: #ffe600;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.45);
}
.wheel-preset-pills, .marble-quick-presets {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.wheel-preset-pills::-webkit-scrollbar, .marble-quick-presets::-webkit-scrollbar,
.wheel-slice-chips::-webkit-scrollbar, .marble-roster-chips::-webkit-scrollbar { display: none; }
.wheel-preset-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-main);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.wheel-preset-pill.active { background: rgba(0,240,255,0.22); border-color: var(--accent-cyan); color: #fff; }
.wheel-quick-add { display: flex; gap: 6px; align-items: center; }
.wheel-quick-add input {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  color: #fff; padding: 5px 12px; font-size: 0.8rem; outline: none;
  user-select: text;
}
.wheel-slice-chips, .marble-roster-chips {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0;
}
.wheel-slice-chip, .marble-racer-chip {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.74rem;
  color: #fff;
  cursor: pointer;
}
.wheel-slice-chip.winner { background: rgba(255,230,0,0.25); border-color: #ffe600 !important; }
.chip-del-btn {
  background: rgba(255,0,85,0.3); border: none; color: #fff;
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer; line-height: 1;
}

/* ==========================================================================
   MARBLE ROYALE: COMMENTARY, ROSTER & PHOTO STUDIO
   ========================================================================== */
.marble-commentary-banner {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 14;
  max-width: 94%;
  padding: 6px 14px;
  background: rgba(10, 12, 28, 0.92);
  border: 1px solid #ffe600;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffe600;
  text-align: center;
  pointer-events: none;
}
.marble-studio-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(5, 7, 15, 0.9);
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.marble-studio-card {
  width: 100%; max-width: 480px; max-height: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid #ffe600;
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.marble-studio-top { display: flex; justify-content: space-between; gap: 8px; }
.marble-studio-top h3 { font-family: var(--font-display); font-size: 1.05rem; color: #ffe600; }
.marble-studio-top p { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.marble-studio-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.marble-studio-row {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.studio-row-main { display: flex; align-items: center; gap: 8px; }
.studio-emoji-thumb { font-size: 26px; width: 36px; text-align: center; }
.studio-photo-thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #ffe600; }
.studio-name-input {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glow);
  border-radius: 8px; color: #fff; padding: 6px 10px; font-size: 0.9rem; outline: none;
  user-select: text;
}
.studio-del-btn { background: rgba(255,0,85,0.3); border: none; color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.studio-type-bar { display: flex; gap: 5px; flex-wrap: wrap; }
.studio-type-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text-main);
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.74rem; font-weight: 700; cursor: pointer;
}
.studio-type-pill.active { background: rgba(255,230,0,0.25); border-color: #ffe600; color: #ffe600; }
.marble-studio-footer { display: flex; justify-content: space-between; gap: 8px; }

/* ==========================================================================
   CURRENCY SWITCHER (USD vs INR) & 3-TIER PAYWALL
   ========================================================================== */
.currency-toggle-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 2px;
}
.currency-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.currency-pill.active {
  background: var(--accent-cyan);
  color: #05060b;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   DRAMATIC SUSPENSE WINNER REVEAL
   ========================================================================== */
#modal-suspense-reveal {
  background: rgba(4, 5, 12, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.suspense-curtain {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: suspenseIn 0.35s ease;
}

@keyframes suspenseIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.suspense-oracle-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 15px var(--accent-cyan);
  animation: pulseGlow 1.2s infinite alternate;
}

.suspense-countdown {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  color: #ffe600;
  text-shadow: 0 0 40px #ffe600, 0 0 80px rgba(255, 230, 0, 0.5);
  line-height: 1;
  margin: 10px 0;
  animation: countdownPop 0.8s ease-in-out infinite;
}

@keyframes countdownPop {
  0% { transform: scale(0.7); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.suspense-winner-card {
  display: none;
  background: radial-gradient(circle at 50% 20%, rgba(35, 25, 70, 0.96), rgba(10, 12, 24, 0.98));
  border: 2px solid #ffe600;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  width: 92%;
  box-shadow: 0 0 45px rgba(255, 230, 0, 0.5), inset 0 0 25px rgba(255, 230, 0, 0.2);
  animation: winnerCardExplode 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes winnerCardExplode {
  0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
  70% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.winner-crown {
  font-size: 64px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 20px rgba(255, 230, 0, 0.7));
  animation: trophyFloat 2.2s infinite ease-in-out;
}

.winner-label {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 20px #ffe600;
  margin-bottom: 4px;
}

.winner-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   HALL OF FATE (DECISION HISTORY LEDGER)
   ========================================================================== */
.history-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: 8px;
  margin-top: 8px;
}

.h-stat-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.h-stat-box.highlight-gold {
  border-color: #ffe600;
  background: rgba(255, 230, 0, 0.08);
}
.h-stat-box.highlight-magenta {
  border-color: #ff007f;
  background: rgba(255, 0, 127, 0.08);
}
.h-stat-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.highlight-gold .h-stat-num { color: #ffe600; }
.highlight-magenta .h-stat-num { color: #ff007f; }
.h-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.history-log-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
  padding-right: 4px;
}
.history-log-list::-webkit-scrollbar {
  width: 4px;
}
.history-log-list::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 4px;
}

.history-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.history-log-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.h-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.h-item-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}
.h-item-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.h-item-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
}

/* ==========================================================================
   PARTY GUIDE CARDS
   ========================================================================== */
.guide-mode-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  text-align: left;
}
.guide-mode-card .g-header {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.guide-mode-card p {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.45;
}
.guide-mode-card .g-tip {
  margin-top: 6px;
  padding: 5px 8px;
  background: rgba(255, 230, 0, 0.08);
  border-left: 3px solid #ffe600;
  font-size: 0.74rem;
  color: #f1f5f9;
}

/* ==========================================================================
   BEAUTIFIED ARCADE VERDICT MODAL (SHOWCASE POLISH)
   ========================================================================== */
.result-verdict-card {
  max-width: 440px !important;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(32, 24, 64, 0.96), rgba(10, 12, 24, 0.98)) !important;
  border: 2px solid rgba(255, 230, 0, 0.5) !important;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.35), 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  padding: 28px 22px 20px 22px !important;
  position: relative;
  overflow: hidden;
}

.result-verdict-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe600, #00f0ff, transparent);
}

.verdict-trophy-emblem {
  font-size: 3.4rem;
  line-height: 1;
  margin: -6px auto 10px auto;
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.85));
  animation: floatTrophy 2.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes floatTrophy {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.08); }
}

.verdict-mode-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  margin-bottom: 8px;
}

.verdict-champ-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.18;
  background: linear-gradient(135deg, #ffffff 0%, #fff275 35%, #ffd700 70%, #ff8800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.5));
  margin: 6px 0 12px 0;
}

.verdict-subtext-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.verdict-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.verdict-play-again-btn {
  width: 100%;
  padding: 13px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.verdict-social-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.verdict-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(20, 24, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.verdict-social-btn:hover {
  transform: translateY(-2px);
}

.verdict-social-btn.whatsapp {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.45);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(18, 140, 126, 0.28));
}

.verdict-social-btn.story {
  color: #ff007f;
  border-color: rgba(255, 0, 127, 0.45);
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.14), rgba(255, 107, 107, 0.28));
}

.verdict-social-btn.copy {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(77, 150, 255, 0.28));
}

.verdict-watermark-footer {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   HOST ADMISSION & GUEST WAITING RADAR STYLES
   ========================================================================== */
.waiting-radar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.radar-ping {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.6);
  animation: radarPing 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  pointer-events: none;
}

@keyframes radarPing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.host-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(20, 24, 46, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  gap: 10px;
}

.host-req-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.host-req-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.host-req-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.host-req-actions {
  display: flex;
  gap: 8px;
}

.btn-admit-accept {
  background: linear-gradient(135deg, #00ff88, #00b4d8);
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-admit-accept:hover { transform: scale(1.05); }

.btn-admit-reject {
  background: rgba(255, 0, 85, 0.2);
  color: #ff0055;
  border: 1px solid rgba(255, 0, 85, 0.5);
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-admit-reject:hover { transform: scale(1.05); }

/* Avatar selector pills in Pre-Join Prompt */
.avatar-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-pill:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  transform: scale(1.1);
}

.avatar-pill.active {
  background: rgba(0, 240, 255, 0.25);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  transform: scale(1.15);
}

.hud-name-chip {
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-name-chip:hover {
  background: rgba(255, 230, 0, 0.18) !important;
  border-color: #ffe600 !important;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

/* Ensure mobile multi-touch does not scroll or pinch-zoom on Finger Shock canvas */
#canvas-finger {
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* ==========================================================================
   PARTY STAKES RIBBON BAR & VERDICT INTEGRATION
   ========================================================================== */
.party-stakes-bar {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(14, 16, 28, 0.92);
  border-bottom: 1px solid rgba(255, 230, 0, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  z-index: 14;
  position: relative;
}

.party-stakes-bar::-webkit-scrollbar {
  display: none;
}

.stakes-ribbon-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffe600;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.4);
}

.stakes-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.stake-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stake-pill:hover {
  background: rgba(255, 230, 0, 0.12);
  border-color: rgba(255, 230, 0, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.stake-pill.active {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.28), rgba(255, 140, 0, 0.2));
  border-color: #ffe600;
  color: #ffe600;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.45);
  font-weight: 800;
  transform: translateY(-1px);
}

/* Prominent Stakes Banner on Verdict Card */
.verdict-stake-banner {
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.18), rgba(255, 107, 0, 0.25));
  border: 1px solid rgba(255, 230, 0, 0.55);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffe600;
  text-shadow: 0 1px 10px rgba(255, 230, 0, 0.4);
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.2);
  animation: pulseStake 2s infinite ease-in-out alternate;
  width: 100%;
  box-sizing: border-box;
}

@keyframes pulseStake {
  0% { box-shadow: 0 4px 15px rgba(255, 230, 0, 0.2); }
  100% { box-shadow: 0 4px 25px rgba(255, 230, 0, 0.55); border-color: #ffe600; }
}

.verdict-social-btn.native-share {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.45);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.14), rgba(0, 180, 216, 0.28));
}

.verdict-social-btn.native-share:hover {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}


