/* ==========================================================================
   Cyber Darts 3D - Modern Electronic Arcade Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0c14;
  --bg-panel: rgba(16, 20, 32, 0.72);
  --border-glow: rgba(0, 229, 255, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.1);

  --accent-cyan: #00e5ff;
  --accent-pink: #ff007f;
  --accent-gold: #ffe600;
  --accent-red: #ff1744;

  --text-main: #f0f4fc;
  --text-muted: #8c9bb5;
  --font-display: 'Rajdhani', 'Outfit', sans-serif;
  --font-main: 'Outfit', 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
}

/* 3D WebGL Canvas */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ==========================================================================
   HUD Layout
   ========================================================================== */

#hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; /* Allows pointer events through to canvas for throw controls */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

/* High-Performance Cyber Panel Utility (No backdrop-filter overhead) */
.glass-panel {
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 229, 255, 0.05);
}

/* ==========================================================================
   Scoreboard Display
   ========================================================================== */

.hud-scoreboard {
  display: flex;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  pointer-events: none;
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease;
}

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

.hud-monitor-frame {
  width: 270px;
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(16, 21, 32, 0.96), rgba(10, 13, 22, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Header with Mode, Round & Match info */
.hud-monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hud-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hud-badge.mode-badge {
  background: #e53935;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.6);
}

.hud-badge.round-badge {
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-weight: 800;
}

.hud-badge.p1-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
}

/* Main Score Row */
.hud-score-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0 4px 0;
}

.hud-score-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.hud-score-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1.5px;
}

.hud-player-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.hud-score-number {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1.0;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.7), 0 0 48px rgba(0, 229, 255, 0.35);
  letter-spacing: 2px;
}

.hud-score-underline {
  width: 100%;
  height: 3px;
  background: #e53935;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
  border-radius: 2px;
  margin-top: 6px;
}

/* Round Section */
.hud-round-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 1px;
}

.hud-round-pts {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
}

.hud-round-pts span {
  color: #00e5ff;
  font-weight: 900;
  font-size: 14px;
}

/* 3 Dart Throw Slots */
.hud-dart-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dart-slot {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dart-slot.filled {
  background: rgba(0, 229, 255, 0.16);
  border-color: #00e5ff;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* Dart Remaining Pills */
.dart-indicators {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.dart-pill {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
}

.dart-pill.active {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.dart-pill.used {
  background: rgba(255, 255, 255, 0.3);
}

/* Footer with High Score */
.hud-monitor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 0 4px;
}

.hud-best-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.hud-best-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(255, 230, 0, 0.5);
}



/* ==========================================================================
   Slow-Motion Replay Overlay
   ========================================================================== */

.replay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.replay-screen.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.replay-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(26, 8, 16, 0.94);
  border: 1px solid var(--accent-pink);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.replay-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.replay-speed {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.replay-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.45) 100%);
}

.skip-btn {
  position: absolute;
  bottom: 34px;
  right: 34px;
  background: rgba(16, 20, 32, 0.85);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  transition: all 0.2s ease;
}

.skip-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   Award Modal (Hat Trick, Ton 80)
   ========================================================================== */

.award-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-modal.active {
  opacity: 1;
  transform: scale(1.0);
}

.award-content {
  text-align: center;
  padding: 30px 60px;
  background: rgba(10, 12, 20, 0.85);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(255, 230, 0, 0.4);
}

.award-sparkles {
  font-size: 40px;
  margin-bottom: 8px;
}

.award-heading {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent-gold);
  text-shadow: 0 0 30px rgba(255, 230, 0, 0.8);
}

.award-caption {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-top: 8px;
}

/* ==========================================================================
   Game Over Modal
   ========================================================================== */

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 90%;
  max-width: 440px;
  padding: 36px 32px;
  text-align: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.modal-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-cyan);
  margin: 16px auto 28px;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 8px;
  border-radius: 10px;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.stat-value.highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}

.stat-value.rank {
  color: var(--accent-gold);
}

.modal-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 800;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
  transition: all 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.8);
}

/* ==========================================================================
   Breath & Focus Control System HUD
   ========================================================================== */

.breath-gauge-container {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 10px 16px;
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.breath-gauge-container.holding {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.15);
  transform: translateX(-50%) scale(1.02);
}

.breath-gauge-container.low {
  border-color: rgba(255, 170, 0, 0.7);
  box-shadow: 0 0 28px rgba(255, 170, 0, 0.35);
}

