/* XBOX 360 STYLE ACHIEVEMENTS */
.achievement-notification {
    position: fixed !important;
    top: 50px;
    right: -500px !important;
    left: auto !important;
    width: 400px;
    min-height: 90px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 99999;
    display: flex;
    align-items: center;
    padding: 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    position: relative;
    overflow: hidden;
}

.achievement-notification.show {
    right: 30px !important;
    left: auto !important;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.achievement-notification.fade-out {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.8s ease-in-out;
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #ffd700, #ffb700);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.achievement-icon::before {
    content: '★';
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: achievement-glow 2s infinite alternate;
}

.achievement-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: achievement-shine 3s infinite;
}

/* Enhanced rarity-specific notification styling */
.achievement-icon .rarity-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.achievement-icon.golden-icon .rarity-indicator {
    background: rgba(255, 215, 0, 0.9);
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.achievement-icon.platinum-icon .rarity-indicator {
    background: rgba(229, 229, 229, 0.9);
    border-color: #e5e5e5;
    box-shadow: 0 0 15px rgba(229, 229, 229, 0.8);
}

.achievement-unlocked.golden-text {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: golden-text-glow 2s infinite alternate;
}

.achievement-unlocked.platinum-text {
    color: #e5e5e5;
    text-shadow: 0 0 15px rgba(229, 229, 229, 0.9);
    animation: platinum-text-glow 1.5s infinite alternate;
}

@keyframes golden-text-glow {
    0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
    100% { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.6); }
}

@keyframes platinum-text-glow {
    0% { text-shadow: 0 0 15px rgba(229, 229, 229, 0.9); }
    100% { text-shadow: 0 0 25px rgba(229, 229, 229, 1), 0 0 35px rgba(229, 229, 229, 0.7); }
}

@keyframes achievement-glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 215, 0, 0.8); }
}

@keyframes achievement-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* GOLDEN RARITY ACHIEVEMENTS */
.achievement-notification.golden {
    border: 2px solid #ffd700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #4a3c00, #2d2400);
}

.achievement-notification.golden .achievement-icon {
    background: radial-gradient(circle, #ffd700, #ffb700);
    border: 3px solid #fff;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.4);
    animation: golden-pulse 2s infinite ease-in-out;
}

.achievement-notification.golden .achievement-unlocked {
    color: #ffd700;
}

/* PLATINUM RARITY ACHIEVEMENTS */
.achievement-notification.platinum {
    border: 2px solid #e5e5e5;
    box-shadow: 
        0 0 40px rgba(229, 229, 229, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #3d3d3d, #1f1f1f);
}

.achievement-notification.platinum .achievement-icon {
    background: radial-gradient(circle, #e5e5e5, #b8b8b8);
    border: 3px solid #fff;
    box-shadow: 
        0 0 30px rgba(229, 229, 229, 0.9),
        0 0 60px rgba(229, 229, 229, 0.5),
        0 0 90px rgba(229, 229, 229, 0.3);
    animation: platinum-pulse 1.5s infinite ease-in-out;
}

.achievement-notification.platinum .achievement-unlocked {
    color: #e5e5e5;
    text-shadow: 0 0 10px rgba(229, 229, 229, 0.8);
}

@keyframes golden-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.4);
    }
    50% { 
        box-shadow: 
            0 0 35px rgba(255, 215, 0, 1),
            0 0 70px rgba(255, 215, 0, 0.6);
    }
}

@keyframes platinum-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(229, 229, 229, 0.9),
            0 0 60px rgba(229, 229, 229, 0.5),
            0 0 90px rgba(229, 229, 229, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(229, 229, 229, 1),
            0 0 80px rgba(229, 229, 229, 0.7),
            0 0 120px rgba(229, 229, 229, 0.4);
    }
}

.achievement-content {
    flex: 1;
    color: #fff;
}

.achievement-unlocked {
    font-size: 11px;
    color: #b3b3b3;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.achievement-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.achievement-description {
    font-size: 12px;
    color: #cccccc;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    margin-top: 2px;
}

