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

/* ====== THEME SYSTEM - CSS VARIABLES ====== */
:root {
    /* Default Theme - Deep Space (Original) */
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-mid: #16213e;
    --bg-gradient-end: #0f3460;
    
    --primary-color: #ff7b00;
    --primary-glow: rgba(255, 123, 0, 0.3);
    --primary-light: #ff5500;
    --primary-dark: #ff3300;
    
    --secondary-color: #00ff88;
    --secondary-glow: rgba(0, 255, 136, 0.7);
    --secondary-dark: #00cc6a;
    
    --accent-color: #6a00ff;
    --accent-glow: rgba(106, 0, 255, 0.7);
    --accent-dark: #5200cc;
    
    --text-color: #ffffff;
    --container-border: #ff7b00;
    --container-shadow: rgba(255, 123, 0, 0.3);
    
    --orbit-color: rgba(255, 123, 0, 0.3);
    --nebula-purple: #6a00ff;
    --nebula-blue: #0099ff;
    --nebula-orange: #ff7b00;
}

/* Cosmic Purple Theme */
[data-theme="cosmic-purple"] {
    --bg-gradient-start: #1a0a2e;
    --bg-gradient-mid: #2d1b4e;
    --bg-gradient-end: #16003b;
    
    --primary-color: #b967ff;
    --primary-glow: rgba(185, 103, 255, 0.3);
    --primary-light: #d896ff;
    --primary-dark: #9d4edd;
    
    --secondary-color: #06ffa5;
    --secondary-glow: rgba(6, 255, 165, 0.7);
    --secondary-dark: #05d68a;
    
    --accent-color: #ff6ec7;
    --accent-glow: rgba(255, 110, 199, 0.7);
    --accent-dark: #ff2f9f;
    
    --container-border: #b967ff;
    --container-shadow: rgba(185, 103, 255, 0.3);
    --orbit-color: rgba(185, 103, 255, 0.3);
    
    --nebula-purple: #b967ff;
    --nebula-blue: #06ffa5;
    --nebula-orange: #ff6ec7;
}

/* Emerald Dream Theme */
[data-theme="emerald-dream"] {
    --bg-gradient-start: #0a2e1a;
    --bg-gradient-mid: #1b4e2d;
    --bg-gradient-end: #003b16;
    
    --primary-color: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.3);
    --primary-light: #2fffaa;
    --primary-dark: #00cc6a;
    
    --secondary-color: #00d4ff;
    --secondary-glow: rgba(0, 212, 255, 0.7);
    --secondary-dark: #0099cc;
    
    --accent-color: #7fff00;
    --accent-glow: rgba(127, 255, 0, 0.7);
    --accent-dark: #66cc00;
    
    --container-border: #00ff88;
    --container-shadow: rgba(0, 255, 136, 0.3);
    --orbit-color: rgba(0, 255, 136, 0.3);
    
    --nebula-purple: #00ff88;
    --nebula-blue: #00d4ff;
    --nebula-orange: #7fff00;
}

/* Neon Sunset Theme */
[data-theme="neon-sunset"] {
    --bg-gradient-start: #2e0a1a;
    --bg-gradient-mid: #4e1b2d;
    --bg-gradient-end: #3b0016;
    
    --primary-color: #ff2f9f;
    --primary-glow: rgba(255, 47, 159, 0.3);
    --primary-light: #ff5fb8;
    --primary-dark: #cc2680;
    
    --secondary-color: #ffd700;
    --secondary-glow: rgba(255, 215, 0, 0.7);
    --secondary-dark: #ffaa00;
    
    --accent-color: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.7);
    --accent-dark: #0099cc;
    
    --container-border: #ff2f9f;
    --container-shadow: rgba(255, 47, 159, 0.3);
    --orbit-color: rgba(255, 47, 159, 0.3);
    
    --nebula-purple: #ff2f9f;
    --nebula-blue: #00d4ff;
    --nebula-orange: #ffd700;
}

