:root {
  --ink: #070506;
  --panel: rgba(16, 11, 12, .86);
  --panel-solid: #120c0d;
  --line: rgba(190, 150, 140, .16);
  --line-strong: rgba(200, 60, 60, .45);
  --text: #e9e1da;
  --muted: #9d928b;
  --blood: #b01622;
  --blood-bright: #d8323c;
  --steel: #8fb6c9;
  --ok: #6fae8a;
  --display: "Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font: 16px/1.6 var(--body);
}
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--blood-bright); }

body { position: relative; }
.backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: 100vh; min-height: 640px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,5,6,.10) 0%, rgba(7,5,6,.55) 38%, rgba(7,5,6,.80) 62%, var(--ink) 100%),
    url("/static/backdrop.jpg") center top / cover no-repeat;
}
body:not(.home) .backdrop {
  background:
    linear-gradient(180deg, rgba(7,5,6,.55) 0%, rgba(7,5,6,.86) 50%, var(--ink) 100%),
    url("/static/backdrop.jpg") center top / cover no-repeat;
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,5,6,.92), rgba(7,5,6,.72));
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand { align-items: center; }
.brand-mark { height: 46px; width: auto; display: block; filter: brightness(.9); }
.brand-sub { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.status { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6b5f5a; }
.dot.up { background: var(--ok); box-shadow: 0 0 10px rgba(111,174,138,.7); }
.dot.down { background: var(--blood); }
.sep { margin: 0 .5em; color: #5f5551; }
nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
nav a { text-decoration: none; letter-spacing: .04em; }
form.inline { display: inline; margin: 0; }
/* top bar: the status is one capsule, the page links are text with an underline for
   "you are here", and only signing in and registering are buttons */
.status { gap: 8px; padding: 5px 13px 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,5,6,.5); white-space: nowrap; }
.status .sep { margin: 0 .5em 0 0; }
nav { margin-left: 10px; row-gap: 10px; flex-wrap: wrap; }
nav a.page { padding: 5px 0 4px; border-bottom: 2px solid transparent; color: #cfc5be; transition: color .15s, border-color .15s; }
nav a.page:hover { color: #fff; border-bottom-color: var(--line-strong); }
nav a.page[aria-current] { color: #fff; border-bottom-color: var(--blood-bright); }
nav .button.small { padding: 9px 16px; }

/* ---------- language menu ---------- */
.langs { position: relative; border-top: 0; }
.langs summary { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 13px; letter-spacing: .02em; text-transform: none; color: #cfc5be; background: rgba(7,5,6,.5); white-space: nowrap; }
.langs summary::after { content: "\25BE"; margin-left: 2px; font-size: 11px; }
.langs[open] summary::after { content: "\25B4"; }
.langs summary:hover, .langs[open] summary { border-color: var(--line-strong); color: #fff; }
.langs img { width: 20px; height: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 1px; flex: none; }
.langs ul { list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; right: 0; z-index: 20; min-width: 100%;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel-solid); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.langs li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; white-space: nowrap; border-radius: 2px; text-decoration: none; }
.langs li a:hover { background: rgba(176,22,34,.2); }
.langs li a[aria-current] { color: #fff; background: rgba(176,22,34,.12); }

/* Korean, Chinese, Japanese and Thai: no wide-spaced capitals, and fonts that
   have the letters. The headings keep their size but use the text font. */
.wide-script { --display: "Malgun Gothic", "Apple SD Gothic Neo", "Microsoft YaHei", "PingFang SC", "Yu Gothic", "Hiragino Sans",
               "Leelawadee UI", "Noto Sans CJK KR", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
               --body: var(--display); }
.wide-script h1, .wide-script h2, .wide-script h3, .wide-script .eyebrow, .wide-script .brand-sub, .wide-script .button,
.wide-script label, .wide-script summary, .wide-script th, .wide-script dt, .wide-script .motto, .wide-script .slot,
.wide-script .statline span, .wide-script footer { letter-spacing: .02em !important; }
.wide-script .button { font-size: 14px; }
.wide-script label, .wide-script dt, .wide-script th, .wide-script .statline span, .wide-script .slot { font-size: 12px; }
.lang-th { line-height: 1.75; }

/* ---------- buttons ---------- */
.button, button.button {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: #fff; padding: 15px 28px; border-radius: 2px;
  border: 1px solid var(--blood-bright);
  background: linear-gradient(180deg, #c21b28, #8a101a);
  box-shadow: 0 8px 24px rgba(176,22,34,.28), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover { color: #fff; background: linear-gradient(180deg, #d8323c, #9a1420); box-shadow: 0 10px 30px rgba(216,50,60,.38), inset 0 1px 0 rgba(255,255,255,.18); }
.button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--blood-bright); outline-offset: 3px; }
.button.ghost { background: rgba(10,7,8,.5); border-color: var(--line-strong); box-shadow: none; }
.button.ghost:hover { background: rgba(176,22,34,.18); }
.button.small { padding: 11px 18px; font-size: 12px; }
.button.wide { width: 100%; margin-top: 26px; }
.button.red { background: linear-gradient(180deg, #7c0f18, #4f0a10); border-color: #a01a24; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; letter-spacing: .04em; }
button.link:hover { color: #fff; }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 64px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .08em; margin: 0; }
.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); margin: 6px 0 0; }

.notice {
  margin: 0 0 22px; padding: 14px 18px; border-radius: 2px; font-size: 15px;
  border: 1px solid var(--line); border-left: 3px solid var(--muted); background: var(--panel);
}
.notice.ok { border-left-color: var(--ok); }
.notice.error { border-left-color: var(--blood-bright); }
.notice.warn { border-left-color: #c79a4a; }

/* ---------- home ---------- */
/* the title starts just under the moon: the moon's lower edge is a quarter of
   the way down the picture, which is as tall as the window or, on wide
   windows, as tall as its width needs */
.hero { text-align: center; padding: max(0px, calc(max(10.7vw, 25vh) - 128px)) 0 clamp(36px, 7vw, 80px); }
.hero h1 { margin: 0 auto; max-width: 860px; line-height: 0; }
.hero h1 img { width: 100%; height: auto; filter: brightness(.78) drop-shadow(0 0 22px rgba(176,22,34,.22)); }
.lead { max-width: 560px; margin: 8px auto 0; font-size: 18px; color: #cfc5be; }
.actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.faction {
  text-align: center; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel);
}
.faction img { height: 150px; width: auto; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.faction h2 { font-size: 26px; letter-spacing: .3em; text-transform: uppercase; margin-top: 10px; }
.faction.vampire h2 { color: var(--blood-bright); }
.faction.slayer h2 { color: #d5dde2; }
.motto { margin: 8px 0 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.faction p:last-child { margin: 0; color: #c9bfb8; }

.steps { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.steps > div { padding: 24px 26px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.steps span { font: 600 28px/1 var(--display); color: var(--blood-bright); }
.steps h3 { font-size: 17px; margin: 10px 0 6px; letter-spacing: .06em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- panels and forms ---------- */
.panel { padding: 36px clamp(22px, 5vw, 44px) 34px; border: 1px solid var(--line); border-top: 2px solid var(--blood); border-radius: 3px; background: var(--panel); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.panel.narrow { max-width: 440px; margin: clamp(10px, 5vw, 50px) auto 0; }
.panel h1 { font-size: 28px; }
.panel.empty { text-align: center; }
.panel.empty p { color: var(--muted); margin: 10px 0 0; }
label { display: block; margin: 22px 0 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
input:not([type=checkbox]):not([type=hidden]) {
  width: 100%; padding: 13px 14px; font: 16px var(--body); color: var(--text);
  background: #0a0708; border: 1px solid rgba(190,150,140,.26); border-radius: 2px;
}
input:not([type=checkbox]):focus { border-color: var(--blood-bright); outline: none; box-shadow: 0 0 0 3px rgba(216,50,60,.18); }
.hint { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
.foot { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; letter-spacing: .02em; text-transform: none; font-size: 15px; color: var(--text); margin: 16px 0; }
label.check input { width: 18px; height: 18px; accent-color: var(--blood-bright); }

/* ---------- account ---------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.account-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: .1em; }
.account-head .eyebrow { margin-bottom: 8px; }
.facts { display: flex; gap: 34px; margin: 0; flex-wrap: wrap; }
.facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 15px; }
.tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; color: var(--muted); }
.tag.live { color: var(--ok); border-color: rgba(111,174,138,.5); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; padding: 24px 24px 20px; border: 1px solid var(--line); border-top: 2px solid var(--blood); border-radius: 3px; background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.card.slayer { border-top-color: var(--steel); }
.card header { display: flex; align-items: center; gap: 14px; }
.card header img { width: 64px; height: auto; mix-blend-mode: screen; flex: none; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.card h2 { font-size: 22px; letter-spacing: .06em; overflow-wrap: anywhere; }
.sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 10px; margin: 20px 0 0; }
.stats > div { padding: 12px 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 2px; background: rgba(7,5,6,.55); }
.stats dt { font-size: 11px; letter-spacing: .22em; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 600 22px/1.1 var(--display); }
.stats .bonus { border-color: var(--line-strong); }
.stats .bonus dd { color: var(--blood-bright); }

.domains { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.domains li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; color: var(--muted); }
.domains b { margin-left: 8px; color: var(--text); }

.tools { margin-top: auto; padding-top: 20px; }
.quiet { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 13px 2px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #cfc5be; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 16px; letter-spacing: 0; }
details[open] summary::after { content: "\2013"; }
summary:hover { color: #fff; }
details.danger summary { color: #c98a8f; }
.tool-body { padding: 0 2px 16px; font-size: 15px; color: #cfc5be; }
.tool-body p { margin: 0 0 14px; }
.tool-body label:first-of-type { margin-top: 4px; }

/* ---------- highscores ---------- */
.note { max-width: 420px; font-size: 14px; margin: 0; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.board { padding: 22px 22px 14px; border: 1px solid var(--line); border-top: 2px solid var(--blood); border-radius: 3px; background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.board.slayer { border-top-color: var(--steel); }
.board header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.board header img { width: 56px; height: auto; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.board h2 { font-size: 22px; letter-spacing: .22em; text-transform: uppercase; }
.board.vampire h2 { color: var(--blood-bright); }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { padding: 8px 8px; text-align: left; font: 600 11px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.board td { padding: 9px 8px; border-bottom: 1px solid rgba(190,150,140,.08); vertical-align: middle; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr:hover td { background: rgba(176,22,34,.12); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board th.num:first-child, .board td.place { text-align: center; width: 44px; color: var(--muted); }
.board td.name { font-weight: 600; overflow-wrap: anywhere; }
.board td.level { font: 600 17px var(--display); width: 90px; }
/* the whole row opens the character: the name's link is stretched over it
   (no script needed); the name itself no longer looks like a link */
.board tbody tr { position: relative; cursor: pointer; }
/* EQUAL-ROWS (2026-10-10): a slayer row holds a 30px class picture, a vampire row does not; one height for both keeps the two boards the same size */
.board tbody tr { height: 49px; }
.board td.name a { text-decoration: none; color: inherit; }
.board td.name a::after { content: ""; position: absolute; inset: 0; }
.board td.name a:focus-visible { outline: none; }
.board td.name a:focus-visible::after { outline: 2px solid var(--blood-bright); outline-offset: -2px; }
.board td.rank a { position: relative; z-index: 1; display: inline-block; line-height: 0; }   /* keeps the hover text of the rank mark */
.board td.cls { white-space: nowrap; color: #cfc5be; font-size: 14px; }
.board td.cls img { height: 30px; width: auto; max-width: 26px; object-fit: contain; vertical-align: middle; margin-right: 8px; image-rendering: pixelated; }
.board td.rank { width: 56px; white-space: nowrap; }
.board td.rank img { vertical-align: middle; image-rendering: pixelated; border: 1px solid rgba(190,150,140,.25); }
.board td.rank span { margin-left: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.board tr.podium td.place { color: #e2b25a; font: 600 17px var(--display); }
.board tr.podium td.name { color: #fff; }

.note.wide { max-width: none; margin: -6px 0 22px; }
.search label { margin: 0 0 8px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-row input { width: 260px !important; padding: 10px 12px !important; }
.search .clear { font-size: 13px; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.pager a, .pager span { min-width: 34px; padding: 6px 8px; text-align: center; font-size: 14px; border-radius: 2px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a { border: 1px solid var(--line); color: #cfc5be; }
.pager a:hover { border-color: var(--blood-bright); color: #fff; background: rgba(176,22,34,.14); }
.pager .here { border: 1px solid var(--blood-bright); background: linear-gradient(180deg, #c21b28, #8a101a); color: #fff; font-weight: 600; }
.board.slayer .pager .here { border-color: var(--steel); background: rgba(143,182,201,.22); }
.pager .gap { color: var(--muted); min-width: 0; padding: 6px 2px; }
@media (max-width: 640px) { .search-row input { width: 100% !important; } .search-row { flex-wrap: wrap; } }

/* ---------- front page figures, settings, guilds ---------- */
/* WEB-EVENTS (2026-10-10): the countdown strip under the title picture */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.event { padding: 10px 14px 9px; border: 1px solid var(--line); border-left: 3px solid var(--blood); border-radius: 3px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event.lair { border-left-color: var(--steel); }
.event.running, .event.entry, .event.fight { border-left-color: #e2b25a; }
.event .ev-title { font: 600 11px var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.event .ev-state { font: 600 17px/1.25 var(--display); color: #fff; }
.event .ev-left { color: #e2b25a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event .ev-when { font-size: 13px; color: #cfc5be; }
.event.unknown .ev-state { color: var(--muted); font-size: 15px; }
.wide-script .event .ev-title { letter-spacing: .04em; font-size: 12px; }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 22px; }
.statline > div { padding: 18px 12px 14px; text-align: center; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.statline b { display: block; font: 600 30px/1.1 var(--display); color: #fff; }
.statline span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 22px; }
.rows a { text-decoration: none; }
.rows a:hover { text-decoration: underline; text-decoration-color: var(--blood-bright); }
.settings { margin-bottom: 22px; }
.settings details:first-of-type { margin-top: 12px; }
.settings form { max-width: 420px; }
.settings .button { margin-top: 18px; }
summary .set { color: var(--text); text-transform: none; letter-spacing: 0; margin-left: 10px; }
summary .unset { color: var(--muted); text-transform: none; letter-spacing: 0; margin-left: 10px; }
summary { gap: 10px; }
summary::after { margin-left: auto; }
.wide-board td, .wide-board th { padding-left: 12px; padding-right: 12px; }
.board tbody tr.plain { cursor: default; }
.char-head .eyebrow a, .facts a { text-decoration: none; }

.boards.front { margin-top: 22px; }
.boards.front .board header { margin-bottom: 8px; }
.boards.front .board h2 { color: #cfc5be; font-size: 16px; letter-spacing: .26em; }
.board td.cls .side-v { color: #e9b4b8; }
.board td.date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.board tr.slayer-row td.place { color: var(--steel); }
.board .more { margin: 10px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- character ---------- */
.char-head .who { display: flex; align-items: center; gap: 18px; }
.char-head .mark { cursor: help; width: 56px; height: 56px; image-rendering: pixelated; border: 1px solid var(--line-strong); box-shadow: 0 0 24px rgba(176,22,34,.25); }
.char-head.slayer .mark { border-color: rgba(143,182,201,.45); box-shadow: 0 0 24px rgba(143,182,201,.18); }
.facts dd.big { font: 600 26px/1.1 var(--display); }
.facts dd.cls { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.facts dd.cls img { height: 34px; width: auto; image-rendering: pixelated; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; text-decoration-color: var(--blood-bright); }
.class-line { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: rgba(7,5,6,.55); font-size: 15px; }
.class-line img { height: 30px; width: auto; image-rendering: pixelated; }
.class-line b { margin-left: auto; font: 600 18px var(--display); }

.sheet { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.sheet aside { display: grid; gap: 22px; }
.panel.flat { padding: 24px 24px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.panel.flat h2 { font-size: 16px; letter-spacing: .26em; text-transform: uppercase; color: #cfc5be; }
.char-head.slayer ~ .sheet .panel { border-top-color: var(--steel); }

.gear { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.gear li { display: flex; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 2px; background: rgba(7,5,6,.55); min-height: 86px; }
.gear li.filled { border-color: rgba(200,60,60,.28); }
.gear li.empty { opacity: .5; }
.tile { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px;
  background: radial-gradient(circle at 50% 40%, rgba(176,22,34,.16), rgba(7,5,6,.9) 70%); }
.tile img { max-width: 58px; max-height: 58px; image-rendering: pixelated; filter: drop-shadow(0 2px 4px rgba(0,0,0,.8)); }
.about { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.about .slot { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.about .item { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.about .none { color: var(--muted); font-size: 14px; }
.about .bonus { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.about .bonus b { color: #e9b4b8; font-weight: 600; font-size: 13px; }
.about .fine { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 10px; }
.about .fine i { font-style: normal; }

.stats.wide { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(190,150,140,.08); font-size: 14px; }
.rows li:last-child { border-bottom: 0; }
.rows span { color: var(--muted); }
.rows b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.back { margin-top: 26px; }
@media (max-width: 820px) { .sheet { grid-template-columns: 1fr; } }

/* ---------- news and polls ---------- */
.front-news { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; align-items: start; }
.front-news.with-poll { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
@media (max-width: 820px) { .front-news.with-poll { grid-template-columns: 1fr; } }
.front-news .board h2 { color: #cfc5be; font-size: 16px; letter-spacing: .26em; }
.news-board { padding-bottom: 8px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { position: relative; padding: 16px 14px 16px 18px; border-left: 2px solid var(--line); border-bottom: 1px solid rgba(190,150,140,.08); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: rgba(176,22,34,.12); }
.news-item h2, .news-item h3 { font-size: 19px; letter-spacing: .04em; margin: 6px 0 4px; }
.news-item h2 a, .news-item h3 a { text-decoration: none; color: #fff; }
.news-item h2 a::after, .news-item h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole row opens the post */
.news-item p { margin: 0; color: #c9bfb8; font-size: 15px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-meta time { font-variant-numeric: tabular-nums; }
.tag.cat { border-color: var(--line-strong); color: #e9b4b8; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; padding: 3px 10px; }
.tag.pin { border-color: rgba(226,178,90,.5); color: #e2b25a; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; padding: 3px 10px; }
.cat-update { border-left-color: var(--steel); }
.cat-update .tag.cat { border-color: rgba(143,182,201,.5); color: var(--steel); }
.cat-event { border-left-color: #e2b25a; }
.cat-event .tag.cat { border-color: rgba(226,178,90,.5); color: #e2b25a; }
.cat-maintenance { border-left-color: #8d8580; }
.cat-maintenance .tag.cat { border-color: rgba(157,146,139,.5); color: var(--muted); }
.cat-announcement { border-left-color: var(--blood-bright); }
.news-item.pinned { background: rgba(226,178,90,.04); }
.tag.state-open { color: var(--ok); border-color: rgba(111,174,138,.5); }
.tag.state-closed { color: var(--muted); }
.tag.state-soon { color: #e2b25a; border-color: rgba(226,178,90,.5); }

.post { max-width: 820px; margin: 0 auto; }
.post h1 { font-size: clamp(26px, 4.4vw, 38px); letter-spacing: .05em; margin: 14px 0 18px; overflow-wrap: anywhere; }
.post .edited { font-style: italic; }
.prose { font-size: 17px; line-height: 1.75; color: #ded5ce; overflow-wrap: anywhere; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 19px; letter-spacing: .08em; margin: 30px 0 12px; color: #fff; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--blood-bright); }
.prose strong { color: #fff; }
.prose a { color: #e9b4b8; }
.back { max-width: 820px; margin: 22px auto 0; }
.back a { text-decoration: none; color: var(--muted); }
.back a:hover { color: #fff; }

.poll-card h3 { font-size: 20px; letter-spacing: .04em; margin: 4px 0 2px; color: #fff; }
.poll-card .button { margin-top: 12px; margin-bottom: 10px; }
.poll-card .open-now { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.ballot fieldset { border: 1px solid var(--line); border-radius: 2px; margin: 0 0 14px; padding: 16px 18px 12px; background: rgba(7,5,6,.55); }
.ballot legend { padding: 0 8px; font-size: 17px; color: #fff; display: flex; gap: 12px; align-items: baseline; }
.qn { font: 600 15px var(--display); color: var(--blood-bright); }
label.pick { display: inline-flex; align-items: center; gap: 8px; margin: 6px 22px 6px 0; letter-spacing: .02em; text-transform: none; font-size: 16px; color: var(--text); cursor: pointer; }
label.pick input { width: 18px; height: 18px; accent-color: var(--blood-bright); }
label.pick.skip { color: var(--muted); }
.results-title { font-size: 16px; letter-spacing: .26em; text-transform: uppercase; color: #cfc5be; margin: 26px 0 6px; }
.results { margin: 0; padding: 0 0 0 26px; }
.results > li { padding: 16px 0; border-bottom: 1px solid rgba(190,150,140,.08); }
.results > li::marker { color: var(--blood-bright); font: 600 16px var(--display); }
.results .q { margin: 0 0 10px; font-size: 17px; color: #fff; }
.results .fine { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.bar { display: grid; grid-template-columns: minmax(70px, 150px) 1fr 110px; gap: 12px; align-items: center; margin: 6px 0; font-size: 14px; }
.bar .label { color: #cfc5be; overflow-wrap: anywhere; }
.bar .figure { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.bar .figure small { color: var(--muted); }
.bar progress { width: 100%; height: 14px; border: 1px solid var(--line); border-radius: 2px; background: #0a0708; appearance: none; -webkit-appearance: none; overflow: hidden; }
.bar progress::-webkit-progress-bar { background: #0a0708; }
.bar progress::-webkit-progress-value { background: linear-gradient(180deg, #7a726d, #4c4744); }
.bar progress::-moz-progress-bar { background: linear-gradient(180deg, #7a726d, #4c4744); }
.bar.yes progress::-webkit-progress-value, .bar.lead progress::-webkit-progress-value { background: linear-gradient(180deg, #7fc59b, #4e8a69); }
.bar.yes progress::-moz-progress-bar, .bar.lead progress::-moz-progress-bar { background: linear-gradient(180deg, #7fc59b, #4e8a69); }
.bar.no progress::-webkit-progress-value { background: linear-gradient(180deg, #c21b28, #8a101a); }
.bar.no progress::-moz-progress-bar { background: linear-gradient(180deg, #c21b28, #8a101a); }
.verdict { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 20px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border: 1px solid; }
.verdict.passed { color: var(--ok); border-color: rgba(111,174,138,.5); }
.verdict.failed { color: #e9b4b8; border-color: var(--line-strong); }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr 90px; } .bar .label { grid-column: 1 / -1; } }

/* ---------- admin ---------- */
.admin-link { color: #e2b25a; }
.actions.tight { margin-top: 0; gap: 10px; }
.actions.left { justify-content: flex-start; margin-top: 26px; gap: 12px; }
.admin-board { margin-bottom: 22px; }
.admin-board td.acts { white-space: nowrap; text-align: right; font-size: 14px; }
.admin-board td.acts > * { margin-left: 14px; }
.admin-board td.name a { text-decoration: none; }
.admin-board td.name a::after { content: none; }
.admin-board tbody tr { cursor: default; }
details.mini { display: inline-block; border-top: 0; vertical-align: top; text-align: left; }
details.mini summary { display: inline; padding: 0; font-size: 14px; letter-spacing: 0; text-transform: none; }
details.mini summary::after { content: none; }
details.mini form { margin-top: 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel-solid); white-space: normal; max-width: 280px; }
.editor { max-width: 820px; margin: 0 auto; }
.editor label:first-of-type { margin-top: 0; }
.editor .opt { text-transform: none; letter-spacing: 0; color: #7d736d; }
textarea, select {
  width: 100%; padding: 13px 14px; font: 16px/1.55 var(--body); color: var(--text);
  background: #0a0708; border: 1px solid rgba(190,150,140,.26); border-radius: 2px;
}
textarea { resize: vertical; min-height: 120px; }
textarea:focus, select:focus { border-color: var(--blood-bright); outline: none; box-shadow: 0 0 0 3px rgba(216,50,60,.18); }
code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; background: #0a0708; font: 13px ui-monospace, Consolas, monospace; color: #e9b4b8; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 18px; }
.preview { margin-bottom: 22px; border-top-color: #e2b25a; }
.preview .summary-line { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.admin-strip { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: center; font-size: 14px; }

/* the "under construction" strip under the top bar */
.construction { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; padding: 9px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong); background: rgba(176,22,34,.16); font-size: 14px; text-align: center; }
.construction b { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: #fff; }
.construction span { color: #cfc5be; }

/* ---------- guide ---------- */
.guide-tabs { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-tabs a { display: block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: #cfc5be; background: rgba(7,5,6,.5); }
.guide-tabs a:hover { border-color: var(--line-strong); color: #fff; }
.guide-tabs a[aria-current] { border-color: var(--blood-bright); background: rgba(176,22,34,.16); color: #fff; }
.guide-tabs.sub { margin-top: -8px; }
.guide-tabs.sub a { padding: 5px 11px; font-size: 12px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.guide-cards a.panel { display: block; padding: 26px 24px 22px; text-decoration: none; }
.guide-cards a.panel:hover { border-color: var(--line-strong); border-top-color: var(--blood-bright); }
.guide-cards h2 { font-size: 20px; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; }
.guide-cards p { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.guide-cards .big { font: 600 26px var(--display); }
.guide-table { margin-bottom: 22px; overflow-x: auto; }
.guide-table h2 { margin: 0 0 10px; font-size: 18px; }
.guide-table tbody tr { cursor: default; }
.guide-table td.pic { width: 48px; text-align: center; }
.guide-table td.pic img { max-width: 40px; max-height: 44px; vertical-align: middle; image-rendering: pixelated; }
.guide-table td.maps { font-size: 13px; color: #cfc5be; max-width: 420px; }
.guide-table .tag { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 2px; font: 600 10px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blood-bright); }

.guide-table td.pic.mon { width: 84px; height: 76px; }
.guide-table td.pic.mon img { max-width: 76px; max-height: 70px; }
.guide-table td.maps a, .guide-table a.plain { text-decoration: none; }
.guide-table td.maps a:hover, .guide-table a.plain:hover { text-decoration: underline; }
.guide-table td.name a.plain::after { content: none; }
.guide-table .built { margin: 6px 0 0; color: var(--muted); }
.place-list a span { display: block; }
.guide-table td.pic.skill { width: 52px; }
.guide-table td.pic.skill img { max-width: 40px; max-height: 40px; }
.guide-table .about summary { cursor: pointer; list-style-position: outside; }
.guide-table .about summary:hover { color: #fff; }
.guide-table .about p { margin: 8px 0 4px; max-width: 640px; font-weight: 400; font-size: 14px; line-height: 1.55; color: #cfc5be; }
.monster-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.monster-head img { max-height: 110px; image-rendering: pixelated; }
.monster-head p { margin: 4px 0; }
.guide-table .drops summary { cursor: pointer; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.drops-note { margin: 0 0 22px; font-size: 13px; }
.guide-table .back { margin: 14px 0 4px; font-size: 14px; }
.world { text-align: center; margin-bottom: 22px; padding: 22px; }
.world img { max-width: 100%; height: auto; border-radius: 2px; }
.world p { margin: 14px auto 0; max-width: 620px; font-size: 14px; color: var(--muted); }
.lands { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 22px; }
.land h2 { margin: 0 0 10px; font-size: 18px; }
.quarters { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.quarters.three { grid-template-columns: 1fr 1fr 1fr; }
.quarters a, .quarters span { display: block; line-height: 0; border: 1px solid transparent; }
.quarters img { width: 100%; height: auto; }
.quarters a:hover { border-color: var(--blood-bright); }
.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.place-list a { display: block; padding: 6px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; font-size: 13px; text-align: center; background: rgba(7,5,6,.5); }
.place-list a:hover { border-color: var(--blood-bright); }
.place-list img { display: block; width: 100%; height: auto; margin-bottom: 6px; }
/* a map with its exits: each exit is a link laid over the picture (places in guide/maps.css) */
.exits { position: relative; margin: 0 auto; line-height: 0; }
.exits img { width: 100%; height: auto; border: 1px solid var(--line); }
.exits a { position: absolute; border: 2px solid var(--blood-bright); border-radius: 3px; background: rgba(216,50,60,.22); line-height: 1.3; }
.exits a:hover, .exits a:focus-visible { background: rgba(216,50,60,.5); z-index: 5; }
.exits a span { display: none; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 5px 10px; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel-solid); font-size: 13px; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.exits a:hover span, .exits a:focus-visible span { display: block; }

/* a page of plain reading text (privacy) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 26px 0 8px; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
footer a { color: inherit; }

/* ---------- footer ---------- */
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #6f6661; }

footer .legal { flex-basis: 100%; margin: 6px 0 0; text-align: center; text-transform: none; letter-spacing: .02em; line-height: 1.7; color: #6f6661; }

@media (max-width: 640px) {
  .status { margin-left: auto; }
  .status .count { display: none; }
  nav { margin-left: 0; width: 100%; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* WEB-STAFF: staff pages */
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form label { flex-basis: 100%; }
.inline-form input { flex: 1 1 220px; max-width: 320px; }
.logtext { margin: 0; padding: 14px; max-height: 72vh; overflow: auto; font: 12.5px/1.5 Consolas, "DejaVu Sans Mono", monospace;
  color: #cfc5be; background: rgba(0,0,0,.35); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }

/* DOWNLOAD-PAGE */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 14px 0; }
.download-card { padding: 16px 18px; border: 1px solid var(--line); border-top: 2px solid var(--blood-bright); background: rgba(0,0,0,.25); }
.download-card h3 { margin: 0 0 10px; font-size: 18px; }
.download-card p { margin: 0 0 12px; line-height: 2; }

/* REPORTS */
.report-form label { display: block; margin-top: 16px; }
.report-form textarea, .report-form input, .report-form select { width: 100%; max-width: 720px; }
.report-form button { margin-top: 18px; }
.report-text { max-height: none; font: 15px/1.6 var(--body); }
.stats-row { margin: 6px 0 18px; }
.stat-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: start; }
.filters { margin: 0 0 12px; line-height: 2.4; }


/* ============================================================================================
   OLDSCHOOL-STYLE (2026-10-12, owner: "redesign the website to make it similar to this style",
   "change the background to black"). The look of the Darkeden Oldschool banner: black ground,
   silver steel for the Slayers and DARK, crimson for the Vampires and EDEN, bone white for the
   small print. Everything below overrides the rules above; removing this block (and the hero
   picture in templates/home.html) brings the former look back.
   ============================================================================================ */
:root {
  --ink: #000;
  --panel: rgba(9, 9, 11, .92);
  --panel-solid: #09090b;
  --line: rgba(198, 205, 216, .13);
  --line-strong: rgba(214, 40, 52, .55);
  --text: #e7e5e1;
  --muted: #8d8e96;
  --blood: #b3121f;
  --blood-bright: #e0222f;
  --steel: #c3c9d2;
  --silver-hi: #f4f6f9;
  --silver-lo: #7d8590;
  --bone: #e8e1d2;
  --duo: linear-gradient(90deg, var(--silver-lo) 0%, var(--silver-hi) 22%, var(--steel) 46%, var(--blood) 54%, var(--blood-bright) 78%, #6d0a12 100%);
}
html { background: #000; }
/* the old castle picture goes; two faint glows stand for the two sides of the banner */
.backdrop, body:not(.home) .backdrop {
  background:
    radial-gradient(60vw 46vh at 12% 0%, rgba(150, 165, 185, .10), transparent 70%),
    radial-gradient(60vw 46vh at 88% 0%, rgba(190, 20, 32, .13), transparent 70%),
    #000;
}
.network { display: none; }

/* ---------- header ---------- */
.top { background: rgba(0, 0, 0, .86); border-bottom: 0; position: relative; padding-top: 14px; padding-bottom: 14px; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--duo); opacity: .55; }
.brand-mark { height: 68px; filter: none; }
.brand-sub { color: var(--silver-lo); }
.status { background: #050506; border-color: var(--line); }
nav a.page { color: #b9bcc4; }
nav a.page:hover { border-bottom-color: var(--silver-lo); }
nav a.page[aria-current] { border-image: var(--duo) 1; }
.langs summary { background: #050506; }

/* ---------- headings: brushed silver, as the DARK of the banner ---------- */
h1, h2, h3 { letter-spacing: .09em; }
main h1, .board h2, .panel h1, .panel h2, .account-head h1, .post h1 {
  background: linear-gradient(180deg, var(--silver-hi) 0%, var(--steel) 45%, var(--silver-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.board.vampire h2, .faction.vampire h2, .card:not(.slayer) h2 a, .char-head:not(.slayer) h1 {
  background: linear-gradient(180deg, #ff5a63 0%, var(--blood-bright) 45%, #7e0d17 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow { color: var(--silver-lo); }

/* ---------- buttons: cut corners, like the blades of the lettering ---------- */
.button, button.button {
  border-radius: 0; border: 0; padding: 16px 30px;
  background: linear-gradient(180deg, #e52b38 0%, #b3121f 48%, #6f0a13 100%);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: none; text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.button:hover { background: linear-gradient(180deg, #ff4753 0%, #cc1826 48%, #7f0c16 100%); box-shadow: none; }
.button.ghost {
  background: linear-gradient(180deg, #2a2d33 0%, #15171b 100%); color: var(--silver-hi);
  box-shadow: inset 0 0 0 1px rgba(198, 205, 216, .35);
}
.button.ghost:hover { background: linear-gradient(180deg, #3a3e46 0%, #1d2025 100%); box-shadow: inset 0 0 0 1px var(--silver-hi); }
.button.red { background: linear-gradient(180deg, #7c0f18, #3f080d); }
.button.small, nav .button.small { padding: 11px 18px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }

/* ---------- home: the banner itself ---------- */
.hero { padding: clamp(6px, 2vw, 26px) 0 clamp(34px, 6vw, 70px); }
.hero h1 { max-width: 1180px; background: none; -webkit-text-fill-color: initial; }
.hero h1 img {
  filter: none; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 0, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.lead { color: var(--bone); margin-top: clamp(-34px, -3vw, -10px); position: relative; }
body.home main { max-width: 1240px; }
body.home main > section:not(.hero) { max-width: 1016px; margin-left: auto; margin-right: auto; }

/* ---------- the two sides ---------- */
.faction { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: center;
  background: #050506; border: 1px solid var(--line); border-radius: 0; }
.faction > * { position: relative; }
.faction img { display: none; }
.faction::before { content: ""; position: absolute; top: 0; bottom: 0; width: 46%; background-size: cover; background-position: center top; opacity: .9; }
.faction.slayer { padding-left: 47%; text-align: left; border-top: 2px solid var(--steel); }
.faction.slayer::before { left: 0; background-image: url("/static/faction_slayer.jpg?v=2");
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); }
.faction.vampire { padding-right: 47%; text-align: right; border-top: 2px solid var(--blood-bright); }
.faction.vampire::before { right: 0; background-image: url("/static/faction_vampire.jpg?v=2");
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%); mask-image: linear-gradient(270deg, #000 55%, transparent 100%); }
.faction.slayer h2 { background: linear-gradient(180deg, var(--silver-hi), var(--steel) 45%, var(--silver-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.faction h2 { font-size: 30px; letter-spacing: .26em; margin-top: 0; }
.faction p:last-child { color: #c4c3c0; }
@media (max-width: 560px) {
  .faction.slayer, .faction.vampire { padding-left: 28px; padding-right: 28px; text-align: center; }
  .faction::before { width: 100%; opacity: .22; }
}

/* ---------- panels, cards, boards ---------- */
.panel, .card, .board, .steps > div, .statline > div, .notice, .news-item { border-radius: 0; }
.panel, .card, .board { background: var(--panel); border: 1px solid var(--line); border-top: 0; position: relative; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); }
.panel::before, .card::before, .board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--duo); }
.card:not(.slayer)::before, .board.vampire::before { background: linear-gradient(90deg, #6d0a12, var(--blood-bright), #6d0a12); }
.card.slayer::before, .board.slayer::before { background: linear-gradient(90deg, var(--silver-lo), var(--silver-hi), var(--silver-lo)); }
.steps > div, .statline > div { background: #050506; border-color: var(--line); }
.steps span { background: linear-gradient(180deg, #ff5a63, var(--blood)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statline b, .stats dd { color: var(--silver-hi); }
.board th { color: var(--silver-lo); }
.board tbody tr:hover td { background: rgba(179, 18, 31, .12); }
.board.slayer tbody tr:hover td { background: rgba(195, 201, 210, .08); }
input:not([type=checkbox]):not([type=hidden]) { background: #020203; border-color: rgba(198, 205, 216, .22); border-radius: 0; }
input:not([type=checkbox]):focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(195, 201, 210, .14); }
.tag { border-radius: 0; }
.notice { background: #050506; }

/* ---------- footer ---------- */
footer { position: relative; border-top: 0 !important; background: #000; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--duo); opacity: .45; }

/* LEVEL-BOARDS (2026-10-12, owner: "make sure these are level when full"): boards that stand side
   by side are as tall as each other, empty or full; a board's closing link sits at its foot. */
.boards, .front-news { align-items: stretch; }
.boards > .board, .front-news > .board { display: flex; flex-direction: column; }
.board > .more { margin-top: auto; }
.board > table + .more, .board > .quiet + .more { margin-top: auto; }
.faction::before { background-position: center 8%; }

/* GUIDE-WIDTH (2026-10-12, owner: "make the guide tables uniform size all the way down"): on the
   guide pages the opening text box is as wide as the tables under it, with the same gap. */
.guide-tabs ~ .panel.prose, .guide-tabs ~ .panel, .guide-tabs ~ .board, .guide-tabs ~ .note { max-width: none; width: 100%; margin-left: 0; margin-right: 0; }
.guide-tabs ~ .panel, .guide-tabs ~ .board { margin-bottom: 22px; }
.guide-tabs ~ .panel.prose p:last-child { margin-bottom: 0; }
.guide-tabs ~ .board table { width: 100%; }
/* the front page's opening words: three short lines under the banner */
.lead { max-width: 640px; font-size: 19px; line-height: 1.55; text-wrap: balance; }

/* MOON-AND-SMOKE (2026-10-12): the owner's two pictures behind the pages. The front page has the
   banner's own moon, so it gets the smoke alone; every other page gets the moon, held well back
   so that text on it stays easy to read. Both pictures end in black, as the page does. */
body.home .backdrop {
  height: max(100vh, 760px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, #000 100%), url("/static/bg_smoke.jpg") center bottom / cover no-repeat, #000;
}
body:not(.home) .backdrop {
  height: max(100vh, 760px);
  background:
    linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.62) 40%, rgba(0,0,0,.86) 72%, #000 100%),
    url("/static/bg_moon.jpg") center top / cover no-repeat, #000;
}

/* NO-SCROLLBARS (2026-10-12, owner: "all these scroll bars are not needed"): the coloured line on
   top of a box used to reach a pixel past each side, which made every guide table offer to
   scroll sideways. A table now scrolls only on a screen too narrow to hold it. */
.guide-table { overflow-x: visible; }
@media (max-width: 760px) { .guide-table { overflow-x: auto; } }

/* HERO-SWAP (2026-10-12, owner: "alternate the logo so both show"): the two banners (the men, the
   women) take turns on the front page: each is shown for about eight seconds and they fade into
   one another. A visitor who has asked for no motion sees the first one only. */
.hero h1 { position: relative; }
.hero h1 img.swap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; animation: hero-swap 20s ease-in-out infinite; }
@keyframes hero-swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
/* the first banner goes fully out while the second is up: both fade to nothing at their edges,
   so one lying under the other showed through there */
.hero h1 img:not(.swap) { animation: hero-swap-out 20s ease-in-out infinite; }
@keyframes hero-swap-out { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero h1 img.swap, .hero h1 img:not(.swap) { animation: none; } }
