/* Malevolent guild site - shared styles.
   Alliance: carved stone, aged gold and Alliance blue (the emblem keeps its crimson).
   Banner and gallery art in assets/img/ is official WoW: Forever art (c) Blizzard, credited in the footer.
   Text sized large on purpose. */

:root {
  --stone-0: #0b0907;
  --stone-1: #14100c;
  --stone-2: #1d1712;
  --stone-3: #2a2119;
  --line: #4a3a26;
  --gold: #d9b26a;
  --gold-hi: #f3d79a;
  --gold-lo: #8c6a33;
  --accent: #2c63c4;      /* Alliance blue */
  --accent-hi: #6fa9ff;
  --accent-lo: #0f2a5c;
  --emblem-red: #c4202b;  /* the Malevolent emblem and error states only */
  --parch: #e9dcc0;
  --text: #e6dccb;
  --muted: #a99a83;
  --ok: #6fbf5a;
  --warn: #e0a83a;

  /* class colours (WoW convention, used for roster names) */
  --c-warrior: #c69b6d; --c-paladin: #f48cba; --c-hunter: #aad372; --c-rogue: #fff468;
  --c-priest: #ffffff;  --c-shaman: #3d9bff;  --c-mage: #3fc7eb;   --c-warlock: #8788ee;
  --c-druid: #ff7c0a;

  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --display: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --r: 6px;
}

* { box-sizing: border-box; }
html { font-size: 20px; scroll-behavior: smooth; }
@media (min-width: 2200px) { html { font-size: 24px; } }
@media (max-width: 700px)  { html { font-size: 18px; } }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(44,99,196,.22), transparent 70%),
    radial-gradient(900px 700px at 100% 40%, rgba(217,178,106,.05), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    var(--stone-0);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); color: var(--gold-hi); font-weight: 700; letter-spacing: .02em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

/* ---------- header / nav ---------- */
.site-head .wrap { max-width: 1680px; }
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(11,9,7,.97), rgba(20,16,12,.94));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(217,178,106,.18), 0 10px 30px rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold-hi); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; white-space: nowrap; }
.brand img { width: 52px; height: 52px; filter: drop-shadow(0 0 10px rgba(196,32,43,.55)); }
.brand small { display: block; font-size: .62rem; color: var(--muted); letter-spacing: .25em; font-weight: 400; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--serif); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--parch); padding: 10px 14px; border-radius: var(--r); border: 1px solid transparent;
}
.nav a:hover { border-color: var(--line); background: var(--stone-2); color: var(--gold-hi); }
.nav a.on { color: var(--gold-hi); border-color: var(--gold-lo); background: linear-gradient(180deg, rgba(44,99,196,.25), rgba(15,42,92,.25)); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--gold); font-family: var(--serif); padding: 8px 14px; border-radius: var(--r); font-size: .85rem; letter-spacing: .1em; cursor: pointer; }
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--stone-1); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: .9rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font-family: var(--serif); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--r); border: 1px solid var(--gold);
  color: #1a0e06; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.45);
}
.btn:hover { color: #000; filter: brightness(1.08); }
.btn.ghost { background: rgba(0,0,0,.35); color: var(--gold-hi); border-color: var(--gold-lo); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); background: rgba(44,99,196,.18); }
.btn.blood { background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)); color: #fff; border-color: var(--accent-hi); }

/* ---------- framed panels ---------- */
.panel {
  position: relative; background: linear-gradient(180deg, var(--stone-2), var(--stone-1));
  border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold-lo); pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
@media (max-width: 700px) { .panel { padding: 20px; } }

.rule { display: flex; align-items: center; gap: 16px; color: var(--gold); font-family: var(--serif); letter-spacing: .3em; font-size: .8rem; text-transform: uppercase; margin: 0 0 14px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo), transparent); }
.rule.left::before { display: none; }

