@font-face {
    font-family: 'Great Vibes';
    src: url('./libs/fonts/GreatVibes.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #0f172a;
    --text-color: #f8fafc;
    --accent-color: #fbbf24;
}

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

body {
    overflow: hidden;
    background-color: var(--primary-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 30px;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 20px;
}

#instructions p {
    font-size: 0.9rem;
    font-weight: 500;
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#status-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

#christmas-title {
    position: absolute;
    top: 30px;
    width: 100%;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    z-index: 10;
    pointer-events: none;

    /* Rose Gold Gradient Text */
    background: linear-gradient(to bottom, #f3cfd4 0%, #e5acb6 50%, #c17f8b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Fallback and Glow */
    filter: drop-shadow(0 0 10px rgba(229, 172, 182, 0.6));
    opacity: 0.9;
}

#music-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

#music-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}