:root {
  color-scheme: dark;
  --night: #100e14;
  --night-soft: #15121b;
  --panel: #191620;
  --panel-hover: #201a2a;
  --ink: #f2eff5;
  --muted: #aaa2b2;
  --dim: #817889;
  --line: rgba(236, 220, 255, .12);
  --accent: #b16bfa;
  --pink: #ea58b7;
  --display: "Arial", "Helvetica Neue", sans-serif;
  --body: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: -1; inset: 0; background: radial-gradient(ellipse at 86% 8%, rgba(113, 51, 158, .10), transparent 36%), radial-gradient(ellipse at 5% 48%, rgba(113, 51, 158, .055), transparent 42%); content: ""; pointer-events: none; }
::selection { color: #fff; background: #9945d0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(236, 220, 255, .09); background: rgba(16, 14, 20, .88); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav { min-height: 72px; position: relative; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; }
.brand img { width: 35px; height: 35px; object-fit: contain; border-radius: 50%; }
.brand > span { font-size: 15px; font-weight: 750; line-height: 1.15; letter-spacing: .025em; }
.brand small { display: block; margin-top: 3px; color: var(--dim); font-size: 8px; font-weight: 600; letter-spacing: .13em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); margin-left: auto; color: #c9c1d0; font-size: 12px; font-weight: 600; }
.nav-links a { padding-block: 7px; transition: color .15s ease, background .15s ease; }
.nav-links a:hover { color: #f0d9ff; }
.nav-links a[aria-current="page"] { color: #e4b7ff; }
.nav-discord { flex: none; min-width: 104px; margin-left: 0; border-color: rgba(190, 126, 233, .26); color: #f5eaff; background: linear-gradient(120deg, rgba(125, 68, 177, .3), rgba(191, 76, 158, .22)); }
.nav-discord:hover { border-color: rgba(215, 165, 250, .55); background: linear-gradient(120deg, rgba(125, 68, 177, .46), rgba(191, 76, 158, .36)); }
.menu-toggle { display: none; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 650; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-primary { color: #fff; background: linear-gradient(105deg, #7840cf, #bd4dc1 68%, #de61a4); box-shadow: 0 6px 22px rgba(159, 71, 200, .15); }
.button-primary:hover { filter: brightness(1.1); }
.button-secondary { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .035); }
.button-secondary:hover { border-color: rgba(201, 135, 245, .55); background: rgba(188, 103, 231, .08); }
.button-light { color: #fff; background: #302638; }
.button-light:hover { background: #3b2c48; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 11px; }

.home-hero { min-height: 432px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 55px 48px; }
.hero-copy { padding-block: 8px; }
.eyebrow { display: block; color: #bf85ec; font-size: 9px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1, .page-intro h1 { margin: 15px 0 18px; font-family: var(--display); font-size: clamp(48px, 6vw, 70px); font-weight: 680; line-height: 1.03; letter-spacing: -.065em; }
.hero-copy h1 span, .page-intro h1 span { color: transparent; background: linear-gradient(100deg, #b879f5, #dc63ca 72%, #f087bb); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p, .page-intro > p { max-width: 440px; margin-bottom: 23px; color: var(--muted); font-size: 15px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-emblem { min-height: 310px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-emblem img { width: min(100%, 315px); max-height: 300px; object-fit: contain; filter: drop-shadow(0 15px 38px rgba(151, 50, 226, .19)); }
.emblem-glow { position: absolute; z-index: -1; width: 200px; height: 200px; border-radius: 50%; background: rgba(142, 53, 201, .19); filter: blur(76px); }
.emblem-caption { position: absolute; right: 3px; bottom: 1px; display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 8px; font-weight: 650; letter-spacing: .14em; }
.emblem-caption i { width: 6px; height: 6px; border-radius: 50%; background: #bd7beb; }

.status-bar { min-height: 74px; display: flex; align-items: center; gap: 28px; padding-block: 14px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.status-label { display: flex; align-items: center; gap: 9px; color: #c8c0cf; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #837b87; }
.status-dot.online { background: #54c997; }
.status-dot.offline { background: #dc747c; }
.status-players { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.status-players > span { color: var(--dim); font-size: 11px; }
.status-players strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.status-divider { margin-inline: 5px; color: var(--dim); font-weight: 400; }
.text-button { padding: 2px 0; border: 0; color: #c18bea; background: transparent; cursor: pointer; font-size: 11px; font-weight: 650; }
.text-button:hover { color: #e1baff; text-decoration: underline; }
.text-button:disabled { opacity: .55; cursor: wait; }
.nav-links .nav-logout { padding: 0; border: 0; font-size: inherit; }
.nav-links .nav-logout:hover { color: #e1baff; }

.section { padding-block: 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 27px; }
.section-heading h2, .split-content h2, .inline-cta h2 { margin: 7px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 44px); font-weight: 650; line-height: 1.14; letter-spacing: -.04em; }
.section-heading > p { max-width: 375px; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card { min-height: 207px; display: flex; flex-direction: column; align-items: flex-start; padding: 19px 22px 19px 0; }
.feature-card + .feature-card { padding-left: 22px; border-left: 1px solid var(--line); }
.feature-card h3 { margin: 18px 0 7px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.feature-card p { max-width: 270px; margin-bottom: 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.feature-link { margin-top: auto; color: #c28bea; font-size: 11px; font-weight: 650; }
.feature-link b { margin-left: 5px; font-weight: 500; }
.feature-card:hover .feature-link { color: #e2b7ff; }

.home-cta { padding-block: 42px; color: #fff; background: linear-gradient(105deg, #20182a, #281b2b 72%, #291a2a); border-block: 1px solid rgba(211, 157, 248, .12); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-cta .eyebrow { color: #c49bd9; }
.home-cta h2 { margin: 5px 0 3px; font-family: var(--display); font-size: 31px; font-weight: 620; line-height: 1.15; letter-spacing: -.035em; }
.home-cta p { margin: 0; color: #b9b0c0; font-size: 12px; }

.page-intro { padding-block: 83px 46px; }
.page-intro h1 { font-size: clamp(48px, 6.5vw, 68px); }
.page-intro > p { max-width: 570px; }
.page-intro .text-link { display: inline-block; margin-top: 1px; }
.text-link { color: #c18bea; font-size: 12px; font-weight: 650; }
.text-link:hover { color: #e1baff; text-decoration: underline; }
.text-link span { margin-left: 5px; }
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.district-card { min-height: 160px; padding: 20px 18px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }
.district-card > div { padding: 0; }
.district-card h3 { margin: 6px 0 4px; font-size: 16px; font-weight: 650; }
.district-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 12px; }
.section-tint { background: rgba(255, 255, 255, .025); border-block: 1px solid rgba(236, 220, 255, .065); }
.split-content { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.split-content > div:first-child > p { max-width: 390px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.split-content > div:first-child > .button { margin-top: 17px; }
.status-panel { padding: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.status-panel .status-label { margin-bottom: 14px; }
.status-panel .status-players { justify-content: space-between; margin: 0 0 9px; padding-block: 11px; border-block: 1px solid var(--line); }
.small-note { margin: 9px 0 0; color: var(--dim); font-size: 10px; }
.slim-section { padding-block: 54px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.inline-cta h2 { font-size: 27px; }

.first-section { padding-top: 20px; }
.career-list { border-top: 1px solid var(--line); }
.career-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.career-row .eyebrow { margin-bottom: 4px; }
.career-row h2, .rules-list h2, .join-list h2 { margin: 0 0 5px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.career-row p, .rules-list p, .join-list p { max-width: 650px; margin: 0; color: var(--muted); font-size: 12px; }
.career-aside { padding-top: 3px; color: var(--dim); font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.notice { max-width: 750px; margin-top: 22px; padding: 15px 18px; border-left: 2px solid #a25bd3; color: #bdb4c4; background: rgba(255, 255, 255, .035); font-size: 11px; }
.notice p { margin: 4px 0 0; }
.notice-important { margin: 28px 0 0; }
.notice-important > strong { color: var(--ink); font-size: 12px; }
.notice-important .text-link { display: inline-block; margin-top: 10px; }

.rules-list { max-width: 820px; border-top: 1px solid var(--line); }
.rules-list article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rules-list article > span { color: #c18bea; font-size: 11px; font-variant-numeric: tabular-nums; }
.join-list { max-width: 820px; border-top: 1px solid var(--line); }
.join-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.join-number { color: #bd7ee9; font-family: var(--display); font-size: 22px; font-weight: 650; }
.join-list h2 { margin-top: 4px; font-size: 20px; }
.join-list p { margin-bottom: 9px; }
.connect-code { display: flex; align-items: center; gap: 14px; margin-top: 11px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.connect-code code { color: #d4cbdc; font-family: Consolas, monospace; font-size: 11px; }
.simple-note { display: flex; gap: 15px; padding: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); }
.note-mark { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1px solid rgba(190, 126, 233, .45); border-radius: 50%; color: #cd9bed; font-size: 12px; }
.simple-note h3 { margin: 0 0 5px; font-size: 14px; }
.simple-note p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }

.application-card, .application-form, .application-review { max-width: 760px; padding: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.application-card h2, .application-review h2 { margin-bottom: 8px; font-size: 20px; }
.application-card > p, .form-intro { color: var(--muted); }
.form-message { margin: 0 0 18px; color: #d7c8e0; }
.application-form { display: grid; gap: 20px; }
.application-form label, .application-form legend { color: #e7deeb; font-size: 13px; font-weight: 600; }
.application-form textarea, .review-toolbar select { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #15121b; font: inherit; font-size: 13px; resize: vertical; }
.application-form textarea:focus, .review-toolbar select:focus { outline: 2px solid #a568d3; outline-offset: 2px; }
.application-form fieldset { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px; border: 1px solid var(--line); }
.application-form fieldset legend { max-width: 100%; padding-inline: 5px; }
.application-form .choice { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.application-form input[type="radio"] { accent-color: #b16bfa; }
.application-form .form-intro { margin: 0; }
.application-form .form-message { margin: 0; }
.application-form button:disabled { opacity: .65; cursor: wait; }
.review-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.review-toolbar label { color: var(--muted); font-size: 12px; }
.review-toolbar select { width: auto; min-width: 130px; margin: 0; }
.application-list { display: grid; gap: 16px; }
.application-review { max-width: none; }
.application-review h2 { margin-bottom: 4px; text-transform: none; }
.review-meta { color: var(--dim); font-size: 11px; }
.review-answer { padding-block: 12px; border-top: 1px solid var(--line); }
.review-answer h3 { margin: 0 0 5px; font-size: 12px; font-weight: 650; }
.review-answer p { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-actions { margin-top: 16px; }
[hidden] { display: none !important; }

.site-footer { border-top: 1px solid var(--line); background: #0d0b11; }
.footer-inner { min-height: 82px; display: flex; align-items: center; gap: 25px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand > span { font-size: 13px; }
.footer-brand small { font-size: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; color: #aaa1b1; font-size: 10px; font-weight: 600; }
.footer-links a:hover { color: #d4a3f4; }
.copyright { margin: 0; color: var(--dim); font-size: 9px; }

@media (max-width: 850px) {
  .home-hero { gap: 24px; }
  .hero-emblem img { width: min(100%, 270px); }
  .split-content { gap: 35px; }
}
@media (max-width: 920px) {
  .nav { min-height: 68px; gap: 12px; }
  .menu-toggle { order: 3; width: 38px; height: 38px; flex: none; display: grid; align-content: center; justify-content: center; gap: 5px; margin-left: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .035); cursor: pointer; }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { border-color: rgba(190, 126, 233, .5); background: rgba(188, 103, 231, .1); }
  .menu-toggle span { width: 16px; height: 1.5px; border-radius: 1px; background: var(--ink); }
  .nav-discord { order: 2; margin-left: auto; }
  .nav-links { position: absolute; top: calc(100% + 9px); right: 0; left: auto; z-index: 6; width: min(340px, calc(100vw - 36px)); max-height: min(72vh, 520px); display: none; align-items: stretch; gap: 2px; overflow-y: auto; padding: 9px; border: 1px solid rgba(236, 220, 255, .14); border-radius: 12px; background: rgba(21, 18, 27, .98); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a, .nav-links .nav-logout { width: 100%; padding: 11px 12px; border: 0; border-radius: 7px; color: #d5ccdc; text-align: left; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: #f0d9ff; background: rgba(188, 103, 231, .1); }
  .nav-links .nav-logout { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0; color: #c18bea; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 36px, 520px); }
  .nav { min-height: 64px; }
  .brand img { width: 32px; height: 32px; }
  .brand > span { font-size: 13px; }
  .brand small { font-size: 7px; }
  .nav-discord { min-width: 92px; }
  .home-hero { min-height: 0; grid-template-columns: 1fr; gap: 11px; padding-block: 52px 29px; }
  .hero-copy h1, .page-intro h1 { font-size: clamp(48px, 12vw, 65px); }
  .hero-copy > p, .page-intro > p { font-size: 13px; }
  .hero-emblem { min-height: 200px; margin-top: -4px; }
  .hero-emblem img { width: 205px; max-height: 195px; }
  .emblem-caption { right: 0; bottom: -1px; }
  .status-bar { flex-wrap: wrap; gap: 10px 18px; padding-block: 14px; }
  .status-label { flex: 1 1 58%; }
  .status-players { margin-left: 0; }
  .status-bar > .text-button { margin-left: auto; }
  .section { padding-block: 57px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-heading h2, .split-content h2 { font-size: 34px; }
  .section-heading > p { font-size: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card + .feature-card { min-height: 0; padding: 17px 0; border-left: 0; }
  .feature-card + .feature-card { border-top: 1px solid var(--line); }
  .feature-card h3 { margin: 9px 0 3px; }
  .feature-card p { margin-bottom: 8px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .home-cta { padding-block: 30px; }
  .home-cta h2 { font-size: 27px; }
  .page-intro { padding-block: 56px 30px; }
  .district-grid { grid-template-columns: 1fr; gap: 12px; }
  .district-card { min-height: 0; padding: 18px; }
  .split-content { grid-template-columns: 1fr; gap: 22px; }
  .inline-cta { align-items: flex-start; flex-direction: column; }
  .career-row { grid-template-columns: 1fr auto; gap: 12px; padding-block: 19px; }
  .rules-list article { grid-template-columns: 30px 1fr; gap: 12px; padding-block: 18px; }
  .join-list article { grid-template-columns: 33px 1fr; gap: 12px; padding-block: 20px; }
  .footer-inner { align-items: flex-start; flex-wrap: wrap; gap: 14px 20px; padding-block: 18px; }
  .application-card, .application-form, .application-review { padding: 17px; }
  .review-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .footer-links { order: 3; width: 100%; margin-left: 0; }
  .copyright { margin-left: auto; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
