.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border: 4px solid black;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-message {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #2C3E50;
}

.coffee-art {
    font-family: monospace;
    white-space: pre;
    line-height: 1.2;
    margin: 20px 0;
    color: #4A5568;
}

.steam {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    color: #718096;
}

.steam1 { animation: steamFloat 3s infinite; }
.steam2 { animation: steamFloat 3s infinite 1s; }
.steam3 { animation: steamFloat 3s infinite 2s; }

@keyframes steamFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-20px) scale(1.5);
        opacity: 0;
    }
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #2C3E50;
    padding: 5px;
}

.close-popup:hover {
    color: #FF6B6B;
}

.music-controls {
    margin-top: 20px;
    text-align: center;
}

.music-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    padding: 8px 15px;
    border: 2px solid #2C3E50;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-button:hover {
    background: #2C3E50;
    color: white;
}