:root {
    --black: #050505;
    --black-2: #0b0b0b;
    --panel: rgba(17,17,17,.88);
    --panel-2: rgba(25,25,25,.82);
    --gold-1: #fff4b0;
    --gold-2: #ffd45f;
    --gold-3: #f4a81d;
    --gold-4: #b96e06;
    --cream: #fff9df;
    --text: #fffdf7;
    --muted: #b7ae97;
    --line: rgba(255,212,95,.22);
    --green: #75f2aa;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 20px; }
body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% -10%, rgba(255,196,64,.20), transparent 30%),
        radial-gradient(circle at 8% 34%, rgba(244,168,29,.09), transparent 24%),
        radial-gradient(circle at 92% 54%, rgba(255,212,95,.08), transparent 24%),
        linear-gradient(180deg, #070707 0%, #030303 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 54px 54px;
}

.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

.hero {
    position: relative;
    display: grid;
    place-items: start center;
    text-align: center;
    padding: 24px 0 34px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,106,.25), rgba(244,168,29,.08) 34%, transparent 68%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-title {
    margin: 0 auto;
    padding: 0 12px 18px;
    max-width: 1100px;
    line-height: .84;
    text-transform: uppercase;
}

.hero-title .club {
    display: block;
    color: var(--cream);
    font-size: clamp(34px, 6vw, 74px);
    letter-spacing: .34em;
    text-indent: .34em;
    font-weight: 900;
    margin-bottom: 18px;
    text-shadow: 0 2px 18px rgba(255,255,255,.12);
}

.hero-title .number {
    position: relative;
    display: inline-block;
    padding: 6px 24px 22px;
    font-size: clamp(92px, 18vw, 220px);
    font-weight: 1000;
    letter-spacing: -.085em;
    color: transparent;
    background: linear-gradient(100deg, #8f5700 0%, #f5ae24 18%, #fff4b0 40%, #d89312 62%, #fff0a0 78%, #9d5e00 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.50)) drop-shadow(0 0 28px rgba(255,190,45,.18));
    animation: goldSweep 7s linear infinite;
}

@keyframes goldSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}

.hero-tagline {
    margin: 4px auto 0;
    max-width: 760px;
    color: var(--cream);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.04em;
}

.hero-copy {
    margin: 20px auto 0;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.hero-copy strong { color: var(--gold-1); }

.hero-stats {
    width: min(860px, 100%);
    margin: 44px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 22px 70px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06);
}

.stat { padding: 22px 14px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--gold-1); font-size: 30px; font-weight: 950; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }

.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #c7b98e;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.scroll-cue::after { content: "↓"; color: var(--gold-2); font-size: 19px; }

section { padding: 58px 0 34px; }
.section-head { text-align: center; margin-bottom: 34px; }
.kicker { color: var(--gold-2); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
h2 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -.05em; }
.section-head p { max-width: 700px; margin: 16px auto 0; color: var(--muted); line-height: 1.65; }

.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.member-card {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
        linear-gradient(180deg, #17140f, #090909 74%);
    box-shadow: 0 28px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91,79,255,.72);
    box-shadow: 0 34px 95px rgba(0,0,0,.68), 0 0 42px rgba(109,59,255,.10), inset 0 1px 0 rgba(255,255,255,.1);
}
.member-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -55%;
    width: 34%;
    height: 180%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,244,176,.17), transparent);
    animation: cardShine 6.5s ease-in-out infinite;
}
@keyframes cardShine {
    0%, 58% { left: -55%; }
    82%, 100% { left: 130%; }
}

