:root {
    --bg: #07090b;
    --panel: rgba(8, 12, 15, 0.92);
    --panel-soft: rgba(13, 18, 22, 0.88);
    --line: rgba(124, 149, 160, 0.22);
    --line-strong: rgba(124, 149, 160, 0.42);
    --text: #edf1f0;
    --muted: #8f9b9f;
    --green: #65c488;
    --green-dark: #225d3b;
    --amber: #d1a44a;
    --red: #a73a43;
    --shadow: rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    display: grid;
    place-items: center;
}

.backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(3, 5, 6, 0.98) 0%, rgba(4, 7, 8, 0.82) 48%, rgba(4, 7, 8, 0.5) 100%),
        radial-gradient(circle at 75% 30%, rgba(68, 91, 72, 0.18), transparent 34%),
        linear-gradient(135deg, #13191b 0%, #080b0d 52%, #111618 100%);
}

.backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 54px 54px;
}

.backdrop::after {
    content: "";
    position: absolute;
    right: -8vw;
    bottom: -22vh;
    width: 58vw;
    height: 74vh;
    transform: rotate(-9deg);
    border: 1px solid rgba(101, 196, 136, 0.12);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(101, 196, 136, 0.045) 0,
            rgba(101, 196, 136, 0.045) 2px,
            transparent 2px,
            transparent 24px
        );
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 180px 45px rgba(0, 0, 0, 0.82);
}

.loading-shell {
    position: relative;
    width: min(1180px, calc(100vw - 80px));
    min-height: 650px;
    padding: 34px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(7, 10, 12, 0.94), rgba(5, 8, 10, 0.9));
    box-shadow: 0 30px 90px var(--shadow);
}

.loading-shell::before,
.loading-shell::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 22px;
    border-top: 2px solid var(--green);
    top: -2px;
}

.loading-shell::before {
    left: -2px;
    border-left: 2px solid var(--green);
}

.loading-shell::after {
    right: -2px;
    border-right: 2px solid var(--green);
}

.brand-panel {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 128px;
    padding: 10px 0 26px;
    border-bottom: 1px solid var(--line);
}

.brand-mark {
    position: relative;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border: 1px solid rgba(101, 196, 136, 0.52);
    background: rgba(101, 196, 136, 0.045);
}

.brand-mark__top,
.brand-mark__bottom {
    position: absolute;
    left: 14px;
    width: 36px;
    height: 12px;
    border: 2px solid var(--green);
}

.brand-mark__top {
    top: 17px;
    border-bottom: 0;
}

.brand-mark__bottom {
    bottom: 17px;
    border-top: 0;
}

.brand-copy {
    min-width: 0;
}

.eyebrow,
.section-label,
.connection-label {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

h1 {
    margin: 5px 0 2px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.subtitle {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.server-chip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 15px;
    border: 1px solid rgba(101, 196, 136, 0.24);
    background: rgba(101, 196, 136, 0.06);
    color: #b8d9c3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.server-chip__light {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(101, 196, 136, 0.7);
    animation: pulse 1.5s ease-in-out infinite;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
    gap: 18px;
    margin-top: 26px;
}

.loading-card,
.community-card,
.tip-panel {
    border: 1px solid var(--line);
    background: var(--panel);
}

.loading-card {
    padding: 24px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 0 12px;
    font-size: 15px;
}

#status-percent {
    color: var(--green);
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 12px;
    padding: 2px;
    border: 1px solid var(--line-strong);
    background: #030506;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background:
        linear-gradient(90deg, var(--green-dark), var(--green));
    box-shadow: 0 0 18px rgba(101, 196, 136, 0.22);
    transition: width 0.35s ease;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.connection-item {
    min-width: 0;
    padding: 14px;
    border-left: 2px solid rgba(101, 196, 136, 0.45);
    background: rgba(255, 255, 255, 0.025);
}

.connection-item strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.community-card {
    position: relative;
    padding: 24px;
    overflow: hidden;
}

.community-card::after {
    content: "DNA";
    position: absolute;
    right: -12px;
    bottom: -30px;
    color: rgba(101, 196, 136, 0.035);
    font-size: 118px;
    font-weight: 900;
    pointer-events: none;
}

.community-card h2 {
    max-width: 290px;
    margin: 19px 0 10px;
    font-size: 25px;
    line-height: 1.08;
}

.community-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.discord-button {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    display: block;
    padding: 14px;
    border: 1px solid rgba(101, 196, 136, 0.42);
    background: rgba(101, 196, 136, 0.09);
    color: #d8e9dd;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    transition: 0.2s ease;
}

.discord-button:hover {
    background: rgba(101, 196, 136, 0.17);
    border-color: var(--green);
}

.tip-panel {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 110px;
    margin-top: 18px;
    padding: 18px 22px;
}

.tip-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(209, 164, 74, 0.48);
    color: var(--amber);
    font-size: 24px;
    font-weight: 900;
}

.tip-copy p {
    margin: 8px 0 0;
    min-height: 22px;
    color: #d7dedc;
    font-size: 16px;
    line-height: 1.4;
    transition: opacity 0.18s ease;
}

.tip-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #657176;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.footer-separator {
    width: 34px;
    height: 1px;
    background: var(--line-strong);
}

@keyframes pulse {
    0%, 100% { opacity: 0.48; }
    50% { opacity: 1; }
}

@media (max-width: 850px) {
    .loading-shell {
        width: calc(100vw - 28px);
        min-height: auto;
        padding: 22px;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        min-height: 220px;
    }

    .brand-panel {
        align-items: flex-start;
    }

    .server-chip {
        display: none;
    }
}

@media (max-height: 760px) {
    .loading-shell {
        transform: scale(0.88);
    }
}
