/* --- CSS RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto; /* Natural scroll için height auto */
}

/* --- THEME DEFINITIONS --- */

/* SAKURA THEME (SOFT CHERRY BLOSSOM) */
body[data-theme="sakura"] {
    --bg-color: #0f0a0d;
    --panel-bg: rgba(86, 33, 53, 0.75);
    --primary-accent: #e9b1cd;
    --primary-accent-rgb: 233, 177, 205;
    --combo-color-1: #e9b1cd;
    --combo-color-2: #fcd1d7;
    --combo-color-3: #ffe7de;
    --combo-color-4: #ff9eb5;
    --bg-gradient-1: rgba(233, 177, 205, 0.06);
    --bg-gradient-2: rgba(252, 209, 215, 0.06);
    --shadow-color: rgba(233, 177, 205, 0.3);
    --thumb-hover-color: #c3829e;
    --accent-color: #e9b1cd;
    --accent-color-light: #fcd1d7;
    --accent-color-alpha: rgba(233, 177, 205, 0.15);
    --accent-color-alpha-border: rgba(233, 177, 205, 0.3);
    --accent-color-alpha-hover: rgba(233, 177, 205, 0.25);
    --accent-glow: rgba(233, 177, 205, 0.4);
}

/* FROST THEME (ICY WINTER) */
body[data-theme="frost"] {
    --bg-color: #0a0c0f;
    --panel-bg: rgba(28, 34, 46, 0.75);
    --primary-accent: #00BFFF;
    --primary-accent-rgb: 0, 191, 255;
    --combo-color-1: #00BFFF;
    --combo-color-2: #1E90FF;
    --combo-color-3: #4169E1;
    --combo-color-4: #8A2BE2;
    --bg-gradient-1: rgba(106, 153, 189, 0.06);
    --bg-gradient-2: rgba(206, 239, 254, 0.06);
    --shadow-color: rgba(106, 153, 189, 0.3);
    --thumb-hover-color: #376893;
    --accent-color: #00BFFF;
    --accent-color-light: #5cc8ff;
    --accent-color-alpha: rgba(0, 191, 255, 0.15);
    --accent-color-alpha-border: rgba(0, 191, 255, 0.3);
    --accent-color-alpha-hover: rgba(0, 191, 255, 0.25);
    --accent-glow: rgba(0, 191, 255, 0.4);
}

/* Frost theme - Important text colors */
body[data-theme="frost"] .logo {
    color: #00BFFF;
}

body[data-theme="frost"] .game-mode-btn h3 {
    color: #00BFFF;
}

body[data-theme="frost"] .nav-tab.active {
    background: #00BFFF;
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.3);
}

body[data-theme="frost"] .stats-tab.active {
    color: #ffffff;
    background: #00BFFF;
}

body[data-theme="frost"] .best-score {
    color: #00BFFF;
}

/* SPARK THEME (ELECTRIC SPARK YELLOW) */
body[data-theme="spark"] {
    --bg-color: #0F0F0F;
    --panel-bg: rgba(20, 18, 10, 0.65);
    --primary-accent: #FFD700;
    --primary-accent-rgb: 255, 215, 0;
    --combo-color-1: #FFD700;
    --combo-color-2: #FFF200;
    --combo-color-3: #FFFF80;
    --combo-color-4: #FF8C00;
    --bg-gradient-1: rgba(255, 215, 0, 0.08);
    --bg-gradient-2: rgba(255, 242, 0, 0.08);
    --shadow-color: rgba(255, 215, 0, 0.25);
    --thumb-hover-color: #FFC000;
    --accent-color: #FFD700;
    --accent-color-light: #ffed4e;
    --accent-color-alpha: rgba(255, 215, 0, 0.15);
    --accent-color-alpha-border: rgba(255, 215, 0, 0.3);
    --accent-color-alpha-hover: rgba(255, 215, 0, 0.25);
    --accent-glow: rgba(255, 215, 0, 0.4);
}

/* DEFAULT THEME COLORS (SPARK) */
:root {
    --bg-color: #0F0F0F;
    --panel-bg: rgba(20, 18, 10, 0.65);
    --primary-accent: #FFD700;
    --combo-color-1: #FFD700;
    --combo-color-2: #FFF200;
    --combo-color-3: #FFFF80;
    --combo-color-4: #FF8C00;
    --bg-gradient-1: rgba(255, 215, 0, 0.08);
    --bg-gradient-2: rgba(255, 242, 0, 0.08);
    --shadow-color: rgba(255, 215, 0, 0.25);
    --thumb-hover-color: #FFC000;
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-primary: #EAEAEA;
    --text-secondary: #8A8893;
    --card-bg: #1A1726;
    --card-hover-bg: #242033;
    --card-hover-border: var(--primary-accent);
    --feedback-gold: #ffd700;
    --score-color: #808080;
    --time-color: #808080;
}


/* --- BASE STYLES --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, var(--bg-gradient-1), transparent 40%),
                      radial-gradient(circle at 85% 50%, var(--bg-gradient-2), transparent 40%);
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    overflow: hidden; /* Tüm overflow gizle */
    display: flex; /* Flex centering geri ekle */
    justify-content: center; /* Yatay ortalama */
    align-items: center; /* Dikey ortalama */
    height: 100vh; /* Tam ekran yükseklik */
    width: 100vw;
    position: relative;
    left: 0;
    top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
    will-change: transform;
    transition: background-color 0.3s ease;
}

/* Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 240px 90px, #eee, transparent),
        radial-gradient(1px 1px at 290px 10px, #fff, transparent),
        radial-gradient(1px 1px at 320px 50px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 360px 80px, #fff, transparent);
    background-repeat: repeat;
    background-size: 400px 200px;
    animation: starfield 120s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Disable starfield when setting is turned off */
body.starfield-disabled::before {
    display: none !important;
}

#gameCanvas {
    display: block; 
    cursor: none;
    background: transparent; 
    border-radius: 8px;
    image-rendering: auto;
    width: 1200px !important;
    height: 675px !important;
    position: absolute;
    top: 0;
    left: 0;
    max-width: none !important;
    max-height: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    will-change: transform;
}


.hidden {
    display: none !important;
}

/* --- MENU LAYOUT --- */
#main-menu-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    left: 0; /* Ensure no offset */
    transform: translateX(0); /* Reset any transforms */
    padding-bottom: 10px; /* Alt boşluk azaltıldı */
}

.menu-container {
    width: 100%;
    max-width: 1100px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

#profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out;
}

.simple-aim-container {
    width: calc(100% - 60px);
    max-width: 1050px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 35px 45px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

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

/* --- NEW MENU HEADER --- */
.menu-header {
    text-align: center;
    margin-bottom: 30px; /* Eski haline geri döndürüldü */
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 100px;
    width: auto;
}

.logo {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-accent);
    margin: 0;
    letter-spacing: 3px;
}

.tagline {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 8px 0 0 0;
    opacity: 0.7;
}

/* --- NAVIGATION TABS --- */
.menu-nav {
    display: flex;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px; /* 12px'den 20px'e artırıldı - ROUTINE butonuna mesafe */
    border: 1px solid var(--panel-border);
}

.nav-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.nav-tab.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* --- MENU SECTIONS --- */
.menu-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
    overflow: visible; /* Allow dropdowns to extend beyond container */
}

/* Settings Symmetric Grid */
.settings-symmetric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px;
    height: 100%;
}

.settings-column {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 15px;
}

.crosshair-preview {
    text-align: center;
    margin: 10px 0;
}

.crosshair-controls-compact {
    margin-top: 5px;
}

.crosshair-sliders {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-label {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label span {
    color: var(--text-primary);
    font-weight: 600;
}

.crosshair-slider {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.crosshair-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshair-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-color);
}

.crosshair-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crosshair-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-color);
}

