/* Update 1.6 — Menu themes for the lobby/home page.
 * Each theme sets body class .mtheme-<id> and changes the backdrop,
 * accent colors, card styling, and panel colors.
 */

/* ── Cosmic Dusk ──────────────────────────────────────────────── */
body.mtheme-cosmic-dusk {
  --theme-bg: linear-gradient(135deg, #1a0a2e 0%, #0d0d1a 50%, #2a1040 100%);
  --theme-accent: #a78bfa;
  --theme-card-bg: rgba(100, 60, 180, 0.12);
  --theme-card-border: rgba(167, 139, 250, 0.2);
  --theme-panel-bg: rgba(30, 15, 60, 0.85);
  --theme-star-color: rgba(200, 180, 255, 0.6);
}
body.mtheme-cosmic-dusk .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-cosmic-dusk .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}
body.mtheme-cosmic-dusk .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-cosmic-dusk .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-cosmic-dusk .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-cosmic-dusk .gem { color: var(--theme-accent); }
body.mtheme-cosmic-dusk .btn-arcade {
  background: var(--theme-accent) !important;
}
/* ── Neon Night ───────────────────────────────────────────────── */
body.mtheme-neon-night {
  --theme-bg: linear-gradient(135deg, #0a0a14 0%, #141428 50%, #0a0a0e 100%);
  --theme-accent: #00f0ff;
  --theme-card-bg: rgba(0, 200, 255, 0.06);
  --theme-card-border: rgba(0, 240, 255, 0.15);
  --theme-panel-bg: rgba(8, 8, 20, 0.9);
  --theme-star-color: rgba(0, 240, 255, 0.5);
}
body.mtheme-neon-night .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-neon-night .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05) !important;
}
body.mtheme-neon-night .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-neon-night .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-neon-night .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-neon-night .gem { color: var(--theme-accent); }
body.mtheme-neon-night .btn-arcade {
  background: var(--theme-accent) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}
/* ── Arctic Frost ─────────────────────────────────────────────── */
body.mtheme-arctic-frost {
  --theme-bg: linear-gradient(135deg, #0a1820 0%, #0e2430 50%, #142e3c 100%);
  --theme-accent: #67e8f9;
  --theme-card-bg: rgba(100, 220, 240, 0.06);
  --theme-card-border: rgba(103, 232, 249, 0.15);
  --theme-panel-bg: rgba(8, 20, 30, 0.88);
  --theme-star-color: rgba(160, 230, 255, 0.5);
}
body.mtheme-arctic-frost .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-arctic-frost .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}
body.mtheme-arctic-frost .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-arctic-frost .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-arctic-frost .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-arctic-frost .gem { color: var(--theme-accent); }
body.mtheme-arctic-frost .btn-arcade {
  background: var(--theme-accent) !important;
}
/* ── Sunset Glow ──────────────────────────────────────────────── */
body.mtheme-sunset-glow {
  --theme-bg: linear-gradient(135deg, #2a0a0a 0%, #3a1810 50%, #1a0a14 100%);
  --theme-accent: #fb923c;
  --theme-card-bg: rgba(251, 146, 60, 0.06);
  --theme-card-border: rgba(251, 146, 60, 0.15);
  --theme-panel-bg: rgba(30, 12, 8, 0.88);
  --theme-star-color: rgba(255, 200, 140, 0.5);
}
body.mtheme-sunset-glow .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-sunset-glow .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}
body.mtheme-sunset-glow .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-sunset-glow .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-sunset-glow .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-sunset-glow .gem { color: var(--theme-accent); }
body.mtheme-sunset-glow .btn-arcade {
  background: var(--theme-accent) !important;
}
/* ── Jungle Ruins ─────────────────────────────────────────────── */
body.mtheme-jungle-ruins {
  --theme-bg: linear-gradient(135deg, #0a1a0a 0%, #0e2414 50%, #0a1e10 100%);
  --theme-accent: #4ade80;
  --theme-card-bg: rgba(74, 222, 128, 0.06);
  --theme-card-border: rgba(74, 222, 128, 0.12);
  --theme-panel-bg: rgba(8, 24, 10, 0.88);
  --theme-star-color: rgba(140, 240, 160, 0.5);
}
body.mtheme-jungle-ruins .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-jungle-ruins .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
}
body.mtheme-jungle-ruins .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-jungle-ruins .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-jungle-ruins .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-jungle-ruins .gem { color: var(--theme-accent); }
body.mtheme-jungle-ruins .btn-arcade {
  background: var(--theme-accent) !important;
}
/* ── Crystal Cave ─────────────────────────────────────────────── */
body.mtheme-crystal-cave {
  --theme-bg: linear-gradient(135deg, #0e1420 0%, #1a2438 50%, #0e1420 100%);
  --theme-accent: #38bdf8;
  --theme-card-bg: rgba(56, 189, 248, 0.06);
  --theme-card-border: rgba(56, 189, 248, 0.15);
  --theme-panel-bg: rgba(10, 18, 30, 0.88);
  --theme-star-color: rgba(100, 200, 255, 0.5);
}
body.mtheme-crystal-cave .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-crystal-cave .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.05) !important;
}
body.mtheme-crystal-cave .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-crystal-cave .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-crystal-cave .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-crystal-cave .gem { color: var(--theme-accent); }
body.mtheme-crystal-cave .btn-arcade {
  background: var(--theme-accent) !important;
}
/* ── Fire Dance ───────────────────────────────────────────────── */
body.mtheme-fire-dance {
  --theme-bg: linear-gradient(135deg, #1a0404 0%, #2a0a00 50%, #140800 100%);
  --theme-accent: #f97316;
  --theme-card-bg: rgba(249, 115, 22, 0.06);
  --theme-card-border: rgba(249, 115, 22, 0.15);
  --theme-panel-bg: rgba(24, 6, 0, 0.88);
  --theme-star-color: rgba(255, 160, 60, 0.5);
}
body.mtheme-fire-dance .update-backdrop {
  background: var(--theme-bg);
}
body.mtheme-fire-dance .card {
  background: var(--theme-card-bg) !important;
  border-color: var(--theme-card-border) !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.05) !important;
}
body.mtheme-fire-dance .dock {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-fire-dance .top-bar {
  background: var(--theme-panel-bg) !important;
}
body.mtheme-fire-dance .starfield span {
  background: var(--theme-star-color);
}
body.mtheme-fire-dance .gem { color: var(--theme-accent); }
body.mtheme-fire-dance .btn-arcade {
  background: var(--theme-accent) !important;
}
body.mtheme-fire-dance .btn-arcade:hover {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4) !important;
}
/* ── Universal: remove old backdrop image on theme ─────────────── */
body[class*="mtheme-"] .update-backdrop {
  background-size: cover !important;
  background-position: center !important;
}
body[class*="mtheme-"].no-fx .update-backdrop {
  display: block !important;
  opacity: 0.6 !important;
  background-image: none !important;
}
