:root {
    color-scheme: dark;
    --bg: #0a0a0c;
    --surface: #121216;
    --surface-2: #17171c;
    --surface-3: #1d1d24;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .15);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --faint: #71717a;
    --accent: #2dd4bf;
    --accent-bright: #7af2e3;
    --accent-soft: rgba(45, 212, 191, .1);
    --accent-border: rgba(45, 212, 191, .3);
    --warning: #fbbf24;
    --radius: 16px;
    --radius-sm: 10px;
    --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-family: var(--sans);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-feature-settings: "cv02", "cv11";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: radial-gradient(70% 40% at 50% -10%, rgba(45, 212, 191, .08), transparent 68%);
    pointer-events: none;
    content: "";
}

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

button {
    font: inherit;
    cursor: pointer;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 5px;
}

h1, h2, h3, p {
    margin-top: 0;
}

code {
    padding: .12rem .32rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    color: var(--accent-bright);
    background: rgba(0, 0, 0, .22);
    font-family: var(--mono);
    font-size: .92em;
    overflow-wrap: anywhere;
}

.wiki-shell {
    width: calc(100% - 48px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 0 96px;
}

.wiki-hero {
    max-width: 760px;
    margin-bottom: 42px;
}

.eyebrow, .section-kicker {
    color: var(--accent-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-soft);
}

.wiki-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
}

.wiki-hero p {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.65;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .03);
    font-size: 13px;
    font-weight: 650;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.hero-links a:hover {
    border-color: var(--accent-border);
    color: var(--text);
    background: var(--accent-soft);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.wiki-layout, .wiki-content, .wiki-section, .video-section, .video-copy, .video-frame, .toc, .info-card, .event-grid section, .table-wrap {
    min-width: 0;
}

.video-section {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(45, 212, 191, .1), rgba(255, 255, 255, .02));
}

.video-copy h2 {
    margin: 6px 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -.035em;
}

.video-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.toc {
    position: sticky;
    top: 92px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(18, 18, 22, .78);
}

.toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.toc nav {
    display: grid;
    gap: 5px;
}

.toc a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    transition: color .15s ease, background .15s ease;
}

.toc a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.wiki-content {
    display: grid;
    gap: 24px;
}

.wiki-section {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.section-number {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent-bright);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 750;
    letter-spacing: -.035em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
}

.card-grid.two-column {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.info-card, .event-grid section {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .2);
}

.info-card h3, .subsection h3, .event-grid h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.info-card ul, .info-card ol, .compact-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.info-card li::marker, .compact-list li::marker {
    color: var(--accent-bright);
}

.callout {
    margin-bottom: 14px;
    padding: 15px 16px;
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: var(--radius-sm);
    color: #fde68a;
    background: rgba(251, 191, 36, .08);
    font-size: 14px;
    line-height: 1.55;
}

.callout strong {
    color: var(--warning);
}

.subsection {
    margin-top: 22px;
}

.subsection p {
    max-width: 680px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .2);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.raid-table {
    min-width: 920px;
}

th, td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
}

th {
    color: var(--accent-bright);
    background: rgba(45, 212, 191, .06);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

td {
    color: var(--muted);
}

td:first-child {
    color: var(--text);
    font-weight: 650;
}

tr:last-child td {
    border-bottom: 0;
}

.tip-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 10px;
    margin-top: 14px;
}

.tip-strip span {
    padding: 13px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--accent-soft);
    font-size: 13px;
    line-height: 1.45;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}

.event-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 28px max(24px, calc((100vw - 1120px) / 2)) 36px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 12px;
}

@media (max-width: 980px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }

    .toc nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .toc a {
        border: 1px solid var(--border);
    }

    .video-section {
        grid-template-columns: 1fr;
    }

    .card-grid, .card-grid.two-column, .tip-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wiki-shell {
        width: calc(100% - 32px);
        padding: 38px 0 72px;
    }

    .wiki-section {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .section-heading {
        gap: 11px;
    }

    .section-number {
        min-width: 34px;
        height: 34px;
    }

    th, td {
        padding: 12px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        padding: 24px 16px 32px;
    }
}

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