:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-color: var(--text-primary);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --glass-blur: blur(20px);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bg-image: url('images/dark.png');
    --item-hover: rgba(255, 255, 255, 0.1);
    --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --btn-shadow: 0 0 1.6em rgba(139, 92, 246, 0.3);
    --btn-svg-color: #8b5cf6;
    --play-btn-border: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --play-btn-bg: rgb(29, 29, 29);
    --play-btn-hover-bg: rgb(38, 38, 38);
    --play-btn-shadow: rgba(139, 92, 246, 0.2);
    /* Ana sayfa — şeffaf cam bantlar (arka plan görünsün) */
    --main-glass-blur: blur(12px);
    --main-band-a-bg: rgba(15, 23, 42, 0.38);
    --main-band-b-bg: rgba(255, 255, 255, 0.07);
    --main-band-a-fg: var(--text-primary);
    --main-band-b-fg: var(--text-primary);
    --main-hero-muted: var(--text-secondary);
    --main-header-bg: rgba(15, 23, 42, 0.52);
    --main-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --main-inset-panel-bg: rgba(15, 23, 42, 0.32);
    --main-inset-panel-border: var(--glass-border);
    --main-accent-btn-fg: #ffffff;
    --main-logout-color: #f87171;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-color);
    font-family: 'Outfit', 'Inter', sans-serif;
    transition: background 0.5s ease, color 0.4s ease;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

/* Theme Definitions */
.theme-dark {
    --bg-color: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-color: var(--text-primary);
    --accent-color: #3b82f6;
    --bg-image: url('images/dark.png');
    --item-hover: rgba(255, 255, 255, 0.1);
    --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --btn-shadow: 0 0 1.6em rgba(139, 92, 246, 0.3);
    --btn-svg-color: #8b5cf6;
    --play-btn-border: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --play-btn-bg: rgb(29, 29, 29);
    --play-btn-hover-bg: rgb(38, 38, 38);
    --play-btn-shadow: rgba(139, 92, 246, 0.2);
    --main-band-a-bg: rgba(15, 23, 42, 0.38);
    --main-band-b-bg: rgba(255, 255, 255, 0.07);
    --main-header-bg: rgba(15, 23, 42, 0.52);
    --main-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --main-inset-panel-bg: rgba(15, 23, 42, 0.32);
}

.theme-light {
    --bg-color: #f3f4f6;
    --panel-bg: rgba(255, 255, 255, 0.75);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-color: var(--text-primary);
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --glass-border: rgba(0, 0, 0, 0.1);
    --bg-image: url('images/white.png');
    --item-hover: rgba(0, 0, 0, 0.05);
    --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --btn-shadow: 0 0 1.6em rgba(37, 99, 235, 0.3);
    --btn-svg-color: #1d4ed8;
    --play-btn-border: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --play-btn-bg: #f8fafc;
    --play-btn-hover-bg: #f1f5f9;
    --play-btn-shadow: rgba(37, 99, 235, 0.15);
    --main-band-a-bg: rgba(255, 255, 255, 0.34);
    --main-band-b-bg: rgba(255, 255, 255, 0.22);
    --main-header-bg: rgba(255, 255, 255, 0.48);
    --main-header-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --main-inset-panel-bg: rgba(255, 255, 255, 0.28);
    --main-logout-color: #dc2626;
}