/* --- COMPACT SETTINGS LAYOUT --- */
.settings-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.settings-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.setting-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    min-width: 140px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.setting-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-header label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crosshair-preview-mini {
    width: 32px;
    height: 32px;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-dropdown.compact .dropdown-trigger {
    padding: 8px 12px;
    font-size: 11px;
    min-width: 80px;
    background: var(--bg-secondary);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown.compact .dropdown-trigger:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
}

.custom-dropdown.compact {
    position: relative;
}

.custom-dropdown.compact .dropdown-options {
    position: absolute !important;
    bottom: 100% !important;
    top: unset !important;
    left: 0 !important;
    right: auto !important;
    min-width: 120px !important;
    width: max-content !important;
    margin-bottom: 2px !important;
    margin-top: unset !important;
    background: var(--card-bg) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    max-height: none !important;
    overflow-y: visible !important;
    z-index: 10002 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
}

.custom-dropdown.compact .dropdown-options.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.custom-dropdown.compact .dropdown-option {
    padding: 8px 12px !important;
    color: var(--text-primary) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.custom-dropdown.compact .dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.custom-dropdown.compact .dropdown-option.active {
    background: var(--accent-color) !important;
    color: #000 !important;
}

#sens-dropdown .dropdown-options {
    min-width: 150px !important;
}

.slider-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.slider-mini span:first-child {
    width: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.slider-mini span:last-child {
    width: 20px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

.micro-slider {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.micro-slider:hover {
    background: var(--bg-hover);
}

.micro-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.micro-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-glow);
}

.micro-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.micro-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-glow);
}

.theme-options-vertical, .background-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-btn-compact, .bg-btn-compact {
    width: 100%;
    height: 24px;
    border: 1px solid var(--panel-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-btn-compact:hover, .bg-btn-compact:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-btn-compact.active, .bg-btn-compact.active {
    background: var(--accent-color);
    color: var(--accent-text-color, #000);
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Background buttons inherit theme colors */
.bg-btn-compact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-color-alpha, rgba(56, 182, 255, 0.15)) 100%);
    border-color: var(--accent-color-alpha-border, rgba(56, 182, 255, 0.3));
}

.bg-btn-compact:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--accent-color-alpha-hover, rgba(56, 182, 255, 0.25)) 100%);
    border-color: var(--accent-color);
}

.bg-btn-compact.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-light, #5cc8ff) 100%);
    border-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Theme-specific button colors */
.theme-btn-compact[data-theme="sakura"] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 182, 193, 0.2) 100%);
    border-color: rgba(255, 182, 193, 0.3);
}

.theme-btn-compact[data-theme="sakura"]:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(255, 182, 193, 0.3) 100%);
    border-color: #ffb6c1;
}

.theme-btn-compact[data-theme="sakura"].active {
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc0cb 100%);
    border-color: #ffb6c1;
    color: #000;
}

.theme-btn-compact[data-theme="frost"] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(56, 182, 255, 0.2) 100%);
    border-color: rgba(56, 182, 255, 0.3);
}

.theme-btn-compact[data-theme="frost"]:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(56, 182, 255, 0.3) 100%);
    border-color: #38b6ff;
}

.theme-btn-compact[data-theme="frost"].active {
    background: linear-gradient(135deg, #38b6ff 0%, #5cc8ff 100%);
    border-color: #38b6ff;
    color: #000;
}

.theme-btn-compact[data-theme="spark"] {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 215, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.theme-btn-compact[data-theme="spark"]:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(255, 215, 0, 0.3) 100%);
    border-color: #ffd700;
}

.theme-btn-compact[data-theme="spark"].active {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    color: #000;
}

.sens-input-mini {
    width: 70px;
    padding: 6px 8px;
    font-size: 11px;
    background: var(--bg-secondary);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s ease;
}

.sens-input-mini:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.volume-slider-mini {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.volume-slider-mini:hover {
    background: var(--bg-hover);
}

.volume-slider-mini::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider-mini::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-glow);
}

.volume-slider-mini::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider-mini::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-glow);
}

.checkbox-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-mini input[type="checkbox"] {
    display: none;
}

.checkbox-custom-mini {
    width: 14px;
    height: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 3px;
    background: var(--bg-secondary);
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom-mini:hover {
    border-color: var(--accent-color);
    background: var(--bg-hover);
}

.checkbox-mini input:checked + .checkbox-custom-mini {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-mini input:checked + .checkbox-custom-mini::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 11px;
    color: #000;
    font-weight: bold;
}

.menu-section.active {
    display: block;
}

/* --- COMPACT STATS LAYOUT --- */
.stats-compact-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stats-row-tight {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    min-width: 140px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stats-card.full-width {
    width: 100%;
    max-width: 600px;
}

.username-input-compact {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Poppins', 'Segoe UI', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.username-input-compact:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.02);
    background: var(--bg-hover);
}

.username-input-compact::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.7;
}


.streak-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 4px rgba(255, 165, 0, 0.6));
}

.streak-simple {
    font-family: 'Poppins', 'Segoe UI', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.streak-simple .streak-number {
    font-family: 'Poppins', 'Segoe UI', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

.streak-card-simple {
    display: flex;
    align-items: center;
    min-width: 180px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.record-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-icon {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.record-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
}

.medals-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 8px;
    justify-self: center;
}

.medal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.medal-item:hover {
    background: var(--bg-hover);
    transform: scale(1.02);
}

.medal-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-left: 4px;
}

.medal-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .stats-row {
        flex-direction: column;
        align-items: center;
    }
    
    .medals-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stats-card {
        min-width: 280px;
    }
}

/* --- PLAY SECTION --- */
.time-selector {
    display: flex;
    justify-content: center;
    gap: 6px; /* Reduced from 8px */
    margin-bottom: 20px; /* Reduced from 25px */
    background: var(--card-bg);
    border-radius: 6px; /* Reduced from 8px */
    padding: 3px; /* Reduced from 4px */
    border: 1px solid var(--panel-border);
    max-width: 250px; /* Reduced from 300px */
    margin-left: auto;
    margin-right: auto;
}

/* --- CATEGORY SELECTOR --- */
.category-selector {
    display: flex;
    justify-content: center;
    gap: 8px; /* Reduced from 12px */
    margin-bottom: 20px; /* Reduced from 25px */
    padding: 0 15px; /* Reduced from 20px */
    position: relative;
}


.category-btn {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px; /* Reduced from 20px */
    padding: 10px 14px; /* Reduced from 12px 18px */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Exo 2', sans-serif;
    text-align: center;
    min-height: 70px;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 100px;
    justify-content: center;
}

.category-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    border-color: var(--primary-accent);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.category-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px var(--shadow-color);
    border-color: var(--primary-accent);
}

.category-icon {
    font-size: 16px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.category-btn.active .category-icon {
    filter: none;
}

.category-text {
    font-size: 12px;
    font-weight: 600;
}

.category-subtitle {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.category-btn.active .category-subtitle {
    color: var(--bg-color);
    opacity: 0.9;
}

.time-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.time-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 6px var(--shadow-color);
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    max-width: 420px; /* Reduced from 580px to match settings scale */
    margin: 0 auto 15px auto;
    transition: opacity 0.3s ease;
}

.game-modes-grid.hidden {
    display: none;
}

/* --- COMING SOON CARD --- */
.coming-soon-card {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border: 2px dashed var(--panel-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.7;
}

.coming-soon-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: grayscale(0.5);
}

.coming-soon-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coming-soon-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* --- MODE EXPANSION SLOTS --- */
.mode-expansion-slot {
    background: var(--card-bg);
    border: 2px dashed var(--panel-border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    position: relative;
}

.mode-expansion-slot:hover {
    opacity: 0.8;
    transform: translateY(-2px);
    border-color: var(--primary-accent);
}

.expansion-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.mode-expansion-slot:hover .expansion-icon {
    filter: none;
}

.mode-expansion-slot h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: 'Exo 2', sans-serif;
}

.mode-expansion-slot p {
    font-size: 12px;
    opacity: 0.8;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
}

/* --- PEEK TRAINER EFFECTS --- */
.life-lost-flash {
    animation: redFlash 0.2s ease-out;
}

@keyframes redFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 0, 0, 0.3); }
    100% { background-color: transparent; }
}

