/* ==========================================================================
   Graviton Arena - Main Stylesheet
   Dark space aesthetic with cyberpunk neon accents and glassmorphism UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg-space: #0a0a12;
  --bg-void: #06060c;

  --glass-bg: rgba(12, 12, 30, 0.65);
  --glass-bg-heavy: rgba(8, 8, 24, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.04);

  --neon-pink: #ff2d78;
  --neon-cyan: #00f0ff;
  --neon-yellow: #f0e130;
  --neon-orange: #ff8c2e;
  --neon-magenta: #e930ff;
  --neon-white: #f0f0ff;
  --neon-purple: #9b59ff;

  --text-primary: #e8e6f0;
  --text-secondary: rgba(232, 230, 240, 0.6);
  --text-dim: rgba(232, 230, 240, 0.35);

  --level-1: #7a7a8c;
  --level-2: #00f0ff;
  --level-3: #f0e130;
  --level-4: #ff8c2e;
  --level-5: #e930ff;
  --level-6: #f0f0ff;

  --glow-pink: 0 0 12px rgba(255, 45, 120, 0.6), 0 0 40px rgba(255, 45, 120, 0.2);
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.2);
  --glow-purple: 0 0 12px rgba(155, 89, 255, 0.6), 0 0 40px rgba(155, 89, 255, 0.2);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease-out;

  --z-canvas: 0;
  --z-panels: 100;
  --z-top-bar: 200;
  --z-overlay: 500;
  --z-winner: 900;
}


/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-space);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}


/* --------------------------------------------------------------------------
   Canvas - Full Viewport Background
   -------------------------------------------------------------------------- */
#arena-canvas,
.arena-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-canvas);
  display: block;
  background: var(--bg-void);
}


/* --------------------------------------------------------------------------
   Glassmorphism Mixin - applied via class
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.glass-heavy {
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}


/* --------------------------------------------------------------------------
   Top Bar - Round Info
   -------------------------------------------------------------------------- */
.top-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-top-bar);

  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  border-radius: var(--radius-xl);

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-highlight);

  transition: opacity var(--transition-base), transform var(--transition-base);
}

.top-bar.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.top-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.top-bar__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.top-bar__value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.top-bar__value--round {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.top-bar__value--time {
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(240, 225, 48, 0.4);
}

.top-bar__value--time.warning {
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 45, 120, 0.5);
  animation: time-pulse 0.8s ease-in-out infinite;
}

.top-bar__value--balls {
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(155, 89, 255, 0.4);
}

.top-bar__divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

@keyframes time-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* --------------------------------------------------------------------------
   Right Panel - Champion Info & Boost Button
   -------------------------------------------------------------------------- */
.right-panel {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: var(--z-panels);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 220px;

  transition: opacity var(--transition-base), transform var(--transition-base);
}

.right-panel.hidden {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}

/* -- Champion Card -- */
.champion-card {
  padding: 16px;
  border-radius: var(--radius-lg);

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 var(--glass-highlight);
}

.champion-card__title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(240, 225, 48, 0.3);
  margin-bottom: 10px;
}

.champion-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.champion-card__stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.champion-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.champion-card__stat-label {
  color: var(--text-secondary);
}

.champion-card__stat-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--neon-cyan);
}

/* -- Boost Button -- */
.boost-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;

  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;

  background: linear-gradient(135deg, var(--neon-pink), var(--neon-magenta));
  box-shadow:
    var(--glow-pink),
    0 4px 16px rgba(0, 0, 0, 0.4);

  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);

  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.boost-btn:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 18px rgba(255, 45, 120, 0.7),
    0 0 50px rgba(255, 45, 120, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.5);
}

.boost-btn:active {
  transform: scale(0.96);
}

.boost-btn:disabled,
.boost-btn.on-cooldown {
  cursor: not-allowed;
  filter: brightness(0.5) saturate(0.4);
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Cooldown overlay */
.boost-btn__cooldown-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: height linear;
  pointer-events: none;
}

.boost-btn.on-cooldown .boost-btn__cooldown-fill {
  animation: cooldown-fill var(--cooldown-duration, 5s) linear forwards;
}