.theme-sakura {
    --bg-color: #fff1f2;
    --panel-bg: rgba(230, 182, 255, 0.68);
    --text-primary: #881337;
    --text-secondary: #be123c;
    --text-color: var(--text-primary);
    --accent-color: #fb7185;
    --accent-hover: #f43f5e;
    --bg-image: url('images/sakura.png');
    --glass-blur: blur(10px);
    --glass-border: rgba(230, 182, 255, 0.28);
    --item-hover: rgba(230, 182, 255, 0.12);
    --btn-gradient: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    --btn-shadow: 0 0 1.6em rgba(225, 29, 72, 0.3);
    --btn-svg-color: #e11d48;
    --play-btn-border: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    --play-btn-bg: #fff1f2;
    --play-btn-hover-bg: #ffe4e6;
    --play-btn-shadow: rgba(225, 29, 72, 0.15);
    --main-band-a-bg: rgba(230, 182, 255, 0.33);
    --main-band-b-bg: rgba(230, 182, 255, 0.20);
    --main-header-bg: rgba(230, 182, 255, 0.40);
    --main-header-shadow: 0 4px 20px rgba(136, 19, 55, 0.08);
    --main-inset-panel-bg: rgba(230, 182, 255, 0.26);
    --main-logout-color: #e11d48;
}

.theme-forest {
    --bg-color: #f0fdf4;
    --panel-bg: rgba(64, 122, 59, 0.65);
    --text-primary: #064e3b;
    --text-secondary: #065f46;
    --text-color: var(--text-primary);
    --accent-color: #22c55e;
    --accent-hover: #16a34a;
    --bg-image: url('images/orman.png');
    --glass-blur: blur(10px);
    --glass-border: rgba(64, 122, 59, 0.25);
    --item-hover: rgba(64, 122, 59, 0.12);
    --btn-gradient: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
    --btn-shadow: 0 0 1.6em rgba(21, 128, 61, 0.3);
    --btn-svg-color: #15803d;
    --play-btn-border: linear-gradient(135deg, #4ade80 0%, #15803d 100%);
    --play-btn-bg: #f0fdf4;
    --play-btn-hover-bg: #dcfce7;
    --play-btn-shadow: rgba(21, 128, 61, 0.15);
    --main-band-a-bg: rgba(64, 122, 59, 0.33);
    --main-band-b-bg: rgba(64, 122, 59, 0.18);
    --main-header-bg: rgba(64, 122, 59, 0.32);
    --main-header-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
    --main-inset-panel-bg: rgba(64, 122, 59, 0.24);
    --main-logout-color: #dc2626;
}

.theme-sunrise {
    --bg-color: #fffaf5;
    --panel-bg: rgba(22, 40, 52, 0.70);
    --text-primary: #7c2d12;
    --text-secondary: #9a3412;
    --text-color: var(--text-primary);
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --bg-image: url('images/sunrise.png');
    --glass-blur: blur(8px);
    --glass-border: rgba(22, 40, 52, 0.28);
    --item-hover: rgba(22, 40, 52, 0.12);
    --btn-gradient: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
    --btn-shadow: 0 0 1.6em rgba(194, 65, 12, 0.3);
    --btn-svg-color: #c2410c;
    --play-btn-border: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
    --play-btn-bg: #fffaf5;
    --play-btn-hover-bg: #ffedd5;
    --play-btn-shadow: rgba(194, 65, 12, 0.15);
    --main-band-a-bg: rgba(22, 40, 52, 0.32);
    --main-band-b-bg: rgba(22, 40, 52, 0.20);
    --main-header-bg: rgba(22, 40, 52, 0.34);
    --main-header-shadow: 0 4px 20px rgba(124, 45, 18, 0.08);
    --main-inset-panel-bg: rgba(22, 40, 52, 0.26);
    --main-logout-color: #c2410c;
}

.theme-forest #medalWonView h2,
.theme-sakura #medalWonView h2,
.theme-sunrise #medalWonView h2 {
    color: #f8fafc !important;
}

.theme-forest #medalWonView .text-secondary,
.theme-sakura #medalWonView .text-secondary,
.theme-sunrise #medalWonView .text-secondary {
    color: #e2e8f0 !important;
}

/* Base Styles - Redundant definition removed */

