/* ===================== TAG EXTREME — STYLES ===================== */
:root {
  --bg: #070b14;
  --bg2: #0d1424;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #e6edf7;
  --text-dim: #8b98ad;
  --blue: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.55);
  --red: #f43f5e;
  --red-glow: rgba(244, 63, 94, 0.55);
  --gold: #fbbf24;
  --green: #34d399;
  --radius: 18px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

/* Ambient background glow */
#bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(244, 63, 94, 0.09), transparent 60%),
    radial-gradient(ellipse 45% 40% at 60% 30%, rgba(167, 139, 250, 0.07), transparent 60%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  pointer-events: none;
}

/* Screens */
.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.screen.active { display: flex; flex-direction: column; opacity: 1; }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Buttons */
.btn {
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(56, 189, 248, 0.6); transform: translateY(-2px); }
.btn-ghost { background: transparent; }
.btn.big { font-size: 1.05rem; padding: 16px 42px; }

/* ===================== AUTH ===================== */
#auth-screen { align-items: center; justify-content: center; }
.auth-card {
  width: 400px;
  padding: 44px 40px;
  text-align: center;
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.game-logo {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text);
  text-shadow: 0 0 30px var(--blue-glow);
}
.game-logo span {
  background: linear-gradient(90deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
}
.tagline { color: var(--text-dim); font-size: 0.85rem; margin: 8px 0 28px; letter-spacing: 0.5px; }
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(37, 99, 235, 0.28));
  color: var(--text);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}
#auth-form { display: flex; flex-direction: column; gap: 14px; }
#auth-form input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
#auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.auth-error { color: var(--red); font-size: 0.8rem; min-height: 18px; }

/* ===================== MATCHMAKING BAR ===================== */
.mm-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, background 0.8s ease, box-shadow 0.8s ease;
}
.mm-bar.visible { height: 64px; opacity: 1; }
.mm-bar.blue {
  background: linear-gradient(90deg, rgba(2, 20, 40, 0.9), rgba(14, 90, 165, 0.85), rgba(2, 20, 40, 0.9));
  box-shadow: 0 0 40px var(--blue-glow), inset 0 -1px 0 rgba(56, 189, 248, 0.6);
}
.mm-bar.red {
  background: linear-gradient(90deg, rgba(40, 2, 12, 0.92), rgba(190, 24, 60, 0.88), rgba(40, 2, 12, 0.92));
  box-shadow: 0 0 40px var(--red-glow), inset 0 -1px 0 rgba(244, 63, 94, 0.6);
}
.mm-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mm-text.slide-in { opacity: 1; transform: translateX(0); }
.mm-text.fade { opacity: 0; transition: opacity 0.35s ease; transform: translateX(0); }
.mm-cancel {
  position: absolute;
  right: 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}