.life-heart {
    display: inline-block;
    margin: 0 4px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.life-heart.alive {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.5));
}

.life-heart.lost {
    transform: scale(0.8);
    opacity: 0.5;
    filter: grayscale(1);
}

.game-mode-btn {
    background: linear-gradient(145deg, var(--accent-color), var(--primary-accent));
    border: 3px solid var(--primary-accent);
    border-radius: 12px; /* Increased from 8px */
    padding: 8px 6px; /* Reduced from 12px 10px */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Reduced from 6px */
    position: relative;
    overflow: visible;
    min-height: 85px; /* Reduced from 120px */
    max-width: 130px; /* Reduced from 180px */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
    transform: perspective(1000px) rotateX(2deg);
}

.game-mode-btn:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.game-mode-btn .mode-icon {
    width: 20px; /* Reduced from 24px */
    height: 20px; /* Reduced from 24px */
    margin-bottom: 3px; /* Reduced from 4px */
    stroke: var(--primary-accent);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.game-mode-btn .mode-icon path,
.game-mode-btn .mode-icon circle,
.game-mode-btn .mode-icon line {
    transition: all 0.3s ease;
}

/* Precision icon (filled star) */
#start-classic-button .mode-icon path {
    stroke: none;
    fill: var(--primary-accent);
}

/* Gridshot icon (filled squares) */
#start-gridshot-button .mode-icon path {
    stroke: none;
    fill: var(--primary-accent);
}

/* Tracking icon (stroked circles) */
#start-tracking-button .mode-icon path {
    stroke: var(--primary-accent);
    fill: none;
}

/* Lock & Break icon (stroked shield) */
#start-locknbreak-button .mode-icon path,
#start-locknbreak-button .mode-icon line {
    stroke: var(--primary-accent);
    fill: none;
}

.game-mode-btn:hover .mode-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.game-mode-btn:hover .mode-icon path,
.game-mode-btn:hover .mode-icon circle,
.game-mode-btn:hover .mode-icon line {
    stroke: var(--primary-accent);
}

#start-classic-button:hover .mode-icon path,
#start-gridshot-button:hover .mode-icon path {
    fill: var(--primary-accent);
}

.game-mode-btn h3 {
    font-size: 12px; /* Reduced from 14px */
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.game-mode-btn p {
    font-size: 10px;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
    line-height: 1.2;
}

.game-mode-btn .best-score {
    font-size: 9px;
    color: var(--primary-accent);
    font-weight: 600;
    opacity: 0.7;
}

/* --- MODE TOOLTIP & INDICATORS --- */
.mode-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-accent), rgba(255, 255, 255, 0.1));
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-accent);
}

.mode-tooltip:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-accent);
}

.game-mode-btn:hover .mode-tooltip,
.mode-btn:hover .mode-tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
    animation: tooltipBounce 0.3s ease;
}

/* Right-click indicators removed - using only hover tooltip */

@keyframes tooltipBounce {
    0% { transform: translateX(-50%) translateY(10px); opacity: 0; }
    50% { transform: translateX(-50%) translateY(-5px); opacity: 0.8; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Pulse animation removed with indicators */


/* --- SETTINGS SECTION --- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 100%;
    align-items: start;
}

.settings-left-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-right-group {
    display: flex;
    flex-direction: column;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horizontal-setting {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
}

.volume-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.hover-sound-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.setting-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sens-controls {
    display: flex;
    gap: 10px;
}

/* Crosshair Settings */
.crosshair-settings {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.crosshair-preview {
    width: 100px;
    height: 100px;
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#crosshair-preview-canvas {
    cursor: crosshair;
}

.crosshair-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crosshair-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crosshair-control label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.crosshair-color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-option:hover {
    border-color: var(--text-secondary);
}

.color-option.active {
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--primary-accent);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    flex: 1;
}

.dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    padding: 10px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.dropdown-trigger:hover {
    border-color: var(--primary-accent);
    background: var(--card-hover-bg);
}

.dropdown-trigger.active {
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--shadow-color);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-accent);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    margin-top: 4px;
    overflow: hidden;
}

.custom-dropdown.open .dropdown-options,
.dropdown-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--panel-border);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: var(--card-hover-bg);
    color: var(--primary-accent);
}

.dropdown-option.active {
    background: var(--primary-accent);
    color: var(--bg-color);
}

.sens-input {
    width: 80px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    padding: 10px 12px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sens-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--shadow-color);
}

.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--card-bg);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--panel-border);
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--shadow-color);
}


.theme-options {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--panel-border);
}

.theme-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.theme-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* --- BACKGROUND TYPE BUTTONS --- */
.background-options {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--panel-border);
}

.background-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.background-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.background-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* --- STATS SECTION --- */
.stats-container {
    display: grid;
    grid-template-rows: auto auto;  /* Remove middle row (mode tabs) */
    gap: 12px;
    height: auto;
    min-height: auto;
    padding: 8px 0;
    max-width: 500px; /* Reduced from 700px */
    margin: 0 auto;
}

.stats-row-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* 6px'den 10px'e geri artırıldı - isim ile streak arası */
}

.username-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.streak-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--panel-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.username-field {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--panel-border);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 8px 12px;
    max-width: 200px;
    transition: all 0.3s ease;
}

.username-field:focus {
    outline: none;
    border-bottom-color: var(--primary-accent);
}

.stats-row-2 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 12px;
}

.stats-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.stats-table-container {
    flex: 1;
}

/* --- ALL STATS TABS --- */
/* Stats mode dropdown positioned separately */
#stats-mode-dropdown {
    position: relative;
    min-width: 120px;
}

#stats-mode-dropdown .dropdown-trigger {
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    transition: all 0.2s ease;
}

#stats-mode-dropdown .dropdown-trigger:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-accent);
}

#stats-mode-dropdown .dropdown-arrow {
    transition: transform 0.2s ease;
    stroke: var(--text-secondary);
}

#stats-mode-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown opens upward */
#stats-mode-dropdown .dropdown-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 2px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    overflow: hidden;
    transition: all 0.2s ease;
}

#stats-mode-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background: var(--card-hover-bg);
}

.dropdown-option.active {
    background: var(--primary-accent);
    color: var(--bg-color);
}

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


/* Old stats-tab styles removed - now using dropdown */

.stats-row-3 {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
}

.stats-table-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    align-items: stretch;
    min-height: 48px;
}

.stats-table-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.stats-table-row .mode-name {
    justify-content: flex-start;
    text-align: left;
}

.stats-table-row .record-value {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.medal-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    font-weight: 600;
    padding-left: 4px;
}

.medal-count img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.medal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-left: 4px;
}

.medal-header img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stats-table-header span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mode-name-header {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.stats-table-header {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    background: var(--panel-border) !important;
}

.mode-name {
    font-weight: 600;
    color: var(--text-primary);
}

.record-value {
    font-weight: 700;
    color: var(--primary-accent);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-accent);
}

.medals-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


/* --- MEDAL ICONS --- */
.medal-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.medal-icon-large {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.record-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.medal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.medal-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* --- STREAK DISPLAY --- */

.streak-card {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    width: fit-content;
    margin: 0 auto;
}

.streak-icon {
    font-size: 16px;
}

.streak-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.streak-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-accent);
}

.streak-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


.mode-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 160px;
}

.mode-card:hover,
.mode-card:focus {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    outline: none;
}