@keyframes cooldown-fill {
  from { height: 0%; }
  to   { height: 100%; }
}

/* Boost button shimmer */
.boost-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: rotate(0deg);
  animation: boost-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.boost-btn:disabled::after,
.boost-btn.on-cooldown::after {
  animation: none;
  opacity: 0;
}

@keyframes boost-shimmer {
  0%   { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}


/* --------------------------------------------------------------------------
   Bottom Panel - Countdown Between Rounds
   -------------------------------------------------------------------------- */
.bottom-panel {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-panels);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: var(--radius-xl);

  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow:
    0 6px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 var(--glass-highlight);

  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.bottom-panel.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  pointer-events: none;
}

.bottom-panel__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.bottom-panel__countdown {
  font-size: 48px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--neon-cyan);
  text-shadow:
    0 0 16px rgba(0, 240, 255, 0.6),
    0 0 48px rgba(0, 240, 255, 0.25);
  line-height: 1;
}

.bottom-panel__countdown.go {
  color: var(--neon-yellow);
  text-shadow:
    0 0 16px rgba(240, 225, 48, 0.7),
    0 0 48px rgba(240, 225, 48, 0.3);
  animation: countdown-pop 0.4s ease-out;
}

@keyframes countdown-pop {
  0%   { transform: scale(1.5); opacity: 0; }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}


/* --------------------------------------------------------------------------
   Left Panel - Ball List
   -------------------------------------------------------------------------- */
.left-panel {
  position: fixed;
  top: 80px;
  left: 16px;
  bottom: 16px;
  z-index: var(--z-panels);

  display: flex;
  flex-direction: column;
  width: 210px;

  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 var(--glass-highlight);
  overflow: hidden;

  transition: opacity var(--transition-base), transform var(--transition-base);
}

.left-panel.hidden {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
}

.left-panel__header {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--glass-border);
}

.left-panel__count {
  color: var(--neon-purple);
  margin-left: 4px;
}

.ball-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px;
}

/* -- Ball List Items -- */
.ball-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);

  transition: background var(--transition-fast);
  cursor: default;
}

.ball-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ball-item.eliminated {
  opacity: 0.3;
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.ball-item.is-champion {
  background: rgba(240, 225, 48, 0.06);
  border: 1px solid rgba(240, 225, 48, 0.15);
}

.ball-item__color-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ball-item__name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* -- Power Level Badge -- */
.power-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.power-badge--1 {
  background: rgba(122, 122, 140, 0.2);
  color: var(--level-1);
  border: 1px solid rgba(122, 122, 140, 0.3);
}

.power-badge--2 {
  background: rgba(0, 240, 255, 0.1);
  color: var(--level-2);
  border: 1px solid rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.power-badge--3 {
  background: rgba(240, 225, 48, 0.1);
  color: var(--level-3);
  border: 1px solid rgba(240, 225, 48, 0.3);
  text-shadow: 0 0 6px rgba(240, 225, 48, 0.4);
}

.power-badge--4 {
  background: rgba(255, 140, 46, 0.12);
  color: var(--level-4);
  border: 1px solid rgba(255, 140, 46, 0.35);
  text-shadow: 0 0 6px rgba(255, 140, 46, 0.4);
}

.power-badge--5 {
  background: rgba(233, 48, 255, 0.12);
  color: var(--level-5);
  border: 1px solid rgba(233, 48, 255, 0.35);
  text-shadow: 0 0 6px rgba(233, 48, 255, 0.4);
}

.power-badge--6 {
  background: rgba(240, 240, 255, 0.08);
  color: var(--level-6);
  border: 2px solid transparent;
  text-shadow: 0 0 8px rgba(240, 240, 255, 0.6);
  background-clip: padding-box;
  position: relative;
}

.power-badge--6::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--neon-pink),
    var(--neon-orange),
    var(--neon-yellow),
    var(--neon-cyan),
    var(--neon-purple),
    var(--neon-magenta),
    var(--neon-pink)
  );
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rainbow-border 3s linear infinite;
  pointer-events: none;
}

