body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#webcam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Or specific size for debugging */
    height: auto;
    z-index: 0;
    visibility: hidden; /* Hide webcam, we only want particles */
    /* transform: scaleX(-1); Mirror effect handled in JS usually or here */
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    z-index: 10;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#surprise-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0;
    transition: opacity 2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack image and player */
    background: rgba(0,0,0,0.8); /* Darker background for focus */
}

#surprise-image {
    max-width: 60%;
    max-height: 60%;
    box-shadow: 0 0 50px rgba(255,255,255,0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Custom Audio Player Styles */
.audio-player {
    width: 60%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-family: Arial, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.play-btn svg {
    width: 16px;
    height: 16px;
    fill: #333;
    margin-left: 2px; /* Visual correction for play icon */
}

.play-btn.playing svg {
    margin-left: 0;
}

.progress-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #3498db;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
}