/* ── HOOBANK-INSPIRED IU HEARDLE THEME ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --bg: #00040f;
  --card: rgba(255,255,255,0.04);
  --card-solid: #0d1117;
  --border: rgba(255,255,255,0.08);
  --accent: #00d4ff;
  --accent2: #00b8d9;
  --accent-glow: rgba(0,212,255,0.25);
  --correct: #00f5a0;
  --wrong: #ff4d6d;
  --skip: #ffd60a;
  --text: #ffffff;
  --muted: #6b7fa3;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #0070f3 100%);
  --gradient-glow: 0 0 40px rgba(0,212,255,0.3), 0 0 80px rgba(0,112,243,0.15);
  --shadow: rgba(0,212,255,0.3);
}

[data-theme="light"] {
  --bg: #f0f4ff;
  --card: rgba(255,255,255,0.8);
  --card-solid: #ffffff;
  --border: rgba(0,0,0,0.08);
  --accent: #0070f3;
  --accent2: #00b4d8;
  --accent-glow: rgba(0,112,243,0.2);
  --correct: #059669;
  --wrong: #dc2626;
  --skip: #d97706;
  --text: #0a0e1a;
  --muted: #5a6a8a;
  --gradient: linear-gradient(135deg, #0070f3 0%, #00b4d8 100%);
  --gradient-glow: 0 4px 30px rgba(0,112,243,0.2);
  --shadow: rgba(0,112,243,0.25);
}

[data-theme="neon"] {
  --bg: #020010;
  --card: rgba(255,255,255,0.03);
  --card-solid: #07001a;
  --border: rgba(255,0,255,0.12);
  --accent: #00ffdd;
  --accent2: #ff00ff;
  --accent-glow: rgba(0,255,221,0.3);
  --correct: #00ff88;
  --wrong: #ff2244;
  --skip: #ffee00;
  --text: #e0f0ff;
  --muted: #4455aa;
  --gradient: linear-gradient(135deg, #00ffdd 0%, #ff00ff 100%);
  --gradient-glow: 0 0 50px rgba(0,255,221,0.4), 0 0 100px rgba(255,0,255,0.2);
  --shadow: rgba(0,255,221,0.4);
}

[data-theme="sepia"] {
  --bg: #0a0600;
  --card: rgba(255,200,100,0.04);
  --card-solid: #130d00;
  --border: rgba(255,200,100,0.1);
  --accent: #ffb347;
  --accent2: #ff8c42;
  --accent-glow: rgba(255,179,71,0.25);
  --correct: #7ab87a;
  --wrong: #c96b6b;
  --skip: #d4a84b;
  --text: #f0e6d3;
  --muted: #7a6040;
  --gradient: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
  --gradient-glow: 0 0 40px rgba(255,179,71,0.3);
  --shadow: rgba(255,179,71,0.35);
}

[data-theme="abyss"] {
  --bg: #000000;
  --card: rgba(255,255,255,0.025);
  --card-solid: #080808;
  --border: rgba(255,255,255,0.06);
  --accent: #00d4ff;
  --accent2: #0070f3;
  --accent-glow: rgba(0,212,255,0.2);
  --correct: #00f5a0;
  --wrong: #ff4d6d;
  --skip: #ffd60a;
  --text: #e8e8e8;
  --muted: #404040;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #0070f3 100%);
  --gradient-glow: 0 0 40px rgba(0,212,255,0.25);
  --shadow: rgba(0,212,255,0.25);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── BODY & BACKGROUND ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 80px;
  position: relative;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Ambient glow blobs like HooBank */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.08) 0%, rgba(0,70,243,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

body::after {
  content: '';
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── HEADER ─── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 560px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  z-index: 10;
  position: relative;
  transition: border-color 0.3s;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── LOGO ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              var(--gradient) border-box;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: all 0.3s;
  flex-shrink: 0;
}

.logo-avatar:hover {
  box-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow);
  transform: scale(1.05);
}

.logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  gap: 1px;
  align-items: baseline;
}

.logo-iu {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: all 0.3s;
}

.logo-heardle {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.5px;
  transition: color 0.3s;
}

/* ─── HEADER ACTIONS ─── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.mode-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.mode-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--gradient);
  color: #fff;
}

.player-controls-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.vol-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.vol-btn {
  padding: 4px 6px !important;
  font-size: 13px !important;
  border: none !important;
  background: transparent !important;
}

.vol-slider {
  width: 65px;
  accent-color: var(--accent);
  cursor: pointer;
}

.hint-btn:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-1px);
}

#ytBtn:hover {
  transform: scale(1.04);
}

/* ─── CALENDAR ARCHIVE ─── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
}

.cal-day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cal-day-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.cal-day-card .cal-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.cal-day-card .cal-status-badge {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 600;
}

.cal-day-card.status-win {
  border-color: #1db954;
  background: rgba(29, 185, 84, 0.12);
}
.cal-day-card.status-win .cal-status-badge {
  color: #1db954;
}

.cal-day-card.status-loss {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.12);
}
.cal-day-card.status-loss .cal-status-badge {
  color: #ff4757;
}

.cal-day-card.status-today {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.cal-day-card.status-today .cal-status-badge {
  color: var(--accent);
}

.cal-day-card.status-pending {
  opacity: 0.75;
}
.cal-day-card.status-pending .cal-status-badge {
  color: var(--muted);
}

.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
  background: var(--gradient);
  color: #fff;
}

.icon-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

/* ─── APP CONTAINER ─── */
.app {
  width: 100%;
  max-width: 560px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ─── ATTEMPT BARS ─── */
.bars {
  display: flex;
  gap: 6px;
  margin: 20px 0 12px;
}

.bar {
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: var(--border);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.bar::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.bar.correct {
  background: var(--correct);
  box-shadow: 0 0 8px rgba(0,245,160,0.5);
}

.bar.wrong {
  background: var(--wrong);
  box-shadow: 0 0 8px rgba(255,77,109,0.5);
}

.bar.skipped {
  background: var(--skip);
  box-shadow: 0 0 8px rgba(255,214,10,0.4);
}

/* ─── PLAYER CARD ─── */
.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}

/* ─── WAVEFORM ─── */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.wave-bar {
  width: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}

.waveform.playing .wave-bar {
  background: var(--accent);
  animation: wave-anim 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 6px var(--accent-glow);
}

.waveform.playing .wave-bar:nth-child(odd) {
  animation-delay: 0.3s;
}

@keyframes wave-anim {
  0% { height: 4px; }
  100% { height: 32px; }
}

/* ─── PLAY BUTTON ─── */
.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gradient-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  position: relative;
}

