body {
    background-color: #121212;
    min-height: 100vh;
}

body.working-page footer {
    background: transparent;
    background-color: transparent;
    box-shadow: none;
}

#particles-js,
#meteorites-js {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#particles-js {
    opacity: 0.55;
    animation: workingParticleDrift 60s linear infinite;
}

#meteorites-js {
    z-index: 2;
    opacity: 0.45;
}

@keyframes workingParticleDrift {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    z-index: 1001;
    transition: width var(--motion-normal) var(--ease-standard);
}

.construction-container {
    position: relative;
    z-index: 3;
    display: block;
    min-height: 0;
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(4rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
    text-align: center;
}

.construction-panel {
    position: relative;
    width: 100%;
    padding: 0 clamp(1rem, 4vw, 3rem);
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: workingPanelIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.error-panel {
    isolation: isolate;
}

.illustration-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(820px, 100%);
    min-height: clamp(220px, 28vw, 340px);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.illustration-stage::before {
    content: '';
    position: absolute;
    inset: 18% 12%;
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 50%;
    transform: rotate(-8deg);
    pointer-events: none;
}

.error-code {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    color: rgba(255, 215, 0, 0.1);
    font-family: 'Baby Doll', cursive;
    font-size: clamp(9rem, 24vw, 17rem);
    line-height: 0.8;
    user-select: none;
    transform: translate(-50%, -50%);
}

.astronaut-container {
    position: relative;
    z-index: 1;
    width: min(580px, 86vw);
    margin: 0 auto;
    will-change: transform;
    animation: astronautFloat 7s ease-in-out infinite;
}

.astronaut-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.4));
}

.error-kicker {
    margin: clamp(2rem, 5vw, 3.2rem) 0 0.75rem;
    color: rgba(255, 215, 0, 0.78);
    font-family: 'Baby Doll', cursive;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.construction-title {
    margin: 0 0 1rem;
    color: #ffd700;
    font-family: 'Baby Doll', cursive;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.2);
}

.construction-text {
    margin: 1rem auto 0;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.35rem;
    border: 1px solid rgba(255, 215, 0, 0.32);
    border-radius: 999px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.07);
    font-family: 'Baby Doll', cursive;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transition:
        transform var(--motion-normal) var(--ease-standard),
        background var(--motion-normal) var(--ease-standard),
        border-color var(--motion-normal) var(--ease-standard),
        box-shadow var(--motion-normal) var(--ease-standard);
}

.return-button .material-icons {
    font-size: 1.05rem;
    line-height: 1;
}

.return-button.secondary {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.return-button:hover,
.return-button:focus-visible {
    border-color: rgba(255, 215, 0, 0.58);
    background: #ffd700;
    color: #121212;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.return-button.secondary:hover,
.return-button.secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.return-button:active {
    transform: translateY(0) scale(0.98);
}

@keyframes workingPanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes astronautFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px) rotate(0.6deg);
    }
}

@media (max-width: 560px) {
    .construction-container {
        width: min(100% - 24px, 440px);
        padding-top: 6.5rem;
    }

    .construction-text br {
        display: none;
    }

    .construction-panel {
        padding-inline: 0;
    }

    .illustration-stage {
        min-height: 250px;
    }

    .illustration-stage::before {
        inset: 20% 4%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    #particles-js {
        animation: none;
    }

    .construction-panel,
    .astronaut-container {
        animation: none;
    }
}
