/* ==========================================================================
   能量泡泡 (Energy Bubble Shooter) 专属游戏样式与特效
   ========================================================================== */

.game-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(18, 11, 35, 0.95);
  border-bottom: 1px solid rgba(151, 61, 255, 0.25);
}

.hud-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.hud-stat-pill .label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.hud-stat-pill .value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
}

.hud-next-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-next-wrapper .label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.next-bubble-slot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.next-ball-inner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.6), 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.hud-fouls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hud-fouls-container .label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.foul-indicators-dots {
  display: flex;
  gap: 4px;
}

.foul-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.foul-dot-indicator.filled {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

/* 游戏控制按钮条 */
.game-controls-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(18, 11, 35, 0.95);
  border-top: 1px solid rgba(151, 61, 255, 0.25);
}

.game-btn-action {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-normal);
}

.game-btn-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan);
  color: #fff;
}

.game-btn-action.btn-start {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.game-btn-action.btn-start:hover {
  box-shadow: 0 0 14px rgba(255, 56, 209, 0.5);
}

/* 游戏弹窗遮罩 */
.game-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 6, 22, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 20;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.game-modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.badge-win {
  background: rgba(0, 245, 184, 0.15);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 245, 184, 0.4);
}

.badge-lose {
  background: rgba(255, 56, 209, 0.15);
  border: 2px solid var(--pink);
  color: var(--pink);
  box-shadow: 0 0 20px rgba(255, 56, 209, 0.4);
}

.badge-ready {
  background: rgba(151, 61, 255, 0.15);
  border: 2px solid var(--purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(151, 61, 255, 0.4);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.modal-msg {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 280px;
  margin-bottom: 20px;
}

.modal-score-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  margin-bottom: 22px;
}

.modal-score-box .score-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}
