html {
    background:
        radial-gradient(circle at top, rgba(88, 101, 242, 0.35), transparent 45%),
        linear-gradient(180deg, #1e2124 0%, #111214 100%);
}

body {
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(circle at top, rgba(88, 101, 242, 0.35), transparent 45%),
        linear-gradient(180deg, #1e2124 0%, #111214 100%);
}

body div#topbar {
    position: relative;
    min-height: 88px;
    margin: 0;
    border-bottom: 0;
    background: none;
}

body div#topbar a#branding {
    align-self: center;
}

body div#topbar a#branding img#icon {
    width: 72px;
    height: 72px;
}

body nav#siteNav {
    align-self: center;
}

body button#navToggle {
    align-self: center;
}

div#mainContent {
    display: block;
    min-height: calc(100vh - 88px);
    padding: 0 24px 56px;
    overflow: hidden;
}

.discord-scroll-stage {
    width: min(100%, 1060px);
    margin: 0 auto;
    min-height: 220vh;
}

.discord-hero {
    position: fixed;
    inset: 88px 24px auto;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: calc(100vh - 88px);
    padding: 24px 0;
    will-change: transform, opacity;
}

.discord-scroll-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
    margin-top: 24px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(88, 101, 242, 0.22);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
}

.discord-scroll-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

main.discord-page {
    width: min(100%, 860px);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
    padding: 32px;
    border-radius: 24px;
    background: rgba(17, 18, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

main.discord-page .content {
    display: grid;
    gap: 18px;
    align-content: start;
}

main.discord-page .badge {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

main.discord-page h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

main.discord-page p {
    margin: 0;
    color: #d7d9dd;
    line-height: 1.6;
    font-size: 1.05rem;
}

main.discord-page a.button {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: #5865f2;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

main.discord-page iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 18px;
    background: #2b2d31;
}

.discord-public {
    position: relative;
    z-index: 2;
    min-height: 55vh;
    padding: 200vh 0 24px;
}

.discord-public h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.discord-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.discord-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 128px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 18, 20, 0.82);
}

.discord-card img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.discord-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.15;
}

.discord-card p {
    display: -webkit-box;
    margin: 6px 0 10px;
    overflow: hidden;
    color: #d7d9dd;
    font-size: 0.9rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discord-card a {
    display: inline-flex;
    width: fit-content;
    padding: 0.45rem 0.68rem;
    border-radius: 999px;
    background: #5865f2;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1;
    text-decoration: none;
}

.discord-empty {
    color: #d7d9dd;
}

@media (max-width: 760px) {
    main.discord-page {
        position: relative;
        grid-template-columns: 1fr;
        padding: 24px;
    }

    main.discord-page .content {
        padding-top: 48px;
    }

    main.discord-page a.button {
        position: absolute;
        top: 24px;
        right: 24px;
        padding: 0.7rem 0.95rem;
    }

    main.discord-page iframe {
        min-height: 300px;
    }
}