@keyframes rainbow-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* --------------------------------------------------------------------------
   Winner Overlay
   -------------------------------------------------------------------------- */
.winner-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-winner);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  background: radial-gradient(
    ellipse at center,
    rgba(6, 6, 12, 0.75) 0%,
    rgba(6, 6, 12, 0.92) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.winner-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.winner-overlay__crown {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon-yellow);
  text-shadow:
    0 0 12px rgba(240, 225, 48, 0.6),
    0 0 40px rgba(240, 225, 48, 0.2);
  animation: winner-fade-in 0.6s ease-out 0.2s both;
}

.winner-overlay__name {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow:
    0 0 20px rgba(255, 45, 120, 0.7),
    0 0 60px rgba(255, 45, 120, 0.3),
    0 0 100px rgba(155, 89, 255, 0.2);
  animation: winner-scale-in 0.7s ease-out 0.35s both;
  max-width: 90vw;
  word-break: break-word;
}

.winner-overlay__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  animation: winner-fade-in 0.6s ease-out 0.6s both;
}

.winner-overlay__stats {
  display: flex;
  gap: 32px;
  margin-top: 12px;
  animation: winner-fade-in 0.6s ease-out 0.8s both;
}

.winner-overlay__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.winner-overlay__stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.winner-overlay__stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.winner-overlay__action {
  margin-top: 24px;
  padding: 14px 40px;
  border: 1px solid var(--neon-cyan);
  border-radius: var(--radius-xl);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast);
  animation: winner-fade-in 0.6s ease-out 1s both;
}

.winner-overlay__action:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: var(--glow-cyan);
}

@keyframes winner-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes winner-scale-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}


/* --------------------------------------------------------------------------
   Scrollbar Styling - Purple Theme
   -------------------------------------------------------------------------- */
.ball-list::-webkit-scrollbar {
  width: 6px;
}

.ball-list::-webkit-scrollbar-track {
  background: rgba(155, 89, 255, 0.04);
  border-radius: 3px;
}

.ball-list::-webkit-scrollbar-thumb {
  background: rgba(155, 89, 255, 0.25);
  border-radius: 3px;
  transition: background var(--transition-fast);
}

.ball-list::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 89, 255, 0.45);
}

/* Firefox scrollbar */
.ball-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 89, 255, 0.25) rgba(155, 89, 255, 0.04);
}


/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-enter {
  animation: fade-in var(--transition-base) ease-out both;
}

.fade-exit {
  animation: fade-out var(--transition-base) ease-in both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* --------------------------------------------------------------------------
   Notification Toast (optional UI feedback)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: var(--z-overlay);

  padding: 10px 24px;
  border-radius: var(--radius-xl);

  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);

  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast--boost {
  border-color: rgba(255, 45, 120, 0.3);
  color: var(--neon-pink);
}

.toast--info {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
}


/* --------------------------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Top bar: compact */
  .top-bar {
    gap: 14px;
    padding: 8px 18px;
    top: 8px;
    max-width: calc(100vw - 24px);
  }

  .top-bar__value {
    font-size: 15px;
  }

  .top-bar__label {
    font-size: 9px;
  }

  .top-bar__divider {
    height: 22px;
  }

  /* Left panel: collapse to hidden by default */
  .left-panel {
    top: 64px;
    left: 8px;
    bottom: auto;
    width: 180px;
    max-height: 40vh;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-base),
      opacity var(--transition-base);
  }

  .left-panel.expanded {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Right panel: collapse, boost button moves to bottom center */
  .right-panel {
    top: auto;
    right: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .right-panel.hidden {
    transform: translateX(-50%) translateY(30px);
  }

  .champion-card {
    display: none;
  }

  .boost-btn {
    min-height: 60px;
    min-width: 160px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-size: 15px;
  }

  /* Bottom panel: above boost button */
  .bottom-panel {
    bottom: 96px;
    padding: 12px 28px;
  }

  .bottom-panel__countdown {
    font-size: 36px;
  }

  /* Winner overlay: smaller text */
  .winner-overlay__name {
    font-size: 40px;
  }

  .winner-overlay__crown {
    font-size: 18px;
  }

  .winner-overlay__stats {
    gap: 20px;
  }

  .winner-overlay__stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    gap: 10px;
    padding: 7px 14px;
  }

  .top-bar__value {
    font-size: 14px;
  }

  .top-bar__item {
    min-width: 48px;
  }

  .boost-btn {
    min-width: 140px;
    min-height: 56px;
    font-size: 14px;
  }

  .bottom-panel__countdown {
    font-size: 30px;
  }

  .winner-overlay__name {
    font-size: 30px;
  }

  .winner-overlay__crown {
    font-size: 15px;
  }

  .winner-overlay__stats {
    flex-direction: column;
    gap: 12px;
  }
}

