html.has-construction-notice {
    overflow: hidden;
}

/* Keep the hero intro hidden while the live starfield runs behind the notice. */
html.has-construction-notice .hero-content {
    opacity: 0;
    pointer-events: none;
}

html.has-construction-notice #stars-canvas {
    z-index: 1;
    opacity: 1 !important;
}

html.has-construction-notice.is-hero-startup-pending .hero-startup-curtain {
    opacity: 0;
    transition: none;
}

html.has-construction-notice #global-background .global-background-layer:first-child {
    opacity: 1;
}

/* Native dialogs sit above the custom cursor, regardless of its z-index. */
html.has-construction-notice[data-custom-cursor],
html.has-construction-notice[data-custom-cursor] body,
html.has-construction-notice[data-custom-cursor] body *,
html.has-construction-notice[data-custom-cursor] body *::before,
html.has-construction-notice[data-custom-cursor] body *::after,
.construction-notice::backdrop {
    cursor: auto !important;
}

html.has-construction-notice .fluid-cursor {
    display: none !important;
}

html.has-construction-notice .construction-notice button,
html.has-construction-notice .construction-notice button * {
    cursor: pointer !important;
}

.construction-notice {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 11.18% 4.12% / 19.49% 7.18%;
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 56%),
        0 0 14px 2px rgb(255 255 255 / 86%),
        0 0 24px 5px rgb(255 255 255 / 40%);
    color: #fff;
    background: #010101;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow: auto;
    overscroll-behavior: contain;
}

.construction-notice * {
    font-family: inherit;
}

.construction-notice::backdrop {
    background: rgb(1 1 1 / 22%);
    -webkit-backdrop-filter: blur(.5px);
    backdrop-filter: blur(.5px);
}

.construction-notice__panel {
    position: relative;
    padding: clamp(28px, 7vw, 48px);
    background: #010101;
    border-radius: inherit;
}

.construction-notice__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -.06em;
}

.construction-notice__brand svg {
    display: block;
    width: 60px;
    height: 29px;
    object-fit: contain;
    flex-shrink: 0;
}

.construction-notice #construction-notice-description {
    margin: 0 0 30px;
    color: #b9b6c5;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
}

.construction-notice button {
    font: inherit;
    cursor: pointer;
}

.construction-notice__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: #b9b6c5;
    background: transparent;
    font-size: 28px !important;
    line-height: 1;
}

.construction-notice .construction-notice__continue {
    font-weight: 500;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: fit-content;
    max-width: 100%;
    min-height: 38px;
    padding: .55rem 1.6rem;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: #262626;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .05em;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: color .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1);
}

.construction-notice__continue::before,
.construction-notice__continue::after {
    content: "";
    position: absolute;
    inset: 1px;
    clip-path: inherit;
    border-radius: inherit;
    pointer-events: none;
}

.construction-notice__continue::before {
    z-index: -2;
    background: #010101;
}

.construction-notice__continue::after {
    z-index: -1;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

.construction-notice__continue:hover::after {
    transform: scaleX(1);
}

.construction-notice .construction-notice__continue:hover {
    color: #000;
    box-shadow: 0 0 20px rgb(255 255 255 / 25%);
}

.construction-notice__continue span:last-child {
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.construction-notice__continue:hover span:last-child {
    transform: translateX(6px);
}

@media (prefers-reduced-motion: reduce) {
    .construction-notice .construction-notice__continue,
    .construction-notice__continue::after,
    .construction-notice__continue span:last-child {
        transition: none;
    }
}

.construction-notice button:focus-visible {
    outline: 2px solid #cbbcff;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .construction-notice {
        width: min(360px, calc(100% - 64px));
        max-height: calc(100svh - 64px);
        /* Circular corners keep their shape when the card's text reflows. */
        border-radius: clamp(28px, 10vw, 40px) clamp(12px, 4vw, 16px);
    }

    .construction-notice__panel {
        padding: 24px;
    }

    .construction-notice__brand {
        gap: 8px;
        margin-bottom: 24px;
        font-size: 22px;
    }

    .construction-notice__brand svg {
        width: 50px;
        height: 24px;
    }

    .construction-notice #construction-notice-description {
        margin-bottom: 24px;
        font-size: 13px;
        line-height: 1.6;
    }

    .construction-notice__close {
        top: 8px;
        right: 8px;
    }

    .construction-notice .construction-notice__continue {
        min-height: 36px;
        padding: .5rem 1.1rem;
        gap: 1rem;
        font-size: 13px;
    }
}
