/* ==========================================================================
   CS2D DELTA ARENA - MODALS & OVERLAYS
   Scoreboard, Pause Menu, Match Complete MVP Banner & Map Inspector
   ========================================================================== */

/* --- ESPORTS SCOREBOARD MODAL --- */
.hud-top-center {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  pointer-events: auto !important;
}

.hud-top-center:hover {
  transform: translateX(-50%) scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.scoreboard-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease;
  pointer-events: auto !important;
}

.scoreboard-card {
  width: 100%;
  max-width: 680px;
  background: #111a24;
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  max-height: 90vh;
  overflow-y: auto;
}

.sb-header {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.sb-title {
  font-family: var(--font-tactical);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

.sb-round-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8899a6;
  letter-spacing: 1px;
  margin-top: 2px;
}

.sb-tables-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-team-block {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.sb-team-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  font-family: var(--font-tactical);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.ct-bar { background: rgba(52, 152, 219, 0.35); border-bottom: 2px solid var(--color-ct); }
.t-bar { background: rgba(230, 126, 34, 0.35); border-bottom: 2px solid var(--color-t); }

.sb-team-score {
  font-size: 1.3rem;
  font-weight: 800;
}

.sb-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #e1e8ed;
}

.sb-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  text-align: left;
  font-family: var(--font-tactical);
  font-weight: 700;
  color: #8899a6;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.sb-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.row-dead {
  opacity: 0.45;
}

.player-cell {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.you-badge {
  background: #00ff88;
  color: #0c1117;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.bot-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #8899a6;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.status-badge {
  font-family: var(--font-tactical);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.alive-tag { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.4); }
.dead-tag { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.4); }

.stat-num {
  font-family: var(--font-tactical);
  font-weight: 700;
}

.score-gold {
  color: #f1c40f;
  font-weight: 800;
}

.sb-hint {
  text-align: center;
  font-size: 0.72rem;
  color: #8899a6;
  margin-top: 14px;
  font-family: var(--font-tactical);
  letter-spacing: 1px;
}

/* ============================================================
   TACTICAL PAUSE & MATCH OPTIONS OVERLAY
   ============================================================ */
.tactical-pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 14, 0.82);
  backdrop-filter: blur(12px);
  font-family: var(--font-tactical, system-ui, sans-serif);
  animation: pause-fade-in 0.2s ease-out;
  pointer-events: auto !important;
}

@keyframes pause-fade-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.pause-card {
  width: 90%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.96) 0%, rgba(6, 11, 20, 0.98) 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pause-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.pause-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pause-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}

.pause-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pause-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pause-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
}

.pause-slider-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pause-slider-wrap .tactical-slider {
  flex: 1;
  accent-color: #00e5ff;
  cursor: pointer;
}

.pause-val-text {
  font-size: 13px;
  font-weight: 800;
  color: #00e5ff;
  min-width: 40px;
}

.pause-diff-row {
  display: flex;
  gap: 8px;
}

.pause-diff-pill {
  flex: 1;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.pause-diff-pill:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
}

.pause-diff-pill.active {
  background: rgba(0, 229, 255, 0.28);
  border-color: #00e5ff;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.pause-footer {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.btn-pause-action {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-pause-action.btn-resume {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #04101e;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.45);
}

.btn-pause-action.btn-resume:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-pause-action.btn-leave {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-pause-action.btn-leave:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #fff;
}

/* ============================================================
   MATCH COMPLETE OVERLAY & ACTIONS
   ============================================================ */
.match-complete-card {
  padding: 30px 40px !important;
  max-width: 520px !important;
}

.match-badge-gold {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 12px;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.match-complete-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  width: 100%;
}

.btn-round-action {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-lobby-return {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
}

.btn-lobby-return:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: #fff;
}

.btn-play-again {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #04101e;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.45);
}

.btn-play-again:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* --- MAP INSPECTOR MODAL --- */
#map-inspector-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.88);
  backdrop-filter: blur(14px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: modalFadeIn 0.22s ease-out;
}

.map-inspector-card {
  background: linear-gradient(145deg, #0d1624, #080f1a);
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.25);
}

.map-inspector-card .modal-header {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
}

.map-inspector-card .modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-inspector-card .modal-icon {
  width: 24px;
  height: 24px;
  color: #00e5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-inspector-card h3 {
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0;
}

.map-inspector-card .modal-subtitle {
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 0.58rem;
  color: #88a0b8;
  letter-spacing: 0.5px;
}

.map-inspector-card .modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.map-inspector-card .modal-close-btn:hover {
  background: #ff3b30;
  border-color: #ff3b30;
}

.map-inspector-body {
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.inspector-hero-banner {
  width: 100%;
  height: 85px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
}

.inspector-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inspector-badge {
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.inspector-badge.biome-badge {
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.15);
}

.inspector-badge.dims-badge {
  border-color: #00e5ff;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
}

.inspector-section h4 {
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 900;
  color: #00e5ff;
  letter-spacing: 0.8px;
  margin: 0 0 3px 0;
}

.inspector-text {
  font-size: 0.66rem;
  line-height: 1.35;
  color: #c4d4e4;
  margin: 0;
}

.inspector-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.inspector-feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-icon {
  width: 18px;
  height: 18px;
  color: #00ff88;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feat-info {
  display: flex;
  flex-direction: column;
}

.feat-title {
  font-family: var(--font-tactical, system-ui, sans-serif);
  font-size: 0.52rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.feat-desc {
  font-size: 0.54rem;
  color: #88a0b8;
  line-height: 1.2;
}

.map-inspector-card .modal-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: flex-end;
}

.map-inspector-card .modal-footer .btn-primary {
  padding: 8px 22px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
}

/* --- TELEGRAM JUKEBOX MODAL --- */
.jukebox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.jukebox-card {
  width: 100%;
  max-width: 520px;
  background: #0d1520;
  border: 1.5px solid rgba(0, 200, 255, 0.35);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  font-family: var(--font-tactical, system-ui, sans-serif);
}

.jukebox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.jukebox-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #00d2ff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-jukebox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-weight: bold;
}

.jukebox-now-playing {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jukebox-track-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.jukebox-track-sub {
  font-size: 0.75rem;
  color: #7f9eb2;
}

.jukebox-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #00d2ff;
  text-transform: uppercase;
}

.jukebox-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jukebox-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.jukebox-preset-btn:hover, .jukebox-preset-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  transform: translateY(-1px);
}

.jukebox-custom-row {
  display: flex;
  gap: 8px;
}

.jukebox-input {
  flex: 1;
  background: #060b11;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.jukebox-input:focus {
  border-color: #00d2ff;
}

.btn-jukebox-action {
  background: #00d2ff;
  color: #04080e;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-jukebox-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #cbdbe6;
  text-align: center;
}

.btn-jukebox-file-label:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #00d2ff;
}

.btn-jukebox-sync {
  background: linear-gradient(135deg, #ff9900, #ff5500);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.4);
}





