* {
    margin: 0;
    padding: 0;
}

html,
body {
    overflow: hidden;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

.jitter {
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: jittery;
    z-index: -10;
}

.interface-wrapper {
    width: 100%;
    top: 64px;
    left: 64px;
}

.icon-control-container {
    height: 26.5px;
    width: 26.5px;
}

@media only screen and (max-width: 768px) {
    .interface-wrapper {
        width: 100%;
        top: 24px;
        left: 24px;
    }

    .icon-control-container {
        height: 19.5px;
        width: 19.5px;
    }
}

@keyframes jittery {
    10% {
        transform: translate(-0.1px, -0.15px) scale(1, 1);
    }

    20% {
        transform: translate(0.15px, 0.1px) scale(1, 1);
    }

    30% {
        transform: translate(-0.2px, -0.25px) scale(1, 1);
    }

    40% {
        transform: translate(0.05px, 0.1px) scale(1, 1);
    }

    50% {
        transform: translate(-0.025px, -0.05px) scale(1, 1);
    }

    60% {
        transform: translate(0px, 0.075px) scale(1, 1);
    }

    70% {
        transform: translate(-0.075px, -0.1px) scale(1, 1);
    }

    80% {
        transform: translate(0.075px, 0.125px) scale(1, 1);
    }

    90% {
        transform: translate(-0.125px, -0.075px) scale(1, 1);
    }

    100% {
        transform: translate(0.075px, 0.025px) scale(1, 1);
    }
}

@font-face {
    font-family: 'ModernSans-Light';
    src: url(assets/fonts/e974c58d82f849b3.woff2) format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'VenusRising-Regular';
    src: url(assets/fonts/01e6c77afa550113.woff2) format('woff2');
    font-display: swap;
}

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

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

#intro-message {
    position: relative;
    width: 100%;
    height: 100%;
}

#intro-message h3 {
    position: absolute;
    margin: 0;
    color: white;
    font-size: 7vw;
    font-family: 'VenusRising-Regular';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
    /* Each word fades in at --in and out at --out (set inline in
       index.html), 0.5s apart. */
    animation: intro-word-in 0.15s ease-out var(--in) both,
        intro-word-out 0.1s ease-in var(--out) forwards;
}

#intro-message h3.intro-first {
    animation-name: intro-word-in-first, intro-word-out;
}

#intro-message h3.intro-last {
    animation-name: intro-word-in, intro-word-out-last;
}

@keyframes intro-word-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes intro-word-in-first {
    from { opacity: 0; transform: translate(-50%, -50%) scale(2); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes intro-word-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes intro-word-out-last {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}

#intro-message h3 span {
    color: #389ac8;
}

/* Real load progress, not a decorative loop — fades in shortly after the
   word sequence starts and tracks Resources' actual loaded/toLoad ratio. */
#intro-progress {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translate(-50%, 6px);
    width: min(260px, 60vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    /* Fades in once "WELCOME" has landed. */
    animation: intro-progress-in 0.6s ease 0.4s forwards;
}

@keyframes intro-progress-in {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

#intro-progress-label {
    font-family: 'ModernSans-Light', sans-serif;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
}

#intro-progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

#intro-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    background: linear-gradient(90deg, #1f6f94, #389ac8);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A faint highlight sweeping across the filled portion — the difference
   between a bar that "loads" and one that just sits there. */
#intro-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    background-size: 220% 100%;
    animation: intro-progress-sheen 1.8s ease-in-out infinite;
}

@keyframes intro-progress-sheen {
    0% {
        background-position: 140% 0;
    }
    100% {
        background-position: -60% 0;
    }
}


/*# sourceMappingURL=main.css.map*/