.mode-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-accent);
    stroke-width: 1.5;
    margin-bottom: 12px;
    transition: stroke 0.3s ease;
    flex-shrink: 0;
}
.mode-icon path, .mode-icon circle, .mode-icon line {
    stroke: var(--primary-accent);
    fill: none;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

#start-classic-button .mode-icon path {
    stroke: none;
    fill: var(--primary-accent);
}


.mode-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex-shrink: 0;
}

.mode-card p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-score {
    font-size: 12px;
    color: var(--text-primary);
    margin-top: auto;
    font-weight: bold;
    opacity: 0.8;
    flex-shrink: 0;
}

/* --- SETTINGS --- */
.settings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px 35px;
    align-items: flex-start;
    border-top: 1px solid var(--panel-border);
    padding-top: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.setting-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.theme-selector {
    grid-column: 1 / -1; /* Span full width */
    order: -1; /* Move theme to top */
}

.theme-selector label {
    display: block;
    text-align: center; /* Center the label text */
    margin-bottom: 12px;
}

.theme-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 4px;
    background: var(--card-bg);
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-button {
    flex: 1;
    padding: 8px 16px;
    font-size: 12px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
}

.theme-button.active {
    background-color: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    transform: translateY(-1px);
}

.theme-button:hover:not(.active) {
    background-color: var(--card-hover-bg);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


.setting-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.setting-item .slider-value {
    float: right;
    font-weight: 700;
    color: var(--text-primary);
}

.sens-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.sens-input-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 700;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sens-input-group input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 10px var(--shadow-color);
}


/* --- CUSTOM DROPDOWN --- */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary-accent);
    box-shadow: 0 0 10px var(--shadow-color);
}

.custom-options {
    position: absolute;
    bottom: calc(100% + 8px); 
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); 
    transition: all 0.3s ease;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    outline: none;
}

.custom-option:hover,
.custom-option:focus {
    background-color: var(--card-hover-bg);
    transform: translateY(-2px);
    outline: none;
}

.custom-option.selected {
    color: var(--primary-accent);
    background-color: var(--card-hover-bg);
}


/* Range Slider Styles */
input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px;
    background: var(--card-bg);
    border-radius: 8px; outline: none; cursor: pointer;
    transition: all 0.3s ease;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: none;
    transition: background-color 0.3s ease;
}
input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px;
    background: var(--primary-accent);
    border-radius: 50%; border: none;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

/* --- PROFILE PAGE --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--panel-border);
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-pic svg {
    width: 50px;
    height: 50px;
    stroke: var(--text-secondary);
}
.username-input {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 5px 10px;
    width: auto;
    max-width: 300px;
    transition: all 0.3s ease;
}
.username-input:focus {
    outline: none;
    border-bottom-color: var(--primary-accent);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.stats-table th, .stats-table td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--panel-border);
}
.stats-table th {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stats-table td {
    font-size: 18px;
    font-weight: 400;
}
.stats-table th:nth-child(1),
.stats-table td:nth-child(1) {
    text-align: left;
}
.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
    text-align: left;
}
.stats-table th:nth-child(n+3),
.stats-table td:nth-child(n+3) {
    text-align: center;
}
.stats-table td:nth-child(1) {
    font-weight: 700;
    color: var(--text-primary);
}
.stats-table td:nth-child(2) {
    color: var(--score-color);
    font-weight: 700;
}
.stats-table thead th:nth-child(n+3) {
    font-size: 20px;
}
.stats-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- LEADERBOARD STYLES --- */


/* --- GAME AREA & UI --- */
#game-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    width: 1200px;
    height: 675px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0; /* Ensure no offset */
    transform: translateX(0); /* Reset any transforms */
}


#ui-container {
    position: absolute; 
    top: 20px; 
    left: 30px; 
    right: 30px;
    display: flex; 
    justify-content: space-between;
    align-items: flex-start; /* Align to top for symmetry */
    font-size: 24px; 
    font-weight: 700;
    pointer-events: none; 
    z-index: 110;
    text-shadow: 0 0 8px rgba(0,0,0,0.9);
}

#score-display {
    flex: 0;
    text-align: left;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
}

#timer-display {
    flex: 0;
    text-align: right;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.combo-section {
    flex: 1;
    text-align: center;
    padding: 0;
}

#score-display.hide, #timer-display.hide {
    display: none !important;
}

.combo-section.hide {
    display: none !important;
}

#lives-display {
    flex: 0;
    text-align: right;
    padding: 0;
    display: none;
    position: absolute;
    right: 0;
    top: 40px; /* Below timer */
}

/* Lives display is now always positioned correctly */

#lives-display.show {
    display: block !important;
}

#hits-display { 
    flex: 1;
    text-align: right;
    padding: 0;
    display: none; /* Sadece PEEK modunda gösterilecek */
}

#hits-display.show {
    display: block !important;
}

/* Score display is now always positioned correctly in left corner */

#timer-display { 
    text-align: right; 
}

.combo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hide combo section in Lock & Break mode */
.combo-section.locknbreak-hidden {
    display: none !important;
}

#score-display span { 
    color: var(--score-color); 
    transition: color 0.2s ease;
}

/* Penalty state - red score */
#score-display.penalty span {
    color: #FF4444 !important;
}
#timer-display span { 
    color: var(--time-color); 
    font-variant-numeric: tabular-nums;
}
#timer-display.critical span {
    color: #ff4757;
    animation: criticalPulse 0.5s ease-in-out infinite;
}
@keyframes criticalPulse { 50% { opacity: 0.7; } }

#hits-display span { 
    color: var(--score-color); 
    font-variant-numeric: tabular-nums;
}

#lives-display span {
    font-size: 32px;
    color: #ff4757;
    margin-right: 5px;
    text-shadow: 0 0 10px #ff4757;
    transition: all 0.3s ease;
}
#lives-display span.lost {
    opacity: 0.2;
    transform: scale(0.8);
}

/* Infinity lives indicator for Tracking and KT modes */
.infinity-lives-indicator {
    font-size: 32px;
    font-weight: bold;
    text-shadow: none; /* Remove any inherited glow */
}

.infinity-heart {
    color: #ff4757; /* Red heart like normal lives */
    text-shadow: 0 0 10px #ff4757;
}

.infinity-symbol {
    color: #808080 !important; /* Gray like score/timer text */
    text-shadow: none !important; /* No glow effect */
    margin-left: 4px; /* Small space from heart */
}

/* Score display is now always in left corner, no need for align-right */

/* --- COMBO EFFECTS --- */
#combo-display span {
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: inline-block;
}
#combo-display.combo-pop span {
    animation: comboPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes comboPop {
    50% { transform: scale(1.5) rotate(-5deg); }
}
#combo-display.level-1 span {
    color: var(--combo-color-1);
    text-shadow: 0 0 15px var(--combo-color-1);
}
#combo-display.level-2 span {
    color: var(--combo-color-2);
    text-shadow: 0 0 20px var(--combo-color-2);
}
#combo-display.level-3 span {
    color: var(--combo-color-3);
    text-shadow: 0 0 25px var(--combo-color-3);
    animation: level3Glow 0.5s ease-in-out infinite alternate;
}
@keyframes level3Glow {
    to { filter: brightness(1.3); }
}
#combo-timer-container {
    width: 120px; height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px; margin: 8px auto 0 auto;
    overflow: hidden; opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
#combo-timer-bar {
    width: 100%; height: 100%;
    border-radius: 3px;
}
.timer-active-3s #combo-timer-container,
.timer-active-2s #combo-timer-container,
.timer-active-p1-5 #combo-timer-container {
    opacity: 1;
}
.timer-active-3s #combo-timer-bar {
    background: linear-gradient(90deg, var(--combo-color-2), var(--combo-color-1));
    animation: countdown 1.5s linear forwards;
}
.timer-active-2s #combo-timer-bar {
    background: linear-gradient(90deg, var(--combo-color-3), var(--combo-color-2));
    animation: countdown 1.2s linear forwards;
}
.timer-active-p1-5 #combo-timer-bar {
    background: linear-gradient(90deg, var(--combo-color-3), var(--combo-color-3));
    animation: countdown 0.8s linear forwards;
}
@keyframes countdown {
    from { width: 100%; }
    to { width: 0%; }
}