.card-top { display: flex; justify-content: space-between; gap: 20px; position: relative; z-index: 2; }
.avatar {
    width: 92px;
    height: 92px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid #5367ff;
    background: #111;
    box-shadow:
        0 0 0 8px rgba(22,139,255,.08),
        0 0 28px rgba(109,59,255,.22),
        0 18px 40px rgba(0,0,0,.45);
    transition: transform .22s ease, box-shadow .22s ease;
}
.avatar:hover {
    transform: scale(1.07);
    box-shadow:
        0 0 0 8px rgba(22,139,255,.10),
        0 0 42px rgba(109,59,255,.30),
        0 20px 45px rgba(0,0,0,.5);
}
.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.crown { color: #8b5cff; font-size: 30px; filter: drop-shadow(0 0 14px rgba(109,59,255,.22)); }
.member-label { margin-top: 28px; color: #7e76ff; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 900; }
.member-name { margin-top: 8px; font-size: clamp(38px, 6vw, 60px); line-height: 1; font-weight: 1000; letter-spacing: -.06em; }
.member-role { margin-top: 10px; color: var(--cream); font-size: 15px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.verified { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--green); font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.verified::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

.twitch-link {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 46px 1fr 22px;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 17px;
    border: 1px solid rgba(89,78,255,.44);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(145,70,255,.13), rgba(255,255,255,.025));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.twitch-link:hover {
    transform: translateY(-2px);
    border-color: #a970ff;
    background: linear-gradient(135deg, rgba(145,70,255,.24), rgba(255,255,255,.04));
    box-shadow: 0 14px 34px rgba(75,25,145,.25), 0 0 24px rgba(145,70,255,.14);
}
.twitch-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #a970ff, #6441a5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px rgba(80,30,150,.35);
}
.twitch-icon svg { width: 27px; height: 27px; fill: white; }
.twitch-copy { min-width: 0; }
.twitch-copy strong { display: block; color: white; font-size: 16px; line-height: 1.2; }
.twitch-copy span { display: block; margin-top: 5px; color: #c9a8ff; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.twitch-arrow { color: #826cff; font-size: 23px; transition: transform .2s ease; }
.twitch-link:hover .twitch-arrow { transform: translateX(4px); }

.roster-panel {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 24px 70px rgba(0,0,0,.46);
}
.roster-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.roster-head h3 { margin: 0; font-size: 27px; }
.roster-count { color: #7b73ff; font-weight: 900; }
.empty-state { margin-top: 22px; padding: 28px; border: 1px dashed rgba(255,212,95,.27); border-radius: 18px; text-align: center; color: var(--muted); background: rgba(255,212,95,.025); }
.empty-state strong { display: block; color: var(--cream); font-size: 19px; margin-bottom: 7px; }

footer { padding: 12px 0 24px; }
.footer-inner { display: flex; justify-content: center; padding-top: 18px; border-top: 1px solid rgba(255,212,95,.16); color: #b89a45; font-size: 13px; text-align: center; }

.particle { position: absolute; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 14px rgba(255,212,95,.45); opacity: .35; animation: drift 7s ease-in-out infinite; }
.p1 { width: 4px; height: 4px; left: 8%; top: 22%; }
.p2 { width: 6px; height: 6px; right: 10%; top: 28%; animation-delay: -2s; }
.p3 { width: 3px; height: 3px; left: 22%; top: 63%; animation-delay: -4s; }
.p4 { width: 5px; height: 5px; right: 24%; top: 69%; animation-delay: -1s; }
@keyframes drift { 0%,100% { transform: translateY(0); opacity:.18; } 50% { transform: translateY(-22px); opacity:.58; } }

@media (max-width: 820px) {
    .hero { min-height: auto; padding-bottom: 58px; }
    .hero-stats, .leader-grid { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .footer-inner { justify-content: center; }
}

@media (max-width: 520px) {
    .wrap { width: min(100% - 22px, 1160px); }
    .hero { padding-top: 16px; }
    .hero-title .club { letter-spacing: .22em; text-indent: .22em; margin-bottom: 12px; }
    .hero-title .number { padding-inline: 8px; font-size: clamp(82px, 26vw, 125px); }
    .member-card, .roster-panel { padding: 22px; border-radius: 20px; }
    section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Reusable page navigation */
.page-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}
.page-button {
    min-width: 175px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    border: 1px solid rgba(255,212,95,.35);
    border-radius: 14px;
    color: var(--cream);
    background:
        linear-gradient(145deg, rgba(255,212,95,.11), rgba(255,255,255,.025)),
        #0d0d0d;
    box-shadow: 0 13px 35px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.page-button:hover,
.page-button.active {
    transform: translateY(-3px);
    color: #171004;
    border-color: var(--gold-1);
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 44%, var(--gold-3));
    box-shadow: 0 17px 42px rgba(0,0,0,.45), 0 0 30px rgba(255,194,53,.22);
}
.page-button .button-icon {
    font-size: 18px;
}
.site-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255,212,95,.15);
    background: rgba(5,5,5,.87);
    backdrop-filter: blur(14px);
}
.site-nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-brand {
    color: var(--gold-1);
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.site-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav-links a {
    padding: 10px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    transition: color .18s ease, background .18s ease;
}
.site-nav-links a:hover,
.site-nav-links a.active {
    color: var(--gold-1);
    background: rgba(255,212,95,.08);
}
.inner-hero {
    position: relative;
    padding: 78px 0 38px;
    text-align: center;
}
.inner-hero h1 {
    margin: 0;
    color: var(--cream);
    font-size: clamp(50px, 9vw, 96px);
    line-height: .95;
    letter-spacing: -.055em;
}
.inner-hero p {
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
.page-main {
    min-height: 0;
}
.roster-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.roster-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}
.roster-avatar {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 2px solid #5367ff;
    border-radius: 50%;
}
.roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.roster-name strong {
    display: block;
    color: var(--cream);
    font-size: 18px;
}
.roster-name span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}
.roster-percent {
    color: var(--gold-1);
    font-size: 22px;
    font-weight: 1000;
}

@media (max-width: 700px) {
    .site-nav-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }
    .site-nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .site-nav-links a {
        white-space: nowrap;
    }
    .page-button {
        width: 100%;
    }
}


/* Club 300 header logo */
.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 152px;
    color: inherit;
}
.site-logo-crown {
    color: var(--gold-2);
    font-size: 29px;
    line-height: 1;
    filter: drop-shadow(0 0 11px rgba(255,212,95,.34));
    transform: translateY(-1px);
}
.site-logo-copy {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
}
.site-logo-copy::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -45%;
    width: 28%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.68), transparent);
    animation: logoSweep 8s ease-in-out infinite;
}
@keyframes logoSweep {
    0%, 72% { left: -45%; }
    90%, 100% { left: 125%; }
}
.site-logo-club {
    color: var(--cream);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.site-logo-number {
    color: transparent;
    background: linear-gradient(115deg, #fff8c9 0%, var(--gold-1) 28%, var(--gold-2) 60%, var(--gold-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.07em;
    filter: drop-shadow(0 0 14px rgba(255,197,54,.20));
}

/* The page header now handles navigation, so the home hero needs no extra buttons. */
.hero-inner {
    padding-bottom: 12px;
}

/* Compact member roster */
.roster-wrap {
    width: min(760px, calc(100% - 36px));
}
.roster-panel {
    padding: 26px;
}
.roster-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    padding: 14px 16px;
}
.roster-avatar {
    width: 54px;
    height: 54px;
}
.roster-badge {
    min-width: 86px;
    padding: 8px 11px;
    border: 1px solid rgba(86,77,220,.46);
    border-radius: 999px;
    color: #9eb9ff;
    background: rgba(86,77,220,.09);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
}
.roster-badge.founder-badge {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(110deg, #285edc, #6444e8 60%, #913fc5);
    box-shadow: 0 0 20px rgba(86,77,220,.12);
}

@media (max-width: 560px) {
    .site-logo {
        min-width: auto;
    }
    .site-logo-number {
        font-size: 27px;
    }
    .roster-wrap {
        width: min(100% - 24px, 760px);
    }
    .roster-row {
        grid-template-columns: 50px minmax(0, 1fr);
    }
    .roster-badge {
        grid-column: 2;
        width: fit-content;
        min-width: 0;
    }
}


/* Image logo header */
.site-logo-image {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.site-logo-image img {
    display: block;
    width: 132px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255, 199, 61, .28));
    transition: transform .2s ease, filter .2s ease;
}
.site-logo-image:hover img {
    transform: scale(1.035);
    filter: drop-shadow(0 0 19px rgba(255, 199, 61, .48));
}
.site-nav-inner {
    min-height: 86px;
}
.site-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-icon {
    color: var(--gold-2);
    font-size: 15px;
}
@media (max-width: 700px) {
    .site-logo-image img {
        width: 112px;
    }
    .site-nav-inner {
        min-height: auto;
    }
}


/* Footer spacing fix — keep footer close to page content */
.hero { min-height: 0 !important; padding-bottom: 34px !important; }
.page-main { min-height: 0 !important; }
.page-main > section:last-child { padding-bottom: 34px; }
footer { margin-top: 0; padding-top: 12px; padding-bottom: 24px; }


/* Database member fallbacks */
.avatar-static {
    cursor: default;
}

.avatar-initials,
.roster-avatar-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #171004;
    background:
        radial-gradient(circle at 32% 25%, #79c9ff, #5968ff 48%, #6d32d9 100%);
    font-weight: 1000;
    letter-spacing: -.03em;
}

.avatar-initials {
    font-size: 24px;
}

.roster-avatar-initials {
    font-size: 16px;
}

.member-no-twitch {
    position: relative;
    z-index: 3;
    margin-top: 20px;
    padding: 15px 17px;
    border: 1px dashed rgba(255,212,95,.18);
    border-radius: 16px;
    color: #8f8775;
    background: rgba(255,212,95,.018);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.roster-row-static {
    cursor: default;
}

.roster-row-static:hover {
    background: rgba(255,255,255,.025);
}


/* Public Founder Perks */
.perks-public-hero {
    padding-bottom: 24px;
}

.perks-public-section {
    padding-top: 22px;
}

.perks-public-wrap {
    width: min(980px, calc(100% - 32px));
}

.perks-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.perk-public-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 17px;
    min-height: 150px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,212,95,.09), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.014)),
        #0c0b09;
    box-shadow: 0 20px 58px rgba(0,0,0,.35);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.perk-public-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,212,95,.42);
    box-shadow: 0 26px 70px rgba(0,0,0,.45), 0 0 34px rgba(255,190,45,.08);
}

.perk-public-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #171004;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
    font-size: 25px;
    font-weight: 1000;
    box-shadow: 0 13px 30px rgba(205,127,12,.16);
}

.perk-public-copy h2 {
    margin: 2px 0 9px;
    color: var(--cream);
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.perk-public-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.perks-public-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 34px;
    border: 1px dashed rgba(255,212,95,.25);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255,212,95,.02);
    text-align: center;
}

.perks-public-empty > span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 16px;
    color: #171004;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
    font-size: 22px;
}

.perks-public-empty strong {
    display: block;
    color: var(--cream);
    font-size: 21px;
}

.perks-public-empty p {
    margin: 9px 0 0;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .perks-public-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .perk-public-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 18px;
    }

    .perk-public-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 21px;
    }
}

/* =========================================================
   PERFORMANCE PASS
   Keeps the visual design while reducing scroll repaint cost.
   ========================================================= */

/* The grid texture no longer needs to be a fixed viewport layer.
   Making it part of the document avoids repainting it every scroll frame. */
body {
    position: relative;
}

body::before {
    position: absolute;
}

/* Keep the navigation visually almost identical without expensive
   real-time backdrop blur behind a sticky element. */
.site-nav {
    background: rgba(5,5,5,.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Continuous decorative sweeps are costly while the page is moving.
   The gold gradients/glows remain; only the constant motion is removed. */
.hero-title .number {
    animation: none;
    background-position: 45% 50%;
}

.member-card::before,
.site-logo-copy::after {
    display: none;
}

.particle {
    animation: none;
}

/* Skip painting long-list content until it is close to the viewport.
   This is especially helpful on roster, perks, and Monopoly pages. */
.member-card,
.roster-row,
.perk-public-card,
.mono-rule {
    content-visibility: auto;
}

.member-card {
    contain-intrinsic-size: 350px;
}

.roster-row {
    contain-intrinsic-size: 68px;
}

.perk-public-card,
.mono-rule {
    contain-intrinsic-size: 135px;
}


/* ===== FOUNDERS / ROSTER EXACT BLUE-PURPLE FIX ===== */
.member-card{
    border-color:rgba(48,69,117,.68);
    background:
        radial-gradient(circle at 12% 10%,rgba(22,139,255,.055),transparent 38%),
        linear-gradient(180deg,#071027,#040a1b 74%);
}
.member-card:hover{
    border-color:rgba(91,79,255,.80);
    box-shadow:0 34px 95px rgba(0,0,0,.58),0 0 34px rgba(109,59,255,.10),inset 0 1px 0 rgba(255,255,255,.08);
}
.avatar{
    border-color:#5367ff;
    box-shadow:0 0 0 8px rgba(22,139,255,.08),0 0 28px rgba(109,59,255,.20),0 18px 40px rgba(0,0,0,.45);
}
.avatar:hover{
    box-shadow:0 0 0 8px rgba(22,139,255,.10),0 0 40px rgba(109,59,255,.28),0 20px 45px rgba(0,0,0,.5);
}
.avatar-initials,.roster-avatar-initials{
    color:#fff;
    background:radial-gradient(circle at 32% 25%,#79c9ff,#5968ff 48%,#6d32d9 100%);
}
.crown{
    color:#8b5cff;
    filter:drop-shadow(0 0 14px rgba(109,59,255,.22));
}
.member-label{
    color:#7e76ff;
}
.member-role{
    color:#f5f7fb;
}
.twitch-link{
    border-color:rgba(89,78,255,.44);
    background:linear-gradient(135deg,rgba(92,57,213,.18),rgba(255,255,255,.025));
}
.twitch-link:hover{
    border-color:#8c6cff;
    background:linear-gradient(135deg,rgba(92,57,213,.28),rgba(255,255,255,.04));
}
.twitch-arrow{
    color:#826cff;
}

.roster-panel{
    border-color:rgba(48,69,117,.68);
}
.roster-count{
    color:#7b73ff;
}
.roster-row{
    border-color:rgba(48,69,117,.64);
}
.roster-row:hover{
    border-color:rgba(91,79,255,.82);
}
.roster-avatar{
    border-color:#5367ff;
}
.roster-badge{
    border-color:rgba(86,77,220,.46);
    color:#9eb9ff;
    background:rgba(86,77,220,.09);
}
.roster-badge.founder-badge,
.founder-badge{
    color:#fff;
    border-color:transparent;
    background:linear-gradient(110deg,#285edc,#6444e8 60%,#913fc5);
    box-shadow:0 0 20px rgba(86,77,220,.12);
}
