:root {
    --bg-color: #050505;
    --gold: #FFD700;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; }

body {
    background-color: var(--bg-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    height: 100vh; width: 100vw;
    overflow: hidden;
}

#stars-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
#firework-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

#main-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20; 
    pointer-events: none; 
}

#countdown {
    font-size: 15vw;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    pointer-events: auto;
}

#fact-box {
    margin-top: 40px;
    height: 60px;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fun-fact {
    font-size: 2vw;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    opacity: 0;
    transition: 0.6s ease;
}
#fun-fact.show { opacity: 1; }

#fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    pointer-events: auto;
}
#fullscreen-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: white; }

.burst-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vmax; height: 100vmax; z-index: -1; }
.ray { position: absolute; top: 50%; left: 50%; width: 3px; height: 50vmax; background: linear-gradient(to top, var(--white), transparent); transform-origin: bottom center; opacity: 0; }
.animate-ray .ray { animation: rayAnim 0.7s ease-out forwards; }
@keyframes rayAnim {
    0% { opacity: 1; transform: translate(-50%, -100%) scaleY(0) rotate(var(--r)); }
    100% { opacity: 0; transform: translate(-50%, -100%) scaleY(1.3) rotate(var(--r)); }
}

#debug-panel { display: none; position: fixed; bottom: 20px; left: 20px; background: #111; padding: 15px; border-radius: 10px; z-index: 1000; pointer-events: auto; }
.test-btn { background: #333; color: white; border: none; padding: 8px 12px; margin: 2px; border-radius: 5px; cursor: pointer; }
.btn-firework { background: var(--gold); color: black; font-weight: bold; }

@media (max-width: 768px) { #countdown { font-size: 20vw; } #fun-fact { font-size: 4vw; } }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

#footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    z-index: 10;
    pointer-events: none; 
}