.combo-section.level-up-1::before,
.combo-section.level-up-2::before,
.combo-section.level-up-3::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%; background: transparent;
    opacity: 0; z-index: -1; pointer-events: none;
    animation: energyBurst 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes energyBurst {
    0% { width: 8px; height: 8px; opacity: 1; box-shadow: 0 0 20px 10px currentColor; }
    100% { width: 200px; height: 200px; opacity: 0; box-shadow: 0 0 50px 30px transparent; }
}


/* --- OVERLAY MENUS (Pause, Game Over) --- */
.overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(18, 16, 25, 0.9);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; z-index: 120;
    border-radius: 8px; animation: fadeIn 0.3s ease;
}
.overlay h1 {
    font-size: 60px; margin-bottom: 20px;
    color: var(--primary-accent);
    text-shadow: none;
    transition: color 0.3s ease;
}
.overlay p { font-size: 24px; margin: 10px 0; color: var(--text-primary); }

#medal-display {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#medal-display.reveal {
    animation: fadeIn 0.4s ease-out, medalPop 0.5s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes medalPop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

#new-record-display {
    font-size: 28px;
    font-weight: 900;
    color: var(--feedback-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    order: -1; /* Puts it above the score */
    animation: newRecordGlow 1s ease-in-out infinite alternate;
}

@keyframes newRecordGlow {
    from {
        text-shadow: 0 0 10px var(--feedback-gold), 0 0 20px var(--feedback-gold);
        opacity: 0.8;
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px var(--feedback-gold), 0 0 40px var(--feedback-gold);
        opacity: 1;
    }
}

.menu-button {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.menu-button:hover,
.menu-button:focus {
    color: var(--text-primary);
    background: var(--card-hover-bg);
    outline: none;
}
.menu-button.active,
.menu-button:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}
.button-group { display: flex; gap: 15px; margin-top: 20px; }


/* --- SCREEN SHAKE EFFECTS DISABLED --- */
/* Shake animations removed for better user experience */

.shake-effect {
  /* Shake effect disabled */
}

.armor-hit-shake {
  /* Armor hit shake disabled */
}

.life-lost-shake {
  /* Life lost shake disabled */
}


/* --- GAME CONTAINER RESPONSIVE --- */
@media (max-width: 1240px) or (max-height: 715px) {
    #game-container {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto;
    }
    
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
    }
    
    #main-menu-container {
        position: relative;
        padding: 20px;
        min-height: auto;
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 880px) {
    .simple-aim-container { padding: 25px 30px; }
    .play-modes-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; 
        max-width: none;
    }
    .play-routine-btn {
        max-width: none;
        margin: 0 0 20px 0;
    }
    .settings-container { 
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: none;
    }
    .main-title { font-size: 40px; }
    .theme-buttons { max-width: 280px; }
    
    .logo-image { height: 80px; }
    .medal-icon-small { width: 16px; height: 16px; }
    .medal-icon-large { width: 50px; height: 50px; }
    .record-icon { width: 28px; height: 28px; }
    
    /* Stats responsive - 880px */
    .stats-container {
        grid-template-rows: auto auto auto;
        min-height: 500px;
        gap: 1px;
    }
    
    .stats-row-1 {
        gap: 6px;
    }
    
    /* Old all-stats-tabs removed - using dropdown now */
    
    .stats-table-row {
        grid-template-columns: 1fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr;
        padding: 10px;
    }
    
    .stats-row-2 {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Medal adjustments for medium screens */
    .medals-row {
        gap: 12px;
    }
    
    .medal-item {
        padding: 10px 8px;
    }
}

@media (max-width: 600px) {
    .stats-table {
        display: block;
        overflow-x: auto;
    }
    .profile-header {
        margin-bottom: 15px;
    }
    
    .logo-image { height: 70px; }
    .medal-icon-small { width: 14px; height: 14px; }
    .medal-icon-large { width: 40px; height: 40px; }
    .record-icon { width: 24px; height: 24px; }
    
    /* Stats responsive - 600px */
    .stats-container {
        min-height: 400px;
        gap: 1px;
    }
    
    
    /* Old all-stats-tabs removed - using dropdown now */
    
    /* Old stats-tab removed - using dropdown now */
    
    .stats-table-row {
        grid-template-columns: 1fr 1fr 0.7fr 0.7fr 0.7fr 0.7fr;
        padding: 8px;
        font-size: 12px;
    }
    
    /* Medal responsiveness */
    .medals-row {
        gap: 8px;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .medal-item {
        padding: 12px 8px;
        gap: 6px;
    }
    
    .medal-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .medal-item span:last-child {
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Streak cards responsive */
    .streak-card {
        padding: 12px;
        gap: 10px;
    }
    
    .streak-icon {
        font-size: 20px;
    }
    
    .streak-number {
        font-size: 16px;
    }
    
    .stats-display {
        min-width: 280px;
        gap: 15px;
    }
    .simple-aim-container {
        padding: 20px 25px;
        max-width: 95%;
    }
    .main-menu-header {
        margin-bottom: 20px;
        min-height: 50px;
    }
    .main-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .mode-card {
        padding: 15px 10px;
        min-height: 140px;
    }
    .theme-buttons { 
        max-width: 250px;
        gap: 8px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .medals-row {
        gap: 6px;
        grid-template-columns: repeat(4, 1fr);
    }
    
    .medal-item {
        padding: 10px 6px;
        gap: 4px;
        min-width: 50px;
    }
    
    .medal-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .medal-item span:last-child {
        font-size: 11px;
    }
    
    .streak-card {
        padding: 10px;
        gap: 8px;
    }
    
    .streak-icon {
        font-size: 18px;
    }
    
    .streak-number {
        font-size: 14px;
    }
    
    .stats-display {
        min-width: 260px;
        gap: 12px;
    }
}

/* --- DAILY ROUTINE STYLES --- */

/* Daily Routine Main Button */
.daily-routine-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    margin-bottom: 25px;
    background: linear-gradient(145deg, var(--accent-color), var(--primary-accent));
    border: 3px solid var(--primary-accent);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
    transform: perspective(1000px) rotateX(2deg);
}

.daily-routine-btn:hover {
    border-color: var(--primary-accent);
    box-shadow: 0 8px 32px var(--shadow-color);
    transform: translateY(-2px);
}

.routine-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.routine-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.routine-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.routine-info p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.routine-streak {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.streak-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-accent);
    line-height: 1;
}

.streak-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Streak Display */
.streak-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.streak-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.streak-icon {
    font-size: 24px;
    line-height: 1;
}

.streak-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.streak-info .streak-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-accent);
    line-height: 1;
}

.streak-info .streak-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Routine Transition Screen */
#routine-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    padding: 40px;
}

.routine-progress {
    width: 100%;
    max-width: 500px;
}

.progress-header h1 {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--combo-color-1), var(--combo-color-2));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.next-mode-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mode-icon-large {
    width: 80px;
    height: 80px;
    color: var(--primary-accent);
}

.mode-icon-large svg {
    width: 100%;
    height: 100%;
}

.next-mode-display h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.next-mode-display p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.mode-feedback {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
    background: var(--panel-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-score, .feedback-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.feedback-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feedback-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-accent);
}

.transition-buttons {
    display: flex;
    gap: 20px;
}

.menu-button.secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.menu-button.secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/* Routine Complete Screen */
#routine-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    padding: 40px;
}

.completion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.completion-icon {
    font-size: 64px;
    line-height: 1;
}

.completion-header h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.streak-celebration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--panel-bg);
    border: 2px solid var(--primary-accent);
    border-radius: 15px;
}

