:root {
    --bg: #121318;
    --bg2: #0f1116;
    --text: #f4f6fb;
    --muted: rgba(244, 246, 251, 0.72);
    --muted2: rgba(244, 246, 251, 0.48);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    overflow: hidden;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--text);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica,
        Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.page {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.35s ease-out;
    background:
        radial-gradient(
            ellipse 42% 38% at 38% 42%,
            rgba(157, 126, 255, 0.45),
            transparent 70%
        ),
        radial-gradient(
            ellipse 38% 36% at 62% 40%,
            rgba(65, 200, 220, 0.4),
            transparent 70%
        ),
        radial-gradient(
            ellipse 36% 34% at 50% 58%,
            rgba(249, 170, 80, 0.32),
            transparent 70%
        );
    filter: blur(80px);
}

body.blobs-ready .page::before {
    opacity: 0;
}

canvas#blobs {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    filter: blur(80px);
    transition: opacity 0.35s ease-out;
}

body.blobs-ready canvas#blobs {
    opacity: 1;
}

.content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    width: min(92vw, 1100px);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.8rem;
    padding: 0 2rem;
    width: 100%;
    max-inline-size: 720px;
}

.kicker {
    margin: 0;
    font-size: 1.3rem;
    color: var(--muted2);
    letter-spacing: 0.12em;
    font-weight: 600;
    text-transform: uppercase;
}

.title {
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    font-size: clamp(24px, 4.8vw, 68px);
    letter-spacing: -0.035em;
    color: #fff;
    white-space: nowrap;
}

.desc {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1.6;
    max-inline-size: 640px;
    white-space: nowrap;
}

.desc.is-error {
    color: #fda4af;
    white-space: normal;
}

.status-line {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 4.6rem;
    z-index: 3;
    display: flex;
    justify-content: center;
    padding: 0 2rem;
    pointer-events: none;
}

.status-inner {
    width: min(92vw, 1100px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    color: var(--muted2);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    user-select: none;
}

.challenge {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        monospace;
    word-break: break-all;
    text-align: right;
    max-width: 48%;
}

@media (max-width: 820px) {
    .content {
        transform: translate(-50%, -50%);
        width: 96vw;
    }

    .content-inner {
        gap: 1.4rem;
        padding: 0 2.4rem;
    }

    .title {
        font-size: clamp(22px, 4.6vw, 48px);
    }

    .desc {
        font-size: clamp(13px, 2vw, 17px);
        white-space: normal;
        max-inline-size: 520px;
    }

    .status-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }

    .challenge {
        max-width: 100%;
        text-align: center;
    }

    .status-line {
        bottom: 3.2rem;
    }

    canvas#blobs {
        filter: blur(60px);
    }
}

@media (max-width: 520px) {
    .content {
        width: 100vw;
    }

    .content-inner {
        gap: 1.2rem;
        padding: 0 2rem;
    }

    .kicker {
        font-size: 1.1rem;
    }

    .title {
        font-size: clamp(18px, 5.8vw, 32px);
        white-space: normal;
    }

    .desc {
        font-size: clamp(13px, 3.6vw, 16px);
        line-height: 1.5;
    }

    .status-line {
        bottom: 2rem;
        padding: 0 1.6rem;
    }

    .status-inner {
        font-size: 1rem;
    }

    .challenge {
        font-size: 0.9rem;
    }

    canvas#blobs {
        filter: blur(50px);
    }
}

@media (max-width: 360px) {
    .content-inner {
        padding: 0 1.4rem;
        gap: 1rem;
    }

    .title {
        font-size: clamp(15px, 5.2vw, 26px);
    }

    .desc {
        font-size: clamp(12px, 3.4vw, 14px);
    }

    .status-line {
        bottom: 1.4rem;
    }

    canvas#blobs {
        filter: blur(40px);
    }
}

@media (max-height: 480px) {
    .content {
        transform: translate(-50%, -50%);
    }

    .content-inner {
        gap: 0.8rem;
    }

    .kicker {
        font-size: 1rem;
    }

    .title {
        font-size: clamp(16px, 4vh, 28px);
    }

    .desc {
        font-size: clamp(11px, 2.2vh, 14px);
        white-space: normal;
    }

    .status-line {
        bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    canvas#blobs {
        display: none;
    }
}

.noscript-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    z-index: 9999;
}

.noscript-content {
    text-align: center;
    color: #fda4af;
    padding: 2rem;
}

.noscript-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.challenge-error {
    color: #fda4af !important;
    white-space: normal !important;
}