.play-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s;
  z-index: -1;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--gradient-glow), 0 0 60px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.play-btn:hover::after {
  opacity: 0.6;
}

.play-btn:active {
  transform: scale(0.96);
}

/* ─── TIMER ─── */
.timer-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.3s;
}

.timer-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  border-radius: 10px;
  transition: width 0.1s linear, background 0.3s;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ─── GUESSES ─── */
.guesses-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guess-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  letter-spacing: 0.2px;
}

/* ─── INPUT SECTION ─── */
.input-section {
  margin-top: 16px;
  position: relative;
}

.song-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 15px 18px;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.song-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.song-input::placeholder {
  color: var(--muted);
}

.shake {
  animation: hitShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
  border-color: var(--wrong) !important;
  box-shadow: 0 0 0 2px rgba(255,77,109,0.3) !important;
}

@keyframes hitShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

/* ─── AUTOCOMPLETE ─── */
.autocomplete {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  margin-bottom: 6px;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
  backdrop-filter: blur(20px);
  transition: background 0.3s;
}

.autocomplete.show {
  display: block;
  animation: slideUp 0.2s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ac-item {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-item:hover,
.ac-item.active {
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  padding-left: 24px;
}

/* ─── BUTTONS ─── */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.btn-skip {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-skip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-confirm {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-confirm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 50px var(--accent-glow);
}

.btn-confirm:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-confirm:active {
  transform: translateY(0);
}

/* ─── STATS GRID ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-box:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 30px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ─── DISTRIBUTION ─── */
.dist-section {
  margin-top: 10px;
  text-align: left;
}

.dist-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
}

.dist-num {
  width: 14px;
  text-align: right;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.dist-bar-wrap {
  flex: 1;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 22px;
}

.dist-bar-fill {
  height: 100%;
  background: rgba(0,212,255,0.3);
  border-radius: 6px;
  min-width: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.dist-bar-fill.highlight {
  background: var(--gradient);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,2,10,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px var(--accent-glow);
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gradient);
  border-radius: 0 0 10px 10px;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── ALBUM ART ─── */
.album-art {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  margin: 16px auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
  transition: box-shadow 0.3s;
}

/* ─── THEME SWITCHER ─── */
.theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.theme-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gradient-glow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--gradient-glow), 0 0 60px var(--accent-glow);
}

.theme-toggle-btn.open {
  transform: rotate(45deg) scale(1.05);
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-options.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.theme-option:hover {
  transform: translateX(-6px);
  border-color: var(--accent);
  background: rgba(0,212,255,0.06);
}

.theme-option.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 15px var(--accent-glow);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-dark   { background: linear-gradient(135deg, #00d4ff, #0070f3); }
.dot-light  { background: linear-gradient(135deg, #0070f3, #00b4d8); }
.dot-neon   { background: linear-gradient(135deg, #00ffdd, #ff00ff); }
.dot-sepia  { background: linear-gradient(135deg, #ffb347, #ff8c42); }
.dot-abyss  { background: #000; border: 2px solid #00d4ff; }

/* ─── NEON THEME SPECIALS ─── */
[data-theme="neon"] .play-btn,
[data-theme="neon"] .btn-confirm {
  box-shadow: 0 0 25px rgba(0,255,221,0.5), 0 0 60px rgba(255,0,255,0.2);
}

[data-theme="neon"] .bar.correct { box-shadow: 0 0 12px rgba(0,255,136,0.8); }
[data-theme="neon"] .bar.wrong   { box-shadow: 0 0 12px rgba(255,34,68,0.8); }

/* ─── ALPHA BROWSER ─── */
#alphaBrowser {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── SELECTION ─── */
::selection {
  background: rgba(0,212,255,0.3);
  color: white;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */
@media (max-width: 560px) {
  header {
    justify-content: center;
    padding: 12px 14px;
    gap: 8px;
  }
  .logo {
    justify-content: center;
    width: 100%;
  }
  .header-actions {
    justify-content: center;
    width: 100%;
    gap: 5px;
  }
  .mode-btn, .lang-btn {
    padding: 4px 6px;
    font-size: 10px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
  }
  .app {
    padding: 0 12px;
  }
  .player-card {
    padding: 20px 16px;
  }
}

#calendarModal { z-index: 1100; }
#calendarModal .cal-day-card { min-width: 0; padding: 10px 2px; }
#calendarModal .cal-status-badge { overflow-wrap: anywhere; }
#resultCalendarBtn { flex: 0 0 auto; padding: 12px 10px; }