/* Quiz cevap butonları */
.quiz-answer {
  display: block;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.quiz-answer:hover:not(:disabled) {
  background: var(--item-hover);
  border-color: var(--accent-color);
}

.quiz-answer:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.quiz-answer:disabled {
  cursor: default;
}

.quiz-answer--correct {
  background: #16a34a !important;
  border-color: #4ade80 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.55);
}

.quiz-answer--wrong {
  background: #dc2626 !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
}

html.perf-lite .quiz-answer {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Glassmorphism Classes - Simplified for visibility */
.glass-panel {
    background: var(--panel-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.theme-forest #rateUsModal .text-secondary,
.theme-forest #rateUsModal h2,
.theme-forest #rateUsModal textarea {
    color: #d9f7dc !important;
}

.theme-forest #rateUsModal textarea::placeholder {
    color: rgba(217, 247, 220, 0.8) !important;
}

.bg-mat-dark {
    background: var(--panel-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Button & Input Adaptations */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-color) !important;
}

/* Native select dropdown option styling */
select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.btn-primary,
#loginButton,
#confirmResetButton,
#confirmDeleteUserButton,
#qmSaveButton {
    background: var(--accent-color) !important;
    border: none !important;
}

.btn-primary:active,
#loginButton:active {
    transform: scale(0.98);
}



.settings-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-color);
}

.settings-item:hover {
    background: var(--item-hover);
    padding-left: 24px;
    color: var(--accent-color);
}



/* --- THEME SELECTION --- */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.theme-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-preview {
    height: 100px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.theme-card span {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    pointer-events: none;
}

.theme-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.theme-card.active .theme-preview {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59,130,246,0.5);
    transform: scale(1.05);
}

.theme-card.active .theme-preview::after {
    background: rgba(0,0,0,0.1);
}

/* --- STATS CARDS (END VIEW) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.bonus-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: bold;
    margin-top: 1rem;
    animation: bounce 2s infinite;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Floating Gear Glow */
#openQuestionManagerButton {
    background: var(--panel-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    border-color: var(--glass-border) !important;
    transition: all 0.3s;
}

#openQuestionManagerButton:hover {
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--accent-color);
}

#timerProgressCircle {
    transition: stroke-dashoffset 1s linear;
    stroke: var(--accent-color);
}

.leaderboard-scroll {
    max-height: 40vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
    opacity: 0.5;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- YENI EKLENEN STİLLER (MOBİL MENÜ VE DİĞERLERİ) --- */

/* Developer Signature */
.developer-signature {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* mix-blend-difference HTML tarafında eklendi, duruma göre burada da ekstra stiller konulabilir */
}

/* Zorunlu gizleme sınıfı */
.hidden {
    display: none !important;
}

/* Bulk Import Textarea Customization */
#bulkImportTextarea {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

#bulkImportTextarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Leaderboard Floating Mobile frame styling (constrained & optimized for 60fps scrolling) */
.leaderboard-mobile-fullscreen {
    position: fixed !important;
    top: 4.5rem !important;      /* Constrained from the top header bar */
    bottom: 5.5rem !important;   /* Constrained from the bottom browser bars */
    left: 1rem !important;
    right: 1rem !important;
    margin: 0 !important;
    z-index: 250 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem !important;
    
    /* High-performance styling to eliminate scroll stuttering on mobile WebViews */
    background: rgba(15, 23, 42, 0.98) !important; /* Solid slate dark background to avoid translucent blending overhead */
    backdrop-filter: none !important;             /* Disable heavy GPU-repaint blurs during scrolls */
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    
    /* Force GPU layer promotion to prevent parent document repaints */
    transform: translate3d(0, 0, 0) !important;
    will-change: transform !important;
}

/* Scroll configuration on floating mobile leaderboard */
.leaderboard-mobile-fullscreen .leaderboard-scroll {
    max-height: none !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    will-change: transform !important;
    margin: 0 !important;
}

/* General leaderboard scroll touch performance */
.leaderboard-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 0.5rem;
}

/* --- HAMBURGER MENU BUTTON (From Uiverse.io by NAKAMOZ) --- */