/* Arctic Aurora Theme */
[data-theme="arctic-aurora"] {
    --bg-gradient-start: #0a1e2e;
    --bg-gradient-mid: #1b2e4e;
    --bg-gradient-end: #00162b;
    
    --primary-color: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --primary-light: #2fe4ff;
    --primary-dark: #0099cc;
    
    --secondary-color: #b967ff;
    --secondary-glow: rgba(185, 103, 255, 0.7);
    --secondary-dark: #9d4edd;
    
    --accent-color: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.7);
    --accent-dark: #00cc6a;
    
    --container-border: #00d4ff;
    --container-shadow: rgba(0, 212, 255, 0.3);
    --orbit-color: rgba(0, 212, 255, 0.3);
    
    --nebula-purple: #b967ff;
    --nebula-blue: #00d4ff;
    --nebula-orange: #00ff88;
}

/* Solar Flare Theme */
[data-theme="solar-flare"] {
    --bg-gradient-start: #2e1a0a;
    --bg-gradient-mid: #4e2d1b;
    --bg-gradient-end: #3b1600;
    
    --primary-color: #ffaa00;
    --primary-glow: rgba(255, 170, 0, 0.3);
    --primary-light: #ffcc33;
    --primary-dark: #ff8800;
    
    --secondary-color: #ff2f00;
    --secondary-glow: rgba(255, 47, 0, 0.7);
    --secondary-dark: #cc2600;
    
    --accent-color: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.7);
    --accent-dark: #ffaa00;
    
    --container-border: #ffaa00;
    --container-shadow: rgba(255, 170, 0, 0.3);
    --orbit-color: rgba(255, 170, 0, 0.3);
    
    --nebula-purple: #ff8800;
    --nebula-blue: #ffaa00;
    --nebula-orange: #ffd700;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    padding: 20px;
    cursor: crosshair;
    transition: background 0.5s ease;
}

