: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-right: 47%; text-align: right; border-top: 2px solid var(--steel); }
.faction.slayer::before { right: 0; background-image: url("/static/faction_slayer.jpg?v=2");
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent 100%); mask-image: linear-gradient(270deg, #000 55%, transparent 100%); }
.faction.vampire { padding-left: 47%; text-align: left; border-top: 2px solid var(--blood-bright); }
.faction.vampire::before { left: 0; background-image: url("/static/faction_vampire.jpg?v=2");
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #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; } }

/* REWARD-POINTS (2026-10-14): the reward shop and the points on the account page */
.big-number { font-size: 26px; font-weight: 600; }
.shop-head { display: flex; flex-wrap: wrap; gap: 22px; align-items: end; justify-content: space-between; margin: 22px 0; }
.shop-head .inline-form { flex: 0 1 auto; }
.shop-head select { min-width: 220px; }
.guide-table td .inline-form { flex-wrap: nowrap; }
.guide-table td select { max-width: 220px; }
.button[disabled] { opacity: .45; cursor: not-allowed; }
.no-money { margin: 0 0 18px; }

/* RULES, START-HERE, SERVER-INFO, PLAYTEST, checksums (2026-10-14) */
.construction.playtest { border-color: #c79a4a; }
.rules li { margin-bottom: 10px; }
.checksums { margin: 8px 0 18px; }
.checksums code.sum { font-size: 12px; word-break: break-all; }

/* ============================================================================================
   PORTAL LAYOUT (2026-10-19, owner: the same format as the Oldschool MU site, in Darkeden's own
   steel and crimson). A thin top bar (status, Discord, the language flags), an art header with the
   two faction portraits round the logo, a nav bar, the facts ribbon on the front page, then the
   sidebar beside the page content.
   ============================================================================================ */
.portal { --steel-head: #9fb9c6; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.portal .backdrop { display: none; }

/* top bar */
.topbar { background: #050405; border-bottom: 1px solid var(--line); font-size: 12px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 40px; }
.topbar .status { margin-left: 0; padding: 3px 10px 3px 8px; font-size: 12px; }
.tb-link { color: var(--muted); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.tb-link:hover { color: #fff; }
nav.flagrow { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px; font-size: 11px; }
.flagrow a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; min-height: 34px; box-sizing: border-box; border-radius: 2px; text-decoration: none;
  color: var(--muted); letter-spacing: .08em; font-size: 11px; text-transform: uppercase; }
.flagrow a:hover { color: #fff; background: rgba(176,22,34,.14); }
.flagrow a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--blood-bright); }
.flagrow img { width: 22px; height: 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 1px; display: block; }

/* art header */
.art { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: #000 url("/static/backdrop.jpg") center 18% / cover no-repeat; }
.art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 34% 62% at 50% 46%, rgba(0,0,0,.72), rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, var(--ink) 100%); }   /* darker behind the logo, so its red half stands off the red moon */
.art .wrap { position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 230px; padding: 0; }
.art.tall .wrap { height: 340px; }
.portrait { height: 100%; width: 200px; object-fit: cover; object-position: top; flex: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 80%, transparent 100%); }
.portrait.right { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 75%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20%, #000 75%, transparent 100%); }
.art.tall .portrait { width: 260px; }
.art-mid { flex: 1 1 300px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 10px 22px; text-align: center; }
.art-home { line-height: 0; }
.art-logo { width: min(100%, 300px); height: auto; filter: drop-shadow(0 0 18px rgba(0,0,0,.95)) drop-shadow(0 10px 30px rgba(0,0,0,.85)) brightness(1.12); }
.art.tall .art-logo { width: min(100%, 440px); }
.art-line { margin: 4px 0 0; font: 600 12px/1.5 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px #000; }
.art-sub { margin: 0; font: 500 11px/1.5 var(--display); letter-spacing: .22em; text-transform: uppercase; color: #b9bcc4; text-shadow: 0 2px 8px #000; }
@media (max-width: 760px) {
  .portrait { display: none; }
  .art .wrap, .art.tall .wrap { height: auto; }
  .art-mid { padding: 22px 10px 24px; }
}

/* nav bar ("navbar", because .bar is the polls' result bar) */
nav.navbar { display: block; margin: 0; gap: 0; background: #0a0809; position: relative; font-size: 13px; }
.navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--steel), var(--blood)); opacity: .5; }
.navbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.navbar .pages { display: flex; flex-wrap: wrap; margin-left: -12px; }
.navbar a.page { display: inline-block; padding: 0 12px; line-height: 50px; font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: #b9bcc4; text-decoration: none; border-bottom: 3px solid transparent; }
.navbar a.page:hover { color: #fff; border-bottom-color: transparent; }
.navbar a.page[aria-current] { color: #fff; border-bottom-color: var(--blood-bright); }
.navbar .acct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 6px 0; font-size: 13px; }
.navbar .acct a.page { line-height: 38px; padding: 0 6px; }
.navbar .acct .button.small { padding: 9px 14px; }
@media (min-width: 761px) { .navbar .acct .button.small { display: none; } }   /* beside the sidebar sign-in box they would repeat it */

/* the play test notice sits under the nav bar */
.portal .construction { margin: 0; }

/* facts ribbon (front page) */
.ribbon { background: #050405; border-bottom: 1px solid var(--line); }
.ribbon .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 0; }
.ribbon .wrap > div { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.ribbon .wrap > div:last-child { border-right: 0; }
.ribbon b { font: 600 16px/1.2 var(--display); color: #fff; letter-spacing: .04em; }
.ribbon span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* body: sidebar + content */
.portal-body { flex: 1; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; padding-top: 22px; padding-bottom: 48px; }
.portal-body > main { flex: 999 1 560px; min-width: 0; max-width: none; margin: 0; padding: 0; }
.side { flex: 1 1 240px; max-width: 272px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) { .side { max-width: none; order: 2; } }
.sp { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--blood); border-radius: 3px; }
.sp h2 { margin: 0; padding: 11px 14px; font: 600 11px var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--steel-head); border-bottom: 1px solid var(--line); }
.sp-body { margin: 0; padding: 12px 14px 14px; }
.sp-form { display: flex; flex-direction: column; gap: 6px; }
.sp-form label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.sp-form label:first-of-type { margin-top: 0; }
.sp-form input { width: 100%; height: 38px; box-sizing: border-box; padding: 0 10px; background: #050405; border: 1px solid var(--line); border-radius: 2px; color: var(--text); font: 15px var(--body); }
.sp-form input:focus { outline: 0; border-color: var(--blood-bright); }
.sp-form .button { margin-top: 6px; }
.sp-form .button + .button { margin-top: 0; }
.button.full { display: block; width: 100%; box-sizing: border-box; text-align: center; }
.sp .button.full + .button.full { margin-top: 6px; }
.sp-links { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.sp-links.center { justify-content: center; }
.sp-links a { color: var(--muted); text-decoration: none; }
.sp-links a:hover { color: #fff; text-decoration: underline; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sp-table td { padding: 7px 12px; border-bottom: 1px solid rgba(190,150,140,.07); }
.sp-table tr:last-child td { border-bottom: 0; }
.sp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sp-table a { text-decoration: none; }
.sp-table .slayer-row a { color: var(--steel-head); }
.sp-table .vampire-row a { color: #e0727a; }
.sp .who { margin: 0 0 10px; font: 600 18px var(--display); color: #fff; letter-spacing: .06em; }
.sp .sp-out { display: block; margin-top: 10px; font-size: 12px; }

/* the front page inside the portal */
.portal.home main > section { max-width: none; }
.intro { padding: 22px 24px 24px; }
.intro .lead { max-width: none; margin: 0; font-size: 17px; }
.intro .actions { margin-top: 18px; justify-content: flex-start; gap: 12px; }
.portal.home .factions { margin-top: 0; }
.portal.home .front-news { margin-top: 22px; }

/* autofilled fields: the browser paints them pale yellow with black text; keep our colours */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #050405 inset; box-shadow: 0 0 0 1000px #050405 inset;
  -webkit-text-fill-color: var(--text); caret-color: var(--text); border-color: var(--line); transition: background-color 9999s ease-out 0s; }

/* PORTAL (2026-10-19, owner): the event timers sit in the sidebar, one under another; the play test dates in the banner */
.sp-events { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.sp-events .event { padding: 8px 11px 7px; background: rgba(5,4,5,.6); }
.sp-events .event .ev-state { font-size: 15px; }
.sp-events .event .ev-when { font-size: 12px; }
.construction .pt-dates { color: #fff; font-weight: 600; }
.sp-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.sp-counts > div { padding: 8px 4px 6px; text-align: center; border: 1px solid var(--line); border-radius: 2px; background: rgba(5,4,5,.6); min-width: 0; }
.sp-counts b { display: block; font: 600 18px/1.1 var(--display); color: #fff; }
.sp-counts span { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }

/* PLAYER MARKET, laid out like the MU site's market (owner, 2026-10-24): tab bar, filter panel, quick search, listing table, warehouse tiles */
.mk-head { margin-bottom: 14px; }
.mk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mk-tab { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; line-height: 40px; border-radius: 2px; text-decoration: none; cursor: pointer; list-style: none;
  font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  background: linear-gradient(180deg, #1c1310, #100a09); border: 1px solid #6b5020; box-shadow: inset 0 0 0 1px rgba(228,191,99,.25); }
.mk-tab:hover { border-color: #e4bf63; color: #fff; }
.mk-tab[aria-current], .mk-tab.lit { background: linear-gradient(180deg, #8c0c16 0%, #5a0810 60%, #3a050a 100%); border-color: #f0d58a; color: #fff; text-shadow: 0 1px 2px #000; }
.mk-tab small { font: 700 10px var(--body); padding: 1px 6px; border-radius: 9px; background: rgba(0,0,0,.5); color: #f0d58a; }
.mk-tab i { font-style: normal; font-size: 10px; opacity: .8; }
.mk-tabs summary::-webkit-details-marker { display: none; }
.mk-menu { position: relative; margin-left: auto; }
.mk-menu summary { list-style: none; }
.mk-menu summary::after, .mk-menu summary::before { content: none; display: none; }
.mk-drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; padding: 6px; border: 1px solid #6b5020; border-radius: 2px;
  background: #0d0808; box-shadow: 0 14px 30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(228,191,99,.18); }
.mk-drop a { display: block; padding: 9px 12px; border-radius: 2px; text-decoration: none; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.mk-drop a:hover { background: rgba(140,12,22,.3); color: #fff; }
.mk-drop a[aria-current] { color: #f0d58a; }
.mk-note { margin-bottom: 14px; font-size: 14px; }
.mk-note strong { color: #f0d58a; }
/* the filter: closed until its tab is clicked (the :target) or a filter is in force */
.mk-filter { display: none; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #6b5020; border-radius: 2px; background: linear-gradient(180deg, #140d0e, #0d0808);
  box-shadow: inset 0 0 0 1px rgba(228,191,99,.18); }
.mk-filter:target, .mk-filter.open { display: block; }
.mk-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.mk-filter-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mk-filter-grid input, .mk-filter-grid select { height: 38px; padding: 0 10px; font: 14px var(--body); color: var(--text); background: #070404; border: 1px solid #3a2a12; border-radius: 2px; width: 100%; max-width: none; }
.mk-filter-actions { display: flex; gap: 10px; margin-top: 12px; }
.mk-search { margin: 0 0 14px; display: flex; justify-content: center; }
.mk-search input { width: min(100%, 360px); max-width: none; height: 40px; padding: 0 14px; text-align: center; font: 15px var(--body); color: var(--text); background: #070404; border: 1px solid #3a2a12; border-radius: 2px; }
.mk-search input:focus { border-color: #e4bf63; outline: 0; }
/* the listing table */
.mk-board { margin-bottom: 18px; }
.mk-board > table, .mk-board .pager { margin: 0; }
.mk-board header { justify-content: space-between; flex-wrap: wrap; }
.mk-pick { align-items: center; }
.mk-pick label { flex-basis: auto; margin: 0; }
.mk-table { width: 100%; }
.mk-table th { padding: 8px 12px; }
.mk-table th.pic, .mk-table td.pic { width: 72px; }
.mk-table td.pic .icon, .mk-tile .icon { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.mk-table td { padding: 8px 12px; vertical-align: middle; }
.mk-table td.name { font-weight: 600; }
.mk-table td.name small, .mk-tile .t small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.iname.magic { color: #7fb6ff; }
.iname.rare { color: #f4d35e; }
.mk-table td.date { white-space: nowrap; color: var(--muted); font-size: 13px; }
.mk-table td.price { white-space: nowrap; font-variant-numeric: tabular-nums; color: #f0d58a; font-weight: 600; }
.mk-table td.price i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.mk-table td.act { text-align: right; white-space: nowrap; }
.mk-table td.act .inline-form { justify-content: flex-end; gap: 6px; }
.mk-table td.place { color: #f0d58a; font: 700 13px var(--display); text-align: center; width: 40px; }
@media (max-width: 640px) { .mk-table th.pic, .mk-table td.pic, .mk-table th.num:first-child, .mk-table td.place, .mk-table td.date, .mk-table th:nth-child(4) { display: none; } .mk-table td.act { white-space: normal; } }
/* the warehouse tiles */
.mk-how { margin-bottom: 14px; }
.mk-how h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #f0d58a; margin-bottom: 8px; }
.mk-how p { margin: 0; font-size: 14px; color: #d9cdb9; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 12px 0 0; }
.mk-tile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #3a2a12; border-radius: 2px; background: #0a0606; box-shadow: inset 0 0 0 1px rgba(228,191,99,.12); }
.mk-tile .icon { align-self: center; width: 64px; height: 64px; }
.mk-tile .t { font-weight: 600; font-size: 14px; text-align: center; }
.mk-sell { display: flex; gap: 6px; }
.mk-sell input, .mk-sell select { flex: 1; min-width: 0; max-width: none; height: 36px; padding: 0 10px; font: 14px var(--body); color: var(--text); background: #070404; border: 1px solid #3a2a12; border-radius: 2px; }
.mk-sell .button.small, .mk-store .button.small { padding: 8px 12px; font-size: 11px; white-space: nowrap; }
.mk-store { margin: 0; }
.mk-store .button { width: 100%; }
.mk-tile .quiet.small { margin: 0; font-size: 12px; text-align: center; }

/* GEAR WINDOW (2026-10-24): the game's equipment window (static/gear_*.png), slots placed in % of the picture */
.dkwin { position: relative; margin: 14px auto 6px; }
/* the picture is its own layer: a filter on .dkwin itself would stop the tooltip from placing itself on the screen */
.dkwin::before { content: ""; position: absolute; inset: 0; background: center / 100% 100% no-repeat; filter: drop-shadow(0 10px 24px rgba(0,0,0,.7)); }
.dkwin.slayer { width: min(100%, 330px); aspect-ratio: 220 / 365; }
.dkwin.slayer::before { background-image: url(/static/gear_slayer.png); }
.dkwin.vampire { width: min(100%, 402px); aspect-ratio: 251 / 254; }
.dkwin.vampire::before { background-image: url(/static/gear_vampire.png); }
.dkslot { position: absolute; display: grid; place-items: center; outline: none; }
/* the window is drawn at 1.5x the game's size, so the pictures are too (never past 92% of the slot) */
.dkslot img { max-width: 61%; max-height: 61%; transform: scale(1.5); object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); }
.dkslot.filled { cursor: help; }
.dkslot.filled:hover, .dkslot.filled:focus { box-shadow: inset 0 0 0 1px rgba(255,226,150,.75), inset 0 0 12px rgba(255,210,120,.25); }
.dkwin.vampire .dkslot.filled:hover, .dkwin.vampire .dkslot.filled:focus { box-shadow: inset 0 0 0 1px rgba(255,120,120,.8), inset 0 0 12px rgba(220,40,40,.3); }
/* the tooltip, in the game's style: dark glass, name on top, blue bonus lines */
.dktip { display: none; position: absolute; z-index: 40; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 250px; min-width: 150px;
  padding: 8px 11px; border: 1px solid #77808c; background: rgba(6,8,12,.94); box-shadow: 0 8px 24px rgba(0,0,0,.85);
  font-size: 12.5px; line-height: 1.45; color: #d9dde3; text-align: left; pointer-events: none; }
.dkwin.vampire .dktip { border-color: #8c3a3a; background: rgba(14,5,6,.95); }
.dkslot.filled:hover .dktip, .dkslot.filled:focus .dktip { display: block; }
.dktip.placed { position: fixed; transform: none; }
.dktip p { margin: 1px 0; }
.dktip b { color: #fff; font-weight: 600; }
.dktip .tname { font-size: 14px; font-weight: 700; color: #ffffff; }
.dktip .tname.magic { color: #7fb6ff; }
.dktip .tname.rare { color: #f4d35e; }
.dktip .tslot { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8d939b; margin-bottom: 3px; }
.dktip .opt { color: #7fb6ff; }
.dktip .need { color: #c9b48a; }
.dktip hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 5px 0; }
.dkhint { text-align: center; }
/* GEAR WINDOW slot places (made from app.py GEAR_WINDOW; the site allows no inline styles) */
.dkwin.slayer .p0 { left: 36.364%; top: 3.836%; width: 27.273%; height: 16.438%; }
.dkwin.slayer .p1 { left: 65.455%; top: 11.781%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p2 { left: 36.364%; top: 21.096%; width: 27.273%; height: 24.658%; }
.dkwin.slayer .p3 { left: 65.909%; top: 21.096%; width: 27.273%; height: 24.658%; }
.dkwin.slayer .p4 { left: 6.364%; top: 21.096%; width: 27.273%; height: 24.658%; }
.dkwin.slayer .p5 { left: 6.364%; top: 47.123%; width: 27.273%; height: 16.438%; }
.dkwin.slayer .p6 { left: 65.909%; top: 47.123%; width: 27.273%; height: 16.438%; }
.dkwin.slayer .p7 { left: 36.364%; top: 47.123%; width: 27.273%; height: 24.658%; }
.dkwin.slayer .p8 { left: 12.273%; top: 65.205%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p9 { left: 73.636%; top: 65.205%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p10 { left: 4.091%; top: 75.068%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p11 { left: 20.000%; top: 75.068%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p12 { left: 65.909%; top: 75.068%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p13 { left: 81.818%; top: 75.068%; width: 13.636%; height: 8.219%; }
.dkwin.slayer .p14 { left: 36.364%; top: 72.877%; width: 27.273%; height: 16.438%; }
.dkwin.vampire .p0 { left: 43.825%; top: 5.512%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p1 { left: 37.849%; top: 19.291%; width: 23.904%; height: 35.433%; }
.dkwin.vampire .p2 { left: 22.311%; top: 42.913%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p3 { left: 65.339%; top: 42.520%; width: 11.952%; height: 12.205%; }
.dkwin.vampire .p4 { left: 22.311%; top: 56.693%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p5 { left: 36.653%; top: 56.693%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p6 { left: 50.996%; top: 56.693%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p7 { left: 65.339%; top: 56.693%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p8 { left: 23.506%; top: 5.512%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p9 { left: 64.143%; top: 5.512%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p10 { left: 11.155%; top: 18.504%; width: 23.904%; height: 23.622%; }
.dkwin.vampire .p11 { left: 64.143%; top: 18.110%; width: 23.904%; height: 23.622%; }
.dkwin.vampire .p12 { left: 22.311%; top: 70.079%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p13 { left: 36.653%; top: 70.079%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p14 { left: 50.996%; top: 70.079%; width: 11.952%; height: 11.811%; }
.dkwin.vampire .p15 { left: 65.339%; top: 70.079%; width: 11.952%; height: 11.811%; }

/* POLLS-OSRS (2026-10-26): proposal write-ups, statuses and the tracker */
.poll-details { margin: 8px 0 12px; }
.poll-details summary { cursor: pointer; color: var(--steel); font-size: 14px; }
.poll-details .prose { margin-top: 8px; }
.poll-image { display: block; max-width: 100%; height: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 6px; }
.tag.status-passed { color: var(--ok); border-color: rgba(111,174,138,.5); }
.tag.status-failed, .tag.status-dropped { color: var(--muted); }
.tag.status-development { color: #e2b25a; border-color: rgba(226,178,90,.5); }
.tag.status-released { color: var(--steel); border-color: rgba(143,182,201,.5); }
.status-form { margin-top: 6px; gap: 6px; }
.status-form select, .status-form input { font-size: 13px; }
.tracker { width: 100%; border-collapse: collapse; }
.tracker th, .tracker td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tracker th { color: var(--muted); font-weight: normal; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tracker td.name { color: var(--text); }
.tracker tr.status-failed td.name, .tracker tr.status-dropped td.name { color: var(--muted); }
@media (max-width: 640px) { .tracker th:nth-child(4), .tracker td:nth-child(4) { display: none; } }

/* ONLINE-ALL (2026-10-26): the in-game list shows about 8 players and scrolls for the rest */
.sp-scroll { max-height: 296px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(200,60,60,.45) transparent; }
.sp-scroll::-webkit-scrollbar { width: 6px; }
.sp-scroll::-webkit-scrollbar-thumb { background: rgba(200,60,60,.45); border-radius: 3px; }
