:root {
    color-scheme: dark;
    --bg: #070a12;
    --panel: #101624;
    --panel-2: #151d2e;
    --text: #edf3ff;
    --muted: #9aa8c1;
    --border: rgba(255,255,255,.1);
    --accent: #9f6cff;
    --accent-2: #38d8ff;
    --good: #36e3a7;
    --shadow: 0 20px 70px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(159,108,255,.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(56,216,255,.14), transparent 30rem),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(7,10,18,.78);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06101b; font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .8rem; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 9px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
.hero, .page-hero { padding: 72px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr .8fr; gap: 24px; align-items: stretch; }
.eyebrow { margin: 0 0 10px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .76rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .86; letter-spacing: -.08em; margin-bottom: 22px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.04em; }
.hero-copy, .page-hero p { color: var(--muted); max-width: 720px; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1px solid var(--border); }
.button.primary { color: #06101b; background: linear-gradient(135deg, var(--accent-2), var(--accent)); border: 0; }
.button.ghost { background: rgba(255,255,255,.06); }
.button.full { width: 100%; }
.hero-card, .panel {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 28px;
}
.hero-card { padding: 28px; align-self: end; }
.card-label { color: var(--good); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.section-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; margin-top: 24px; }
.panel { padding: 28px; }
.panel.large p { color: #dbe5f5; }
.discord-widget { width: 100%; height: 360px; border: 0; border-radius: 18px; overflow: hidden; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 8px; }
.raid-list { display: grid; gap: 16px; }
.raid-card { padding: 18px; border-radius: 20px; background: rgba(0,0,0,.18); border: 1px solid var(--border); }
.raid-card h3 { margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 52px; gap: 10px; align-items: center; color: var(--muted); font-size: .9rem; }
.bar { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; }
.member-list { display: grid; gap: 10px; }
.member-row, .character-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.member-row { padding: 12px; border-radius: 18px; background: rgba(0,0,0,.16); border: 1px solid transparent; }
.member-row:hover { border-color: var(--border); background: rgba(255,255,255,.06); }
.member-main { flex: 1; }
.member-main small, .character-cell small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, rgba(159,108,255,.65), rgba(56,216,255,.55)); font-weight: 900; }
.avatar.small { width: 38px; height: 38px; border-radius: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(56,216,255,.12); color: #bfefff; font-weight: 800; white-space: nowrap; }
.empty { color: var(--muted); background: rgba(0,0,0,.16); border: 1px dashed var(--border); border-radius: 18px; padding: 18px; }
.check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check-grid li { background: rgba(0,0,0,.16); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.check-grid li::before { content: '✓'; color: var(--good); font-weight: 900; margin-right: 8px; }
.table-panel { margin-top: 24px; }
.table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.rank { font-weight: 900; color: var(--accent-2); }
.score { font-weight: 900; }
.score-legendary { color: #ff8000; }
.score-epic { color: #a335ee; }
.score-rare { color: #0070dd; }
.score-uncommon { color: #1eff00; }
.score-common { color: #f4f4f4; }
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; padding: 26px 0; flex-wrap: wrap; }
.footer-grid p { margin: 0; }
.footer-grid a { color: var(--accent-2); }
@media (max-width: 820px) {
    .hero-grid, .section-grid { grid-template-columns: 1fr; }
    .nav { align-items: flex-start; flex-direction: column; }
    .nav-links { justify-content: flex-start; }
    .check-grid { grid-template-columns: 1fr; }
}

.apply-note { padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(159,108,255,.12); color: var(--text); font-weight: 800; }
.compact-hero { padding-bottom: 28px; }
.single-focus { grid-template-columns: 1fr .9fr; }