.breath-gauge-container.exhausted {
  border-color: rgba(255, 23, 68, 0.7);
  box-shadow: 0 0 28px rgba(255, 23, 68, 0.35);
  animation: breathPulseAlert 0.8s infinite alternate;
}

@keyframes breathPulseAlert {
  0% { opacity: 0.75; }
  100% { opacity: 1; }
}

.breath-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.breath-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
}

.breath-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: background 0.3s ease;
}

.breath-gauge-container.holding .breath-pulse-dot {
  animation: dotBlink 0.6s infinite alternate;
}

@keyframes dotBlink {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.breath-gauge-container.low .breath-pulse-dot {
  background: #ffaa00;
  box-shadow: 0 0 8px #ffaa00;
}

.breath-gauge-container.exhausted .breath-pulse-dot {
  background: #ff1744;
  box-shadow: 0 0 8px #ff1744;
}

.breath-status-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.breath-gauge-container.holding .breath-status-text {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.breath-gauge-container.exhausted .breath-status-text {
  color: #ff1744;
}

.breath-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.breath-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00b0ff, #00e5ff);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  transition: width 0.06s linear, background 0.3s ease;
}

.breath-gauge-container.low .breath-fill {
  background: linear-gradient(90deg, #ff9100, #ff5252);
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.6);
}

.breath-gauge-container.exhausted .breath-fill {
  background: #ff1744;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

/* Subtle focus vignette when holding breath */
.focus-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(2, 6, 14, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 40;
}

.focus-vignette.active {
  opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  #hud-overlay {
    padding: 16px;
  }
  .hud-scoreboard {
    top: 70px;
    left: 16px;
  }
  .world-ranking-panel {
    top: 70px;
    right: 16px;
    width: 240px;
  }
  .score-number {
    font-size: 42px;
  }
  .banner-title {
    font-size: 38px;
  }
  .hud-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ==========================================================================
   World Ranking Leaderboard (Right Side Panel)
   ========================================================================== */

.world-ranking-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 290px;
  background: linear-gradient(135deg, rgba(16, 21, 32, 0.96), rgba(10, 13, 22, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 25;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.world-ranking-panel.minimized .ranking-sub-bar,
.world-ranking-panel.minimized .ranking-list-body,
.world-ranking-panel.minimized .ranking-footer {
  display: none;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ranking-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  animation: liveBlink 1.4s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ranking-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.ranking-btn-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  transition: background 0.2s;
}

.ranking-btn-toggle:hover {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
}

.ranking-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-mode-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.8px;
}

.ranking-season-tag {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.ranking-list-body {
  max-height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ranking-list-body::-webkit-scrollbar {
  width: 4px;
}
.ranking-list-body::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.3);
  border-radius: 2px;
}

.ranking-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
  text-align: center;
  gap: 6px;
}

.ranking-empty-state .empty-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.ranking-empty-state .empty-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.ranking-empty-state .empty-desc {
  font-size: 11px;
  color: #00e5ff;
  letter-spacing: 0.5px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 28px 1fr 50px 32px;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12px;
  transition: background 0.15s;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ranking-row.highlight-user {
  background: rgba(0, 229, 255, 0.15);
  border-top: 1px solid rgba(0, 229, 255, 0.4);
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  font-weight: 800;
}

.ranking-row.highlight-user .ranking-name {
  color: #00e5ff;
}

.ranking-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.ranking-num.rank-gold,
.ranking-num.rank-silver,
.ranking-num.rank-bronze {
  font-size: 14px;
}

.ranking-name {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  text-align: right;
  letter-spacing: 0.5px;
}

.ranking-grade {
  font-family: var(--font-display);
  font-weight: 900;
  text-align: right;
  font-size: 12px;
}

.ranking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.ranking-user-info .user-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

.ranking-user-info .user-name {
  font-size: 12px;
  font-weight: 800;
  color: #00e5ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.btn-edit-name {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-name:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  color: #00e5ff;
}

/* ==========================================================================
   Player Name Entry Modal
   ========================================================================== */

.name-entry-card {
  max-width: 380px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
}

.modal-badge-tag {
  display: inline-block;
  align-self: center;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1.5px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -6px;
}

.name-input-group {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.name-text-input {
  flex: 1;
  width: 100%;
  background: rgba(14, 18, 28, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 12px 14px;
  outline: none;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.name-text-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.modal-action-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.modal-cancel-btn {
  flex: 1;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.modal-submit-btn {
  flex: 2;
  padding: 12px 0;
  background: #00e5ff;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  transition: transform 0.2s;
}

.modal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
}

