/* Kinetic Pinball and Arena Stylesheet */

#arena-tab {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.canvas-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: radial-gradient(circle at 50% 30%, #1d0338 0%, #120224 85%);
  touch-action: none;
}

/* FRENZY BANNER NOTIFICATION */
.frenzy-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.95), rgba(255, 230, 0, 0.95));
  padding: 8px 24px;
  border-radius: 24px;
  border: 2px solid var(--pure-white);
  box-shadow: 0 0 24px rgba(255, 0, 127, 0.8), 0 0 10px rgba(255, 230, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
}

.frenzy-banner.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.frenzy-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: #120224;
  text-transform: uppercase;
}

/* FLIPPER CONTROLS OVERLAY */
.flipper-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 25;
}

.flipper-btn {
  pointer-events: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(28, 10, 48, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--neon-magenta);
  color: var(--pure-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 0, 127, 0.3);
  transition: all 0.15s ease;
  user-select: none;
}

.flipper-btn:active, .flipper-btn.active {
  transform: scale(0.92);
  background: rgba(255, 0, 127, 0.3);
  border-color: var(--volt-lime);
  box-shadow: 0 0 16px var(--volt-lime);
}

.flipper-btn-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--volt-lime);
}

.flipper-btn-glyph {
  font-size: 1.3rem;
  line-height: 1;
}

/* OVERLAY MODAL FOR GAME OVER */
.overlay-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 2, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: 100%;
  max-width: 360px;
  background: rgba(28, 10, 48, 0.95);
  border: 1px solid var(--neon-magenta);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.4);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--pure-white);
  text-shadow: 0 0 12px rgba(255, 0, 127, 0.6);
}

.modal-score-display {
  background: rgba(18, 2, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}

.modal-score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-score-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--volt-lime);
  text-shadow: 0 0 10px rgba(118, 255, 3, 0.6);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-stat-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-stat-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sun-yellow);
}

.modal-stat-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* AIM HELPER HINT */
.aim-hint {
  position: absolute;
  top: 14px;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  z-index: 20;
}
