:root {
    color-scheme: dark;
    --bg-base: #040404;
    --bg-glow: rgba(110, 110, 110, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at top, var(--bg-glow), transparent 42%),
        radial-gradient(circle at bottom, rgba(255, 255, 255, 0.03), transparent 36%),
        var(--bg-base);
    min-height: 100svh;
    height: 100vh;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    position: relative;
}

#particleground {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.status,
.dots,
.t,
.subt {
    position: relative;
    z-index: 1;
}

.status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: min(520px, 100%);
    min-height: 188px;
    padding: 18px 20px;
    justify-content: center;
    text-align: center;
}

.dots {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 38px;
}

.d {
    position: relative;
    width: 22px;
    height: 22px;
    background: rgba(243, 239, 232, 0.96);
    border-radius: 50%;
    box-shadow:
        0 0 14px rgba(243, 239, 232, 0.16),
        0 2px 10px rgba(0, 0, 0, 0.16);
    transform: translate3d(0, 0, 0) scale(0.88);
    will-change: transform, opacity;
    backface-visibility: hidden;
    animation: dot-float 1.7s infinite cubic-bezier(0.45, 0, 0.25, 1) both;
}

.d::before,
.d::after {
    content: "";
    position: absolute;
    left: 50%;
    pointer-events: none;
}

.d::before {
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(-50%);
    opacity: 0.9;
}

.d::after {
    bottom: -10px;
    width: 18px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(4px);
    transform: translateX(-50%) scale(0.82);
    animation: dot-shadow 1.7s infinite ease-in-out both;
}

.d:nth-child(1) {
    animation-delay: -0.32s;
}

.d:nth-child(1)::before,
.d:nth-child(1)::after {
    animation-delay: -0.32s;
}

.d:nth-child(2) {
    animation-delay: -0.16s;
}

.d:nth-child(2)::before,
.d:nth-child(2)::after {
    animation-delay: -0.16s;
}

@keyframes dot-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(0.86);
        opacity: 0.72;
    }

    40% {
        transform: translate3d(0, -10px, 0) scale(1);
        opacity: 1;
    }

    55% {
        transform: translate3d(0, -7px, 0) scale(0.96);
        opacity: 1;
    }
}

@keyframes dot-shadow {
    0%,
    100% {
        transform: translateX(-50%) scale(0.82);
        opacity: 0.16;
    }

    40% {
        transform: translateX(-50%) scale(1.15);
        opacity: 0.05;
    }
}

.t {
    margin: 0;
    font-family: "Russo One", "Bahnschrift SemiBold", "Segoe UI Semibold", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(33px, 4.3vw, 48px);
    letter-spacing: 0.018em;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: rgba(252, 250, 246, 0.96);
    text-shadow:
        0 0 16px rgba(255, 255, 255, 0.06),
        0 0 30px rgba(255, 255, 255, 0.03),
        0 3px 16px rgba(0, 0, 0, 0.24);
}

.subt {
    margin: -12px 0 0;
    color: rgba(248, 246, 242, 0.9);
    font-family: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: center;
    display: inline-grid;
    place-items: center;
    min-height: 1.4em;
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.03),
        0 2px 10px rgba(0, 0, 0, 0.18);
    will-change: opacity, text-shadow, filter;
}

.subt::before {
    content: attr(data-text);
    grid-area: 1 / 1;
    visibility: hidden;
    white-space: nowrap;
}

.subt-live {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 1.4em;
}

.subt-live::after {
    content: "";
    width: 1px;
    height: 1.1em;
    margin-left: 0.4em;
    background: rgba(248, 246, 242, 0.9);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
    animation: caret-blink 0.9s steps(1, end) infinite;
}

@keyframes caret-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .d,
    .d::after,
    .t,
    .subt-live::after {
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .status {
        width: 100%;
        min-height: 170px;
        padding: 12px 6px;
    }

    .dots {
        gap: 14px;
        height: 34px;
    }

    .d {
        width: 18px;
        height: 18px;
    }

    .t {
        font-size: clamp(30px, 9vw, 38px);
        line-height: 1.08;
        white-space: normal;
        text-wrap: balance;
    }

    .subt {
        font-size: 14px;
        letter-spacing: 0.07em;
        line-height: 1.45;
        white-space: normal;
        max-width: 30ch;
    }

    .subt::before,
    .subt-live {
        white-space: normal;
        text-wrap: balance;
    }

    .subt-live {
        display: block;
        max-width: 30ch;
    }

    .subt-live::after {
        display: none;
    }
}
