:root {
    --bg: #0b1110;
    --panel: rgba(255, 255, 255, .075);
    --panel-strong: rgba(255, 255, 255, .11);
    --text: #f5f2e9;
    --muted: rgba(245, 242, 233, .66);
    --faint: rgba(245, 242, 233, .44);
    --line: rgba(245, 242, 233, .16);
    --green: #58d36c;
    --red: #ff5f57;
    --accent: #5cc9d9;
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(217, 184, 111, .08), transparent 32%),
        linear-gradient(225deg, rgba(88, 211, 108, .08), transparent 30%),
        linear-gradient(180deg, #0b1110 0%, #121916 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 242, 233, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 242, 233, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
    mask-image: linear-gradient(120deg, #000, transparent 72%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: calc(100% - 48px);
    max-width: 1120px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .74fr) minmax(380px, .76fr);
    align-items: center;
    gap: 96px;
    padding: 36px 0;
}

.hero {
    justify-self: start;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 7px 12px 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: rgba(245, 242, 233, .88);
    font-size: 14px;
    font-weight: 700;
}

.brand-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 6px solid var(--accent);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .38), 0 0 22px rgba(92, 201, 217, .22);
}

.hero-copy {
    margin-top: 34px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin-top: 18px;
    font-size: clamp(42px, 5.4vw, 64px);
    line-height: .94;
    font-weight: 860;
    letter-spacing: 0;
}

.tagline {
    max-width: 380px;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.7;
}

.access-panel {
    justify-self: end;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 18, 17, .78);
    box-shadow: 0 24px 68px rgba(0, 0, 0, .4);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h2 {
    margin-top: 4px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 820;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.6;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.legend-dot,
.health-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(245, 242, 233, .34);
    box-shadow: 0 0 0 4px rgba(245, 242, 233, .07);
}

.health-dot {
    margin-left: 7px;
    transform: translateY(-1px);
}

.is-online,
.health-online .health-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(88, 211, 108, .14), 0 0 18px rgba(88, 211, 108, .5);
}

.is-offline,
.health-offline .health-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 95, 87, .13), 0 0 18px rgba(255, 95, 87, .38);
}

.link-list {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.access-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.access-link:hover,
.sponsor-link:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 242, 233, .34);
    background: var(--panel-strong);
}

.access-link:active,
.sponsor-link:active {
    transform: translateY(0);
}

.access-link.is-primary {
    color: #081108;
    background: linear-gradient(135deg, #7fe58b, #48c55e);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 18px 42px rgba(88, 211, 108, .2);
}

.access-link.is-primary .link-arrow {
    color: rgba(8, 17, 8, .62);
}

.link-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.link-label {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.link-arrow {
    color: var(--faint);
    font-size: 16px;
    font-weight: 900;
}

.sponsor-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 22px 22px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 184, 111, .3);
    border-radius: 8px;
    background: rgba(217, 184, 111, .08);
    color: var(--muted);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.sponsor-link strong {
    display: inline-flex;
    align-items: center;
    color: #ffe4a7;
    font-size: 15px;
    line-height: 1.35;
}

.sponsor-link small {
    color: rgba(245, 242, 233, .58);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 980px) {
    .page-shell {
        width: calc(100% - 28px);
        max-width: 520px;
        grid-template-columns: 1fr;
        gap: 18px;
        align-content: center;
        padding: 18px 0;
    }

    .hero {
        display: grid;
        gap: 12px;
    }

    .hero-copy {
        margin-top: 0;
    }

    .eyebrow {
        font-size: 11px;
    }

    h1 {
        margin-top: 8px;
        font-size: clamp(34px, 10vw, 44px);
    }

    .tagline {
        max-width: none;
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .panel-head {
        padding: 16px 16px 12px;
    }

    h2 {
        font-size: 21px;
    }

    .link-list {
        gap: 8px;
        padding: 14px 16px 16px;
    }

    .access-link {
        min-height: 52px;
        padding: 12px 14px;
    }

    .link-label {
        font-size: 16px;
    }

    .sponsor-link {
        margin: 0 16px 16px;
        padding: 13px 14px;
    }
}

@media (max-width: 460px) {
    .page-shell {
        width: calc(100% - 20px);
        gap: 12px;
        padding: 10px 0;
    }

    .brand {
        min-height: 34px;
        padding: 5px 10px 5px 6px;
        font-size: 13px;
    }

    .brand-ring {
        width: 20px;
        height: 20px;
        border-width: 5px;
    }

    .hero {
        gap: 8px;
    }

    .eyebrow {
        display: none;
    }

    h1 {
        margin-top: 0;
        font-size: 32px;
    }

    .tagline {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    .panel-head,
    .sponsor-link {
        display: grid;
        gap: 8px;
    }

    .panel-head {
        padding: 12px 13px 10px;
    }

    .panel-kicker {
        font-size: 10px;
    }

    h2 {
        margin-top: 2px;
        font-size: 18px;
    }

    .legend {
        justify-content: flex-start;
        gap: 6px 10px;
        font-size: 11px;
    }

    .legend-dot,
    .health-dot {
        width: 8px;
        height: 8px;
    }

    .health-dot {
        margin-left: 6px;
    }

    .link-list {
        gap: 7px;
        padding: 11px 13px 13px;
    }

    .access-link {
        min-height: 46px;
        padding: 10px 12px;
    }

    .link-label {
        font-size: 15px;
    }

    .link-arrow {
        font-size: 14px;
    }

    .sponsor-link {
        margin: 0 13px 13px;
        padding: 11px 12px;
    }

    .sponsor-link strong {
        font-size: 14px;
    }

    .sponsor-link small {
        font-size: 11px;
        text-align: left;
    }
}

@media (max-height: 680px) and (max-width: 460px) {
    .brand {
        display: none;
    }

    .tagline {
        max-width: 30em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .panel-head {
        align-items: center;
        grid-template-columns: 1fr auto;
    }

    .legend {
        display: none;
    }
}