.mm-bar.searching .mm-cancel { display: block; }
.mm-cancel:hover { background: rgba(244, 63, 94, 0.4); }
.mm-stopwatch {
  position: absolute;
  right: 66px;
  display: none;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.mm-stopwatch.visible { display: flex; animation: fadeDown 0.4s ease both; }
.mm-count {
  position: absolute;
  left: 66px;
  display: none;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.mm-count.visible { display: flex; animation: fadeDown 0.4s ease both; }

/* ===================== LOBBY ===================== */
#lobby-screen { padding: 24px 32px; gap: 26px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
}
.mini-logo { font-weight: 900; font-size: 1.3rem; letter-spacing: 3px; }
.mini-logo span {
  background: linear-gradient(90deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.stat-pill.money { color: var(--gold); border-color: rgba(251, 191, 36, 0.3); }
.stat-pill.elo { color: var(--blue); border-color: rgba(56, 189, 248, 0.3); }
.stat-pill.rank { border-color: rgba(255, 255, 255, 0.18); }

/* ===================== RANK BADGES ===================== */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #0b1220;
  background: linear-gradient(135deg, #64748b, #334155);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.rank-badge.mini { width: 24px; height: 24px; font-size: 0.6rem; border-radius: 7px; }
.rank-badge.big { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 18px; }
.rank-badge.unranked { background: linear-gradient(135deg, #475569, #1e293b); color: #94a3b8; }
.rank-badge.bronze { background: linear-gradient(135deg, #e8a765, #8a5524); box-shadow: 0 0 16px rgba(205, 138, 75, 0.4); }
.rank-badge.silver { background: linear-gradient(135deg, #eef3f8, #8fa3b5); box-shadow: 0 0 16px rgba(199, 210, 220, 0.4); }
.rank-badge.gold { background: linear-gradient(135deg, #fde68a, #d97706); box-shadow: 0 0 16px rgba(251, 191, 36, 0.45); }
.rank-badge.diamond { background: linear-gradient(135deg, #bae6fd, #0284c7); box-shadow: 0 0 18px rgba(56, 189, 248, 0.5); }
.rank-badge.champ { background: linear-gradient(135deg, #ddd6fe, #7c3aed); box-shadow: 0 0 20px rgba(167, 139, 250, 0.55); }
.stat-label { font-size: 0.65rem; color: var(--text-dim); letter-spacing: 1px; }
.btn-icon {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s;
}
.btn-icon:hover { color: var(--red); border-color: var(--red); box-shadow: 0 0 12px var(--red-glow); }

.lobby-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.cube-stage {
  position: relative;
  width: 380px;
  height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cube-stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.12), transparent 55%);
  pointer-events: none;
}
#lobby-cube { position: relative; z-index: 2; animation: cubeFloat 3.4s ease-in-out infinite; }
@keyframes cubeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.cube-shadow {
  width: 130px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(8px);
  margin-top: -28px;
  animation: shadowPulse 3.4s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.55; }
  50% { transform: scaleX(0.75); opacity: 0.35; }
}
.cube-name {
  margin-top: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 1.1rem;
  color: var(--text);
  text-shadow: 0 0 16px var(--blue-glow);
}

.lobby-nav { display: flex; flex-direction: column; gap: 18px; width: 340px; }
.nav-btn {
  position: relative;
  text-align: left;
  padding: 22px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.nav-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.nav-btn:hover::after { transform: translateX(100%); }
.nav-btn:hover { transform: translateX(8px); border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 24px rgba(56, 189, 248, 0.18); }
.nav-btn-title { font-size: 1.3rem; font-weight: 900; letter-spacing: 3px; }
.nav-btn-sub { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.5px; }
.nav-btn.play {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(37, 99, 235, 0.22));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.22);
}
.nav-btn.play .nav-btn-title { color: var(--blue); text-shadow: 0 0 14px var(--blue-glow); }
.nav-btn.play:hover { box-shadow: 0 0 40px rgba(56, 189, 248, 0.4); }

/* ===================== CUSTOMIZE ===================== */
#customize-screen, #history-screen { align-items: center; justify-content: center; padding: 30px; }
.customize-wrap { width: 860px; max-width: 96vw; padding: 26px 30px; }
.customize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.customize-header h2 { letter-spacing: 4px; font-weight: 900; }
.accent { color: var(--blue); text-shadow: 0 0 14px var(--blue-glow); }
.customize-body { display: flex; gap: 28px; }
#skin-canvas {
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  cursor: crosshair;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}
.editor-right { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.tool-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 700;
}
#skin-color {
  width: 100%;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 10px; }
.palette-swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.palette-swatch:hover { transform: scale(1.15); box-shadow: 0 0 10px rgba(255,255,255,0.3); }
#brush-size { width: 100%; accent-color: var(--blue); }
.tool-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-tool { flex: 1; padding: 10px 8px; font-size: 0.75rem; white-space: nowrap; }
.btn-tool.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}
.btn-tool.danger:hover { border-color: var(--red); color: var(--red); box-shadow: 0 0 14px var(--red-glow); }
#skin-preview {
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.4);
  image-rendering: pixelated;
}
.save-msg { min-height: 20px; font-size: 0.85rem; color: var(--green); font-weight: 700; }

/* ===================== HISTORY ===================== */
.history-wrap { width: 760px; max-width: 96vw; padding: 26px 30px; max-height: 84vh; display: flex; flex-direction: column; }
.history-table-wrap { overflow-y: auto; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  padding: 10px 14px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: rgba(13, 20, 36, 0.9);
}
.history-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.result-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
}
.result-badge.win { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.4); }
.result-badge.loss { background: rgba(244, 63, 94, 0.13); color: var(--red); border: 1px solid rgba(244, 63, 94, 0.4); }
.elo-up { color: var(--green); font-weight: 700; }
.elo-down { color: var(--red); font-weight: 700; }
.history-empty { text-align: center; color: var(--text-dim); padding: 44px 0; display: none; }

/* ===================== RANKS SCREEN ===================== */
#ranks-screen { align-items: center; justify-content: center; padding: 30px; }
.ranks-wrap { width: 640px; max-width: 96vw; padding: 26px 30px; max-height: 88vh; display: flex; flex-direction: column; }
.ranks-current {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-border);
  margin-bottom: 18px;
}
.ranks-current-name { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.ranks-current-elo { color: var(--text-dim); font-size: 0.85rem; font-weight: 700; margin-top: 2px; }
.ranks-current-info { flex: 1; }
.rank-progress { margin-top: 10px; }
.rank-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.rank-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.rank-progress-label { margin-top: 7px; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 1px; font-weight: 700; }
.ranks-timeline-wrap { overflow-y: auto; padding-right: 6px; }
.ranks-timeline { display: flex; flex-direction: column; position: relative; }
.rank-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.rank-row::before {
  content: '';
  position: absolute;
  left: 30px;
  top: -8px;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.rank-row:first-child::before { display: none; }
.rank-row.locked { opacity: 0.42; filter: saturate(0.5); }
.rank-row.achieved { opacity: 0.85; }
.rank-row.current {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.15);
  opacity: 1;
}
.rank-row-name { font-weight: 900; letter-spacing: 1.5px; font-size: 0.95rem; }
.rank-row-elo { font-size: 0.7rem; color: var(--text-dim); font-weight: 700; letter-spacing: 1px; }
.rank-row-info { flex: 1; }
.rank-you {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  text-shadow: 0 0 10px var(--blue-glow);
  animation: youPulse 1.6s ease infinite;
}
@keyframes youPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.5); }
}

/* ===================== RANK CHANGE OVERLAY ===================== */
.rankup-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rankup-overlay.hidden { display: none; }
.rankup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 72px;
  overflow: hidden;
}
.rankup-card.pop { animation: rankupPop 0.8s cubic-bezier(0.16, 1.2, 0.3, 1) both; }
@keyframes rankupPop {
  0% { opacity: 0; transform: scale(0.6); }
  55% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
.rankup-eyebrow {
  color: var(--gold);
  letter-spacing: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}
.rankup-overlay.derank .rankup-eyebrow { color: var(--red); text-shadow: 0 0 16px var(--red-glow); }
.rank-badge.rankup-badge {
  width: 110px;
  height: 110px;
  font-size: 2.2rem;
  border-radius: 26px;
  animation: badgeUnlock 1.1s cubic-bezier(0.16, 1.2, 0.3, 1) 0.25s both;
}
@keyframes badgeUnlock {
  0% { opacity: 0; transform: scale(0.2) rotate(-18deg); }
  60% { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.rankup-name { font-size: 1.7rem; font-weight: 900; letter-spacing: 4px; }
.rankup-rings { position: absolute; inset: 0; pointer-events: none; }
.rankup-rings span {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid rgba(251, 191, 36, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: ringBurst 1.6s ease-out infinite;
}
.rankup-rings span:nth-child(2) { animation-delay: 0.4s; }
.rankup-rings span:nth-child(3) { animation-delay: 0.8s; }
.rankup-overlay.derank .rankup-rings span { border-color: rgba(244, 63, 94, 0.4); }
@keyframes ringBurst {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

/* ===================== MAP BAN ===================== */
.map-ban-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(3, 5, 10, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.map-ban-overlay.hidden { display: none; }
.map-ban-intro {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(56,189,248,0.12), transparent 42%),
    radial-gradient(circle at 50% 65%, rgba(244,63,94,0.1), transparent 38%),
    rgba(3, 5, 10, 0.92);
  padding: clamp(20px, 4vw, 48px);
}
.map-ban-overlay.intro-active .map-ban-intro { display: flex; }
.map-ban-overlay.intro-active .map-ban-shell { display: none; }
.map-ban-intro-eyebrow {
  color: var(--text-dim);
  letter-spacing: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.map-ban-intro-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
}
.map-ban-intro-player {
  min-width: min(28vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 0 28px rgba(0,0,0,0.22);
}
.map-ban-intro-player.you {
  color: var(--blue);
  border-color: rgba(56,189,248,0.28);
  box-shadow: 0 0 24px rgba(56,189,248,0.12);
}
.map-ban-intro-player.opp {
  color: var(--red);
  border-color: rgba(244,63,94,0.28);
  box-shadow: 0 0 24px rgba(244,63,94,0.12);
}
.map-ban-intro-icon {
  font-size: 1.1em;
}
.map-ban-intro-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.map-ban-intro-rank {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.95;
}
.map-ban-intro-vs-text {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 8px;
  background: linear-gradient(180deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(255,255,255,0.08);
}
.map-ban-intro-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.map-ban-shell {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0;
}
.map-ban-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.map-ban-eyebrow {
  color: var(--blue);
  letter-spacing: 3px;
  font-size: 0.68rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.map-ban-top h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 3px;
}
.map-ban-subtitle {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.map-ban-timer-wrap {
  min-width: 112px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.map-ban-timer-label {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 800;
}
.map-ban-timer {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  text-shadow: 0 0 18px var(--blue-glow);
  font-variant-numeric: tabular-nums;
}
.map-ban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  flex: 1;
  overflow: hidden;
}
.map-ban-card {
  position: relative;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(4, 7, 13, 0.62);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.map-ban-card:hover { transform: translateY(-2px) scale(1.01); border-color: rgba(56,189,248,0.38); box-shadow: 0 0 24px rgba(56,189,248,0.12); }
.map-ban-card.slam-in {
  opacity: 0;
  animation: cardSlam 0.6s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}
@keyframes cardSlam {
  0% { opacity: 0; transform: scale(2) translateY(-90px); filter: blur(4px); }
  55% { opacity: 1; transform: scale(0.94) translateY(4px); filter: blur(0); }
  75% { transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* Big "MAP BAN" title stage while the maps slam in */
.map-ban-overlay.ban-intro-stage #map-ban-title {
  font-size: 3.2rem;
  color: var(--red);
  text-shadow: 0 0 34px var(--red-glow);
  animation: banTitleIn 0.6s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}
#map-ban-title { transition: font-size 0.35s ease, color 0.35s ease, text-shadow 0.35s ease; }
@keyframes banTitleIn {
  0% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 1; transform: scale(1); }
}
.map-ban-card.selected { border-color: var(--blue); box-shadow: 0 0 30px rgba(56,189,248,0.22); }
.map-ban-card.opponent-selected { border-color: rgba(244,63,94,0.45); }
.map-ban-preview {
  width: 100%;
  height: 132px;
  border-radius: 12px;
  display: block;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.08);
}
.map-ban-name {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.map-ban-card-state {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.map-ban-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.map-ban-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.map-ban-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(37,99,235,0.9));
}
.map-ban-avatar.opp { background: linear-gradient(135deg, rgba(244,63,94,0.95), rgba(190,24,60,0.95)); }
.map-ban-avatar.you { background: linear-gradient(135deg, rgba(52,211,153,0.95), rgba(16,185,129,0.95)); }
.map-ban-status {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.map-ban-reveal {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: radial-gradient(circle at center, rgba(56,189,248,0.08), rgba(3,5,10,0.92) 68%);
  transform-origin: center;
}
.map-ban-reveal.hidden { display: none; }
.map-ban-reveal.showing { animation: revealPop 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.map-ban-reveal.slammed { animation: revealSlam 0.55s cubic-bezier(0.16, 1.2, 0.3, 1); }
.map-ban-result-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
}
.map-ban-result-eyebrow {
  color: var(--red);
  letter-spacing: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.map-ban-result-name {
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(255,255,255,0.12), 0 0 26px var(--blue-glow);
}
.map-ban-result-detail {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
#map-ban-reveal-canvas {
  display: block;
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  height: min(56vh, 520px);
  max-width: 100%;
  max-height: 56vh;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 48px rgba(0,0,0,0.28);
  transition: filter 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}
.map-ban-stamp {
  position: absolute;
  inset: auto auto 34px 50%;
  transform: translateX(-50%) rotate(-8deg) scale(0.2);
  padding: 14px 26px;
  border-radius: 12px;
  border: 4px solid rgba(244,63,94,0.96);
  color: rgba(244,63,94,0.98);
  background: rgba(20, 5, 9, 0.9);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 8px;
  opacity: 0;
  box-shadow: 0 0 28px rgba(244,63,94,0.38);
  z-index: 3;
}
/* Banned stage — red treatment, BANNED stamp slams onto the banned map only */
.map-ban-reveal.banned-stage .map-ban-stamp {
  animation: stampSlam 0.55s cubic-bezier(0.16, 1.2, 0.3, 1) 0.45s forwards;
}
.map-ban-reveal.banned-stage .map-ban-result-name {
  color: #fda4af;
  text-shadow: 0 0 34px var(--red-glow);
}
.map-ban-reveal.banned-stage #map-ban-reveal-canvas {
  filter: grayscale(0.55) brightness(0.72);
  box-shadow: 0 0 64px rgba(244, 63, 94, 0.24);
  border-color: rgba(244, 63, 94, 0.4);
}

/* Roulette stage */
.map-ban-reveal.cycling .map-ban-result-eyebrow { color: var(--blue); }
.map-ban-reveal.cycling #map-ban-reveal-canvas {
  box-shadow: 0 0 56px rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Final stage — green "LOCKED IN" treatment for the chosen map */
.map-ban-reveal.final-stage .map-ban-result-eyebrow { color: var(--green); }
.map-ban-reveal.final-stage .map-ban-result-name {
  text-shadow: 0 0 36px rgba(52, 211, 153, 0.45), 0 0 26px var(--blue-glow);
}
.map-ban-reveal.final-stage #map-ban-reveal-canvas {
  box-shadow: 0 0 72px rgba(52, 211, 153, 0.22);
  border-color: rgba(52, 211, 153, 0.42);
}
.map-ban-stamp.final {
  border-color: rgba(52, 211, 153, 0.96);
  color: rgba(52, 211, 153, 0.98);
  background: rgba(4, 18, 12, 0.9);
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.38);
}
.map-ban-reveal.slammed .map-ban-stamp {
  animation: stampSlam 0.5s cubic-bezier(0.16, 1.2, 0.3, 1) 0.12s forwards;
}
@keyframes revealPop {
  0% { transform: scale(0.94) translateY(14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes revealSlam {
  0% { transform: scale(0.97); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes stampSlam {
  0% { opacity: 0; transform: translateX(-50%) rotate(-14deg) scale(0.2); }
  65% { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1.14); }
  100% { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); }
}

.map-ban-overlay.resulting .map-ban-top,
.map-ban-overlay.resulting .map-ban-grid,
.map-ban-overlay.resulting .map-ban-status {
  display: none;
}

.map-ban-overlay.resulting .map-ban-shell {
  justify-content: center;
}

.map-ban-overlay.resulting .map-ban-reveal {
  display: flex;
}

/* ===================== GAME ===================== */
#game-screen { background: #05070d; }
.game-wrap { position: absolute; inset: 0; }
.game-hud {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hud-tagger, .hud-timer, .hud-map { padding: 10px 24px; font-weight: 800; letter-spacing: 1.5px; }
.hud-tagger-label { color: var(--red); font-size: 0.7rem; letter-spacing: 2px; margin-right: 8px; text-shadow: 0 0 10px var(--red-glow); }
.hud-timer { font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--blue); text-shadow: 0 0 14px var(--blue-glow); }
.hud-timer.low { color: var(--red); text-shadow: 0 0 14px var(--red-glow); animation: timerPulse 1s ease infinite; }
@keyframes timerPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.hud-map { color: var(--text-dim); font-size: 0.8rem; }

.game-canvas-holder {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#game-canvas { display: block; width: 100%; height: 100%; }
.game-controls-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
}

/* Jump bar */
.jump-bar-container {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 19;
  width: 320px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.jump-bar-container.visible { opacity: 1; }
.jump-bar-label {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2.8px;
  color: rgba(230, 237, 247, 0.82);
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
}
.jump-bar-track {
  height: 11px;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.82), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.52),
    0 0 16px rgba(56, 189, 248, 0.08);
}
.jump-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #67e8f9 0%, #38bdf8 40%, #2563eb 100%);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.65);
  transition: width 0.08s linear, box-shadow 0.2s ease, filter 0.2s ease;
  transform-origin: left;
}
.jump-bar-fill.cooling {
  background: linear-gradient(90deg, #67e8f9 0%, #38bdf8 35%, #1d4ed8 100%);
  filter: saturate(1.05);
}
.jump-bar-fill.empty {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.3), rgba(37, 99, 235, 0.55));
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}
@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.4); }
}

/* VS overlay */
.vs-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.vs-overlay.active { display: flex; }
.vs-map-name {
  font-size: 1rem;
  letter-spacing: 6px;
  color: var(--text-dim);
  text-transform: uppercase;
  animation: fadeDown 0.8s ease both;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
.vs-row { display: flex; align-items: center; gap: 40px; }
.vs-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs-rank {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeDown 0.7s ease 0.6s both;
}
.vs-name {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.vs-name.left {
  color: var(--blue);
  text-shadow: 0 0 24px var(--blue-glow);
  animation: slideRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vs-name.right {
  color: var(--red);
  text-shadow: 0 0 24px var(--red-glow);
  animation: slideLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideRight { from { opacity: 0; transform: translateX(-160px); } to { opacity: 1; transform: none; } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(160px); } to { opacity: 1; transform: none; } }
.vs-vs {
  font-size: 3.2rem;
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(180deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: vsPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
@keyframes vsPop { from { opacity: 0; transform: scale(3); } to { opacity: 1; transform: scale(1); } }

/* Countdown overlay */
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 11;
  pointer-events: none;
}
.countdown-overlay.active { display: flex; }
.countdown-num {
  font-size: 8rem;
  font-weight: 900;
  color: var(--text);
  text-shadow: 0 0 50px var(--blue-glow);
}
.countdown-num.tick { animation: countTick 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes countTick {
  0% { opacity: 0; transform: scale(2.4); }
  30% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.85); }
}
.countdown-num.go { color: var(--green); text-shadow: 0 0 50px rgba(52, 211, 153, 0.7); }

/* Game over overlay */
.gameover-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12;
  background: rgba(3, 4, 9, 0);
  transition: background 1s ease;
}
.gameover-overlay.active { display: flex; background: rgba(3, 4, 9, 0.88); }
#particles-canvas { position: absolute; inset: 0; }
.gameover-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.gameover-title {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 10px;
  background: linear-gradient(180deg, #fff, #64748b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.25));
}
.gameover-winner {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.55);
}
.gameover-rewards { color: var(--text-dim); font-size: 0.95rem; font-weight: 600; }
.gameover-rewards .gain { color: var(--green); }
.gameover-rewards .lose { color: var(--red); }
.gameover-rewards .coin { color: var(--gold); }

/* ===================== PLAYLIST OVERLAY ===================== */
.playlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeDown 0.25s ease both;
}
.playlist-overlay.hidden { display: none; }
.playlist-card {
  width: 460px;
  max-width: 92vw;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: rankupPop 0.5s cubic-bezier(0.16, 1.2, 0.3, 1) both;
}
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.playlist-header h2 { letter-spacing: 3px; font-weight: 900; font-size: 1.15rem; }
.playlist-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.playlist-options.hidden { display: none; }
.playlist-btn {
  position: relative;
  text-align: left;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.playlist-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.playlist-btn:hover::after { transform: translateX(100%); }
.playlist-btn:hover { transform: translateX(6px); border-color: rgba(255, 255, 255, 0.25); }
.playlist-title { font-size: 1.05rem; font-weight: 900; letter-spacing: 2px; }
.playlist-sub { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.3px; }

.playlist-btn.ranked {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(37, 99, 235, 0.12));
}
.playlist-btn.ranked:hover { box-shadow: 0 0 26px rgba(56, 189, 248, 0.28); border-color: var(--blue); }
.playlist-btn.ranked .playlist-title { color: var(--blue); text-shadow: 0 0 12px var(--blue-glow); }

.playlist-btn.casual {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(16, 185, 129, 0.08));
}
.playlist-btn.casual:hover { box-shadow: 0 0 26px rgba(52, 211, 153, 0.25); border-color: var(--green); }
.playlist-btn.casual .playlist-title { color: var(--green); text-shadow: 0 0 12px rgba(52, 211, 153, 0.5); }

.playlist-btn.back {
  text-align: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.playlist-btn.back .playlist-title { color: var(--text-dim); font-size: 0.8rem; letter-spacing: 2px; }
.playlist-btn.back:hover { border-color: rgba(255, 255, 255, 0.25); transform: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }