:root {
    color-scheme: dark;
    --black: #070809;
    --bg: #0b0c0e;
    --bg-2: #101215;
    --panel: #15181b;
    --panel-2: #1a1d21;
    --bone: #d0d0cd;
    --white: #f2f2ef;
    --steel: #94979a;
    --muted: #a8aaad;
    --line: rgba(208, 208, 205, .16);
    --line-strong: rgba(208, 208, 205, .38);
    --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
    margin: 0;
    background:
        radial-gradient(circle at 76% -10%, rgba(255,255,255,.06), transparent 34rem),
        linear-gradient(180deg, #090a0b, var(--bg));
    color: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .16;
    background-image: radial-gradient(rgba(255,255,255,.35) .6px, transparent .7px);
    background-size: 5px 5px;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px max(18px, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(7, 8, 9, .93);
    backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark, .mini-mark {
    display: block;
    overflow: hidden;
    border-radius: 50%;
    background: #08090a;
    border: 2px solid var(--bone);
    flex: 0 0 auto;
}
.brand__mark { width: 50px; height: 50px; }
.brand__mark img, .mini-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); filter: grayscale(1) contrast(1.15); }
.brand__text { display: grid; line-height: 1.08; }
.brand__text strong { font-size: .88rem; letter-spacing: .055em; text-transform: uppercase; }
.brand__text small { margin-top: 5px; color: var(--steel); font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--white);
    font-size: 1.2rem;
    padding: 8px 11px;
    cursor: pointer;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.main-nav a {
    padding: 9px 10px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: .2s ease;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--white);
    border-color: var(--line-strong);
    background: rgba(255,255,255,.045);
}
.nav-intern { border-color: var(--line) !important; }
.live-pill {
    display: flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 900;
    white-space: nowrap;
}
.live-pill span, .presence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #75d69c;
    box-shadow: 0 0 10px rgba(117,214,156,.45);
}

.kicker, .card-label {
    display: block;
    margin-bottom: 12px;
    color: var(--steel);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.lead { max-width: 650px; margin-bottom: 0; color: #c0c1c0; font-size: clamp(1.05rem, 2vw, 1.3rem); }

.home-hero {
    width: min(var(--max), calc(100% - 44px));
    min-height: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: clamp(34px, 7vw, 100px);
    padding: clamp(70px, 8vw, 120px) 0;
}
h1 {
    margin-bottom: 26px;
    font-size: clamp(4.1rem, 9.8vw, 8.8rem);
    line-height: .82;
    letter-spacing: -.07em;
    text-transform: uppercase;
}
h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.045em; text-transform: uppercase; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; min-width: 0; justify-content: center; padding: 12px 18px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); text-decoration: none; font-weight: 950; letter-spacing: .07em; text-transform: uppercase; transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.button--solid { color: #0a0b0c; background: var(--bone); }
.button--solid:hover { background: var(--white); }

.hero-emblem { display: grid; place-items: center; }
.hero-emblem__ring, .page-logo {
    overflow: hidden;
    border-radius: 50%;
    background: #090a0b;
    border: 3px solid var(--bone);
    box-shadow: 0 0 0 14px rgba(208,208,205,.035), 0 38px 100px rgba(0,0,0,.48);
}
.hero-emblem__ring { width: min(430px, 38vw); aspect-ratio: 1; }
.hero-emblem__ring img, .page-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); filter: grayscale(1) contrast(1.2); }