/* Hide the default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
}

.checkmark span {
  width: 22px;
  height: 2px;
  background-color: var(--text-color, white);
  position: absolute;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

.checkmark span:nth-child(1) {
  top: 10%;
}

.checkmark span:nth-child(2) {
  top: 50%;
}

.checkmark span:nth-child(3) {
  top: 90%;
}

.container input:checked + .checkmark span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  -moz-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
  -o-transform: translateY(-50%) rotate(45deg);
}

.container input:checked + .checkmark span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  -webkit-transform: translateY(-50%) rotate(-45deg);
  -moz-transform: translateY(-50%) rotate(-45deg);
  -ms-transform: translateY(-50%) rotate(-45deg);
  -o-transform: translateY(-50%) rotate(-45deg);
}

.container input:checked + .checkmark span:nth-child(3) {
  transform: translateX(-50px);
  -webkit-transform: translateX(-50px);
  -moz-transform: translateX(-50px);
  -ms-transform: translateX(-50px);
  -o-transform: translateX(-50px);
  opacity: 0;
}

/* --- PREMIUM LIQUID GLASS PANELS --- */
.liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 
                inset 0 0 16px rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-light .liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.25)) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12),
                inset 0 0 16px rgba(255, 255, 255, 0.25);
}

.theme-sakura .liquid-glass {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.5), rgba(255, 241, 242, 0.25)) !important;
    border: 1px solid rgba(251, 113, 133, 0.3) !important;
    box-shadow: 0 12px 40px 0 rgba(136, 19, 55, 0.12),
                inset 0 0 16px rgba(251, 113, 133, 0.15);
}

.theme-forest .liquid-glass {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.5), rgba(240, 253, 244, 0.25)) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 12px 40px 0 rgba(6, 78, 59, 0.12),
                inset 0 0 16px rgba(34, 197, 94, 0.15);
}

.theme-sunrise .liquid-glass {
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.5), rgba(255, 250, 245, 0.25)) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    box-shadow: 0 12px 40px 0 rgba(124, 45, 18, 0.12),
                inset 0 0 16px rgba(249, 115, 22, 0.15);
}

/* --- BUTTON FROM LOGIN_REG.TXT WITH THEME SUPPORT --- */
a.cssbuttons-io-button {
    text-decoration: none;
    color: white;
}

.cssbuttons-io-button {
  background-image: var(--btn-gradient) !important;
  color: white !important;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 1.2em;
  font-size: 16px;
  border-radius: 10em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: var(--btn-shadow) !important;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.cssbuttons-io-button .icon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 10em;
  right: 0.3em;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.cssbuttons-io-button:hover .icon {
  width: calc(100% - 0.6em);
}

.cssbuttons-io-button .icon svg {
  width: 1.1em;
  transition: transform 0.3s;
  color: var(--btn-svg-color) !important;
}

.cssbuttons-io-button:hover .icon svg {
  transform: translateX(0.1em);
}

.cssbuttons-io-button:active .icon {
  transform: scale(0.9);
}

.auth-back-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.auth-back-btn:hover {
  color: var(--text-primary);
}

/* --- PREMIUM PLAY BUTTON FROM PLAY.TXT WITH THEME SUPPORT --- */
.play-button {
  font-size: 18px;
  border-radius: 14px;
  background: var(--play-btn-border) !important;
  color: var(--text-primary) !important;
  border: none;
  padding: 2.5px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform-origin: center;
  display: inline-flex;
  box-shadow: 0 4px 15px var(--play-btn-shadow);
}

/* Content styling */
.play-button span {
  border-radius: 12px;
  padding: 0.9em 1.5em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: inherit;
  transition: all 0.3s ease;
  background-color: var(--play-btn-bg) !important;
  position: relative;
  z-index: 2;
}

.play-button:hover span {
  background-color: var(--play-btn-hover-bg) !important;
}

/* Overlay */
.play-button-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(
      rgba(128, 128, 128, 0.1) 0.0000001%,
      rgba(128, 128, 128, 0.15) 0.000104%
    )
    60% 60%/600% 600%;
  filter: opacity(15%) contrast(110%);
  z-index: 1;
}