.streak-celebration .streak-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-accent);
    line-height: 1;
}

.streak-celebration .streak-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.routine-summary {
    width: 100%;
    max-width: 600px;
}

.routine-summary h2 {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.summary-icon {
    font-size: 28px;
    line-height: 1;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-accent);
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--panel-bg);
    border: 2px solid var(--primary-accent);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.rating-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-accent);
}

.completion-buttons {
    display: flex;
    gap: 20px;
}

/* Responsive Design for Routine Elements */
@media (max-width: 880px) {
    .daily-routine-btn {
        padding: 18px 20px;
        margin-bottom: 20px;
    }
    
    .routine-header {
        gap: 15px;
    }
    
    .routine-icon {
        width: 40px;
        height: 40px;
    }
    
    .routine-info h2 {
        font-size: 20px;
    }
    
    .streak-number {
        font-size: 24px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .completion-header h1 {
        font-size: 32px;
    }
    
    .streak-celebration .streak-number {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .daily-routine-btn {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .routine-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .streak-display {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mode-feedback {
        flex-direction: column;
        gap: 20px;
    }
    
    .transition-buttons,
    .completion-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .transition-buttons .menu-button,
    .completion-buttons .menu-button {
        width: 100%;
    }
}


/* --- MODE INFO POPUP STYLES --- */
.mode-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(8px);
}

.popup-content {
    background: linear-gradient(145deg, var(--panel-bg), rgba(0, 0, 0, 0.8));
    border: 3px solid var(--primary-accent);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 95%;
    position: relative;
    box-shadow: 0 0 50px var(--shadow-color), 0 0 100px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: var(--primary-accent);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.popup-close:hover {
    background: var(--primary-accent);
    color: white;
    transform: rotate(90deg);
}

.popup-header h3 {
    color: var(--primary-accent);
    font-size: 28px;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px var(--shadow-color);
}

.popup-body p {
    color: #fff;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 17px;
    text-align: center;
    font-weight: 500;
}

.popup-tips {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-accent);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.popup-tips h4 {
    color: var(--primary-accent);
    font-size: 20px;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.popup-tips ul {
    color: #fff;
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.popup-tips li {
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.popup-tips li:before {
    content: "•";
    color: var(--primary-accent);
    font-size: 20px;
    position: absolute;
    left: 8px;
    top: -2px;
}

.popup-footer {
    margin-top: 35px;
    text-align: center;
}

.popup-start-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.popup-start-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.popup-start-btn.active,
.popup-start-btn:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

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

@keyframes popupSlideIn {
    0% { 
        opacity: 0; 
        transform: scale(0.7) translateY(50px); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05) translateY(-10px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* Responsive popup styles */
@media (max-width: 600px) {
    .popup-content {
        padding: 25px;
        max-width: 95%;
    }
    
    .popup-header h3 {
        font-size: 22px;
    }
    
    .popup-start-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* Responsive settings grid */
@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .settings-left-group {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .crosshair-settings {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Genişlik odaklı menu responsive */
@media (min-width: 1400px) {
    .menu-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .settings-grid {
        gap: 60px;
    }
    
    .settings-left-group {
        gap: 30px;
    }
}

/* --- CHECKBOX STYLES --- */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--panel-border);
    border-radius: 4px;
    background: var(--card-bg);
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary-accent);
    background: var(--card-hover-bg);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

/* --- CROSSHAIR COLOR DROPDOWN --- */
.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid var(--panel-border);
    flex-shrink: 0;
}

#crosshair-color-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

#crosshair-color-preview {
    background: #FFFFFF;
}

.color-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.color-dropdown-option .color-preview {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-dropdown-option:hover .color-preview {
    border-color: var(--primary-accent);
    transform: scale(1.1);
}

.color-dropdown-option.active .color-preview {
    border-color: var(--primary-accent);
    box-shadow: 0 0 6px var(--primary-accent);
}

/* Crosshair color dropdown - open upwards */
#crosshair-color-options {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
    transform: translateY(5px);
}

#crosshair-color-dropdown.open #crosshair-color-options,
#crosshair-color-options.show {
    transform: translateY(0);
}


/* --- MODE TYPE SECTION (Challenge/Endless) --- */
.mode-type-section {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px; /* 15px'den 8px'e azaltıldı */
}

.mode-type-btn {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    min-width: 130px;
}

.mode-type-btn:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.mode-type-btn.active {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
}

.mode-type-btn h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
}

.mode-type-btn p {
    margin: 0;
    font-size: 10px;
    opacity: 0.8;
}

/* --- CATEGORY GRID --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.category-card h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-accent);
    font-family: 'Exo 2', sans-serif;
}

.category-modes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.mode-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.mode-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mode-divider {
    display: flex;
    align-items: center;
    margin: 8px 0 8px 0; /* 15px'den 8px'e azaltıldı */
    opacity: 0.6;
}

.mode-divider::before,
.mode-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
}

.mode-divider span {
    padding: 0 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Routine Completion Message */
.routine-completion-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.routine-completion-content {
    background: linear-gradient(135deg, var(--panel-bg), rgba(var(--primary-accent-rgb), 0.2));
    border: 2px solid var(--primary-accent);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    font-family: 'Exo 2', sans-serif;
    animation: scaleIn 0.5s ease;
}

.routine-completion-content h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--combo-color-1);
}

.routine-completion-content p {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.routine-completion-content button {
    background: var(--primary-accent);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.routine-completion-content button:hover {
    background: var(--combo-color-1);
    transform: translateY(-2px);
}

@keyframes smoothSlideIn {
    0% { 
        transform: translateY(30px) translateZ(0); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0) translateZ(0); 
        opacity: 1; 
    }
}

@keyframes scaleIn {
    0% { 
        transform: scale(0.7) translate(0, 0); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1) translate(0, 0); 
        opacity: 1; 
    }
}
/* Routine Transition Screen Styles */
#routine-transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.routine-transition-content {
    background: linear-gradient(135deg, var(--panel-bg), rgba(var(--primary-accent-rgb), 0.2));
    border: 2px solid var(--primary-accent);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    font-family: 'Exo 2', sans-serif;
    animation: smoothSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 600px;
    width: 90%;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform, opacity;
}

.routine-transition-content h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--combo-color-1);
}

#current-step-info {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

#next-step-info {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-accent);
}

.routine-progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.progress-step {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    min-width: 80px;
}

.progress-step.completed {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
}

.progress-step.active {
    background: rgba(var(--primary-accent-rgb), 0.3);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    animation: pulse 2s infinite;
}

.routine-countdown {
    font-size: 22px;
    font-weight: 700;
    color: var(--combo-color-1);
}

#routine-countdown-timer {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-accent);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* --- NEW HORIZONTAL SCROLLABLE MODE BUTTONS --- */

.modes-scroll-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 8px 0; /* 15px'den 8px'e azaltıldı */
}

.modes-scroll-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
    padding-left: 30px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modes-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mode-btn-compact {
    flex: 0 0 auto;
    min-width: 80px;
    height: 50px;
    background: var(--panel-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--primary-accent);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.mode-btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--bg-gradient-1), var(--bg-gradient-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mode-btn-compact:hover {
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.mode-btn-compact:hover::before {
    opacity: 1;
}

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

.mode-label {
    position: relative;
    z-index: 1;
    display: block;
}

/* Hover Preview Card */
.mode-preview-card {
    position: absolute;
    bottom: 60px; /* 80px'den 60px'e azaltıldı */
    left: 50%;
    transform: translateX(-50%);
    width: 280px; /* 300px'den 280px'e azaltıldı */
    background: var(--panel-bg);
    border: 2px solid var(--primary-accent);
    border-radius: 12px;
    padding: 15px; /* 20px'den 15px'e azaltıldı */
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.mode-preview-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.preview-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.preview-svg {
    width: 100%;
    height: 100%;
    color: var(--primary-accent);
}

.preview-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-accent);
    letter-spacing: 1px;
}

.preview-content {
    display: flex;
    gap: 15px;
}

.preview-canvas {
    width: 120px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.preview-description {
    flex: 1;
}

.preview-description p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 3px 0;
    line-height: 1.3;
}

.medal-range {
    margin-top: 10px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary-accent);
    font-weight: bold;
}

