body.theme-tracking {
  --bg-sky-top: #eef5ff;
  --bg-sky-mid: #dcebff;
  --bg-sky-bot: #f7fbff;
  --card-bg: rgba(255, 255, 255, .97);
  --row-bg: #f1f7ff;
  --row-hover: #dbeafe;
  --border-light: #d3e3f7;
  --border-strong: #93b8e6;
  --text-dark: #0f2a4a;
  --text-muted: #56718f;
  background: linear-gradient(160deg, var(--bg-sky-top) 0%, var(--bg-sky-mid) 50%, var(--bg-sky-bot) 100%);
}

body.theme-tracking .nav-tabs { background: #dcebfa; }
body.theme-tracking .tab-btn.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(29, 78, 216, .16);
}
body.theme-tracking .period-chart-card[aria-pressed="true"] { border-color: #2563eb; }
body.theme-tracking .period-chart-fill { background: linear-gradient(90deg, #93c5fd, #2563eb); }
body.theme-tracking .question-accordion > summary::after { color: #2563eb; }
body.theme-tracking .habit-item.completed-3 { background: #f0fdf4; }

body.theme-home,
body.theme-profile {
  color: #0f2a4a;
  background: linear-gradient(160deg, #eef5ff, #f7fbff 54%, #dcebff);
}

body.theme-home .hero,
body.theme-profile > main > header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb 58%, #38bdf8);
  box-shadow: 0 16px 36px rgba(30, 64, 175, .2);
}

body.theme-home .intro-card,
body.theme-home .mode-card,
body.theme-home .education-item,
body.theme-profile .card {
  border-color: #d3e3f7;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(30, 64, 175, .07);
}

body.theme-home .intro-card h2,
body.theme-home .mode-card h2,
body.theme-home .mode-card a,
body.theme-profile .card h2,
body.theme-profile .profile-summary strong,
body.theme-profile .progress-head > h2 {
  color: #1e40af;
}

body.theme-home .education-item h3,
body.theme-profile .profile-summary,
body.theme-profile .character-stat,
body.theme-profile .stat-tile {
  color: #2f4a6b;
}

body.theme-home .education-levels span { background: #e0efff; color: #1e40af; }
body.theme-profile .profile-summary,
body.theme-profile .character-stat,
body.theme-profile .character-card,
body.theme-profile .stat-tile { background: #eaf3ff; }
body.theme-profile .profile-icon { background: #d6e9ff; }
body.theme-profile .character-card { border-color: #c6dcf5; color: #1e3a8a; }
body.theme-profile .character-card[aria-pressed="true"] {
  border-color: #2563eb;
  background: #dcebff;
  box-shadow: 0 0 0 2px #60a5fa;
}
body.theme-profile .progress-head strong:not(.rank-badge) { color: #1e40af; }
body.theme-profile .progress-fill { background: linear-gradient(90deg, #60a5fa, #2563eb); }
body.theme-profile .stat-tile strong,
body.theme-profile .character-stat strong { color: #1e40af; }
body.theme-profile .month-day { border-color: #d5e6f7; background: #f8fbff; }
body.theme-profile .month-day.active { border-color: #60a5fa; background: #e0efff; color: #1e40af; }
body.theme-profile button,
body.theme-profile .continue-link { background: #2563eb; }
body.theme-profile button:hover,
body.theme-profile .continue-link:hover { background: #1d4ed8; }
body.theme-profile .logout-card { border-color: #fecaca; background: #fff1f2; }
body.theme-profile .logout-card h2 { color: #b91c1c; }
body.theme-profile .logout-card button { background: #dc2626; }
body.theme-profile .logout-card button:hover { background: #b91c1c; }
body.theme-profile .achievement-tabs button[aria-pressed="true"] { background: #1d4ed8; box-shadow: 0 0 0 2px #93c5fd; }

/* ==========================================================
   RPG ve DÖVÜŞ — AYDINLIK TEMA
   Kurulum/lobi ekranları açık renk; savaş arenası (oyun sahnesi) koyu kalır.
   ========================================================== */
body.theme-rpg,
body.theme-fight {
  --lt-bg1: #eaf4ff;
  --lt-bg2: #d6e9ff;
  --lt-bg3: #f5faff;
  --lt-card: rgba(250, 253, 255, .96);
  --lt-row: #eef6ff;
  --lt-row2: #e0efff;
  --lt-border: #c6dcf5;
  --lt-border-strong: #8bb4e0;
  --lt-text: #0f2a4a;
  --lt-muted: #56718f;
  --lt-accent: #2563eb;
  background: linear-gradient(160deg, var(--lt-bg1) 0%, var(--lt-bg2) 50%, var(--lt-bg3) 100%) fixed !important;
  color: var(--lt-text) !important;
}
/* Savaş sırasında arka plan koyu (oyun sahnesi) */
body.theme-fight.fight-active { background: #090d16 !important; color: #f8fafc !important; }

/* ---------- RPG kurulum ekranı (Tailwind sınıflarını açık renge çevir) ---------- */
body.theme-rpg #setup-screen [class*="bg-slate-9"],
body.theme-rpg #setup-screen [class*="bg-slate-8"] { background-color: var(--lt-card) !important; }
body.theme-rpg #setup-screen [class*="bg-slate-950"],
body.theme-rpg #setup-screen [class*="bg-slate-7"] { background-color: var(--lt-row) !important; }
body.theme-rpg #setup-screen [class*="border-slate-"] { border-color: var(--lt-border) !important; }
body.theme-rpg #setup-screen [class*="text-slate-1"],
body.theme-rpg #setup-screen [class*="text-slate-2"],
body.theme-rpg #setup-screen .text-white { color: var(--lt-text) !important; }
body.theme-rpg #setup-screen [class*="text-slate-3"],
body.theme-rpg #setup-screen [class*="text-slate-4"],
body.theme-rpg #setup-screen [class*="text-slate-5"] { color: var(--lt-muted) !important; }
body.theme-rpg #setup-screen [class*="text-amber-3"] { color: #b45309 !important; }
body.theme-rpg #setup-screen [class*="text-sky-3"],
body.theme-rpg #setup-screen [class*="text-sky-4"] { color: #0369a1 !important; }
body.theme-rpg #setup-screen [class*="text-emerald-4"] { color: #047857 !important; }
body.theme-rpg #setup-screen [class*="text-purple-4"] { color: #1d4ed8 !important; }
body.theme-rpg #setup-screen [class*="text-rose-4"] { color: #be123c !important; }
body.theme-rpg #setup-screen .active-level { background-color: #fef3c7 !important; border-color: #f59e0b !important; }
body.theme-rpg #setup-screen header h1 { background-image: linear-gradient(90deg, #b45309, #c2410c 55%, #9a3412) !important; filter: none; }
body.theme-rpg .portrait-card { border-color: var(--lt-border); background: var(--lt-row); color: var(--lt-text); }
body.theme-rpg .portrait-card.selected { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
body.theme-rpg .difficulty-btn,
body.theme-rpg .map-chip,
body.theme-rpg .map-picker-trigger { border-color: var(--lt-border); background: var(--lt-row); color: var(--lt-text); }
body.theme-rpg .difficulty-btn.active,
body.theme-rpg .map-chip.selected { border-color: var(--lt-accent); background: var(--lt-row2); color: #1e3a8a; box-shadow: 0 0 0 1px #93c5fd; }
body.theme-rpg .map-picker-dialog { border-color: var(--lt-border); background: #fafdff; color: var(--lt-text); }
body.theme-rpg .map-picker-dialog::backdrop { background: rgba(30, 58, 95, .35); }
body.theme-rpg .map-picker-close { border-color: var(--lt-border); background: var(--lt-row2); color: var(--lt-text); }
body.theme-rpg .map-picker-dialog [class*="bg-slate-8"] { background-color: var(--lt-row) !important; color: var(--lt-text) !important; border-color: var(--lt-border) !important; }
body.theme-rpg .map-picker-dialog [class*="text-sky-3"] { color: #0369a1 !important; }

/* Savaş ekranı koyu kalır (oyun sahnesi) */
body.theme-rpg #battle-screen { color: #eef6ff; }
body.theme-rpg #battle-screen [class*="bg-slate-950"] { background-color: #0b1322 !important; }
body.theme-rpg #battle-screen [class*="bg-slate-900"] { background-color: #12213a !important; }
body.theme-rpg #battle-screen [class*="bg-slate-800"] { background-color: #1a2d4f !important; }
body.theme-rpg #battle-screen [class*="border-slate-700"],
body.theme-rpg #battle-screen [class*="border-slate-800"] { border-color: #44608a !important; }
body.theme-rpg [class*="text-violet-"] { color: #2563eb; }

/* ---------- Dövüş kurulum ekranı ---------- */
body.theme-fight .fight-setup-card {
  border-color: var(--lt-border);
  background: var(--lt-card);
  color: var(--lt-text);
  box-shadow: 0 6px 18px rgba(30, 64, 175, .08);
}
body.theme-fight .fight-setup-card [style*="#fbbf24"] { color: #b45309 !important; }
body.theme-fight .fight-setup-card [style*="#7dd3fc"] { color: #0369a1 !important; }
body.theme-fight .fight-setup-card [style*="#86efac"] { color: #047857 !important; }
body.theme-fight .fight-portrait,
body.theme-fight .fight-map-chip,
body.theme-fight .fight-difficulty button,
body.theme-fight .fight-map-open,
body.theme-fight .online-room-actions button,
body.theme-fight .online-room-actions input,
body.theme-fight .online-invite-row input,
body.theme-fight .online-invite-row button {
  border-color: var(--lt-border);
  background: var(--lt-row) !important;
  color: var(--lt-text);
}
body.theme-fight .fight-portrait.selected { border-color: #f59e0b; color: #92400e; background: #fef3c7 !important; }
body.theme-fight .fight-map-chip.selected,
body.theme-fight .fight-difficulty button.selected { border-color: var(--lt-accent); background: var(--lt-row2) !important; color: #1e3a8a; box-shadow: 0 0 0 1px #93c5fd; }
body.theme-fight .online-room-status { color: #3a5170; }
body.theme-fight .online-room-status[style*="203, 213, 225"],
body.theme-fight .online-room-status[style*="cbd5e1"] { color: #3a5170 !important; }
body.theme-fight .online-room-status[style*="252, 165, 165"],
body.theme-fight .online-room-status[style*="fca5a5"] { color: #b91c1c !important; }
body.theme-fight .online-room-note { color: var(--lt-muted); }
body.theme-fight .fight-map-dialog { border-color: var(--lt-border); background: #fafdff; color: var(--lt-text); }
body.theme-fight .fight-map-dialog::backdrop { background: rgba(30, 58, 95, .35); }
body.theme-fight .fight-map-dialog-header button { border-color: var(--lt-border); background: var(--lt-row2); color: var(--lt-text); }
body.theme-fight .fight-map-dialog [style*="#7dd3fc"] { color: #0369a1 !important; }
body.theme-fight .fight-chat-btn {
  min-height: 38px; padding: 8px 18px; border: 1px solid var(--lt-border-strong); border-radius: 10px;
  background: #fff; color: #1e40af; font-weight: 900; cursor: pointer;
}

/* ---------- Dövüş maç lobisi ---------- */
body.theme-fight .match-lobby { background: radial-gradient(circle at 50% 20%, #e0efff 0%, #f5faff 70%); }
body.theme-fight .ml-card { border-color: var(--lt-border); background: var(--lt-card); color: var(--lt-text); box-shadow: 0 10px 30px rgba(30, 64, 175, .12); }
body.theme-fight .ml-title { color: #b45309; }
body.theme-fight .ml-player { background: var(--lt-row); }
body.theme-fight .ml-player small { color: var(--lt-muted); }
body.theme-fight .ml-badge { background: #d6e9ff; color: #1e3a8a; }
body.theme-fight .ml-badge.ok { background: #dcfce7; color: #166534; }
body.theme-fight .ml-timer { color: #1d4ed8; }
body.theme-fight .ml-status { color: #3a5170; }
body.theme-fight .ml-note { color: var(--lt-muted); }
body.theme-fight .ml-actions button { border-color: var(--lt-border); background: var(--lt-row2); color: var(--lt-text); }
body.theme-fight .ml-actions #mlReadyBtn { color: #fff; }

body.theme-rpg .fixed-game-nav,
body.theme-fight .fixed-game-nav {
  border-color: #5a7ba0;
  background: rgba(12, 28, 52, .97);
}
body.theme-rpg .fixed-game-nav a[aria-current="page"],
body.theme-fight .fixed-game-nav a[aria-current="page"] { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }

body.theme-home .fixed-game-nav,
body.theme-tracking .fixed-game-nav,
body.theme-profile .fixed-game-nav {
  border-color: #5a7ba0;
  background: rgba(12, 28, 52, .97);
}
body.theme-home .fixed-game-nav a[aria-current="page"],
body.theme-tracking .fixed-game-nav a[aria-current="page"],
body.theme-profile .fixed-game-nav a[aria-current="page"] { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