.play-button svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.play-button:hover svg {
  transform: scale(1.15) translateX(2px);
}

/* Circular hover effect */
.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease, opacity 0.8s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.play-button:hover::after {
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Press-in scaling effect */
.play-button:active {
  transform: scale(0.96);
  filter: brightness(1.05);
}

/* ========== ÜST BAR (/main) — tema değişkenleri ========== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--main-header-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--main-header-shadow);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.top-header__scroll {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.4rem 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.top-header__scroll::-webkit-scrollbar {
  display: none;
}

.top-header__brand {
  flex: 0 0 auto;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  scroll-snap-align: start;
  padding-right: 0.25rem;
}

.top-header__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.top-header__link {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.top-header__link:hover {
  background: var(--item-hover);
  color: var(--text-primary);
}

.top-header__auth {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  scroll-snap-align: end;
  padding-left: 0.5rem;
}

.top-header__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}

.top-header__btn--outline {
  color: var(--text-primary);
  border-color: var(--glass-border);
  background: transparent;
}

.top-header__btn--outline:hover {
  background: var(--item-hover);
}

.top-header__btn--solid {
  color: var(--main-accent-btn-fg);
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.top-header__btn--solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.top-header__btn:active {
  transform: scale(0.96);
}

body.route-is-main {
  padding-top: 3.25rem;
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

@media (min-width: 1024px) and (hover: hover) {
  body.route-is-main {
    background-attachment: fixed;
  }
}

body.route-is-main #route-main {
  width: 100%;
  max-width: none;
}

/* ========== /main BÖLÜMLER — tema bantları (a / b alternans) ========== */
.main-page {
  width: 100%;
}

.main-sections {
  width: 100%;
}

.main-section {
  width: 100%;
  padding: 3.5rem 1.25rem;
  transition: background 0.45s ease, color 0.45s ease;
}

.main-section--band-a {
  background: var(--main-band-a-bg);
  color: var(--main-band-a-fg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.main-section--band-b {
  background: var(--main-band-b-bg);
  color: var(--main-band-b-fg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.main-section--compact {
  padding: 2rem 1.25rem;
}

.main-section__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.main-section__inner--wide {
  max-width: 52rem;
}

.main-section__inner--center {
  text-align: center;
}

.main-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.theme-light .main-section__title,
.theme-sakura .main-section__title,
.theme-forest .main-section__title,
.theme-sunrise .main-section__title {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.85);
}

.main-section__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Hero düzeni */
.main-hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.main-hero__brand {
  width: 100%;
}

#section-hero.main-hero--logged-in .main-hero__layout {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  text-align: left;
}

#section-hero.main-hero--logged-in .main-hero__brand {
  flex: 1 1 55%;
  min-width: 0;
}

#section-hero.main-hero--logged-in .main-hero__welcome {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-left: 1rem;
}

#section-hero.main-hero--logged-in .main-hero__guest {
  display: none;
}

.main-hero__guest {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--main-hero-muted);
}

.main-hero__guest p {
  margin: 0;
  color: inherit;
}

@media (max-width: 640px) {
  #section-hero.main-hero--logged-in .main-hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  #section-hero.main-hero--logged-in .main-hero__welcome {
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
    width: 100%;
  }
}

/* Hero */
.main-hero__tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

.main-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.main-hero__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.main-hero__welcome-label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.main-hero__username {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.15;
}

.main-hero__tag,
.main-hero__subtitle,
.main-hero__welcome-label {
  color: var(--text-secondary);
}

.main-hero__title {
  color: var(--text-primary);
}

.main-contact__link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--main-accent-btn-fg);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
  box-shadow: var(--btn-shadow);
}

.main-contact__link:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.main-contact__note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.main-contact__note strong {
  color: var(--text-primary);
}