/* Responsive Design for Compact Mode Buttons */
@media (max-width: 768px) {
    .modes-scroll-container {
        max-width: 100%;
        padding: 15px 0;
    }
    
    .mode-btn-compact {
        min-width: 70px;
        height: 45px;
        font-size: 13px;
    }
    
    .mode-preview-card {
        width: 90%;
        max-width: 280px;
        left: 5%;
        transform: none;
    }
    
    .mode-preview-card.show {
        transform: translateY(-10px);
    }
    
    .preview-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-canvas {
        width: 100%;
        height: 70px;
    }
}

/* Animation for compact buttons */
@keyframes compactButtonEnter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mode-btn-compact {
    animation: compactButtonEnter 0.4s ease forwards;
}

.mode-btn-compact:nth-child(1) { animation-delay: 0.1s; }
.mode-btn-compact:nth-child(2) { animation-delay: 0.15s; }
.mode-btn-compact:nth-child(3) { animation-delay: 0.2s; }
.mode-btn-compact:nth-child(4) { animation-delay: 0.25s; }
.mode-btn-compact:nth-child(5) { animation-delay: 0.3s; }
.mode-btn-compact:nth-child(6) { animation-delay: 0.35s; }

/* --- FOOTER STYLES --- */
.site-footer {
    position: static; /* Natural flow için static position */
    background: rgba(0, 0, 0, 0.6); /* Daha şeffaf arka plan */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 10px 0; /* 15px'den 10px'e azaltıldı */
    margin-top: 15px; /* 25px'den 15px'e azaltıldı */
    border-radius: 8px 8px 0 0; /* Üst köşeleri yuvarlat */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: 'Exo 2', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-link:hover {
    color: var(--primary-accent);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.coffee-link {
    color: #FFDD44 !important;
}

.coffee-link:hover {
    color: #FFCC00 !important;
}

.coffee-icon {
    font-size: 14px;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin: 0;
    font-family: 'Exo 2', sans-serif;
}

/* --- MOBILE WARNING MODAL STYLES --- */
.mobile-warning-content {
    text-align: center;
    padding: 20px 0;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mobile-warning-content h4 {
    color: var(--primary-accent);
    font-size: 24px;
    margin-bottom: 15px;
}

.mobile-warning-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.mobile-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-features h5 {
    color: var(--primary-accent);
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.mobile-features ul {
    list-style: none;
    padding: 0;
}

.mobile-features li {
    padding: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* --- MODAL STYLES --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--panel-bg);
    border: 2px solid var(--primary-accent);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--primary-accent);
    font-size: 20px;
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.modal-close:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 25px 25px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Exo 2', sans-serif;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-info p {
    margin: 0;
    font-size: 14px;
}

.contact-info a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--combo-color-1);
}

/* Enhanced Privacy Policy Styles */
.privacy-overview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(var(--primary-accent-rgb), 0.1);
    border: 1px solid var(--primary-accent);
    border-radius: 12px;
    margin-bottom: 25px;
}

.privacy-icon {
    font-size: 32px;
    line-height: 1;
}

.privacy-summary h3 {
    color: var(--primary-accent);
    font-size: 18px;
    margin: 0 0 8px 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

.privacy-summary p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.privacy-section {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.privacy-section.expanded {
    border-color: var(--primary-accent);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.section-header:hover {
    background: rgba(var(--primary-accent-rgb), 0.08);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-accent-rgb), 0.1);
    border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--primary-accent);
}

.privacy-section.expanded .section-icon {
    background: var(--primary-accent);
    color: var(--bg-color);
}

.section-info {
    flex: 1;
}