.home-strip {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto 22px;
    display: grid;
    grid-template-columns: 1.55fr .7fr .7fr .7fr;
    gap: 12px;
}
.next-lan-card, .fact-card, .link-grid a, .content-card, .member-card, .countdown-panel, .timeline__card, .news-card, .empty-state, .legal-block {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.next-lan-card { min-height: 185px; padding: 24px; position: relative; text-decoration: none; }
.next-lan-card > strong { display: block; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -.035em; }
.next-lan-card > span:not(.card-label) { color: var(--muted); }
.countdown { display: flex; align-items: baseline; gap: 10px; margin-top: 25px; }
.countdown b { font-size: 2.3rem; line-height: 1; }
.countdown span { color: var(--steel); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fact-card { min-height: 185px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.fact-card span { color: var(--steel); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fact-card strong { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.5rem); text-transform: uppercase; }
.fact-card small { color: var(--muted); text-transform: uppercase; font-size: .68rem; font-weight: 900; }

.link-grid { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 22px 0 110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.link-grid a { min-height: 220px; padding: 22px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.link-grid a:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.link-grid a > span { color: var(--steel); font: 800 .75rem ui-monospace, monospace; }
.link-grid strong { display: block; margin: 54px 0 10px; font-size: 1.55rem; text-transform: uppercase; }
.link-grid p { margin-bottom: 0; color: var(--muted); }

.home-section, .fame-page { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 0 0 110px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); }
.section-head a { color: var(--muted); font-weight: 900; text-decoration: none; text-transform: uppercase; font-size: .78rem; }
.fact-card--bar, .content-card--accent { border-color: rgba(208,208,205,.3); background: linear-gradient(145deg, rgba(208,208,205,.08), rgba(255,255,255,.015)); }
.fact-card--minecraft { border-color: rgba(208,208,205,.28); }

/* Trending Games */
.trending-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.trending-card {
    min-height: 170px;
    padding: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}
.trending-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.trending-card::before {
    content: "";
    position: absolute;
    right: -18px; top: -18px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(208,208,205,.06);
    filter: blur(16px);
}
.trending-card__count {
    position: absolute;
    right: 14px; top: 10px;
    font-size: 2.4rem;
    font-weight: 950;
    color: rgba(255,255,255,.10);
    line-height: 1;
}
.trending-card__voice {
    position: absolute;
    left: 14px; top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(117,214,156,.35);
    color: #a4e6bd;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.trending-card strong {
    display: block;
    font-size: 1.05rem;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 10px;
    position: relative;
}
.trending-card small {
    color: var(--muted);
    font-size: .74rem;
    position: relative;
}
.trending-card--empty {
    grid-column: 1 / -1;
    min-height: 120px;
    justify-content: center;
    align-items: center;
}
.trending-card--empty p { color: var(--muted); margin: 0; }

.page-hero { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: clamp(76px, 9vw, 128px) 0 64px; }
.page-hero--split { display: grid; grid-template-columns: 1fr .55fr; gap: 70px; align-items: center; }
.page-hero--compact { max-width: 1180px; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.page-logo { justify-self: end; width: min(330px, 31vw); aspect-ratio: 1; }

.content-grid, .roster-page, .roadmap-wrap, .news-page, .legal-wrap { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 0 0 110px; }
.content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; }
.content-card { min-height: 245px; padding: 28px; }
.content-card--wide { grid-row: span 2; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.content-card--wide p { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.content-card h3 { margin-top: 50px; font-size: 2rem; text-transform: uppercase; }
.content-card p { color: var(--muted); }
.content-card--minecraft { grid-column: 1 / -1; min-height: 190px; }

.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.member-card { min-height: 360px; padding: 24px; position: relative; overflow: hidden; }
.member-card__logo { width: 82px; height: 82px; margin-bottom: 70px; overflow: hidden; border-radius: 50%; border: 2px solid var(--bone); }
.member-card__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.member-card h2 { margin: 12px 0 7px; font-size: 2rem; }
.member-card p { margin-bottom: 4px; color: var(--muted); }
.member-since { color: var(--steel); font-size: .75rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; margin: -4px 0 8px; }
.member-card .member-role { color: var(--white); font-weight: 900; }
.badge { display: inline-flex; width: fit-content; padding: 5px 9px; border: 1px solid var(--line-strong); color: var(--bone); font-size: .67rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.badge--private { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.badge--admin { border-color: var(--bone); background: var(--bone); color: #090a0b; }

.roadmap-hero { display: grid; grid-template-columns: 1fr .7fr; gap: 60px; align-items: end; }
.countdown-panel { padding: 26px; margin-bottom: 18px; }
.countdown-panel > strong { display: block; font-size: 1.75rem; text-transform: uppercase; }
countdown-panel > p { color: var(--muted); }
.countdown--large { margin-top: 30px; }
.countdown--large b { font-size: clamp(3.5rem, 7vw, 6.5rem); }
.timeline { position: relative; max-width: 1000px; }
.timeline::before { content: ""; position: absolute; left: 35px; top: 32px; bottom: 32px; width: 2px; background: linear-gradient(var(--bone), rgba(208,208,205,.09)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 28px; padding-bottom: 28px; }
.timeline__rail { z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--bone); background: var(--bg); }
.timeline__rail span { font: 900 .78rem ui-monospace, monospace; }
.timeline__card { padding: 24px 28px 28px; }
.timeline__meta { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.timeline__meta time { font-weight: 900; }
.timeline__card h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.timeline__card p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.timeline__item--barbarian .timeline__rail { border-style: dashed; }
.timeline__item--minecraft .timeline__rail { border-style: double; border-width: 4px; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.news-card { min-height: 0; padding: 28px; }
.news-card time { color: var(--steel); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.news-card h2 { margin-top: 28px; font-size: 2rem; }
.news-card p { color: var(--muted); }
.news-card--private, .timeline__item--private .timeline__card { border-color: rgba(208,208,205,.42); background: linear-gradient(145deg,rgba(208,208,205,.09),rgba(255,255,255,.018)); }
.news-card--private .badge { margin-bottom: 12px; }
.empty-state { padding: 38px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.empty-state h2 { max-width: 700px; margin-bottom: 0; }

.fame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fame-card { position: relative; min-height: 0; padding: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.fame-card--podium { border-color: rgba(208,208,205,.35); background: linear-gradient(160deg, rgba(208,208,205,.08), var(--panel) 55%); }
.fame-rank { position: absolute; right: 20px; top: 15px; color: rgba(255,255,255,.12); font-size: 4.5rem; font-weight: 950; line-height: 1; }
.fame-avatar { width: 82px; height: 82px; border: 2px solid var(--bone); border-radius: 50%; overflow: hidden; margin-bottom: 42px; }
.fame-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fame-card h2, .fame-card h3 { position: relative; margin: 0 0 10px; font-size: 1.65rem; text-transform: uppercase; }
.fame-card > strong { display: block; font-size: 2rem; }
.fame-card > strong small { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.fame-card p { color: var(--muted); margin: 8px 0 0; }
.fame-card time { display: block; margin-top: 18px; color: var(--steel); font-size: .68rem; font-weight: 800; text-transform: uppercase; }

.legal-wrap { max-width: 900px; padding-top: 80px; }
.legal-wrap h1 { font-size: clamp(3.6rem, 8vw, 6.5rem); }
.legal-block { padding: 28px; }
.legal-block h2 { margin-top: 38px; font-size: 1.55rem; }
.legal-block h2:first-child { margin-top: 0; }
.legal-block p { color: #c4c5c5; }
.legal-block a { color: var(--white); }
.setup-note { margin-top: 14px; padding: 16px 18px; border-left: 2px solid var(--bone); background: rgba(255,255,255,.035); color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-footer {
    width: min(var(--max), calc(100% - 44px));
    margin: 0 auto;
    padding: 32px 0 46px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}
.site-footer > div { display: grid; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.site-footer a:hover { color: var(--white); }

/* IF Intern Control Center */
:root { --if-bg: #08090b; --if-panel: #111316; --if-panel2: #171a1f; --if-line: rgba(255,255,255,.12); --if-muted: #9da2aa; --if-text: #f2f2f0; --if-accent: #c8c8c4; --if-danger: #ef6f8f; --if-ok: #75d69c; }
.if-internal { margin: 0; background: var(--if-bg); color: var(--if-text); min-height: 100vh; }
.internal-layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.internal-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--if-line); background: #0b0d10; overflow: auto; }
.internal-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; text-decoration: none; color: inherit; }
.internal-brand > span { width: 48px; height: 48px; border: 2px solid #c8c8c4; border-radius: 50%; overflow: hidden; }
.internal-brand img { width: 100%; height: 100%; object-fit: cover; }
.internal-brand div { display: grid; }
.internal-brand strong { letter-spacing: .08em; }
.internal-brand small { color: var(--if-muted); font-size: .66rem; margin-top: 3px; }
.side-nav { display: grid; gap: 4px; }
.side-nav > p { margin: 20px 10px 7px; color: #707680; font-size: .62rem; font-weight: 900; letter-spacing: .18em; }
.side-nav a { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; padding: 11px 10px; border: 1px solid transparent; border-radius: 7px; color: #aeb2b8; text-decoration: none; font-size: .82rem; font-weight: 800; }
.side-nav a i { font-style: normal; text-align: center; color: #787e87; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: #171a1f; border-color: var(--if-line); }
.side-nav a.active i { color: #fff; }
.internal-main { min-width: 0; }
.internal-mobilebar { display: none; }
.internal-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 90px; }
.internal-hero, .internal-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 30px; }
.internal-hero { min-height: 0; }
.internal-hero h1, .internal-pagehead h1 { margin: 2px 0 8px; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.045em; }
.internal-hero p, .internal-pagehead p { margin: 0; color: var(--if-muted); max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: #aeb2b8; font-size: .66rem; font-weight: 950; letter-spacing: .17em; text-transform: uppercase; }
.role-chip, .status, .payment { display: inline-flex; align-items: center; width: max-content; padding: 6px 9px; border: 1px solid var(--if-line); border-radius: 999px; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status--planning { color: #e7c58a; border-color: rgba(231,197,138,.35); background: rgba(231,197,138,.08); }
.status--confirmed { color: #8be3ab; border-color: rgba(139,227,171,.35); background: rgba(139,227,171,.08); }
.status--cancelled { color: #ff9db4; border-color: rgba(255,157,180,.35); background: rgba(255,157,180,.08); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric { min-height: 135px; padding: 18px; border: 1px solid var(--if-line); background: var(--if-panel); display: flex; flex-direction: column; }
.metric span { color: var(--if-muted); font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.metric strong { font-size: 2.6rem; margin-top: auto; letter-spacing: -.04em; }
.metric small { color: var(--if-muted); }
.metric--accent { background: linear-gradient(145deg, rgba(255,255,255,.09), var(--if-panel)); }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; }
.panel { padding: 22px; border: 1px solid var(--if-line); background: var(--if-panel); border-radius: 2px; }
.panel--wide { grid-row: span 2; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; font-size: 1.65rem; }
.panel-head a { color: var(--if-muted); text-decoration: none; font-weight: 900; font-size: .72rem; text-transform: uppercase; }
.muted { color: var(--if-muted); }
.presence-list { display: grid; gap: 6px; }
.presence-list > div { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--if-line); }
.presence-list small { color: var(--if-muted); }
.lan-mini-status { display: grid; gap: 8px; margin-bottom: 20px; }
.lan-mini-status strong { font-size: 2.4rem; }
.compact-news { display: grid; }
.compact-news a { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid var(--if-line); color: inherit; text-decoration: none; }
.compact-news small { color: var(--if-muted); }
.page-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.flash { padding: 13px 15px; margin: 0 0 18px; border: 1px solid var(--if-line); background: var(--if-panel); }
.flash--ok { border-color: rgba(117,214,156,.35); color: #a4e6bd; }
.flash--bad { border-color: rgba(239,111,143,.4); color: #ffadc1; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; color: #b0b4ba; font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.form-stack input:not([type=checkbox]), .form-stack textarea, .form-stack select, .registration-row input { width: 100%; padding: 11px 12px; border: 1px solid var(--if-line); border-radius: 4px; background: #0b0d10; color: #fff; font: inherit; }
.form-stack textarea { resize: vertical; }
.form-stack .check { display: flex; align-items: center; gap: 8px; text-transform: none; font-size: .8rem; }
.form-stack .check input { width: auto; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-split, .account-grid, .lan-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.admin-split { margin-top: 18px; }
.admin-list { display: grid; gap: 8px; }
.admin-list article { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 13px; border-top: 1px solid var(--if-line); }
.admin-list article > div { display: grid; gap: 4px; }
.admin-list small { color: var(--if-muted); }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }
.button--danger { border-color: rgba(239,111,143,.45) !important; color: #ff9bb3 !important; }
.token-box { display: block; overflow: auto; padding: 12px; margin: 10px 0; border: 1px dashed var(--if-line); background: #08090b; color: #fff; }
.code-block { padding: 14px; overflow: auto; background: #090b0e; border: 1px solid var(--if-line); color: #d7dade; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; align-items: start; }
.calendar { border: 1px solid var(--if-line); background: var(--if-panel); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays b { padding: 10px; text-align: center; color: var(--if-muted); font-size: .65rem; text-transform: uppercase; }
.calendar-day { min-height: 125px; padding: 8px; border-top: 1px solid var(--if-line); border-right: 1px solid var(--if-line); overflow: hidden; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day--empty { background: rgba(255,255,255,.01); }
.calendar-day.today { box-shadow: inset 0 0 0 2px #c9c9c5; }
.calendar-daynum { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.calendar-daynum > a { color: #fff; text-decoration: none; }
.calendar-events { display: grid; gap: 4px; }
.cal-event { display: block; padding: 5px 6px; border-left: 2px solid #848991; background: #0c0e11; color: #d9dadd; text-decoration: none; font-size: .67rem; line-height: 1.2; }
.cal-event small { display: block; color: #8d939b; }
.cal-event--lan { border-color: #e1c48c; }
.cal-event--barbarian { border-color: #9fd4dc; }
.cal-event--minecraft { border-color: #8bd39d; }
.event-editor { position: sticky; top: 20px; }
.lan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lan-card { padding: 22px; border: 1px solid var(--if-line); background: var(--if-panel); color: inherit; text-decoration: none; }
.lan-card__top { display: flex; justify-content: space-between; align-items: center; }
.lan-card h2 { margin: 22px 0 6px; font-size: 2rem; }
.lan-card p, .lan-card small { color: var(--if-muted); }
.lan-card > strong { display: block; margin: 8px 0 4px; }
.progress { height: 8px; margin: 20px 0 5px; background: #08090b; border: 1px solid var(--if-line); overflow: hidden; }
.progress span { display: block; height: 100%; background: #c9c9c5; }
.progress--big { height: 12px; }
.profitability { margin-bottom: 12px; }
.profitability .panel-head strong { font-size: 2rem; }
.day-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.day-picks label { position: relative; padding: 12px; border: 1px solid var(--if-line); background: #0c0e11; text-transform: none; }
.day-picks input { position: absolute; right: 8px; top: 8px; }
.day-picks b, .day-picks span, .day-picks small { display: block; }
.day-picks b { font-size: 1.3rem; }
.day-picks small { color: var(--if-muted); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.checklist label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--if-line); font-size: .76rem; text-transform: none; }
.checklist small { color: var(--if-muted); }
.schedule-list { display: grid; }
.schedule-list > div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--if-line); }
.schedule-list span { color: var(--if-muted); }
.registration-table { display: grid; gap: 7px; }
.registration-row { display: grid; grid-template-columns: 1fr auto 170px; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid var(--if-line); }
.registration-row > div { display: grid; }
.registration-row small { color: var(--if-muted); }
.registration-row form { display: flex; gap: 5px; }
.payment--paid { color: #8be3ab; }
.payment--partial { color: #e7c58a; }
.payment--open { color: #ff9db4; }
.member-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.member-live-grid article { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 12px; border-top: 1px solid var(--if-line); }
.member-live-grid article > div { display: grid; }
.member-live-grid small { color: var(--if-muted); }
.user-table { display: grid; }
.user-table > div { display: grid; grid-template-columns: 1fr 100px 1fr; gap: 10px; padding: 10px; border-top: 1px solid var(--if-line); }
.user-table small { color: var(--if-muted); }
.internal-fame { display: grid; gap: 7px; }
.internal-fame article { display: grid; grid-template-columns: 50px 1fr auto auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--if-line); background: var(--if-panel); }
.internal-fame article > span { font-size: 1.5rem; color: #757a82; }
.internal-fame article > div { display: grid; }
.internal-fame small { color: var(--if-muted); }
.internal-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.news-meta { display: flex; gap: 8px; align-items: center; color: var(--if-muted); font-size: .7rem; }
.info-list { display: grid; }
.info-list > div { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--if-line); }
.info-list dt { color: var(--if-muted); }
.link-code { display: grid; gap: 5px; padding: 20px; margin: 16px 0; background: #08090b; border: 1px dashed #c7c7c3; }
.link-code strong { font-size: 2.4rem; letter-spacing: .18em; }
.link-code small { color: var(--if-muted); }
.big-balance { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 950; }
.finance-list { display: grid; }
.finance-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--if-line); }
.finance-list > div > div { display: grid; }
.finance-list small { color: var(--if-muted); }
.money-plus { color: #8be3ab; }
.money-minus { color: #ff9db4; }
.job-list { display: grid; }
.job-list > div { display: grid; grid-template-columns: auto 1fr; gap: 5px 9px; padding: 10px 0; border-top: 1px solid var(--if-line); }
.job-list small { grid-column: 2; color: var(--if-muted); }

.setup-body, .login-body { min-height: 100vh; background: #08090b; color: #f2f2ef; }
.setup-shell, .login-shell { width: min(560px, calc(100% - 30px)); margin: 7vh auto; padding: 28px; border: 1px solid var(--if-line); background: #111316; }
.setup-shell h1, .login-shell h1 { font-size: clamp(2.8rem, 8vw, 5rem); margin: 0 0 18px; }
.setup-logo, .login-logo { width: 82px; height: 82px; border-radius: 50%; border: 2px solid #c8c8c4; overflow: hidden; margin-bottom: 22px; }
.setup-logo { object-fit: cover; }
.login-logo img { width: 100%; height: 100%; object-fit: cover; }
.setup-card, .login-card { padding: 18px; border: 1px solid var(--if-line); background: #0b0d10; }
.setup-card small { color: var(--if-muted); }
.login-help {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid var(--if-line);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: var(--muted);
}
.login-help strong { color: var(--white); }
.login-help p { margin: 6px 0 0; }
.login-help code { color: var(--bone); }
.login-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 22px; }
.login-links .admin-back { margin-top: 0; }
.lead--small { margin: -10px 0 24px; font-size: 1rem; }

/* Admin */
.admin-body { min-height: 100vh; background: #08090b; }
.admin-topbar { position: sticky; top: 0; z-index: 20; min-height: 76px; padding: 10px max(18px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.94); backdrop-filter: blur(16px); }
.admin-topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-topbar nav a { padding: 9px 12px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.admin-shell { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 48px 0 100px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.admin-heading h1 { font-size: clamp(3rem, 7vw, 6rem); margin: 0; }
.admin-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.admin-panel { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.admin-panel h2 { font-size: 1.6rem; }
.admin-panel--list { display: grid; gap: 10px; }
.admin-hint { color: var(--muted); font-size: .9rem; }
.admin-form { display: grid; gap: 15px; }
.admin-form label { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.admin-form input:not([type=checkbox]), .admin-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 13px; background: #0d0f12; color: var(--white); font: inherit; }
.admin-form textarea { resize: vertical; }
.admin-form .check { display: flex; align-items: center; gap: 9px; width: fit-content; }
.admin-form select { width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; padding: 12px 13px; background: #0d0f12; color: var(--white); font: inherit; }
.admin-form label small { color: var(--steel); font-size: .67rem; font-weight: 700; text-transform: none; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.admin-row h3 { margin: 8px 0 4px; }
.admin-row small { color: var(--muted); }
.admin-alert { padding: 14px 16px; margin: 0 0 18px; border: 1px solid rgba(208,208,205,.3); background: rgba(208,208,205,.06); }
.admin-alert--error { border-color: rgba(239,111,143,.42); color: #ffb0c2; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.admin-stats a { min-height: 145px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.admin-stats span { color: var(--muted); text-transform: uppercase; font-size: .7rem; font-weight: 900; }
.admin-stats strong { font-size: 3rem; }
.admin-login { width: min(460px, calc(100% - 30px)); margin: 8vh auto 0; padding: 32px; border: 1px solid var(--line); background: var(--panel); }
.admin-login h1 { font-size: clamp(3rem, 10vw, 5rem); margin-bottom: 25px; }
.admin-login__logo { width: 78px; height: 78px; margin-bottom: 30px; }
.admin-back { display: inline-block; margin-top: 22px; color: var(--muted); text-decoration: none; }
.admin-stats--five { grid-template-columns: repeat(5, 1fr); }

/* Member profile */
.member-body { min-height: 100vh; background: #08090b; }
.member-topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; padding: 10px max(18px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(8,9,11,.95); backdrop-filter: blur(16px); }
.member-topbar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.member-topbar nav a { padding: 9px 11px; color: var(--muted); text-decoration: none; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.member-topbar nav a:hover { color: var(--white); }
.member-shell { width: min(var(--max), calc(100% - 44px)); margin: 0 auto; padding: 58px 0 110px; }
.member-hero { display: grid; grid-template-columns: 1fr .42fr; gap: 50px; align-items: end; min-height: 0; padding-bottom: 48px; }
.member-hero h1, .member-page-head h1 { margin-bottom: 22px; font-size: clamp(3.6rem, 8vw, 7rem); }
.member-role-card { min-height: 150px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.member-role-card strong { font-size: 2.2rem; }
.member-role-card small { color: var(--muted); margin-top: 6px; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 80px; }
.member-tile { min-height: 200px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.member-tile span { color: var(--steel); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.member-tile strong { margin-top: 8px; font-size: 1.35rem; text-transform: uppercase; }
.member-tile b { margin-top: auto; font-size: 3rem; line-height: 1; }
.member-tile small { color: var(--muted); margin-top: 8px; }
.member-tile--admin { border-color: var(--line-strong); }
.member-section { padding: 0 0 80px; }
.member-section--flush { padding-bottom: 0; }
.member-page-head { padding: 30px 0 56px; }
.private-list { display: grid; gap: 10px; }
.private-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.private-card strong { font-size: 1.15rem; text-transform: uppercase; }
.private-card time { color: var(--muted); font-weight: 900; }
.private-card p { grid-column: 2 / -1; margin: 0; color: var(--muted); }
.roadmap-wrap--member { width: 100%; padding-bottom: 0; }
.timeline__item--private .timeline__rail { box-shadow: 0 0 0 6px rgba(208,208,205,.08); }

/* Responsive */
@media (max-width: 1100px) {
    .main-nav a { padding: 8px 8px; font-size: .68rem; letter-spacing: .05em; }
    .trending-grid { grid-template-columns: repeat(3, 1fr); }
    .internal-layout { grid-template-columns: 220px 1fr; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .calendar-layout { grid-template-columns: 1fr; }
    .event-editor { position: static; }
    .dashboard-grid, .admin-split, .lan-detail-grid, .account-grid { grid-template-columns: 1fr; }
    .panel--wide { grid-row: auto; }
    .registration-row { grid-template-columns: 1fr auto; }
    .registration-row form { grid-column: 1 / -1; }
    .internal-fame article { grid-template-columns: 40px 1fr auto; }
    .internal-fame article > small { grid-column: 2 / -1; }
    .admin-stats--five { grid-template-columns: repeat(3, 1fr); }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .member-topbar { position: static; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; padding-top: 52px; }
    .hero-emblem { grid-row: 1; justify-content: start; }
    .hero-emblem__ring { width: min(280px, 64vw); }
    .home-strip { grid-template-columns: 1fr 1fr; }
    .next-lan-card { grid-column: 1 / -1; }
    .link-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero--split, .roadmap-hero { grid-template-columns: 1fr; }
    .page-logo { justify-self: start; grid-row: 1; width: min(250px, 58vw); }
    .content-grid { grid-template-columns: 1fr; }
    .roster-grid { grid-template-columns: repeat(2, 1fr); }
    .fame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .member-hero { grid-template-columns: 1fr; }
    .home-hero, .home-strip, .link-grid, .page-hero, .content-grid, .roster-page, .roadmap-wrap, .news-page, .legal-wrap, .home-section, .fame-page, .site-footer, .member-shell, .admin-shell { width: min(var(--max), calc(100% - 30px)); }
}

@media (max-width: 820px) {
    .topbar { flex-wrap: wrap; min-height: 68px; padding-inline: 14px; gap: 10px; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav { display: none; width: 100%; order: 4; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line); padding-top: 6px; margin-left: 0; }
    .nav-open .main-nav { display: flex; }
    .main-nav a { padding: 12px 14px; font-size: .85rem; border: 1px solid transparent; }
    .main-nav a.active, .main-nav a:hover { background: rgba(255,255,255,.045); border-color: var(--line-strong); }
    .live-pill { display: none; }
    .internal-layout { display: block; }
    .internal-sidebar { position: fixed; z-index: 100; left: -280px; top: 0; width: 260px; height: 100vh; transition: left .2s; }
    .internal-nav-open .internal-sidebar { left: 0; box-shadow: 20px 0 80px #000; }
    .internal-mobilebar { position: sticky; top: 0; z-index: 50; height: 56px; padding: 0 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--if-line); background: #0b0d10; }
    .internal-mobilebar button { background: none; border: 1px solid var(--if-line); color: #fff; padding: 7px 10px; }
    .internal-mobilebar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .internal-mobilebar span { color: var(--if-muted); font-size: .72rem; }
    .internal-content { width: min(100% - 28px, 1240px); padding-top: 26px; }
    .internal-hero, .internal-pagehead { align-items: flex-start; flex-direction: column; }
    .lan-grid, .internal-news-grid { grid-template-columns: 1fr; }
    .calendar-day { min-height: 105px; padding: 5px; }
    .calendar-weekdays b { font-size: .55rem; }
    .cal-event { font-size: .58rem; }
    .day-picks { grid-template-columns: 1fr 1fr; }
    .checklist, .member-live-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .brand__mark { width: 44px; height: 44px; }
    .brand__text strong { font-size: .75rem; }
    .brand__text small { font-size: .55rem; }
    h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
    h2 { font-size: clamp(1.7rem, 7vw, 2.8rem); }
    .home-hero { padding-top: 40px; padding-bottom: 40px; }
    .hero-emblem__ring { width: min(220px, 58vw); }
    .home-strip, .link-grid, .roster-grid, .news-grid, .admin-stats, .member-grid, .admin-stats--five { grid-template-columns: 1fr; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
    .next-lan-card { grid-column: auto; }
    .link-grid a { min-height: 160px; padding: 18px; }
    .link-grid strong { margin-top: 30px; font-size: 1.3rem; }
    .news-card { padding: 20px; }
    .news-card h2 { font-size: 1.5rem; }
    .fame-card { padding: 18px; }
    .fame-rank { font-size: 3.2rem; right: 12px; top: 8px; }
    .fame-avatar { width: 62px; height: 62px; margin-bottom: 24px; }
    .fame-card h2, .fame-card h3 { font-size: 1.25rem; }
    .fame-card > strong { font-size: 1.5rem; }
    .fame-card p { font-size: .85rem; }
    .fame-page { padding-bottom: 60px; }
    .page-hero { padding-top: 60px; padding-bottom: 34px; }
    .page-hero--compact { padding-top: 80px; padding-bottom: 28px; }
    .page-hero--compact h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .roadmap-hero { padding-bottom: 40px; }
    .timeline::before { left: 23px; }
    .timeline__item { grid-template-columns: 48px 1fr; gap: 13px; }
    .timeline__rail { width: 48px; height: 48px; }
    .timeline__card { padding: 20px; }
    .timeline__meta { flex-direction: column; align-items: flex-start; }
    .member-shell { padding-top: 38px; }
    .member-hero h1, .member-page-head h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
    .private-card { grid-template-columns: 1fr; }
    .private-card p { grid-column: auto; }
    .site-footer { flex-direction: column; gap: 14px; }
    .site-footer nav { gap: 12px; }
    .admin-topbar { position: static; flex-direction: column; align-items: flex-start; }
    .admin-row { align-items: flex-start; flex-direction: column; }
    .field-grid { grid-template-columns: 1fr; }
    .metric { min-height: 110px; }
    .metric strong { font-size: 2rem; }
    .form-two { grid-template-columns: 1fr; }
    .day-picks { grid-template-columns: 1fr; }
    .user-table > div { grid-template-columns: 1fr; }
    .internal-fame article { grid-template-columns: 34px 1fr; }
    .internal-fame article > b, .internal-fame article > small { grid-column: 2; }
    .login-shell { margin: 5vh auto; padding: 22px; }
    .login-shell h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
    .live-stage__events { position: static; width: 100%; margin-top: 20px; }
}

@media (max-width: 400px) {
    .brand__text strong { font-size: .68rem; letter-spacing: .04em; }
    .brand__text small { display: none; }
    .button { padding: 11px 14px; font-size: .78rem; }
    .home-hero { width: min(var(--max), calc(100% - 24px)); }
    .trending-grid { grid-template-columns: 1fr; }
    .fame-grid { grid-template-columns: 1fr; }
}