.main-contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.main-contact__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--main-accent-btn-fg);
  text-decoration: none;
  box-shadow: var(--btn-shadow);
  transition: transform 0.3s ease, background 0.2s ease;
}

.main-contact__button:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

.main-contact__button svg {
  display: block;
}

.main-contact__button span {
  position: absolute;
  top: -3.25rem;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.main-contact__button:hover span {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.main-contact__button:hover svg {
  transform: scale(1.1);
}


.main-leaderboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.main-leaderboard__header .main-section__title {
  margin-bottom: 0;
}

.main-leaderboard__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.75rem;
  margin-left: auto;
}

.main-leaderboard__filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 7.5rem;
}

.main-leaderboard__filter-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.main-leaderboard__filter-select {
  appearance: none;
  padding: 0.45rem 1.75rem 0.45rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  background-color: rgba(0, 0, 0, 0.18) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  cursor: pointer;
}

.main-leaderboard__filter-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.main-turkey-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
}

.main-turkey-map-panel {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--main-inset-panel-border);
  background: var(--main-inset-panel-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  overflow: hidden;
  min-height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turkey-map-canvas-host {
  position: relative;
  width: 100%;
  height: min(26rem, 48vh);
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turkey-map-error {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
}

.turkey-map-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turkey-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.turkey-map-svg:active {
  cursor: grabbing;
}

.turkey-map-province {
  fill: #334155;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, stroke 0.2s ease;
  cursor: pointer;
}

.turkey-map-province--active {
  stroke: rgba(255, 255, 255, 0.5);
}

.turkey-map-province--hover {
  stroke: #93c5fd;
  stroke-width: 1.2;
  filter: brightness(1.15);
}

.turkey-map-province-count {
  fill: #f8fafc;
  font-size: 9px;
  font-weight: 800;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: rgba(15, 23, 42, 0.85);
  stroke-width: 2px;
}

.turkey-map-province-count.hidden {
  display: none;
}

.turkey-map-zoom-controls {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

.turkey-map-zoom-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.turkey-map-zoom-btn:hover {
  background: rgba(59, 130, 246, 0.55);
  transform: scale(1.05);
}

.main-turkey-map-stats {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 11rem;
  max-width: 14rem;
}

.main-turkey-map-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--main-inset-panel-border);
  background: var(--main-inset-panel-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
}

.main-turkey-map-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
}

.main-turkey-map-stat__value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.turkey-map-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 0.4rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .main-leaderboard__filters {
    width: 100%;
    margin-left: 0;
  }

  .main-leaderboard__filter {
    flex: 1;
    min-width: 0;
  }

  .main-turkey-map-layout {
    grid-template-columns: 1fr;
  }

  .main-turkey-map-stats {
    flex-direction: row;
    max-width: none;
    min-width: 0;
  }

  .main-turkey-map-stat {
    flex: 1;
  }
}