/* Landscape mobile: reduce vertical spacing */
@media (max-height: 480px) {
  .top-bar {
    top: 6px;
    padding: 6px 16px;
  }

  .top-bar__value {
    font-size: 14px;
  }

  .left-panel {
    top: 50px;
    max-height: 50vh;
  }

  .bottom-panel {
    bottom: 8px;
    padding: 8px 20px;
  }

  .bottom-panel__countdown {
    font-size: 28px;
  }

  .winner-overlay__name {
    font-size: 32px;
  }

  .right-panel {
    bottom: 8px;
  }
}


/* --------------------------------------------------------------------------
   Toggle Button for Left Panel (mobile)
   -------------------------------------------------------------------------- */
.left-panel-toggle {
  position: fixed;
  top: 64px;
  left: 8px;
  z-index: calc(var(--z-panels) + 1);

  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--neon-purple);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.left-panel-toggle:hover {
  background: rgba(155, 89, 255, 0.12);
}

@media (max-width: 768px) {
  .left-panel-toggle {
    display: flex;
  }
}


/* --------------------------------------------------------------------------
   Print - hide everything except canvas
   -------------------------------------------------------------------------- */
@media print {
  .top-bar,
  .left-panel,
  .right-panel,
  .bottom-panel,
  .winner-overlay,
  .toast,
  .left-panel-toggle,
  .betting-panel,
  .betting-toggle {
    display: none !important;
  }
}


/* ==========================================================================
   LIVE BETTING PANEL
   Premium sportsbook-style UI with glassmorphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   Betting Panel Container
   -------------------------------------------------------------------------- */
.betting-panel {
  position: fixed;
  top: 220px;
  right: 16px;
  z-index: var(--z-panels);
  width: 280px;
  max-height: calc(100vh - 236px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  background: rgba(6, 6, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(155, 89, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s ease;
}

.betting-panel::-webkit-scrollbar {
  width: 5px;
}
.betting-panel::-webkit-scrollbar-track {
  background: rgba(155, 89, 255, 0.04);
  border-radius: 3px;
}
.betting-panel::-webkit-scrollbar-thumb {
  background: rgba(155, 89, 255, 0.25);
  border-radius: 3px;
}
.betting-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 89, 255, 0.45);
}
.betting-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 89, 255, 0.25) rgba(155, 89, 255, 0.04);
}


/* --------------------------------------------------------------------------
   Betting Header
   -------------------------------------------------------------------------- */
.betting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.betting-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(155, 89, 255, 0.4);
}

.betting-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.betting-status.open {
  color: #44ff88;
  background: rgba(68, 255, 136, 0.12);
  box-shadow: 0 0 8px rgba(68, 255, 136, 0.2);
  animation: status-pulse-green 2s ease-in-out infinite;
}

.betting-status.closed {
  color: #ff4466;
  background: rgba(255, 68, 102, 0.12);
}

.betting-status.paused {
  color: var(--neon-yellow);
  background: rgba(240, 225, 48, 0.12);
  animation: status-pulse-yellow 1.5s ease-in-out infinite;
}

@keyframes status-pulse-green {
  0%, 100% { box-shadow: 0 0 8px rgba(68, 255, 136, 0.2); }
  50% { box-shadow: 0 0 16px rgba(68, 255, 136, 0.4); }
}

