:root {
  --bg: #0d0b08;
  --bg-2: #15120d;
  --panel: #1c1812;
  --panel-2: #241f17;
  --line: #3a3124;
  --text: #ece4d4;
  --muted: #a89c86;
  --gold: #e3b341;
  --gold-2: #f6d27a;
  --gold-dark: #8a6a1f;
  --red: #d0563f;
  --green: #6fbf5a;
  --blue: #5aa0d8;
  --purple: #a774e0;
  --orange: #e88a3a;
  --radius: 10px;
  --max: 1160px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: .1em .4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 600; margin-bottom: .6em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 8, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--gold-2); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); padding: 8px 10px; border-radius: 6px; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { background: var(--panel-2); color: var(--gold-2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .98rem;
  border: 1px solid var(--gold-dark); background: transparent; color: var(--gold-2);
  cursor: pointer; transition: transform .1s, background .2s;
}
.btn:hover { background: rgba(227, 179, 65, .1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1407; border-color: var(--gold); }
.btn.primary:hover { background: linear-gradient(180deg, #ffe39b, var(--gold-2)); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 120px 0 110px;
  background:
    linear-gradient(90deg, rgba(13, 11, 8, .92) 0%, rgba(13, 11, 8, .7) 45%, rgba(13, 11, 8, .1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%),
    url("/assets/img/hero.webp") center right / cover no-repeat,
    var(--bg);
}
.hero h1 { background: linear-gradient(180deg, #fff3cf, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 640px; margin-bottom: 2em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.6em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--muted); background: var(--panel); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-crest { position: absolute; right: -60px; top: 40px; width: 520px; opacity: .1; pointer-events: none; }
@media (max-width: 760px) {
  .hero-crest { width: 320px; right: -100px; }
  .hero { padding: 80px 0 70px; background:
    linear-gradient(0deg, rgba(13, 11, 8, .95) 0%, rgba(13, 11, 8, .78) 50%, rgba(13, 11, 8, .35) 100%),
    url("/assets/img/hero-mobile.webp") center / cover no-repeat, var(--bg); }
}

/* Section art: a painted strip that fades into the section background */
.section.art { --sec-bg: var(--bg); position: relative; padding-top: 220px;
  background:
    linear-gradient(180deg, rgba(13, 11, 8, .35) 0, rgba(13, 11, 8, .7) 160px, var(--sec-bg) 380px),
    var(--art) center top / max(100%, 1200px) auto no-repeat,
    var(--sec-bg); }
.section.alt.art { --sec-bg: var(--bg-2); }
.art-table { --art: url("/assets/img/banner-table.webp"); }
.art-gateway { --art: url("/assets/img/banner-gateway.webp"); }
.art-warroom { --art: url("/assets/img/banner-warroom.webp"); }
.art-stairs { --art: url("/assets/img/banner-stairs.webp"); }
.art-runestone { --art: url("/assets/img/banner-runestone.webp"); }
.art-hall { --art: url("/assets/img/banner-hall.webp"); }
@media (max-width: 760px) { .section.art { padding-top: 150px;
  background:
    linear-gradient(180deg, rgba(13, 11, 8, .3) 0, rgba(13, 11, 8, .7) 110px, var(--sec-bg) 260px),
    var(--art) center top / 760px auto no-repeat, var(--sec-bg); } }
.cta-crest { display: block; margin: 0 auto 12px; width: 160px; height: auto; filter: drop-shadow(0 0 24px rgba(227, 179, 65, .35)); }

/* Grid + cards */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { color: var(--gold-2); }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.6rem; margin-bottom: .4em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { text-align: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Recruitment */
.recruit-table { width: 100%; border-collapse: collapse; }
.recruit-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.recruit-table td:last-child { text-align: right; }
.need { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.need.high { background: rgba(111, 191, 90, .15); color: var(--green); }
.need.med { background: rgba(227, 179, 65, .15); color: var(--gold); }
.need.low { background: rgba(168, 156, 134, .12); color: var(--muted); }
.need.closed { background: rgba(208, 86, 63, .12); color: var(--red); }

/* Class colours */
.cls-warrior { color: #c79c6e; } .cls-paladin { color: #f58cba; } .cls-hunter { color: #abd473; }
.cls-rogue { color: #fff569; } .cls-priest { color: #ffffff; } .cls-shaman { color: #0070de; }
.cls-mage { color: #69ccf0; } .cls-warlock { color: #9482c9; } .cls-druid { color: #ff7d0a; }

/* Schedule */
.schedule { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); }
.event .day { font-family: var(--serif); font-weight: 700; color: var(--gold-2); }
.event .time { color: var(--muted); font-size: .9rem; }
.event h3 { margin: 0 0 2px; color: var(--text); }
.event p { margin: 0; color: var(--muted); font-size: .92rem; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .event { grid-template-columns: 1fr; gap: 6px; } }

.progress-list { display: grid; gap: 14px; }
.prog-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.prog-row .bar { grid-column: 1 / -1; height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.prog-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-2)); }

/* Ranks */
.ranks { display: grid; gap: 10px; counter-reset: rank; }
.rank { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rank .badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #1b1407; background: linear-gradient(180deg, var(--gold-2), var(--gold-dark)); }
.rank h3 { margin: 0 0 4px; }
.rank p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Rules */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { counter-increment: rule; position: relative; padding: 16px 18px 16px 62px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rules li::before { content: counter(rule); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--gold-dark); color: var(--gold-2); font-weight: 700; font-family: var(--serif); }
.rules b { color: var(--text); }
.rules span { color: var(--muted); display: block; font-size: .93rem; }

/* Roster */
.roster-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.roster-tools input, .roster-tools select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
.roster-tools input { flex: 1 1 220px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.roster { width: 100%; border-collapse: collapse; min-width: 560px; }
table.roster th, table.roster td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.roster th { background: var(--panel-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); cursor: pointer; user-select: none; }
table.roster tr:last-child td { border-bottom: 0; }
table.roster tbody tr:hover { background: var(--panel); }
.supporter { display: inline-block; margin-left: 6px; font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: rgba(227, 179, 65, .15); color: var(--gold); border: 1px solid var(--gold-dark); vertical-align: middle; }

/* Addon */
.feature { position: relative; }
.feature .tabname { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.mock {
  background: #120f0a; border: 1px solid var(--gold-dark); border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 4px rgba(227, 179, 65, .05);
  font: 13px/1.5 var(--sans);
}
.mock-title { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #2b2316, #1b160e); border-bottom: 1px solid var(--gold-dark); color: var(--gold-2); font-family: var(--serif); font-weight: 700; }
.mock-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #17130d; overflow-x: auto; }
.mock-tabs span { padding: 5px 9px; font-size: 11px; background: #211b12; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; color: var(--muted); white-space: nowrap; }
.mock-tabs span.on { background: #2e2517; color: var(--gold-2); }
.mock-body { padding: 12px; border-top: 1px solid var(--line); }
.mock-row { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px dashed #2b2418; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .ico { width: 20px; height: 20px; border-radius: 3px; background: linear-gradient(135deg, #6b5a3a, #2d2618); border: 1px solid #5a4a2c; }
.c-g { color: #ffd700; } .c-s { color: #c7c7cf; } .c-c { color: #c68a4c; }
.mock-deal { margin-top: 10px; padding: 10px; border: 1px solid var(--green); background: rgba(111, 191, 90, .08); border-radius: 6px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mock-btn { padding: 4px 12px; background: linear-gradient(180deg, #8b1d12, #5a120b); border: 1px solid #c2492f; color: #ffd76a; border-radius: 4px; font-weight: 700; font-size: 12px; }

.tabs-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .tabs-overview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tabs-overview { grid-template-columns: 1fr; } }

.callout { padding: 20px 22px; border: 1px solid var(--gold-dark); background: rgba(227, 179, 65, .06); border-radius: var(--radius); }
.callout h3 { color: var(--gold-2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; padding-left: 40px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1b1407; font-weight: 700; display: grid; place-items: center; font-size: .85rem; }

pre.code { background: #0a0806; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; font-size: .88rem; line-height: 1.7; }
pre.code .cm { color: var(--muted); }

/* Membership */
.price-card { position: relative; background: linear-gradient(180deg, #2a2216, var(--panel)); border: 1px solid var(--gold); border-radius: 14px; padding: 32px; }
.price-card .price { font-family: var(--serif); font-size: 3.4rem; color: var(--gold-2); line-height: 1; }
.price-card .price small { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.check { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.check li { padding-left: 28px; position: relative; }
.check li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.check.free li::before { content: "✓"; color: var(--green); }
.fine { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* Forms */
form.apply { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-dark); border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.checkbox input { margin-top: 4px; accent-color: var(--gold); }
.form-status { padding: 14px 16px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: rgba(111, 191, 90, .1); border: 1px solid var(--green); }
.form-status.err { display: block; background: rgba(208, 86, 63, .1); border: 1px solid var(--red); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; background: #090806; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-family: var(--serif); color: var(--gold-2); margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--muted); }
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.page-hero { padding: 80px 0 50px; background: radial-gradient(800px 360px at 50% -20%, rgba(227, 179, 65, .18), transparent 70%), var(--bg); }

/* Let grid children shrink so wide code blocks scroll instead of widening the page */
.split > *, .grid > *, .tabs-overview > * { min-width: 0; }

/* Live Discord features */
[hidden] { display: none !important; }
a.pill { color: var(--text); }
a.pill:hover { text-decoration: none; border-color: var(--gold-dark); }
.news-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.news header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news header img { width: 36px; height: 36px; border-radius: 50%; }
.news header small { display: block; font-size: .8rem; }
.news .news-link { margin-left: auto; font-size: .8rem; }
.news p { color: var(--text); white-space: normal; overflow-wrap: anywhere; }
.news-img { border-radius: 8px; margin-top: 8px; max-height: 260px; object-fit: cover; width: 100%; }

.events-list { display: grid; gap: 16px; margin-top: 14px; }
.ev { padding: 0; overflow: hidden; display: grid; grid-template-columns: 260px 1fr; }
.ev:not(:has(.ev-cover)) { grid-template-columns: 1fr; }
.ev-cover { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }
.ev-body { padding: 20px 22px; }
.ev-when { color: var(--gold); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ev h3 { color: var(--text); margin: 6px 0; }
.live { background: var(--red); color: #fff; padding: 1px 7px; border-radius: 4px; font-size: .72rem; }
.su-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.su-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.su-col ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; }
.su-col p { margin: 6px 0 0; font-size: .85rem; }
.su-buttons .btn { padding: 8px 14px; font-size: .9rem; }
@media (max-width: 760px) { .ev { grid-template-columns: 1fr; } .ev-cover { max-height: 180px; } .su-grid { grid-template-columns: 1fr; } }

.online-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.online-head .dot, .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); display: inline-block; }
.online-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.online-member { display: flex; align-items: center; gap: 8px; font-size: .9rem; min-width: 0; }
.online-member span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-member small { display: block; font-size: .75rem; }
.av { position: relative; flex: none; }
.av img { width: 30px; height: 30px; border-radius: 50%; }
.st { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--panel); background: var(--muted); }
.st-online { background: var(--green); } .st-idle { background: var(--gold); } .st-dnd { background: var(--red); }

.r-name { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.r-name img { width: 26px; height: 26px; border-radius: 50%; }

.profile-card { display: flex; gap: 24px; align-items: center; }
.profile-av { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold-dark); flex: none; }
.profile-name { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 2px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
@media (max-width: 560px) { .profile-card { flex-direction: column; text-align: center; } .profile-tags { justify-content: center; } }
