body:not(.loaded) .fade-in,
body:not(.loaded) .fade-in-delayed {
    animation-play-state: paused;
}

:root {
    --bg-color: #0f172a;      /* Slate 900 */
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --accent: #38bdf8;        /* Light Blue */
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-wrapper {
    position: relative;
    height: 4rem; 
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.title-text {
    position: absolute;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#text-short { color: var(--text-main); }
#text-long { color: var(--accent); }

.title-text.hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
}

.title-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 300;
}

.countdown {
    font-size: 1rem;
    color: #64748b;
    margin-top: 2rem;
}

.countdown a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.countdown a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.2s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}