@keyframes status-pulse-yellow {
  0%, 100% { box-shadow: 0 0 6px rgba(240, 225, 48, 0.2); }
  50% { box-shadow: 0 0 14px rgba(240, 225, 48, 0.4); }
}


/* --------------------------------------------------------------------------
   Betting Sections (shared)
   -------------------------------------------------------------------------- */
.betting-section {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.betting-section:last-child {
  border-bottom: none;
}


/* --------------------------------------------------------------------------
   Credits Section
   -------------------------------------------------------------------------- */
.credits-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.credits-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.credits-balance {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #44ff88;
  text-shadow: 0 0 12px rgba(68, 255, 136, 0.5);
  transition: all 0.3s ease;
}

.credits-balance.flash-up {
  animation: credit-flash-up 0.6s ease-out;
}

.credits-balance.flash-down {
  animation: credit-flash-down 0.6s ease-out;
}

@keyframes credit-flash-up {
  0% { transform: scale(1.3); color: #00ff88; text-shadow: 0 0 24px rgba(0, 255, 136, 0.8); }
  100% { transform: scale(1); }
}

@keyframes credit-flash-down {
  0% { transform: scale(1.3); color: #ff4466; text-shadow: 0 0 24px rgba(255, 68, 102, 0.8); }
  100% { transform: scale(1); }
}

.credits-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.credits-btn {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid rgba(155, 89, 255, 0.25);
  border-radius: 8px;
  background: rgba(155, 89, 255, 0.06);
  color: var(--neon-purple);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.credits-btn:hover {
  background: rgba(155, 89, 255, 0.15);
  border-color: rgba(155, 89, 255, 0.4);
  box-shadow: 0 0 10px rgba(155, 89, 255, 0.15);
}

.credits-btn:active {
  transform: scale(0.96);
}

.deposit-btn {
  border-color: rgba(68, 255, 136, 0.25);
  background: rgba(68, 255, 136, 0.06);
  color: #44ff88;
}
.deposit-btn:hover {
  background: rgba(68, 255, 136, 0.15);
  border-color: rgba(68, 255, 136, 0.4);
  box-shadow: 0 0 10px rgba(68, 255, 136, 0.15);
}

.withdraw-btn {
  border-color: rgba(255, 140, 46, 0.25);
  background: rgba(255, 140, 46, 0.06);
  color: var(--neon-orange);
}
.withdraw-btn:hover {
  background: rgba(255, 140, 46, 0.15);
  border-color: rgba(255, 140, 46, 0.4);
  box-shadow: 0 0 10px rgba(255, 140, 46, 0.15);
}

.cancel-btn {
  border-color: rgba(255, 68, 102, 0.25);
  background: rgba(255, 68, 102, 0.06);
  color: #ff4466;
}
.cancel-btn:hover {
  background: rgba(255, 68, 102, 0.15);
  border-color: rgba(255, 68, 102, 0.4);
}

.credits-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
   Credit Modal (inline deposit/withdraw)
   -------------------------------------------------------------------------- */
.credit-modal {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: modal-slide-in 0.2s ease-out;
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.credit-modal-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.credit-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(155, 89, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 8px;
  -moz-appearance: textfield;
}

.credit-input::-webkit-inner-spin-button,
.credit-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.credit-input:focus {
  border-color: rgba(155, 89, 255, 0.5);
  box-shadow: 0 0 12px rgba(155, 89, 255, 0.15);
}

.credit-modal-actions {
  display: flex;
  gap: 6px;
}


/* --------------------------------------------------------------------------
   Odds Board
   -------------------------------------------------------------------------- */
.odds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.odds-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.pool-total {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.odds-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Individual odds row */
.odds-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.odds-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.odds-row.selected {
  background: rgba(240, 225, 48, 0.06);
  border-color: rgba(240, 225, 48, 0.25);
  box-shadow: 0 0 10px rgba(240, 225, 48, 0.1);
}

.odds-row.eliminated {
  opacity: 0.3;
  pointer-events: none;
}

.odds-row.odds-shifted {
  animation: odds-flash 0.4s ease-out;
}

@keyframes odds-flash {
  0% { background: rgba(0, 240, 255, 0.15); }
  100% { background: rgba(255, 255, 255, 0.02); }
}

.odds-row__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.odds-row__name {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.odds-row__eliminated-tag {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff4466;
  background: rgba(255, 68, 102, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.odds-row__odds {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-yellow);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(240, 225, 48, 0.3);
  white-space: nowrap;
}

.odds-row__pool {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Pool proportion bar behind each row */
.odds-row__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  border-radius: 0 2px 2px 0;
  opacity: 0.5;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


/* --------------------------------------------------------------------------
   Place Bet Section
   -------------------------------------------------------------------------- */
.bet-target {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-align: center;
  min-height: 16px;
  transition: color 0.15s ease;
}

.bet-target.has-target {
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(240, 225, 48, 0.2);
}

.bet-amounts {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.bet-quick {
  flex: 1;
  padding: 8px 4px;
  border: 1px solid rgba(155, 89, 255, 0.25);
  border-radius: 8px;
  background: rgba(155, 89, 255, 0.06);
  color: var(--neon-purple);
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bet-quick:hover {
  background: rgba(155, 89, 255, 0.18);
  border-color: rgba(155, 89, 255, 0.5);
  box-shadow: 0 0 8px rgba(155, 89, 255, 0.15);
  transform: translateY(-1px);
}

.bet-quick:active {
  transform: scale(0.95) translateY(0);
}

#betAllIn {
  border-color: rgba(255, 45, 120, 0.3);
  background: rgba(255, 45, 120, 0.06);
  color: var(--neon-pink);
  font-size: 9px;
  letter-spacing: 0.04em;
}

#betAllIn:hover {
  background: rgba(255, 45, 120, 0.18);
  border-color: rgba(255, 45, 120, 0.5);
  box-shadow: 0 0 8px rgba(255, 45, 120, 0.15);
}

.bet-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(155, 89, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 6px;
  -moz-appearance: textfield;
}

.bet-input::-webkit-inner-spin-button,
.bet-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bet-input:focus {
  border-color: rgba(155, 89, 255, 0.5);
  box-shadow: 0 0 12px rgba(155, 89, 255, 0.15);
}

.bet-payout {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  min-height: 16px;
}

.bet-payout.has-value {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
}


/* --------------------------------------------------------------------------
   Place Bet Button - PREMIUM
   -------------------------------------------------------------------------- */
.place-bet-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0e130, #ff8c2e);
  color: #000;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(240, 225, 48, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.place-bet-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 0 30px rgba(240, 225, 48, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.4);
}

.place-bet-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.place-bet-btn:disabled {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
  color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  cursor: not-allowed;
}

/* Shimmer effect on bet button */
.place-bet-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(45deg);
  animation: bet-btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.place-bet-btn:disabled::after {
  animation: none;
  opacity: 0;
}

@keyframes bet-btn-shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Coin flip animation when bet is placed */
.place-bet-btn.placing {
  animation: bet-coin-flip 0.5s ease-in-out;
  pointer-events: none;
}

@keyframes bet-coin-flip {
  0% { transform: perspective(400px) rotateY(0); }
  50% { transform: perspective(400px) rotateY(180deg) scale(0.9); }
  100% { transform: perspective(400px) rotateY(360deg) scale(1); }
}


/* --------------------------------------------------------------------------
   My Bets Section
   -------------------------------------------------------------------------- */
.my-bets-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.my-bets-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
}

.my-bets-list::-webkit-scrollbar { width: 4px; }
.my-bets-list::-webkit-scrollbar-thumb { background: rgba(155, 89, 255, 0.2); border-radius: 2px; }

.no-bets {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 10px;
}

.my-bet-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  transition: all 0.3s ease;
}

.my-bet-item.won {
  background: rgba(68, 255, 136, 0.08);
  border: 1px solid rgba(68, 255, 136, 0.2);
  box-shadow: 0 0 12px rgba(68, 255, 136, 0.1);
}

.my-bet-item.lost {
  background: rgba(255, 68, 102, 0.06);
  border: 1px solid rgba(255, 68, 102, 0.15);
  opacity: 0.6;
}

.my-bet-item.active {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.my-bet__name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-bet__amount {
  font-weight: 700;
  color: var(--neon-purple);
  font-variant-numeric: tabular-nums;
}

.my-bet__odds {
  font-weight: 700;
  color: var(--neon-yellow);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.my-bet__payout {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
}

.my-bet__payout.won { color: #44ff88; }
.my-bet__payout.lost { color: #ff4466; }
.my-bet__payout.active { color: var(--text-dim); }


/* --------------------------------------------------------------------------
   Settlement Animation
   -------------------------------------------------------------------------- */
.betting-panel.settlement-flash {
  animation: settlement-glow 0.5s ease-out 3;
}

@keyframes settlement-glow {
  0% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.7), 0 8px 32px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 50px rgba(240, 225, 48, 0.6), 0 8px 32px rgba(0, 0, 0, 0.5); }
  100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(155, 89, 255, 0.3); }
}

.my-bet-item.settle-win {
  animation: settle-win-flash 0.6s ease-out 2;
}

@keyframes settle-win-flash {
  0% { background: rgba(68, 255, 136, 0.3); box-shadow: 0 0 20px rgba(68, 255, 136, 0.5); }
  100% { background: rgba(68, 255, 136, 0.08); }
}

.my-bet-item.settle-lose {
  animation: settle-lose-flash 0.6s ease-out 2;
}

@keyframes settle-lose-flash {
  0% { background: rgba(255, 68, 102, 0.3); box-shadow: 0 0 20px rgba(255, 68, 102, 0.5); }
  100% { background: rgba(255, 68, 102, 0.06); }
}


/* --------------------------------------------------------------------------
   Bet Toast Notification
   -------------------------------------------------------------------------- */
.bet-toast {
  position: fixed;
  top: 75px;
  right: 16px;
  z-index: calc(var(--z-overlay) + 10);
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-heavy);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.bet-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bet-toast.success {
  border-color: rgba(68, 255, 136, 0.3);
  color: #44ff88;
  text-shadow: 0 0 8px rgba(68, 255, 136, 0.3);
}

.bet-toast.error {
  border-color: rgba(255, 68, 102, 0.3);
  color: #ff4466;
  text-shadow: 0 0 8px rgba(255, 68, 102, 0.3);
}

.bet-toast.settlement {
  border-color: rgba(240, 225, 48, 0.3);
  color: var(--neon-yellow);
  text-shadow: 0 0 8px rgba(240, 225, 48, 0.3);
}


/* --------------------------------------------------------------------------
   Mobile Betting Toggle Button
   -------------------------------------------------------------------------- */
.betting-toggle {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: calc(var(--z-panels) + 1);
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(155, 89, 255, 0.3);
  border-radius: 50%;
  background: rgba(6, 6, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(155, 89, 255, 0.2);
  cursor: pointer;
  flex-direction: column;
  transition: all 0.2s ease;
}

.betting-toggle:hover {
  background: rgba(155, 89, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(155, 89, 255, 0.3);
}

.betting-toggle:active {
  transform: scale(0.92);
}

.betting-toggle-icon {
  font-size: 20px;
  line-height: 1;
}

.betting-toggle-label {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-purple);
}


/* --------------------------------------------------------------------------
   Mobile Responsive — Betting
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .betting-toggle {
    display: flex;
  }

  .betting-panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
      0 -8px 32px rgba(0, 0, 0, 0.5),
      0 0 1px rgba(155, 89, 255, 0.3);
  }

  .betting-panel.expanded {
    transform: translateY(0);
  }

  /* Drag handle for bottom sheet */
  .betting-header::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 10px;
  }
}

@media (max-width: 480px) {
  .bet-amounts {
    gap: 3px;
  }

  .bet-quick {
    padding: 7px 3px;
    font-size: 10px;
  }

  .place-bet-btn {
    padding: 12px;
    font-size: 14px;
  }

  .credits-balance {
    font-size: 20px;
  }
}