.achievement-sound {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #333;
    border: 1px solid #555;
    border-radius: 50%;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-sound::before {
    content: '🔊';
    font-size: 10px;
}

/* STAR COUNTER SYSTEM */
.star-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.star-counter:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 30, 30, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.star-icon {
    font-size: 20px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: star-twinkle 2s infinite alternate;
}

@keyframes star-twinkle {
    0% { 
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 25px rgba(255, 215, 0, 0.6);
        transform: scale(1.1);
    }
}

.star-count {
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* THEME-SPECIFIC STYLING */

/* Akai Theme */
.akai-theme .achievement-notification {
    background: linear-gradient(135deg, #3d0000, #2a0000);
    border-color: #660000;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 100, 100, 0.1);
}

.akai-theme .achievement-icon {
    background: radial-gradient(circle, #ff4444, #cc0000);
    border-color: #ffaaaa;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.akai-theme .star-counter {
    background: linear-gradient(135deg, rgba(40, 0, 0, 0.8), rgba(80, 0, 0, 0.7));
    border-color: rgba(255, 68, 68, 0.3);
    color: #ffaaaa;
}

.akai-theme .star-icon {
    color: #ff6666;
    text-shadow: 0 0 10px rgba(255, 102, 102, 0.8);
}

.akai-theme .star-count {
    color: #ff6666;
}

/* Star Glitcher Theme */
.star-glitcher-theme .achievement-notification {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.8));
    border: 2px solid var(--sg-primary, #8000ff);
    box-shadow: 
        0 0 20px rgba(var(--sg-primary-rgb, 128, 0, 255), 0.4),
        inset 0 1px 0 rgba(var(--sg-primary-rgb, 128, 0, 255), 0.2);
}

.star-glitcher-theme .achievement-icon {
    background: radial-gradient(circle, var(--sg-primary, #8000ff), var(--sg-primary, #8000ff));
    border-color: var(--sg-primary, #8000ff);
    box-shadow: 0 0 15px var(--sg-primary, #8000ff);
}

.star-glitcher-theme .star-counter {
    background: linear-gradient(135deg, rgba(var(--sg-primary-rgb, 128, 0, 255), 0.2), rgba(var(--sg-primary-rgb, 128, 0, 255), 0.1));
    border-color: var(--sg-primary, #8000ff);
    color: var(--sg-primary, #8000ff);
}

.star-glitcher-theme .star-icon {
    color: var(--sg-primary, #8000ff);
    text-shadow: 0 0 10px var(--sg-primary, #8000ff);
}

.star-glitcher-theme .star-count {
    color: var(--sg-primary, #8000ff);
}

/* Hotline Miami Theme */
.hotline-miami-theme .achievement-notification {
    background: linear-gradient(135deg, rgba(216, 30, 91, 0.8), rgba(0, 168, 243, 0.6));
    border: 2px solid #00FFFF;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.4),
        inset 0 1px 0 rgba(0, 255, 255, 0.2);
}

.hotline-miami-theme .achievement-icon {
    background: radial-gradient(circle, #FF00FF, #00FFFF);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
}

.hotline-miami-theme .star-counter {
    background: linear-gradient(135deg, rgba(216, 30, 91, 0.8), rgba(0, 168, 243, 0.6));
    border-color: #00FFFF;
    color: #00FFFF;
    font-family: 'VT323', monospace;
}

.hotline-miami-theme .star-icon {
    color: #FF00FF;
    text-shadow: 0 0 10px #FF00FF;
}

.hotline-miami-theme .star-count {
    color: #00FFFF;
}

/* Frutiger Aero Theme */
.frutiger-aero-theme .achievement-notification {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(173, 216, 230, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(135, 206, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(1.4);
}

.frutiger-aero-theme .achievement-icon {
    background: radial-gradient(circle, #ffffff, #87ceeb);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(135, 206, 235, 0.6);
}

.frutiger-aero-theme .achievement-name,
.frutiger-aero-theme .achievement-description,
.frutiger-aero-theme .achievement-unlocked {
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.frutiger-aero-theme .achievement-unlocked {
    color: #666;
}

.frutiger-aero-theme .star-counter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(173, 216, 230, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #000;
    backdrop-filter: blur(15px) saturate(1.4);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.frutiger-aero-theme .star-icon {
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
}

.frutiger-aero-theme .star-count {
    color: #4a90e2;
}

/* ACHIEVEMENT LIST MODAL */
.achievement-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-list-overlay.show {
    opacity: 1;
}

.achievement-list-modal {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.achievement-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #4a4a4a;
    background: linear-gradient(135deg, #3d3d3d, #2a2a2a);
}

.achievement-list-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

.achievement-list-content {
    padding: 15px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 #2a2a2a;
}

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

.achievement-list-content::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.achievement-list-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.achievement-list-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.achievement-item.unlocked {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.achievement-item.locked {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
    opacity: 0.6;
}

.achievement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.achievement-item-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

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

.achievement-item-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.achievement-item.locked .achievement-item-name {
    color: #666;
}

.achievement-item-description {
    color: #ccc;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.achievement-item.locked .achievement-item-description {
    color: #555;
}

/* RARITY SYSTEM ENHANCEMENTS */

/* Rarity badges */
.achievement-rarity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-shadow: none;
}

.achievement-rarity-badge.common {
    background: rgba(128, 128, 128, 0.3);
    color: #ccc;
    border: 1px solid rgba(128, 128, 128, 0.5);
}

.achievement-rarity-badge.golden {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.achievement-rarity-badge.platinum {
    background: rgba(229, 229, 229, 0.2);
    color: #e5e5e5;
    border: 1px solid rgba(229, 229, 229, 0.6);
    box-shadow: 0 0 8px rgba(229, 229, 229, 0.4);
}

/* Rarity glow effects for icons */
.achievement-item-icon.rarity-glow-common {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.achievement-item-icon.rarity-glow-golden {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: golden-icon-pulse 3s infinite ease-in-out;
}

.achievement-item-icon.rarity-glow-platinum {
    filter: drop-shadow(0 0 15px rgba(229, 229, 229, 0.9));
    animation: platinum-icon-pulse 2s infinite ease-in-out;
}

@keyframes golden-icon-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
        transform: scale(1.05);
    }
}

@keyframes platinum-icon-pulse {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(229, 229, 229, 0.9));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(229, 229, 229, 1));
        transform: scale(1.1);
    }
}

/* Rarity-specific achievement item styling */
.achievement-item.golden-rarity.unlocked {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.achievement-item.platinum-rarity.unlocked {
    background: rgba(229, 229, 229, 0.1);
    border-color: rgba(229, 229, 229, 0.4);
    box-shadow: 0 0 15px rgba(229, 229, 229, 0.3);
}

.achievement-item.common-rarity.unlocked {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Theme-specific rarity badges and glow effects */
.akai-theme .achievement-rarity-badge.golden {
    background: rgba(255, 100, 100, 0.3);
    color: #ff6666;
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.4);
}

.akai-theme .achievement-rarity-badge.platinum {
    background: rgba(255, 200, 200, 0.3);
    color: #ffcccc;
    border-color: rgba(255, 200, 200, 0.6);
    box-shadow: 0 0 8px rgba(255, 200, 200, 0.4);
}

.star-glitcher-theme .achievement-rarity-badge.golden {
    background: rgba(var(--sg-primary-rgb, 128, 0, 255), 0.3);
    color: var(--sg-primary, #8000ff);
    border-color: var(--sg-primary, #8000ff);
    box-shadow: 0 0 8px var(--sg-primary, #8000ff);
}

.star-glitcher-theme .achievement-rarity-badge.platinum {
    background: rgba(var(--sg-primary-rgb, 128, 0, 255), 0.4);
    color: var(--sg-primary, #8000ff);
    border-color: var(--sg-primary, #8000ff);
    box-shadow: 0 0 8px var(--sg-primary, #8000ff);
}

.hotline-miami-theme .achievement-rarity-badge.golden {
    background: rgba(255, 0, 255, 0.3);
    color: #FF00FF;
    border-color: #FF00FF;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.hotline-miami-theme .achievement-rarity-badge.platinum {
    background: rgba(0, 255, 255, 0.3);
    color: #00FFFF;
    border-color: #00FFFF;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.frutiger-aero-theme .achievement-rarity-badge.golden {
    background: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    border-color: #4a90e2;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

.frutiger-aero-theme .achievement-rarity-badge.platinum {
    background: rgba(135, 206, 235, 0.4);
    color: #87ceeb;
    border-color: #87ceeb;
    box-shadow: 0 0 8px rgba(135, 206, 235, 0.5);
}

/* Theme-specific modal styling */
.akai-theme .achievement-list-modal {
    background: linear-gradient(135deg, #4d0000, #2a0000);
    border-color: #660000;
}

.akai-theme .achievement-list-header {
    background: linear-gradient(135deg, #660000, #4d0000);
    border-color: #800000;
}

.akai-theme .achievement-list-header h2,
.akai-theme .close-btn {
    color: #ffaaaa;
}

.akai-theme .achievement-item.unlocked {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.2);
}

.star-glitcher-theme .achievement-list-modal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.8));
    border-color: var(--sg-primary, #8000ff);
}

.star-glitcher-theme .achievement-list-header {
    background: linear-gradient(135deg, rgba(var(--sg-primary-rgb, 128, 0, 255), 0.3), rgba(var(--sg-primary-rgb, 128, 0, 255), 0.1));
    border-color: var(--sg-primary, #8000ff);
}

.star-glitcher-theme .achievement-list-header h2,
.star-glitcher-theme .close-btn {
    color: var(--sg-primary, #8000ff);
}

.star-glitcher-theme .achievement-item.unlocked {
    background: rgba(var(--sg-primary-rgb, 128, 0, 255), 0.1);
    border-color: rgba(var(--sg-primary-rgb, 128, 0, 255), 0.2);
}

.hotline-miami-theme .achievement-list-modal {
    background: linear-gradient(135deg, rgba(216, 30, 91, 0.8), rgba(0, 168, 243, 0.6));
    border-color: #00FFFF;
}

.hotline-miami-theme .achievement-list-header {
    background: linear-gradient(135deg, rgba(216, 30, 91, 0.9), rgba(0, 168, 243, 0.7));
    border-color: #00FFFF;
}

.hotline-miami-theme .achievement-list-header h2,
.hotline-miami-theme .close-btn {
    color: #00FFFF;
    font-family: 'VT323', monospace;
}

.hotline-miami-theme .achievement-item.unlocked {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.2);
}

.frutiger-aero-theme .achievement-list-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(173, 216, 230, 0.8));
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

.frutiger-aero-theme .achievement-list-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(173, 216, 230, 0.3));
    border-color: rgba(255, 255, 255, 0.5);
}

.frutiger-aero-theme .achievement-list-header h2 {
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.frutiger-aero-theme .close-btn {
    color: #666;
}

.frutiger-aero-theme .close-btn:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.3);
}

.frutiger-aero-theme .achievement-item-name,
.frutiger-aero-theme .achievement-item-description {
    color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.frutiger-aero-theme .achievement-item.locked .achievement-item-name {
    color: #666;
}

.frutiger-aero-theme .achievement-item.locked .achievement-item-description {
    color: #888;
}

.frutiger-aero-theme .achievement-item.unlocked {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .achievement-notification {
        width: 350px;
        height: 70px;
        right: -400px;
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .achievement-notification.show {
        right: 20px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
        will-change: transform;
    }
    
    .achievement-icon::before {
        font-size: 24px;
    }
    
    .achievement-name {
        font-size: 14px;
    }
    
    .achievement-description {
        font-size: 11px;
    }
    
    .star-counter {
        top: 75px;
        right: 15px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .star-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .achievement-notification {
        width: 300px;
        height: 65px;
        right: -350px;
    }
    
    .achievement-notification.show {
        right: 15px;
    }
    
    .achievement-icon {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .achievement-icon::before {
        font-size: 20px;
    }
    
    .achievement-name {
        font-size: 13px;
    }
    
    .achievement-description {
        font-size: 10px;
    }
    
    .star-counter {
        top: 70px;
        right: 10px;
        padding: 6px 10px;
        font-size: 13px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
    }
    
    .star-icon {
        font-size: 16px;
    }
}

/* ENHANCED VISUAL EFFECTS */

/* Background glow effects */
.achievement-background-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0.3;
    pointer-events: none;
}

.common-glow {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.golden-glow {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: golden-glow-pulse 3s infinite ease-in-out;
}

.platinum-glow {
    background: radial-gradient(ellipse at center, rgba(229, 229, 229, 0.3) 0%, transparent 70%);
    animation: platinum-glow-pulse 2.5s infinite ease-in-out;
}

@keyframes golden-glow-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

@keyframes platinum-glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.03); }
}

/* Particle effects */
.achievement-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    pointer-events: none;
    overflow: hidden;
}

.achievement-particles::before,
.achievement-particles::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(229, 229, 229, 0.8);
    border-radius: 50%;
    animation: particle-float 4s infinite ease-in-out;
}

.achievement-particles::before {
    left: 20%;
    top: 30%;
    animation-delay: 0s;
    box-shadow: 0 0 6px rgba(229, 229, 229, 0.8);
}

.achievement-particles::after {
    right: 25%;
    bottom: 40%;
    animation-delay: 2s;
    box-shadow: 0 0 6px rgba(229, 229, 229, 0.8);
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

/* Shimmer effect for platinum achievements */
.achievement-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    border-radius: 12px;
    animation: shimmer-sweep 3s infinite;
    pointer-events: none;
}

@keyframes shimmer-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Shine effect for golden achievements */
.achievement-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.1) 40%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: shine-pulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shine-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Progress bar for achievements */
.achievement-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 2s ease-out;
    border-radius: inherit;
}

.golden-progress {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.platinum-progress {
    background: linear-gradient(90deg, #E5E4E2, #C0C0C0);
}

/* Close button for achievements */
.achievement-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.achievement-close:hover {
    background: rgba(255, 99, 99, 0.3);
    border-color: rgba(255, 99, 99, 0.5);
    color: #fff;
    transform: scale(1.1);
}

/* Screen shake effects */
.screen-shake-medium {
    animation: screen-shake-medium 0.6s ease-in-out;
}

@keyframes screen-shake-medium {
    0%, 100% { transform: translate3d(0, 0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-2px, -1px, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(2px, 1px, 0); }
}