:root {
  --game-accent: #7C3AED;
  --game-accent-dim: rgba(124, 58, 237, 0.15);
  --game-accent-contrast: #FFFFFF;
}

/* Charge Bar (Timer) */
.bow-charge-bar {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin: 1rem 0 1.5rem 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.bow-charge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #A855F7 0%, #7C3AED 50%, #4C1D95 100%);
  border-radius: 6px;
  transition: width 0.1s linear;
}

.bow-charge-fill.bow-charge-low {
  animation: bowPulseLow 0.4s infinite alternate ease-in-out;
}

@keyframes bowPulseLow {
  from {
    filter: brightness(1) drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
    background: linear-gradient(90deg, #EC4899 0%, #EF4444 100%);
  }
  to {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(239, 68, 68, 0.9));
    background: linear-gradient(90deg, #F43F5E 0%, #DC2626 100%);
  }
}

/* Dueling Podiums */
.bow-podiums {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin: 1.5rem 0;
  width: 100%;
}

.bow-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 130px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(243,244,246,0.95) 100%);
  border: 2px solid var(--game-accent-dim);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.bow-podium-a {
  border-bottom: 6px solid #8B5CF6;
}

.bow-podium-b {
  border-bottom: 6px solid #EC4899;
}

.bow-podium-label {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1F2937;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bow-podium.highlight {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
  border-color: var(--game-accent);
}

.bow-podium.score-grow {
  animation: bowPodiumBounce 0.5s ease-out;
}

@keyframes bowPodiumBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.15); }
  100% { transform: translateY(-8px) scale(1.05); }
}

/* Latency Readout Chip (Online mode) */
.bow-latency-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  color: rgba(124, 58, 237, 0.9);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 9999px;
  margin-left: 0.5rem;
}

/* Phone Context Override */
[data-context="phone"] .bow-buzzer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 55vh;
  padding: 1rem 0;
}

[data-context="phone"] .bow-buzzer-container .buzzer-button-wrapper,
[data-context="phone"] .bow-buzzer-container .buzzer-btn {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px;
  font-size: 2rem !important;
  border-radius: 24px;
}