.container {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px var(--container-shadow);
    border: 2px solid var(--container-border);
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Music Toggle */
.music-toggle-container {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font: 12px 'Courier New', monospace;
    z-index: 50;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Theme Switcher */
.theme-switcher-container {
    position: absolute;
    top: 55px;
    right: 25px;
    z-index: 50;
}

.theme-button {
    background: rgba(13, 27, 42, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-color);
    font: 11px 'Courier New', monospace;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px var(--primary-glow);
}

.theme-button:hover {
    background: rgba(13, 27, 42, 0.95);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(13, 27, 42, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Theme Controls */
.theme-controls {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 5px;
}

.theme-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.theme-control-btn:active {
    transform: scale(0.95);
}

.theme-control-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.theme-option {
    padding: 10px 15px;
    color: var(--text-color);
    font: 11px 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Favorite Star Button */
.favorite-star {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.favorite-star:hover {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.favorite-star.favorited {
    opacity: 1;
    color: #FFD700;
    animation: star-favorite 0.5s ease;
}

@keyframes star-favorite {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5) rotate(72deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

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

.theme-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.theme-option:hover::before {
    transform: scaleY(1);
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.theme-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
    font-weight: bold;
}

.theme-option.active::before {
    transform: scaleY(1);
}

.theme-option .theme-preview {
    display: flex;
    gap: 3px;
    margin-left: 10px;
}

.theme-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 4px currentColor;
    animation: theme-preview-pulse 2s ease-in-out infinite;
}

.theme-preview-dot:nth-child(1) {
    animation-delay: 0s;
}

.theme-preview-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.theme-preview-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes theme-preview-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Theme Shortcuts Info */
.theme-shortcuts {
    padding: 8px 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-shortcuts small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

/* Theme Customizer Modal */
.theme-customizer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.theme-customizer-modal.active {
    display: flex;
}

.customizer-content {
    background: rgba(13, 27, 42, 0.98);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 50px var(--primary-glow);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

.customizer-header h3 {
    color: var(--primary-color);
    font-size: 24px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.close-customizer {
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-customizer:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg);
}

.customizer-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-picker-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-picker-group label {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.color-picker-group input[type="color"] {
    width: 80px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-picker-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.customizer-preview {
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.preview-star {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-glow);
    animation: preview-pulse 2s ease-in-out infinite;
}

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

.preview-text {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.customizer-actions {
    display: flex;
    gap: 10px;
}

.apply-custom-theme,
.reset-custom-theme {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font: bold 14px 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-custom-theme {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.apply-custom-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.reset-custom-theme {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.reset-custom-theme:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Theme Quick Notification Animation */
@keyframes theme-notif-slide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.theme-quick-notification {
    transition: all 0.3s ease;
}

.music-toggle input {
    appearance: none;
    width: 50px;
    height: 24px;
    background: #222;
    border-radius: 18px;
    position: relative;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.music-toggle input::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.music-toggle input:checked {
    background: var(--secondary-dark);
    box-shadow: 0 0 10px #ffffff;
}

.music-toggle input:checked::before {
    left: 28px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px #ffffff;
}

.music-toggle-container span {
    user-select: none;
}

/* Music Track Selector */
.music-track-btn {
    background: rgba(13, 27, 42, 0.8);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--secondary-glow);
    margin-left: 8px;
}

.music-track-btn:hover {
    background: rgba(13, 27, 42, 0.95);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.music-track-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(13, 27, 42, 0.95);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.music-track-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.track-header {
    padding: 12px 15px;
    background: rgba(0, 255, 136, 0.1);
    border-bottom: 1px solid var(--secondary-color);
    font: bold 13px 'Courier New', monospace;
    color: var(--secondary-color);
    text-align: center;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.track-option {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

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

.track-option:hover {
    background: rgba(0, 255, 136, 0.1);
    padding-left: 20px;
}

.track-option.active {
    background: rgba(0, 255, 136, 0.15);
    border-left: 3px solid var(--secondary-color);
}

.track-option.active::after {
    content: '▶';
    position: absolute;
    right: 15px;
    color: var(--secondary-color);
    font-size: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.track-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 5px var(--secondary-glow));
}

.track-name {
    font: 12px 'Courier New', monospace;
    color: white;
    flex: 1;
}

.track-option:hover .track-name {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-glow);
}

/* Track switching animation */
@keyframes track-switch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.music-switching {
    animation: track-switch 0.5s ease-in-out;
}

/* Galactic Center - The Repository */
.galactic-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-color), var(--primary-light), var(--primary-dark));
    border-radius: 50%;
    box-shadow:
        0 0 60px var(--primary-color),
        0 0 120px var(--primary-glow);
    animation: pulse 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    cursor: pointer;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Orbiting PRs */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--orbit-color);
    border-radius: 50%;
    transition: border-color 0.5s ease;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    animation: rotate 30s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    animation: rotate 40s linear infinite;
}

.pr {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d1b2a;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 0 15px var(--secondary-glow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pr:hover {
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--secondary-color);
    z-index: 20;
}

.pr.merged {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
    box-shadow: 0 0 15px var(--accent-glow);
}

.pr.open {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Enhanced Stars with Different Sizes and Twinkle Rates */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite alternate;
}

.star.small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.star.medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
    animation: twinkle-fast 2s infinite alternate;
}

.star.large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 1);
    animation: twinkle-slow 4s infinite alternate;
}

.star.colored {
    animation: color-shift 5s infinite alternate;
}

/* Floating Asteroids */
.asteroid {
    position: absolute;
    background: linear-gradient(135deg, #8b8b8b, #5a5a5a, #3a3a3a);
    border-radius: 50% 45% 55% 50%;
    box-shadow:
        inset -5px -5px 10px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(139, 139, 139, 0.3);
    animation: float-asteroid 30s linear infinite;
}

.asteroid.small {
    width: 15px;
    height: 15px;
}

.asteroid.medium {
    width: 25px;
    height: 25px;
}

.asteroid.large {
    width: 35px;
    height: 35px;
}

/* Nebula Clouds */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: drift 40s ease-in-out infinite;
    transition: background 0.5s ease;
}

.nebula.purple {
    background: radial-gradient(circle, var(--nebula-purple), transparent);
    width: 300px;
    height: 300px;
}

.nebula.blue {
    background: radial-gradient(circle, var(--nebula-blue), transparent);
    width: 250px;
    height: 250px;
    animation-delay: -20s;
}

.nebula.orange {
    background: radial-gradient(circle, var(--nebula-orange), transparent);
    width: 200px;
    height: 200px;
    animation-delay: -10s;
}

/* Code Comets */
.comet {
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    filter: blur(1px);
    animation: comet-flight 8s linear infinite;
    opacity: 0;
    transition: background 0.5s ease;
}

/* Stardust Particles */
.stardust {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: drift-slow 20s linear infinite;
}

/* Hacktoberfest Title */
.title {
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 36px;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-glow);
    letter-spacing: 3px;
    z-index: 15;
    animation: glow-pulse 3s ease-in-out infinite;
    transition: text-shadow 0.5s ease;
}

.subtitle {
    font-size: 16px;
    margin-top: 1px;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* Contributor Avatars */
.contributors {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 15;
    flex-wrap: wrap;
}

.contributor {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d1b2a;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contributor:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* Stats Panel */
.stats {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 14px;
    z-index: 15;
    backdrop-filter: blur(5px);
    transition: border-color 0.5s ease;
}

.stat {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.stat-value {
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.5s ease;
}

/* Interactive Tooltip */
.tooltip {
    position: absolute;
    background: rgba(13, 27, 42, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, border-color 0.5s ease;
    box-shadow: 0 0 20px var(--primary-glow);
    max-width: 200px;
}

.tooltip.show {
    opacity: 1;
}

/* Satellite Orbiters */
.satellite {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    animation: satellite-blink 2s infinite;
}

/* Warp Speed Effect */
.warp-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    animation: warp-speed 0.6s ease-out;
}

/* Pulsing Rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    opacity: 1;
    animation: ring-expand 1.5s ease-out;
    pointer-events: none;
    transition: border-color 0.5s ease;
}

/* Code Rain Effect */
.code-rain {
    position: absolute;
    color: var(--secondary-color);
    font-size: 14px;
    opacity: 0;
    animation: code-fall 3s linear;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    transition: color 0.5s ease;
}

/* Interactive Mouse Trail */
.mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
}

.trail-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--primary-color), var(--secondary-color), transparent);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-glow),
        0 0 30px var(--secondary-glow);
    animation: trail-fade 1.5s ease-out forwards;
    transform: translate(-50%, -50%);
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.trail-particle.sparkle {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffffff, var(--primary-color), transparent);
    box-shadow: 
        0 0 8px #ffffff,
        0 0 16px rgba(255, 255, 255, 0.8),
        0 0 24px var(--primary-glow);
    animation: sparkle-fade 1s ease-out forwards;
}

.trail-particle.magic {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--accent-color), var(--primary-color), var(--secondary-color), transparent);
    box-shadow: 
        0 0 12px var(--accent-color),
        0 0 24px var(--accent-glow),
        0 0 36px var(--primary-glow),
        0 0 48px var(--secondary-glow);
    animation: magic-fade 2s ease-out forwards;
}

/* Meteor Shower Animation */
.meteor {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
    border-radius: 2px;
    opacity: 0.7;
    pointer-events: none;
    transform: rotate(45deg);
    animation: meteor-fall 2s linear forwards;
    z-index: 20;
}

/* Astronaut - slow orbit, small size, gentle bob and spin */
.astronaut-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%) rotate(30deg);
    pointer-events: none;
    z-index: 12;
    animation: astro-orbit 140s linear infinite;
}

.astronaut {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: astro-bob 6s ease-in-out infinite;
}

.astronaut img {
    width: 40px;
    height: auto;
    display: block;
    transform-origin: 50% 50%;
    will-change: transform;
    animation: astro-spin 8s linear infinite;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}

/* ====== KEYFRAME ANIMATIONS ====== */

@keyframes satellite-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(0, 212, 255, 0.8); }
    50% { opacity: 0.5; box-shadow: 0 0 20px rgba(0, 212, 255, 1); }
}

@keyframes warp-speed {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0.5);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(600px) scaleY(2);
    }
}

