/* Achievement Modal Display */
.achievement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.achievement-overlay.show {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.achievement-fullscreen {
    position: relative;
    background: linear-gradient(135deg, rgba(23, 30, 43, 0.98), rgba(35, 45, 65, 0.98));
    border: 2px solid rgba(119, 77, 196, 0.5);
    border-radius: 20px;
    padding: 60px 80px;
    text-align: center;
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 600px;
}

.achievement-overlay.show .achievement-fullscreen {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.achievement-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 77, 196, 0.3), transparent 70%);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
    }
}

.achievement-fullscreen-icon {
    font-size: 80px;
    color: #774dc4;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(119, 77, 196, 0.6);
    animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
    0% {
        transform: translateY(-60px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(5px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.achievement-fullscreen-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.achievement-fullscreen-name {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.achievement-fullscreen-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Cursor Styles - Apply to canvas and left sidebar */
body.cursor-default #background-canvas,
body.cursor-default #settings-panel {
    cursor: default !important;
}

body.cursor-crosshair #background-canvas,
body.cursor-crosshair #settings-panel {
    cursor: crosshair !important;
}

body.cursor-pointer #background-canvas,
body.cursor-pointer #settings-panel {
    cursor: pointer !important;
}

body.cursor-cell #background-canvas,
body.cursor-cell #settings-panel {
    cursor: cell !important;
}