.main-rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: var(--panel-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.main-leaderboard-panel {
  border-radius: 1rem;
  border: 1px solid var(--main-inset-panel-border);
  background: var(--main-inset-panel-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  overflow: hidden;
}

.leaderboard-scroll--main {
  max-height: min(16rem, 38vh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.leaderboard-row {
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.04);
  border-color: transparent !important;
  font-size: 0.8rem;
}

.leaderboard-row:hover {
  background: var(--item-hover);
}

.leaderboard-row--self {
  background: var(--item-hover) !important;
  border: 1px solid var(--accent-color) !important;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.leaderboard-row__name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  font-size: 0.8rem;
  line-height: 1.3;
}

.leaderboard-row__rank {
  flex-shrink: 0;
}

.leaderboard-row__title {
  font-size: 0.6rem;
  margin-top: 0.1rem;
}

.lb-self-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text-primary);
  background: var(--panel-bg);
  backdrop-filter: var(--main-glass-blur);
  -webkit-backdrop-filter: var(--main-glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.main-leaderboard-panel .leaderboard-row .text-xs {
  font-size: 0.65rem;
}

.main-leaderboard-panel .leaderboard-row .w-8,
.main-leaderboard-panel .leaderboard-row .w-10 {
  width: 1.65rem;
}

.main-leaderboard-panel .leaderboard-row .text-\[9px\] {
  font-size: 0.5rem;
}

.main-section .developer-signature {
  color: var(--text-secondary);
}

.main-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--glass-border);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Login / register sayfaları ortalı kalsın */
body:not(.route-is-main) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body:not(.route-is-main) #route-login,
body:not(.route-is-main) #route-register {
  width: 100%;
}

@media (min-width: 768px) {
  .top-header__scroll {
    padding: 0.5rem 1.25rem;
    gap: 1rem;
  }

  .top-header__link {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

  .top-header__btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* ========== Mobil performans (perf-lite) ========== */
html.perf-lite {
  scroll-behavior: auto;
}

html.perf-lite body {
  transition: color 0.2s ease;
  background-attachment: scroll !important;
}

html.perf-lite body.route-is-main {
  background-attachment: scroll !important;
}

html.perf-lite .main-section,
html.perf-lite .top-header,
html.perf-lite .top-header__btn,
html.perf-lite .top-header__link {
  transition: none !important;
}

html.perf-lite .main-section--band-a,
html.perf-lite .main-section--band-b,
html.perf-lite .top-header,
html.perf-lite .main-leaderboard-panel,
html.perf-lite .main-rank-badge,
html.perf-lite .lb-self-badge {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.perf-lite .main-section--band-a {
  background: var(--main-band-a-bg-solid, var(--main-band-a-bg));
}

html.perf-lite .main-section--band-b {
  background: var(--main-band-b-bg-solid, var(--main-band-b-bg));
}

html.perf-lite .main-section:not(#section-hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

html.perf-lite .main-section__title {
  text-shadow: none;
}

html.perf-lite .leaderboard-row {
  transition: none !important;
}

html.perf-lite .leaderboard-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

html.perf-lite .leaderboard-scroll--main {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

html.perf-lite .play-button,
html.perf-lite .play-button::after {
  transition: none !important;
}

html.perf-lite #splashScreen {
  transition: opacity 0.4s ease !important;
}

/* perf-lite: daha opak bantlar (blur yokken okunabilirlik) */
html.perf-lite .theme-dark,
html.perf-lite {
  --main-band-a-bg-solid: rgba(15, 23, 42, 0.82);
  --main-band-b-bg-solid: rgba(30, 41, 59, 0.78);
  --main-header-bg: rgba(15, 23, 42, 0.94);
  --main-inset-panel-bg: rgba(15, 23, 42, 0.75);
}

html.perf-lite .theme-light {
  --main-band-a-bg-solid: rgba(255, 255, 255, 0.88);
  --main-band-b-bg-solid: rgba(241, 245, 249, 0.9);
  --main-header-bg: rgba(255, 255, 255, 0.94);
  --main-inset-panel-bg: rgba(255, 255, 255, 0.82);
}

html.perf-lite .theme-sakura {
  --main-band-a-bg-solid: rgba(255, 228, 235, 0.9);
  --main-band-b-bg-solid: rgba(255, 255, 255, 0.88);
  --main-header-bg: rgba(255, 241, 242, 0.94);
}

html.perf-lite .theme-forest {
  --main-band-a-bg-solid: rgba(220, 252, 231, 0.9);
  --main-band-b-bg-solid: rgba(255, 255, 255, 0.88);
  --main-header-bg: rgba(240, 253, 244, 0.94);
}

html.perf-lite .theme-sunrise {
  --main-band-a-bg-solid: rgba(255, 237, 213, 0.9);
  --main-band-b-bg-solid: rgba(255, 255, 255, 0.88);
  --main-header-bg: rgba(255, 250, 245, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}