@keyframes ring-expand {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

@keyframes code-fall {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(550px);
    }
}

@keyframes trail-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
    }
}

@keyframes magic-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.3);
        filter: hue-rotate(90deg);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
        filter: hue-rotate(180deg);
    }
    75% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.8);
        filter: hue-rotate(270deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        filter: hue-rotate(360deg);
    }
}

@keyframes meteor-fall {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(800px, 400px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes astro-orbit {
    0% {
        transform: translate(-50%, -50%) rotate(30deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(390deg);
    }
}

@keyframes astro-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes astro-bob {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

@keyframes twinkle-fast {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

@keyframes twinkle-slow {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

@keyframes color-shift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes float-asteroid {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(900px, 550px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 100px) scale(1.1);
    }
    50% {
        transform: translate(100px, 50px) scale(0.9);
    }
    75% {
        transform: translate(50px, -50px) scale(1.05);
    }
}

@keyframes drift-slow {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(100px, 100px);
        opacity: 0;
    }
}

@keyframes comet-flight {
    0% {
        transform: translateX(-200px) translateY(-100px) rotate(45deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateX(1000px) translateY(500px) rotate(45deg);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-glow);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-glow);
    }
}

/* ====== MOBILE RESPONSIVENESS ====== */

@media (max-width: 920px) {
    .container {
        height: 500px;
    }

    .title {
        font-size: 28px;
    }

    .orbit-1 {
        width: 200px;
        height: 200px;
    }

    .orbit-2 {
        width: 300px;
        height: 300px;
    }

    .orbit-3 {
        width: 400px;
        height: 400px;
    }

    .pr {
        width: 30px;
        height: 30px;
        font-size: 8px;
    }

    .contributors {
        gap: 10px;
    }

    .astronaut-orbit {
        width: 320px;
        height: 320px;
        animation-duration: 160s;
    }

    .astronaut img {
        width: 32px;
    }

    .contributor {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    .stats {
        top: 20px;
        right: 20px;
        padding: 10px;
        font-size: 12px;
        margin-top:50px;
    }
}

@media (max-width: 480px) {
    .container {
        height: 450px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 14px;
    }

    .orbit-1 {
        width: 150px;
        height: 150px;
    }

    .orbit-2 {
        width: 220px;
        height: 220px;
    }

    .orbit-3 {
        width: 300px;
        height: 300px;
    }

    .pr {
        width: 25px;
        height: 25px;
        font-size: 7px;
    }

    .contributors {
        gap: 8px;
        bottom: 20px;
    }

    .contributor {
        width: 35px;
        height: 35px;
        font-size: 9px;
    }

    .stats {
        position: relative;
        top: auto;
        right: auto;
        width: 80%;
        margin:50px auto;
    }

    .astronaut-orbit {
        display: none;
    }

    .mouse-trail {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .mouse-trail {
        display: none;
    }
    
    body {
        cursor: default;
    }
}

/* ====== GAME OVERLAY STYLES ====== */
.game-launch-btn {
    position: absolute;
    bottom: 20px;
    right: 25px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font: bold 14px 'Courier New', monospace;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 0 20px var(--primary-glow);
    transition: all 0.3s ease;
    animation: pulse-button 2s ease-in-out infinite;
}

.game-launch-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--secondary-glow);
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--secondary-glow);
    }
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.game-overlay.active {
    display: flex;
}

.game-container {
    background: rgba(13, 27, 42, 0.95);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 50px var(--primary-glow);
    position: relative;
}

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

.game-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    text-shadow: 0 0 10px var(--primary-glow);
    margin: 0;
}

.close-game {
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-game:hover {
    background: rgba(255, 0, 0, 0.6);
    transform: rotate(90deg);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    gap: 20px;
}

.game-stat {
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

.game-stat span {
    color: var(--secondary-color);
    font-weight: bold;
}

#gameCanvas {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
    display: block;
    box-shadow: 0 0 30px var(--primary-glow);
}

.game-controls {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.game-controls p {
    margin: 5px 0;
}

.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 27, 42, 0.98);
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    display: none;
    box-shadow: 0 0 50px var(--accent-glow);
}

.game-over-screen.show {
    display: block;
    animation: game-over-appear 0.5s ease-out;
}

.game-over-screen h3 {
    color: var(--accent-color);
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--accent-glow);
}

