:root {
    --brand: #FF38DB;
    --accent: #38FFB3;
    --bg: #18181b;
    --container-bg: #23232a;
    --text: #ffffff;
    --muted: #a1a1aa;
    --button-bg: #1f2026;
    --button-border: rgba(255,255,255,0.08);
    --button-text: #f4f4f5;
    --link: #FF38DB;
    --link-hover: #38FFB3;
    --viewerconnect-bg: #23232a;
    --viewerconnect-link: #FF38DB;
    --rule: rgba(255,255,255,0.09);
    --note-bg: rgba(255,56,219,0.07);
    --glow: rgba(255,56,219,0.16);
    --glow-2: rgba(56,255,179,0.10);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f9f9fb;
        --container-bg: #fff;
        --text: #23232a;
        --muted: #52525b;
        --button-bg: #f3f3f8;
        --button-border: rgba(20,20,30,0.08);
        --button-text: #23232a;
        --viewerconnect-bg: #f3f3fa;
        --rule: rgba(20,20,30,0.10);
        --note-bg: rgba(255,56,219,0.06);
        --glow: rgba(255,56,219,0.13);
        --glow-2: rgba(56,255,179,0.10);
        --shadow: 0 4px 24px rgba(0,0,0,0.08);
    }
}
[data-theme="light"] {
    --bg: #f9f9fb;
    --container-bg: #fff;
    --text: #23232a;
    --muted: #52525b;
    --button-bg: #f3f3f8;
    --button-border: rgba(20,20,30,0.08);
    --button-text: #23232a;
    --viewerconnect-bg: #f3f3fa;
    --rule: rgba(20,20,30,0.10);
    --note-bg: rgba(255,56,219,0.06);
    --glow: rgba(255,56,219,0.13);
    --glow-2: rgba(56,255,179,0.10);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="dark"] {
    --bg: #18181b;
    --container-bg: #23232a;
    --text: #ffffff;
    --muted: #a1a1aa;
    --button-bg: #1f2026;
    --button-border: rgba(255,255,255,0.08);
    --button-text: #f4f4f5;
    --viewerconnect-bg: #23232a;
    --rule: rgba(255,255,255,0.09);
    --note-bg: rgba(255,56,219,0.07);
    --glow: rgba(255,56,219,0.16);
    --glow-2: rgba(56,255,179,0.10);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

html, body { height: 100%; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Radii follow the ViewerConnect set: 6 chips, 9 row icons, 11 quiet links,
   12 note, 14 surface. Do not introduce a sixth here.

   One composition at every width: the column widens on desktop rather than
   switching layout. Prose keeps a reading measure and spends the extra width on
   a contents rail, because a 1100px line of body text is unreadable and a long
   page with no way to jump is the reason you are scrolling. */
.container {
    max-width: 760px;
    margin: 32px auto 0 auto;
    background: var(--container-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 40px 36px 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container.prose {
    max-width: 1140px;
    align-items: stretch;
    text-align: left;
    margin-bottom: 40px;
    padding: 40px 44px 32px 44px;
}
/* The rail only exists once the script has built it. */
.container.prose.has-toc {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 0 3.5rem;
    align-items: start;
}
@media (max-width: 1000px) {
    .container.prose.has-toc { display: flex; }
    .toc { display: none; }
}

.toc {
    position: sticky;
    top: 28px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    font-size: 0.93em;
    line-height: 1.5;
    border-right: 1px solid var(--rule);
    padding-right: 1.4rem;
}
.toc-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76em;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.85em;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 0.6em; }
.toc a {
    color: var(--button-text);
    text-decoration: none;
    display: block;
    border-left: 2px solid transparent;
    padding-left: 0.7em;
    margin-left: -0.7em;
}
.toc a:hover { color: var(--brand); }
.toc a.is-current { color: var(--brand); border-left-color: var(--brand); }

/* The prose lane never exceeds a comfortable measure, whatever the surface does. */
.prose > *:not(.toc) { max-width: 46rem; }
.container.prose.has-toc > .prose-body { max-width: none; }
.prose-body > * { max-width: 46rem; }

.brand-logo {
    max-width: 100px;
    max-height: 100px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.prose .brand-logo { max-width: 56px; max-height: 56px; margin-bottom: 0.6rem; }

h1 {
    color: var(--brand);
    margin-bottom: 0.4em;
    font-size: 2.3em;
    letter-spacing: 1px;
}
.prose h1 { font-size: 1.9em; letter-spacing: 0.5px; margin-top: 0; }
.prose h2 {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.45em;
    padding-top: 0.85em;
    border-top: 1px solid var(--rule);
    line-height: 1.35;
    scroll-margin-top: 24px;
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1em; }
.prose h3 { font-size: 1.02em; margin-top: 1.6em; margin-bottom: 0.4em; color: var(--brand); }

p { line-height: 1.8; font-size: 1.13em; margin-bottom: 1.7em; text-align: center; }
.prose p { text-align: left; font-size: 1.02em; line-height: 1.75; margin-bottom: 1.15em; }
.prose ul, .prose ol { line-height: 1.75; font-size: 1.02em; padding-left: 1.3em; margin-bottom: 1.15em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); }

.lede { font-size: 1.09em; color: var(--text); }
.meta { color: var(--muted); font-size: 0.9em; }
.prose .meta { text-align: left; }

.note {
    background: var(--note-bg);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    padding: 0.9em 1.1em;
    margin: 1.4em 0;
}
.note p { margin-bottom: 0; }
.note p + p { margin-top: 0.7em; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }
/* Magenta on a light background needs a second affordance beyond colour. */
.prose p a, .prose li a, .lede a, .viewerconnect a { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sitenav {
    max-width: 1140px;
    margin: 28px auto 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em 1.15em;
    justify-content: center;
    font-size: 0.97em;
}
.sitenav a { color: var(--button-text); text-decoration: none; padding: 0.2em 0; border-bottom: 1px solid transparent; }
.sitenav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.sitenav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.links {
    margin: 1.5em 0 1em 0;
    display: flex;
    flex-direction: row;
    gap: 1.5em;
    justify-content: center;
    flex-wrap: wrap;
}
.links a {
    color: var(--link);
    background: var(--button-bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    border: 1px solid var(--button-border);
    border-radius: 11px;
    padding: 0.45em 1.1em 0.45em 0.8em;
    margin: 0.3em 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-width: 120px;
    justify-content: center;
}
.links a:hover { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.links a span { color: var(--button-text); font-weight: 500; font-size: 0.98em; letter-spacing: 0.01em; }
.links a svg { display: inline-block; vertical-align: middle; width: 1.2em; height: 1.2em; margin-right: 0.2em; }
.links a.twitch svg { fill: #9147FF; }
.links a.youtube svg { fill: #FF0000; }
.links a.tiktok svg { fill: #000000; }
.links a.discord svg { fill: #5865F2; }
.links a.throne svg { fill: none; }

.viewerconnect {
    margin-top: 2.5em;
    background: var(--viewerconnect-bg);
    padding: 1.1em 1em;
    border-radius: 12px;
    text-align: center;
    width: 100%;
}
.viewerconnect a { color: var(--viewerconnect-link); font-weight: bold; text-decoration: none; }

.theme-toggle {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: var(--brand);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 11px;
    transition: color 0.2s;
}
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle:hover { color: var(--link-hover); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sitefoot {
    max-width: 1140px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9em;
    line-height: 1.9;
}
.sitefoot a { color: var(--muted); }
.sitefoot a:hover { color: var(--brand); }

.tablewrap { overflow-x: auto; margin-bottom: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97em; }
.prose th, .prose td { text-align: left; padding: 0.55em 0.8em; border-bottom: 1px solid var(--rule); }
.prose th { color: var(--brand); font-weight: 600; white-space: nowrap; }

@media (min-width: 1500px) {
    .container.prose, .sitenav, .sitefoot { max-width: 1280px; }
    .container.prose.has-toc { grid-template-columns: 17rem minmax(0, 1fr); }
    .prose-body > * { max-width: 50rem; }
}

@media (max-width: 700px) {
    .container { padding: 24px 3vw 20px 3vw; }
    .container.prose { padding: 28px 6vw 26px 6vw; }
    .prose > *:not(.toc), .prose-body > * { max-width: none; }
    .links { flex-direction: column; align-items: stretch; gap: 0.7em; }
    .links a { width: 100%; min-width: 0; justify-content: center; font-size: 1em; padding: 0.6em 0.5em; gap: 0.25em; }
    .links a span { font-size: 0.95em; }
    .links a svg { width: 1em; height: 1em; margin-right: 0; }
    .theme-toggle { right: 12px; top: 12px; }
    .sitenav { gap: 0.3em 0.9em; font-size: 0.92em; }
}
@media (max-width: 380px) {
    .container { padding: 20px 3vw 16px 3vw; margin: 32px auto 0 auto; }
    h1 { font-size: 1.8em; margin-bottom: 0.5em; }
    .prose h1 { font-size: 1.5em; }
    p { font-size: 0.95em; margin-bottom: 1.5em; }
    .prose p { font-size: 0.97em; }
    .links { gap: 0.5em; }
    .links a { font-size: 0.95em; padding: 0.5em 0.4em; }
    .links a span { font-size: 0.9em; }
}

/* Next-stream countdown. Renders a static fallback line, which the script replaces. */
.nextstream {
    background: var(--note-bg);
    border: 1px solid var(--button-border);
    border-radius: 12px;
    padding: 0.95em 1.15em;
    margin: 0 0 1.6em 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.prose .nextstream { text-align: left; margin-top: 0.4em; }
.nextstream p { margin: 0; font-size: 1em; line-height: 1.55; text-align: inherit; }
.nextstream .nextstream-lead { font-size: 1.1em; color: var(--text); }
.nextstream .nextstream-lead strong { color: var(--brand); white-space: nowrap; }
.nextstream .nextstream-when { margin-top: 0.4em; color: var(--muted); font-size: 0.92em; }
.nextstream .nextstream-when a { color: var(--muted); text-decoration: underline; }
.nextstream .nextstream-when a:hover { color: var(--brand); }


/* ---------------------------------------------------------------------------
   Landing page.

   A hero is not a card. It is full width, it leads with one sentence saying what
   this is, and it offers exactly one primary action. The card band below carries
   the three things a visitor actually wants, and the lanes at the foot hold the
   detail. Nothing is boxed inside a 520px panel.
   --------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: 56px 24px 26px 24px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -40% 0 auto 0;
    height: 150%;
    background:
        radial-gradient(58% 46% at 50% 34%, var(--glow) 0%, transparent 70%),
        radial-gradient(42% 34% at 78% 8%, var(--glow-2) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-mark { width: 92px; height: 92px; margin: 0 auto 1.5rem auto; display: block; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem 0;
}
.hero-tagline {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.5;
    color: var(--muted);
    max-width: 30em;
    margin: 0 auto;
    text-align: center;
}
main > .nextstream {
    max-width: 34rem;
    margin: 0 auto 40px auto;
    text-align: center;
}
main > .nextstream p { text-align: center; }
.hero .nextstream p { text-align: center; }

.hero-cta { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78em 1.6em;
    border-radius: 11px;
    border: 1px solid var(--button-border);
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 1.02em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.12s;
}
.btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); border-color: var(--brand); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cards {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 8px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
}
.card {
    background: var(--container-bg);
    border: 1px solid var(--button-border);
    border-radius: 14px;
    padding: 1.6rem 1.5rem 1.4rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: border-color 0.2s, transform 0.15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.card-icon { width: 26px; height: 26px; color: var(--brand); margin-bottom: 0.9rem; }
.card h3 { margin: 0 0 0.5rem 0; font-size: 1.1em; color: var(--text); }
.card p { margin: 0 0 1.1rem 0; font-size: 0.97em; line-height: 1.6; color: var(--muted); text-align: left; }
.card-go { margin-top: auto; font-size: 0.92em; font-weight: 600; color: var(--brand); }
.card-go::after { content: " \2192"; }

@media (max-width: 900px) {
    .hero { padding: 48px 20px 40px 20px; }
    .hero-mark { width: 72px; height: 72px; margin-bottom: 1.2rem; }
    .hero-cta .btn { width: 100%; }
    .cards { padding-bottom: 0; }
}
@media (min-width: 1500px) {
    .cards, .findme { max-width: 1280px; }
}


/* Find me.
   This site is first of all a link hub, so the platform links are the centre of
   the page rather than a column at the foot of it. They sit directly under the
   hero, sized to be the largest interactive thing on the screen. */
.findme {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 34px 24px;
}
.findme .links {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.9rem;
}
.findme .links a {
    margin: 0;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 0.75em;
    padding: 1.05em 1.3em;
    font-size: 1.06em;
    border-radius: 14px;
}
.findme .links a svg { width: 1.45em; height: 1.45em; margin-right: 0; flex: none; }
.findme .links a span { font-size: 1em; font-weight: 600; }
.findme-note {
    margin: 0 auto 8px auto;
    max-width: 1140px;
    padding: 0 24px;
    text-align: center;
    font-size: 0.97em;
    color: var(--muted);
}
.findme-note a { text-decoration: underline; }

/* The card band explains, once, and stays visually subordinate to Find me. */
.cards .card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.08em;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}
.cards { padding-bottom: 40px; }

@media (max-width: 700px) {
    .findme { padding: 0 20px 26px 20px; }
    .findme .links { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
    .findme .links a { padding: 0.85em 1.1em; font-size: 1em; }
}