/* ---------- page hero ---------- */
.hero { position: relative; padding: 90px 0 70px; text-align: center; overflow: hidden;
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold-lo), transparent) 1; }
.hero .eyebrow { font-family: var(--serif); color: var(--accent-hi); letter-spacing: .35em; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero p.lead { max-width: 820px; margin: 0 auto 1.4em; font-size: 1.25rem; color: var(--parch); }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero.small { padding: 64px 0 46px; }

.home-hero { padding: 110px 0 90px; }
.home-hero .emblem { width: 190px; height: 190px; margin: 0 auto 26px; filter: drop-shadow(0 0 40px rgba(196,32,43,.6)); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.03); filter: drop-shadow(0 0 60px rgba(196,32,43,.8)); } }
@media (prefers-reduced-motion: reduce) { .home-hero .emblem { animation: none; } html { scroll-behavior: auto; } }
.embers { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(2px 2px at 20% 80%, var(--accent-hi), transparent), radial-gradient(1.5px 1.5px at 70% 60%, var(--gold), transparent),
                    radial-gradient(2px 2px at 85% 85%, var(--accent-hi), transparent), radial-gradient(1px 1px at 40% 70%, var(--gold-hi), transparent),
                    radial-gradient(1.5px 1.5px at 10% 40%, var(--gold), transparent), radial-gradient(2px 2px at 55% 90%, var(--accent), transparent); }