.game-over-screen p {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
}

.game-over-screen span {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 28px;
}

.restart-game {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    color: white;
    font: bold 18px 'Courier New', monospace;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.restart-game:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px var(--secondary-glow);
}

@keyframes game-over-appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Game Adjustments */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
        width: 95%;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-launch-btn {
        bottom: 80px;
        right: 15px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .game-over-screen {
        width: 80%;
        padding: 30px 20px;
    }
}

/* ====== ACHIEVEMENTS SYSTEM STYLES ====== */
.achievements-panel {
    position: absolute;
    bottom: 20px;
    left: 25px;
    z-index: 50;
}

.achievements-toggle {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font: bold 14px 'Courier New', monospace;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievements-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.achievements-dropdown {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: rgba(13, 27, 42, 0.98);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 40px var(--accent-glow);
}

.achievements-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.achievements-dropdown h3 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 15px;
    font-size: 22px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.achievement-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    border-color: var(--secondary-color);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.achievement-item.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-item-icon {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.achievement-item-info {
    flex: 1;
}

.achievement-item-name {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.achievement-item-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.achievement-item-progress {
    margin-top: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.achievement-item-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.reset-achievements {
    width: 100%;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 10px;
    color: white;
    font: bold 12px 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-achievements:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.02);
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(106, 0, 255, 0.95), rgba(255, 123, 0, 0.95));
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--secondary-glow);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
}

.achievement-notification.show {
    top: 80px;
    animation: achievement-bounce 0.6s ease;
}

.achievement-icon {
    font-size: 48px;
    animation: achievement-spin 0.8s ease;
}

.achievement-details {
    flex: 1;
}

.achievement-title {
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.achievement-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

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

@keyframes achievement-spin {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Scrollbar styling for achievements dropdown */
.achievements-dropdown::-webkit-scrollbar {
    width: 8px;
}

.achievements-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.achievements-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.achievements-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Mobile Achievements Adjustments */
@media (max-width: 768px) {
    .achievements-panel {
        bottom: 140px;
        left: 15px;
    }
    
    .achievements-dropdown {
        width: 90vw;
        max-width: 350px;
    }
    
    .achievement-notification {
        min-width: 260px;
        padding: 15px;
    }
    
    .achievement-icon {
        font-size: 36px;
    }
    
    .achievement-title {
        font-size: 16px;
    }
    
    .achievement-description {
        font-size: 12px;
    }
}

/* Favorites Modal Styles */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.favorites-list .theme-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 15px;
}

.favorites-list .theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.favorites-list::-webkit-scrollbar {
    width: 8px;
}

.favorites-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Empty State */
.customizer-content p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-style: italic;
    padding: 40px 20px;
}

/* Import/Export Modal Styles */
.share-section {
    margin-bottom: 25px;
}

.share-section h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--primary-glow);
}

.theme-code-display,
.theme-code-input {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font: 12px 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 15px;
}

.theme-code-display:focus,
.theme-code-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.share-action-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: bold 13px 'Courier New', monospace;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.share-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--secondary-glow);
}

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

.share-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 30px 0;
}

/* File Upload Styling */
input[type="file"] {
    display: none;
}

.share-action-btn[onclick*="upload"] {
    background: linear-gradient(45deg, #4a90e2, #357abd);
}

/* Success/Error Messages */
.import-message {
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    animation: message-fade-in 0.3s ease;
}

.import-message.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.import-message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}