.section-info h4 {
    color: var(--primary-accent);
    font-size: 18px;
    margin: 0 0 6px 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.privacy-section.expanded .section-info h4 {
    color: var(--combo-color-1);
}

.section-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-section:hover .section-info p {
    color: rgba(255, 255, 255, 0.85);
}

.toggle-arrow {
    color: var(--primary-accent);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.privacy-section.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.privacy-section.expanded .section-content {
    max-height: 500px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.data-card {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-card.collect {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

.data-card.no-collect {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.data-card h5 {
    color: var(--primary-accent);
    font-size: 14px;
    margin: 0 0 10px 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
}

.data-card ul {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.data-card li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.data-card li::before {
    content: "•";
    color: var(--primary-accent);
    position: absolute;
    left: 0;
}

.storage-info {
    padding: 20px;
}

.storage-info p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.storage-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-icon {
    font-size: 18px;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.item-info strong {
    color: var(--primary-accent);
    font-size: 14px;
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    margin-bottom: 3px;
}

.item-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.2;
}

.analytics-info {
    padding: 20px;
}

.feature-badge {
    display: inline-block;
    background: var(--primary-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.analytics-info p {
    margin: 0 0 12px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.feature-list {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.feature-list li::before {
    content: "✓";
    color: #2ECC71;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.privacy-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-footer p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.privacy-footer a {
    color: var(--primary-accent);
    text-decoration: none;
}

.privacy-footer a:hover {
    color: var(--combo-color-1);
}

.privacy-footer small {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Responsive Privacy Policy */
@media (max-width: 768px) {
    .privacy-overview {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 18px;
    }
    
    .privacy-icon {
        font-size: 28px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
    
    .section-header {
        padding: 16px 20px;
        gap: 14px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .section-info h4 {
        font-size: 16px;
    }
    
    
    .storage-item {
        gap: 14px;
        padding: 16px;
    }
    
    .item-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .feature-list li {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .feature-badge {
        padding: 6px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* Ana menü mobile optimizasyonu */
    #main-menu-container {
        padding: 10px;
    }
    
    .menu-container {
        padding: 15px 20px;
    }
    
    .menu-header {
        margin-bottom: 20px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .tagline {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .menu-nav {
        margin-bottom: 15px;
    }
    
    .nav-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .routine-btn {
        padding: 12px 24px;
        min-width: 160px;
    }
    
    .routine-btn h2 {
        font-size: 16px;
    }
    
    .routine-btn p {
        font-size: 10px;
    }
    
    .mode-type-btn {
        padding: 10px 16px;
        min-width: 100px;
    }
    
    .mode-type-btn h3 {
        font-size: 14px;
    }
    
    .mode-type-btn p {
        font-size: 9px;
    }
    
    .mode-btn-compact {
        min-width: 50px;
        height: 35px;
        font-size: 11px;
    }
    
    .site-footer {
        padding: 8px 0;
        margin-top: 12px;
    }
    
    .footer-links {
        gap: 8px;
    }
    
    .footer-link {
        font-size: 11px;
    }
    
    .footer-copyright p {
        font-size: 10px;
    }
    
    .privacy-sections {
        gap: 10px;
    }
    
    .section-header {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .section-info h4 {
        font-size: 15px;
    }
    
    .storage-info, .analytics-info {
        padding: 18px;
    }
    
    .storage-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .item-icon {
        align-self: center;
    }
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-links {
        gap: 12px;
    }
    
    .footer-link {
        font-size: 11px;
    }
    
    .footer-copyright p {
        font-size: 9px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Hide footer in game mode */
#game-container:not(.hidden) ~ .site-footer {
    display: none;
}

/* --- SCROLL BAR GİZLE --- */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE ve Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* --- CUSTOM SCROLLBAR FOR PRIVACY POLICY MODAL --- */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-accent);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--combo-color-1);
}

.modal-content::-webkit-scrollbar-thumb:active {
    background: var(--combo-color-2);
}

/* Firefox scrollbar */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-accent) rgba(0, 0, 0, 0.2);
}

/* === NEW MODE SELECTION STYLES === */

/* Universal Button Style - Based on nav-tab design */
.universal-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.universal-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.universal-btn.active,
.universal-btn:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

#play-section {
    padding: 15px 0;
}

/* Play Option Buttons - Both ROUTINE and MODES */
.play-option-section {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.play-option-btn {
    max-width: 400px;
    width: 100%;
    padding: 16px 24px;
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    outline: none;
    box-shadow: 0 0 15px var(--accent-glow), 0 3px 10px rgba(0, 0, 0, 0.15);
}

.play-option-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.play-option-btn.active,
.play-option-btn:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.play-option-btn h2 {
    font-size: 1.4em;
    margin: 0 0 6px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-option-btn p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9em;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

/* Mode Selection Container - Exactly like main menu */
.mode-selection-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--background-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.mode-selection-container.hidden {
    display: none;
}

.mode-container {
    max-width: 800px;
    width: 100%;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    background-color: var(--card-background);
}

/* Mode Header - Similar to main menu header */
.mode-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.mode-header .back-button {
    position: absolute;
    left: 0;
    top: 0;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.mode-header .back-button:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.mode-header .back-button.active,
.mode-header .back-button:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.mode-header .logo-image {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.mode-header .tagline {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95em;
}

/* Mode Cards Grid */
.mode-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Mode Cards */
.mode-card {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-accent);
}

/* Mode Image Placeholder */
.mode-image-placeholder {
    height: 80px;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

/* Mode Symbols */
.mode-symbol {
    width: 40px;
    height: 40px;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: modeSymbolGlow 2s ease-in-out infinite alternate;
}

@keyframes modeSymbolGlow {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Classic/Flick - Single Ball */
.mode-symbol-classic::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.3);
}

/* Gridshot - 3x3 Small Balls */
.mode-symbol-gridshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 4px;
}
.mode-symbol-gridshot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
    grid-column: 1;
    grid-row: 1;
}
.mode-symbol-gridshot::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
    grid-column: 2;
    grid-row: 1;
}
.grid-ball {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

/* Tracking - Random Moving Ball */
.mode-symbol-tracking::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 12px;
    left: 12px;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
    animation: trackingRandomMove 3s ease-in-out infinite;
}
@keyframes trackingRandomMove {
    0% { transform: translate(0, 0); }
    25% { transform: translate(8px, -6px); }
    50% { transform: translate(-4px, 8px); }
    75% { transform: translate(6px, 4px); }
    100% { transform: translate(0, 0); }
}

/* Lock & Break - Shield with Top */
.mode-symbol-locknbreak::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 24px;
    background: white;
    clip-path: polygon(50% 0%, 15% 20%, 15% 80%, 50% 100%, 85% 80%, 85% 20%);
    top: 8px;
    left: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.mode-symbol-locknbreak::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 6px;
    background: white;
    border-radius: 4px 4px 0 0;
    top: 6px;
    left: 16px;
}

/* Reaction - Lightning Flashing Red/Green */
.mode-symbol-reaction::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 30px;
    background: #ff4444;
    clip-path: polygon(30% 0%, 0% 60%, 40% 60%, 70% 100%, 100% 40%, 60% 40%);
    top: 5px;
    left: 10px;
    animation: reactionFlash 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px currentColor);
}
@keyframes reactionFlash {
    0%, 50% { background: #ff4444; }
    51%, 100% { background: #00ff00; }
}

/* Precision - 5 Tiny Balls Randomly Positioned */
.mode-symbol-precision {
    position: relative;
}
.precision-ball {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: inset -1px -1px 1px rgba(0, 0, 0, 0.3);
}
.precision-ball:nth-child(1) { top: 8px; left: 12px; }
.precision-ball:nth-child(2) { top: 22px; left: 6px; }
.precision-ball:nth-child(3) { top: 15px; left: 28px; }
.precision-ball:nth-child(4) { top: 30px; left: 20px; }
.precision-ball:nth-child(5) { top: 5px; left: 24px; }

/* Decision - 3 Balls (1 Green, 2 Red) */
.mode-symbol-decision {
    position: relative;
}
.mode-symbol-decision::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    top: 14px;
    left: 14px;
    box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.3);
}
.mode-symbol-decision::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    top: 8px;
    left: 6px;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}
.decision-red-ball {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    top: 22px;
    right: 6px;
    box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

/* Keyboard Tempo - Keys */
.mode-symbol-keyboard-tempo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.mode-symbol-keyboard-tempo::before {
    content: '';
    width: 24px;
    height: 8px;
    background: white;
    border-radius: 2px;
}
.mode-symbol-keyboard-tempo::after {
    content: '';
    width: 16px;
    height: 8px;
    background: white;
    border-radius: 2px;
}

/* Horizontal Tracking - Vertical Ellipse Moving Horizontally */
.mode-symbol-horizontal-tracking::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 8px;
    left: 16px;
    box-shadow: inset -1px -3px 4px rgba(0, 0, 0, 0.3);
    animation: horizontalTrackingMove 2s ease-in-out infinite;
}
@keyframes horizontalTrackingMove {
    0%, 100% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
}

/* Key Aim - Ball with Letter */
.mode-symbol-key-aim::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 8px;
    left: 8px;
    box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.3);
}
.mode-symbol-key-aim::after {
    content: 'A';
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    top: 13px;
    left: 15px;
    font-family: 'Exo 2', sans-serif;
    z-index: 1;
}

/* Animated Elements */
.animated-targets {
    display: flex;
    gap: 20px;
}

.target-dot {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    animation: targetPulse 2s infinite;
}

.target-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.target-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

.grid-pattern {
    display: grid;
    grid-template-columns: repeat(3, 20px);
    gap: 10px;
}

.grid-dot {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.grid-dot.active {
    background: white;
    animation: gridPulse 1s infinite;
}

@keyframes gridPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.precision-targets {
    display: flex;
    gap: 30px;
}

.precision-dot {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: precisionFloat 3s infinite;
}

.precision-dot:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes precisionFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.moving-target {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    animation: trackingMove 3s infinite linear;
}

@keyframes trackingMove {
    0% { transform: translateX(-50px); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(-50px); }
}

.armor-target {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.armor-layer {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: armorRotate 2s infinite linear;
}

@keyframes armorRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.signal-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: signalBlink 2s infinite;
}

.signal-circle.red {
    background: #ff4444;
}

@keyframes signalBlink {
    0%, 70% { background: #ff4444; }
    71%, 100% { background: #44ff44; }
}

.decision-targets {
    display: flex;
    gap: 15px;
}

.decision-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.decision-dot.red {
    background: #ff4444;
}

.decision-dot.green {
    background: #44ff44;
    animation: decisionPulse 1.5s infinite;
}

@keyframes decisionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.movement-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.player-indicator {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    animation: playerMove 2s infinite;
}

@keyframes playerMove {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(20px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-20px); }
}

.wasd-keys {
    font-size: 0.8em;
    font-weight: bold;
    opacity: 0.9;
}

/* Mode Info */
.mode-info {
    padding: 8px;
    text-align: center;
}

.mode-name {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.mode-description {
    color: var(--text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.1;
    font-size: 0.7em;
}

.mode-play-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.mode-play-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.mode-play-btn.active,
.mode-play-btn:active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Game Type Selector */
.game-type-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 0 20px;
}

.game-type-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    outline: none;
}

.game-type-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
}

.game-type-btn.active {
    background: var(--primary-accent);
    color: var(--bg-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.type-icon {
    font-size: 1.2em;
}

.type-text {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mode-selection-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .mode-selection-title {
        order: -1;
    }
    
    .mode-category-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-category-section.active {
        grid-template-columns: 1fr;
    }
    
    .game-type-selector {
        flex-direction: column;
        align-items: center;
    }
}