/* ---------- sections / grids ---------- */
section { padding: 64px 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.stat { text-align: center; display: flex; flex-direction: column; justify-content: center; }
/* site.js fitStats() shrinks a value only when it is wider than its tile (ALLIANCE). */
.stat b { display: block; font-family: var(--display); color: var(--gold-hi); font-size: 2.6rem; line-height: 1.1; white-space: nowrap; margin-bottom: 6px; max-width: 100%; }
.stat span { color: var(--muted); font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; line-height: 1.5; }

.muted { color: var(--muted); }
.center { text-align: center; }
.tag { display: inline-block; font-family: var(--serif); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--gold-lo); color: var(--gold); }
.tag.red { border-color: var(--accent); color: var(--accent-hi); }
.tag.green { border-color: #3f7a31; color: var(--ok); }

.sample-note { margin: 0 0 24px; padding: 12px 16px; border: 1px dashed var(--warn); border-radius: var(--r); color: var(--warn); font-size: .9rem; background: rgba(224,168,58,.06); }

/* ---------- timeline (history) ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, transparent, var(--gold-lo) 5%, var(--gold-lo) 95%, transparent); }
.timeline li { position: relative; width: 50%; padding: 0 48px 56px 0; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 56px 48px; }
.timeline li::before { content: ""; position: absolute; top: 18px; right: -11px; width: 18px; height: 18px; transform: rotate(45deg); background: var(--accent); border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(44,99,196,.8); }
.timeline li:nth-child(even)::before { right: auto; left: -9px; }
.timeline .year { font-family: var(--display); font-size: 2rem; color: var(--accent-hi); line-height: 1; margin-bottom: 6px; }
.timeline .game { font-family: var(--serif); color: var(--gold-hi); font-size: 1.35rem; margin-bottom: 10px; }
.timeline .fill { color: var(--warn); font-style: italic; font-size: .9rem; }
.timeline .game + .server { margin-top: -4px; }
.timeline .server { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border: 1px solid var(--gold-lo); border-radius: 4px; background: rgba(44,99,196,.14);
  font-family: var(--serif); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--parch); }
.timeline .server-note { margin: -4px 0 12px; font-family: var(--serif); color: var(--accent-hi); font-size: .95rem; letter-spacing: .04em; }
@media (max-width: 800px) {
  .timeline::before { left: 10px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 44px 44px; }
  .timeline li::before, .timeline li:nth-child(even)::before { left: 2px; right: auto; }
}

/* ---------- raid progress ---------- */
.raid { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; }
.raid h3 { margin: 0; }
.raid .count { font-family: var(--display); color: var(--gold-hi); font-size: 1.4rem; }
.bar { grid-column: 1 / -1; height: 14px; border-radius: 99px; background: #0a0806; border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-lo), var(--accent), var(--accent-hi)); box-shadow: 0 0 12px rgba(111,169,255,.6); }
.bosses { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.boss { font-size: .82rem; padding: 3px 10px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.boss.down { color: var(--parch); border-color: var(--gold-lo); background: rgba(217,178,106,.08); }
.boss.down::before { content: "\2713  "; color: var(--ok); }

/* ---------- tables (roster) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { font-family: var(--serif); text-align: left; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; padding: 10px 12px; border-bottom: 1px solid var(--gold-lo); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(74,58,38,.6); }
tr:hover td { background: rgba(217,178,106,.04); }
.cls-WARRIOR { color: var(--c-warrior); } .cls-PALADIN { color: var(--c-paladin); } .cls-HUNTER { color: var(--c-hunter); }
.cls-ROGUE { color: var(--c-rogue); } .cls-PRIEST { color: var(--c-priest); } .cls-SHAMAN { color: var(--c-shaman); }
.cls-MAGE { color: var(--c-mage); } .cls-WARLOCK { color: var(--c-warlock); } .cls-DRUID { color: var(--c-druid); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { font-family: var(--serif); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: var(--stone-1); color: var(--parch); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.filters button.on { border-color: var(--gold); color: var(--gold-hi); background: rgba(44,99,196,.2); }

/* ---------- forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--serif); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.field { margin-bottom: 18px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #0c0a08; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,106,.18); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 1rem; color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; cursor: pointer; margin: 0; }
.checks input { width: auto; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); display: none; }
.form-msg.show { display: block; }
.form-msg.ok { border: 1px solid #3f7a31; background: rgba(111,191,90,.08); }
.form-msg.err { border: 1px solid var(--emblem-red); background: rgba(196,32,43,.1); }

/* ---------- needs grid ---------- */
.need { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(74,58,38,.6); }
.need:last-child { border-bottom: 0; }
.need .lvl { font-family: var(--serif); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.lvl.high { color: var(--accent-hi); } .lvl.medium { color: var(--warn); } .lvl.low { color: var(--muted); } .lvl.closed { color: #6b5f50; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { background: var(--stone-1); color: var(--gold); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--serif); padding: 8px 14px; cursor: pointer; font-size: .9rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { font-family: var(--serif); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-align: center; padding: 8px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--stone-1); }
.cal .day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8rem; }
.cal .day.out { background: rgba(0,0,0,.35); color: #5c5144; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--gold-lo); }
.cal .num { color: var(--muted); font-family: var(--serif); }
.cal .ev { display: block; width: 100%; text-align: left; margin-top: 4px; padding: 4px 6px; border-radius: 4px; border: 0; cursor: pointer; font: inherit; font-size: .75rem; line-height: 1.3; color: #fff; background: var(--accent-lo); border-left: 3px solid var(--accent-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.k-DUNGEON { background: #1f3550; border-left-color: #4fa3ff; }
.ev.k-PVP { background: #4a3410; border-left-color: var(--warn); }
.ev.k-SOCIAL, .ev.k-OTHER { background: #233a22; border-left-color: var(--ok); }
@media (max-width: 800px) { .cal { display: none; } }
.agenda { margin-top: 28px; }
.agenda-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(74,58,38,.6); cursor: pointer; }
.agenda-item .date { font-family: var(--serif); color: var(--gold-hi); line-height: 1.2; }
.agenda-item .date b { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--accent-hi); }
@media (max-width: 600px) { .agenda-item { grid-template-columns: 80px 1fr; } .agenda-item .comp { grid-column: 2; } }
.comp { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); white-space: nowrap; }

dialog { max-width: 640px; width: calc(100% - 32px); color: var(--text); background: var(--stone-2); border: 1px solid var(--gold-lo); border-radius: var(--r); padding: 28px; }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog .close { float: right; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: var(--r); padding: 4px 10px; cursor: pointer; font-family: var(--serif); }
.signups { columns: 2; column-gap: 24px; font-size: .92rem; margin-top: 12px; }
.signups div { break-inside: avoid; padding: 2px 0; }
@media (max-width: 600px) { .signups { columns: 1; } }

/* ---------- news ---------- */
.post { display: flex; flex-direction: column; }
.post .meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post h3 { font-size: 1.35rem; }
.post .more { margin-top: auto; font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.post .body { display: none; }
.post.open .body { display: block; }

/* ---------- games strip ---------- */
.games { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.games span { font-family: var(--serif); font-size: .82rem; letter-spacing: .08em; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; color: var(--parch); background: rgba(0,0,0,.3); }
.games span.now { border-color: var(--accent); color: #fff; background: rgba(44,99,196,.3); }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--stone-1); padding: 40px 0; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.legal { font-size: .78rem; margin-top: 10px; max-width: 760px; }

/* phones: keep the Menu button on screen */
@media (max-width: 520px) {
  .brand small { display: none; }
  .brand img { width: 42px; height: 42px; }
  .site-head .wrap { min-height: 64px; }
}

/* ---------- nav: ten links. Compact on mid desktops, menu button below that ---------- */
@media (max-width: 1700px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 10px; font-size: .72rem; letter-spacing: .08em; }
  .brand small { letter-spacing: .15em; }
}
@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--stone-1); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; font-size: .9rem; }
}

/* ---------- armory ---------- */
.bg-WARRIOR { background: var(--c-warrior); } .bg-PALADIN { background: var(--c-paladin); } .bg-HUNTER { background: var(--c-hunter); }
.bg-ROGUE { background: var(--c-rogue); } .bg-PRIEST { background: #d8d8d8; } .bg-SHAMAN { background: var(--c-shaman); }
.bg-MAGE { background: var(--c-mage); } .bg-WARLOCK { background: var(--c-warlock); } .bg-DRUID { background: var(--c-druid); }
.cbar { display: grid; grid-template-columns: 96px 1fr 36px; gap: 12px; align-items: center; width: 100%; background: none; border: 1px solid transparent; border-radius: var(--r); padding: 6px 8px; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.cbar span { font-family: var(--serif); font-size: .92rem; }
.cbar i { height: 12px; border-radius: 99px; background: #0a0806; border: 1px solid var(--line); overflow: hidden; }
.cbar i b { display: block; height: 100%; opacity: .85; }
.cbar em { font-style: normal; text-align: right; color: var(--parch); }
.cbar:hover, .cbar.on { border-color: var(--gold-lo); background: rgba(217,178,106,.06); }
.levels { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 22px; }
.lband { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.lband i { position: relative; width: 100%; max-width: 54px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); box-shadow: 0 0 12px rgba(44,99,196,.4); }
.lband i b { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-family: var(--serif); color: var(--gold-hi); font-size: .85rem; }
.lband span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input { max-width: 300px; }
.toolbar select { width: auto; }
.source-line { font-size: .88rem; color: var(--muted); }

/* ---------- leaderboard ---------- */
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(74,58,38,.6); }
.board li:last-child { border-bottom: 0; }
.board .pos { font-family: var(--display); color: var(--accent-hi); font-size: 1.15rem; text-align: center; }
.board .p1 .pos { color: #ffd76a; } .board .p2 .pos { color: #d6dde6; } .board .p3 .pos { color: #e0a070; }
.board .who { min-width: 0; line-height: 1.25; }
.board .who a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board small { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.board .val { text-align: right; line-height: 1.15; white-space: nowrap; }
.board .val b { font-family: var(--display); color: var(--gold-hi); font-size: 1.1rem; }

/* ---------- renown ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; position: relative; }
.ladder::before { content: ""; position: absolute; left: 44px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--gold-lo), var(--accent)); }
.tier { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; margin-bottom: 18px; }
.tier-lvl { position: relative; z-index: 1; width: 90px; height: 90px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, var(--stone-3), var(--stone-0)); border: 2px solid var(--gold-lo); box-shadow: 0 0 0 4px var(--stone-0); }
.tier-lvl b { font-family: var(--display); font-size: 1.7rem; color: var(--gold-hi); line-height: 1; }
.tier-lvl span { font-family: var(--serif); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tier.badge .tier-lvl { border-color: var(--accent-hi); box-shadow: 0 0 0 4px var(--stone-0), 0 0 24px rgba(111,169,255,.55); }
.tier-body { background: linear-gradient(180deg, var(--stone-2), var(--stone-1)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.tier-body h3 { margin: 0 0 2px; }
.tier-body p { margin: 8px 0 0; }
@media (max-width: 600px) { .tier { grid-template-columns: 64px 1fr; gap: 12px; } .tier-lvl { width: 64px; height: 64px; } .tier-lvl b { font-size: 1.2rem; } .ladder::before { left: 31px; } }
.earn { display: flex; gap: 18px; align-items: center; }
.earn .pts { flex: none; width: 96px; height: 96px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--gold-lo);
  background: linear-gradient(160deg, rgba(44,99,196,.35), rgba(0,0,0,.4)); }
.earn .pts b { font-family: var(--display); font-size: 2rem; color: var(--gold-hi); line-height: 1; }
.earn .pts span { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--parch); }
.big-num { font-family: var(--display); font-size: 2.4rem; color: var(--gold-hi); }

/* ---------- guildy showcase ---------- */
.feat { display: flex; flex-direction: column; }
.feat .cmd { margin-top: auto; align-self: flex-start; }
code, .cmd { font-family: Consolas, "Courier New", monospace; font-size: .88rem; color: var(--gold-hi); background: #0a0806; border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.cmd-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; align-items: baseline; margin: 0; }
.cmd-list dt { white-space: nowrap; } .cmd-list dd { margin: 0; color: var(--parch); }
@media (max-width: 600px) { .cmd-list { grid-template-columns: 1fr; gap: 2px; } .cmd-list dd { margin-bottom: 10px; } }
.bingo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 560px; margin: 0 auto; }
.bingo div { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; font-size: .72rem; line-height: 1.25;
  background: var(--stone-1); border: 1px solid var(--line); border-radius: 4px; color: var(--parch); cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.bingo div.hit { background: linear-gradient(160deg, var(--accent), var(--accent-lo)); border-color: var(--accent-hi); color: #fff; }
.bingo div.free { background: radial-gradient(circle, rgba(217,178,106,.3), transparent 70%), var(--stone-2); border-color: var(--gold); color: var(--gold-hi); font-family: var(--serif); cursor: default; }
@media (max-width: 600px) { .bingo div { font-size: .56rem; padding: 3px; } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.badge-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--stone-1); }
.badge-card i { flex: none; width: 34px; height: 34px; margin: 0 4px; transform: rotate(45deg); border: 2px solid var(--gold); background: linear-gradient(135deg, var(--accent), var(--accent-lo)); box-shadow: 0 0 12px rgba(44,99,196,.5); }
.badge-card b { display: block; font-family: var(--serif); color: var(--gold-hi); }
.badge-card span { font-size: .85rem; color: var(--muted); }
.chat-demo { font-family: Arial, sans-serif; font-size: .95rem; background: rgba(0,0,0,.55); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; line-height: 1.7; overflow-wrap: anywhere; }
.chat-demo .g { color: #40ff40; } .chat-demo .t { color: var(--accent-hi); } .chat-demo .s { color: #ffff00; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 54px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); color: var(--gold-hi); border: 1px solid var(--gold-lo); background: var(--stone-2); }

/* ---------- Blizzard WoW: Forever art: page banners + home gallery ---------- */
/* Two layers so each picture can be brightened on its own (--art-bright, set per page) without
   lightening the shading: ::before = the art (filtered), ::after = a scrim that is dark only behind
   the title text and at the bottom edge, where the banner fades into the page. */
.hero.has-art { isolation: isolate; background: var(--stone-0); }
.hero.has-art::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--art) var(--art-pos, center 35%) / cover no-repeat;
  filter: brightness(var(--art-bright, 1.08)) saturate(var(--art-sat, 1.12)) contrast(1.04); }
.hero.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; height: auto;
  background:
    radial-gradient(ellipse 52% 58% at 50% 50%, rgba(5,8,16,.62), rgba(5,8,16,.28) 62%, rgba(5,8,16,0) 100%),
    linear-gradient(180deg, rgba(5,8,16,.18) 0%, rgba(5,8,16,0) 30%, rgba(11,9,7,0) 62%, rgba(11,9,7,.7) 88%, var(--stone-0) 100%); }
@media (max-width: 800px) {
  .hero.has-art::before { background-image: var(--art-sm); background-position: center; }
  .hero.has-art::after { background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(5,8,16,.62), rgba(5,8,16,.3) 70%, rgba(5,8,16,.15) 100%),
    linear-gradient(180deg, rgba(11,9,7,0) 60%, var(--stone-0) 100%); } }
.hero.has-art h1, .hero.has-art .lead, .hero.has-art .eyebrow, .hero.has-art .source-line { text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.hero.has-art .lead { color: #f3ead8; }
.forever { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .forever { grid-template-columns: minmax(0, 1fr); } }
.forever-logo { width: 100%; max-width: 360px; margin: 0 auto 16px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { position: relative; margin: 0; border: 1px solid var(--gold-lo); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--stone-1); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  font-family: var(--serif); color: var(--gold-hi); font-size: .95rem; letter-spacing: .04em; }
.shot figcaption span { display: block; font-family: var(--body); color: var(--parch); font-size: .85rem; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }

/* The ember dots were for the plain dark banners; over artwork they read as dead pixels. */
.hero.has-art .embers { display: none; }

/* "Now on CurseForge" flag on the Guildy banner */
.cf-flag { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 22px; padding: 6px 16px 6px 8px; border: 1px solid var(--gold-lo); border-radius: 99px; background: rgba(0,0,0,.55); font-family: var(--serif); letter-spacing: .08em; color: var(--gold-hi); font-size: .9rem; }

/* ---------- member page ---------- */
.mb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 900px) { .mb-grid { grid-template-columns: minmax(0, 1fr); } }
.mb-ren-top { display: flex; align-items: center; gap: 20px; }
.mb-prof { margin-bottom: 14px; }
.mb-prof > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.mb-prof b { font-family: var(--serif); color: var(--gold-hi); font-weight: 400; }
.mb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .mb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mb-stats div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--stone-1); }
.mb-stats b { display: block; font-family: var(--display); color: var(--gold-hi); font-size: 1.5rem; line-height: 1.1; }
.mb-stats span { font-size: .78rem; color: var(--muted); }
.board li a { text-decoration: none; }

/* ---------- art behind whole sections (.band + inline --art/--art-sm) ---------- */
section.band { position: relative; isolation: isolate; overflow: hidden; padding: 90px 0; }
section.band.band-tall { padding: 120px 0; }
section.band::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--art) var(--art-pos, center) / cover no-repeat; filter: saturate(1.1); }
section.band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--stone-0) 0%, rgba(11,9,7,.45) 16%, rgba(11,9,7,.4) 50%, rgba(11,9,7,.45) 84%, var(--stone-0) 100%); }
@media (max-width: 800px) { section.band::before { background-image: var(--art-sm); } section.band { padding: 64px 0; } }
section.band .panel { background: linear-gradient(180deg, rgba(29,23,18,.8), rgba(14,12,10,.86)); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
section.band .rule { text-shadow: 0 1px 8px rgba(0,0,0,.9); }
section.band .rule::before, section.band .rule::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
section.band .games span { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
section.band .muted { color: #cbbda4; }
.eyebrow-small { font-family: var(--serif); color: var(--accent-hi); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }

/* Banner taglines over bright art: light Alliance blue, heavier shadow so they stay legible. */
.hero.has-art .eyebrow { color: #cfe3ff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 14px rgba(5,10,25,.95), 0 0 30px rgba(5,10,25,.8); }

/* Bands with bare text (no panels): darken the middle like the banners do. */
section.band.band-text::after { background:
  radial-gradient(ellipse 48% 62% at 50% 50%, rgba(5,8,16,.72), rgba(5,8,16,.35) 65%, rgba(5,8,16,.1) 100%),
  linear-gradient(180deg, var(--stone-0) 0%, rgba(11,9,7,.2) 18%, rgba(11,9,7,.2) 82%, var(--stone-0) 100%); }
section.band.band-text p { color: #efe6d4; text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.8); }

/* 2026-11-13: owner asked for dimmer banners so the text reads better. */
.hero.has-art::before { filter: brightness(var(--art-bright, .8)) saturate(var(--art-sat, 1.1)) contrast(1.04); }
.hero.has-art::after { background:
    radial-gradient(ellipse 55% 62% at 50% 50%, rgba(5,8,16,.72), rgba(5,8,16,.42) 62%, rgba(5,8,16,.18) 100%),
    linear-gradient(180deg, rgba(5,8,16,.25) 0%, rgba(5,8,16,.1) 35%, rgba(11,9,7,.15) 62%, rgba(11,9,7,.75) 88%, var(--stone-0) 100%); }

/* ---------- Renown: 25-rank grid (Guildy 0.6.1) ---------- */
.rank-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rank-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--stone-2), var(--stone-1)); }
.rank-card .tier-lvl { width: 58px; height: 58px; flex: none; }
.rank-card .tier-lvl b { font-size: 1.3rem; }
.rank-card .tier-lvl span { font-size: .48rem; letter-spacing: .15em; }
.rank-card > div:last-child { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rank-card h3 { margin: 0; font-size: 1rem; line-height: 1.2; letter-spacing: .03em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.rank-card .muted { font-size: .85rem; white-space: nowrap; }
.rank-card .tag { margin-top: 6px; font-size: .62rem; white-space: nowrap; padding: 3px 10px; }
.rank-card.badge { border-color: var(--accent); box-shadow: 0 0 18px rgba(44,99,196,.25); }
.rank-card.badge .tier-lvl, .tier-lvl.is-badge { border-color: var(--accent-hi); box-shadow: 0 0 0 3px var(--stone-0), 0 0 18px rgba(111,169,255,.5); }
@media (max-width: 640px) { .rank-card { padding: 14px 8px; } .rank-card h3 { font-size: .9rem; letter-spacing: 0; } .rank-card .muted { font-size: .78rem; } }
