/* Celtic Heroes Codex — peat, vellum and gold */
:root {
  --peat: #0f0c08;
  --peat2: #18130d;
  --vellum: #211a12;
  --vellum2: #2a2117;
  --ink: #ece0c4;
  --ink2: #c9b993;
  --faded: #8f7f62;
  --dim: #6b5d46;
  --gold: #c9a24a;
  --gold2: #e9c977;
  --gold-d: #7c6128;
  --line: rgba(201, 162, 74, .22);
  --line2: rgba(201, 162, 74, .42);
  --moss: #8db35f;
  --blood: #c4523f;
  --woad: #6fa3d8;
  --heather: #b48ad6;
  --amber: #e39a45;
  --uncial: "Uncial Antiqua", "Alegreya", serif;
  --serif: "Alegreya", Georgia, serif;
  --sc: "Alegreya SC", "Alegreya", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font: 400 16px/1.5 var(--serif); min-height: 100vh; overflow-x: hidden;
  background: var(--peat) url(/art/vellum.webp) center/640px repeat;
  background-blend-mode: soft-light;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, .07), transparent 60%), linear-gradient(rgba(10, 8, 5, .55), rgba(10, 8, 5, .8)); pointer-events: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold2); }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(201, 162, 74, .4); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--peat); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border: 3px solid var(--peat); border-radius: 8px; }

/* ---------- banner ---------- */
.banner { position: relative; background: #0d0a07 url(/art/glen.webp) center 38%/cover no-repeat; border-bottom: 1px solid var(--gold-d); box-shadow: 0 1px 0 #000, 0 8px 30px rgba(0, 0, 0, .6); }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 4, .35) 0%, rgba(8, 6, 4, .15) 35%, rgba(12, 9, 6, .92) 100%); }
.banner-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 22px 24px 0; display: flex; align-items: center; gap: 22px; min-height: 120px; transition: min-height .35s; }
body.home .banner-in { min-height: 330px; align-items: flex-start; padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand img { filter: drop-shadow(0 2px 6px #000); }
.brand b { display: block; font: 400 30px/1 var(--uncial); color: var(--gold2); text-shadow: 0 2px 0 #000, 0 0 24px rgba(0, 0, 0, .8); letter-spacing: .01em; }
.brand small { display: block; font: 500 13px var(--sc); letter-spacing: .32em; color: var(--ink2); text-shadow: 0 1px 3px #000; margin-top: 4px; }
.brand:hover b { color: #fff0c4; }
.search { position: relative; flex: 1; max-width: 520px; margin-left: auto; }
.search input {
  width: 100%; padding: 10px 46px 10px 16px; color: var(--ink); background: rgba(14, 11, 7, .78); border: 1px solid var(--gold-d);
  outline: none; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6); font-style: italic; border-radius: 2px;
}
.search input::placeholder { color: var(--faded); }
.search input:focus { border-color: var(--gold); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(201, 162, 74, .15); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 12px var(--sc); color: var(--gold); border: 1px solid var(--gold-d); padding: 0 7px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto; background: #120e09; border: 1px solid var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, .8); }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border: 0; }
.suggest a.on, .suggest a:hover { background: var(--vellum2); color: var(--gold2); }
.suggest .k { margin-left: auto; font: 13px var(--sc); color: var(--faded); letter-spacing: .06em; }
.leave { background: none; border: 1px solid transparent; color: var(--ink2); font: 14px var(--sc); letter-spacing: .1em; cursor: pointer; padding: 6px 10px; text-shadow: 0 1px 3px #000; }
.leave:hover { color: var(--gold2); border-color: var(--gold-d); }

.nav { position: relative; max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a {
  position: relative; padding: 9px 18px 10px; font: 500 16px var(--sc); letter-spacing: .07em; color: var(--ink2); white-space: nowrap;
  border: 1px solid transparent; border-bottom: 0; text-shadow: 0 1px 2px #000;
}
.nav a small { font: 12px var(--serif); color: var(--faded); margin-left: 6px; letter-spacing: 0; }
.nav a:hover { color: var(--gold2); }
.nav a.on { color: var(--gold2); background: linear-gradient(var(--vellum2), var(--peat2)); border-color: var(--gold-d); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--peat2); }

main { max-width: 1240px; margin: 0 auto; padding: 30px 24px 40px; }
.foot { text-align: center; color: var(--dim); font-size: 14px; font-style: italic; padding: 10px 16px 40px; }
.foot img { width: 220px; opacity: .7; }
.foot p { margin: 6px 0 0; }

/* ---------- typography ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; }
.title { margin-bottom: 26px; }
.title h1 { font: 400 38px/1.1 var(--uncial); color: var(--gold2); text-shadow: 0 2px 0 #000; }
.title .crumbs { font: 14px var(--sc); letter-spacing: .08em; color: var(--faded); margin-top: 8px; }
.title .crumbs a:hover { color: var(--gold2); }
.rule { display: block; width: 240px; height: 16px; background: url(/art/rule.svg) center/contain no-repeat; margin: 10px 0 0; }
.muted { color: var(--ink2); } .dim { color: var(--faded); }

/* ---------- folio (panel) with knotwork corners ---------- */
.panel {
  position: relative; min-width: 0;
  background: linear-gradient(rgba(36, 28, 19, .93), rgba(24, 19, 13, .95)), url(/art/vellum.webp) center/520px;
  border: 1px solid var(--gold-d); outline: 1px solid rgba(0, 0, 0, .7); outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(124, 97, 40, .18), 0 14px 34px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .35);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 22px; height: 22px; background: url(/art/knot.svg) center/contain no-repeat; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 3px #000);
}
.panel::before { top: -11px; left: -11px; }
.panel::after { bottom: -11px; right: -11px; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 13px 20px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(201, 162, 74, .1), transparent 70%); }
.panel-h h3 { flex: 1; font: 700 17px var(--sc); letter-spacing: .1em; color: var(--gold2); display: flex; align-items: center; gap: 10px; }
.panel-h h3 .pi { color: var(--gold); font-size: 15px; }
.panel-h .meta { font-size: 14px; color: var(--faded); font-style: italic; }
.panel-h .meta b { font-style: normal; color: var(--ink); }
.panel-h .act { font: 14px var(--sc); color: var(--gold); letter-spacing: .06em; }
.panel-b { padding: 18px 20px; }
.grid { display: grid; gap: 30px; }
.g-2 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-2 > .panel:has(.map-wrap), .g-2 > .panel:has(#dropMap) { align-self: start; } /* kaart rekt niet mee met een lange rechterkolom */
.g-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* homepage: één raster, overal dezelfde kolommen, blokken per rij even hoog */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; margin-bottom: 30px; }
.home-grid > .panel { display: flex; flex-direction: column; }
.home-grid > .panel > :last-child { flex: 1; }
.home-grid > .lede { display: flex; flex-direction: column; }
.home-grid > .lede > .panel { margin-top: auto; }
.home-grid > .lede .lede-acts { margin-bottom: 26px; }
.home-grid .shields { display: grid; align-content: center; }
.home-grid .panel-b:has(.levels) { display: flex; flex-direction: column; justify-content: flex-end; }
.mt { margin-top: 30px; }

/* ---------- dashboard ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; margin-bottom: 30px; }
.lede p { margin: 0 0 12px; font-size: 17px; color: var(--ink2); }
.lede p:first-of-type::first-letter { float: left; font: 64px/0.82 var(--uncial); color: var(--gold2); margin: 6px 10px 0 0; text-shadow: 0 2px 0 #000; }
.chapters { padding: 8px 0; }
.chapters a { display: flex; align-items: baseline; gap: 12px; padding: 8px 22px; }
.chapters a:hover { background: rgba(201, 162, 74, .08); color: inherit; }
.chapters .rn { width: 34px; font: 18px var(--uncial); color: var(--gold); }
.chapters .l { font: 500 18px var(--sc); letter-spacing: .06em; }
.chapters .dots { flex: 1; border-bottom: 2px dotted var(--line2); transform: translateY(-5px); }
.chapters .n { font: 400 20px var(--uncial); color: var(--gold2); }
.levels { display: flex; align-items: flex-end; gap: 3px; height: 210px; padding: 6px 2px 0; }
.levels a { flex: 1; position: relative; height: 100%; display: flex; align-items: flex-end; }
.levels a span { display: block; width: 100%; background: linear-gradient(var(--gold2), var(--gold-d)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); min-height: 2px; transition: filter .15s; }
.levels a:hover span { filter: brightness(1.3); }
.levels a:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #0d0a07; border: 1px solid var(--gold); padding: 2px 8px; font-size: 13px; white-space: nowrap; z-index: 3; }
.levels-x { display: flex; justify-content: space-between; font: 13px var(--sc); color: var(--faded); margin-top: 8px; letter-spacing: .05em; }
.shields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; text-align: center; }
.shields a { display: block; }
.shields svg { width: 100%; max-width: 74px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transition: transform .15s; }
.shields a:hover svg { transform: translateY(-3px); }
.shields b { display: block; font: 500 15px var(--sc); letter-spacing: .04em; overflow-wrap: anywhere; }
.shields small { color: var(--faded); font-size: 13px; }

/* ---------- lists ---------- */
.rowlist a { display: flex; align-items: center; gap: 13px; padding: 9px 20px; border-bottom: 1px solid var(--line); }
.rowlist a:last-child { border: 0; }
.rowlist a:hover { background: rgba(201, 162, 74, .07); color: inherit; }
.rowlist .t { flex: 1; min-width: 0; }
.rowlist .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowlist small { color: var(--faded); font-size: 13px; font-style: italic; }
.rowlist .r { font-size: 14px; color: var(--ink2); white-space: nowrap; }

.tabsbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px 0; }
.tabsbar button { background: none; border: 1px solid var(--line2); padding: 4px 14px; cursor: pointer; font: 500 14px var(--sc); letter-spacing: .06em; color: var(--ink2); }
.tabsbar button:hover { color: var(--gold2); border-color: var(--gold); }
.tabsbar button.on { background: var(--gold); border-color: var(--gold); color: #1a1208; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.filters input, .filters select { background: rgba(10, 8, 5, .6); border: 1px solid var(--line2); padding: 7px 10px; outline: none; min-width: 0; border-radius: 2px; }
.filters select option { background: #1a140d; }
.filters input:focus, .filters select:focus { border-color: var(--gold); }
.filters .q { flex: 1 1 240px; font-style: italic; }
.filters .lv { width: 88px; }
.filters label { color: var(--ink2); font-size: 15px; display: flex; gap: 7px; align-items: center; cursor: pointer; }
.filters input[type=checkbox] { accent-color: var(--gold); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl .pvp-t { display: block; color: var(--faded); font-size: 12px; font-style: italic; font-weight: normal; white-space: nowrap; }
.tbl th { text-align: left; font: 700 13px var(--sc); letter-spacing: .1em; color: var(--gold); padding: 11px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.on { color: var(--gold2); }
.tbl th.nosort { cursor: default; color: var(--faded); }
.tbl td { padding: 7px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:nth-child(even) { background: rgba(0, 0, 0, .14); }
.tbl tbody tr:hover { background: rgba(201, 162, 74, .09); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.name { display: flex; align-items: center; gap: 13px; }
.name .nn { font-weight: 500; }
.name small { display: block; color: var(--faded); font-size: 13px; font-style: italic; }

/* item frames like the in-game inventory */
.ic {
  display: inline-block; width: 42px; height: 42px; flex: 0 0 auto; background: #0b0906 center/cover no-repeat;
  border: 2px solid #4a3a1e; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, inset 0 0 8px rgba(0, 0, 0, .7); border-radius: 3px;
}
.ic.lg { width: 88px; height: 88px; border-width: 3px; }
.ic.sm { width: 30px; height: 30px; border-width: 1px; }
.ic.none { display: inline-grid; place-items: center; color: var(--gold); font-size: 17px; background: radial-gradient(#2a2015, #0b0906); }
.ic.lg.none { font-size: 38px; }
.q1 { color: var(--ink); } .q2 { color: var(--moss); } .q3 { color: var(--woad); } .q4 { color: var(--heather); } .q5 { color: var(--amber); }
.ic.q2 { border-color: #4d6d2c; } .ic.q3 { border-color: #2f5f8f; } .ic.q4 { border-color: #67428a; } .ic.q5 { border-color: #9a5e1d; }
.stars { color: var(--gold2); letter-spacing: 1px; font-size: 13px; text-shadow: 0 0 6px rgba(233, 201, 119, .35); }

.pager { display: flex; align-items: center; border-top: 1px solid var(--line2); }
.pager button { background: none; border: 0; padding: 12px 20px; cursor: pointer; font: 500 15px var(--sc); letter-spacing: .06em; color: var(--gold); }
.pager button:disabled { opacity: .3; cursor: default; }
.pager button:not(:disabled):hover { color: var(--gold2); }
.pager span { flex: 1; text-align: center; font-style: italic; color: var(--faded); font-size: 15px; }

.pill { display: inline-block; padding: 0 9px; border: 1px solid var(--line2); font: 13px var(--sc); letter-spacing: .04em; color: var(--ink2); margin: 0 4px 4px 0; border-radius: 2px; }
.pill.blue { border-color: #2f5f8f; color: var(--woad); }
.pill.green { border-color: #4d6d2c; color: var(--moss); }
.pill.red { border-color: #7d3326; color: #e2806d; }

/* ---------- detail: in-game tooltip ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 30px; align-items: start; }
.tip { background: rgba(8, 6, 4, .94); border: 1px solid var(--gold); box-shadow: 0 0 0 1px #000, 0 0 0 4px rgba(124, 97, 40, .35), 0 20px 50px rgba(0, 0, 0, .7); position: sticky; top: 16px; }
.tip .card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: center; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.tip .card-head > .ic { grid-row: 1 / 6; align-self: center; }
.tip .card-head > :not(.ic) { grid-column: 2; }
.tip .card-head h1 { font: 700 21px/1.2 var(--serif); }
.tip .card-head .sub { font: 14px var(--sc); letter-spacing: .06em; color: var(--faded); margin-top: 3px; }
.statl { list-style: none; padding: 6px 0; margin: 0; }
.statl li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 18px; font-size: 15px; }
.statl li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.statl .sect { font: 700 12px var(--sc); letter-spacing: .14em; color: var(--gold-d); padding: 10px 18px 2px; }
.pos { color: var(--moss); } .neg { color: var(--blood); } .skl { color: var(--woad); } .prc { color: var(--amber); }
.desc { padding: 12px 18px 16px; font-size: 15px; color: var(--gold); font-style: italic; white-space: pre-line; border-top: 1px solid var(--line); }
.tip-foot { padding: 8px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.links a { display: flex; gap: 12px; align-items: center; padding: 9px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.links a:hover { background: rgba(201, 162, 74, .07); }
.links small { display: block; color: var(--faded); font-size: 13px; font-style: italic; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kv div { padding: 14px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv span { display: block; font: 13px var(--sc); color: var(--faded); letter-spacing: .1em; }
.kv b { font: 400 26px var(--uncial); color: var(--gold2); }
.lvtbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lvtbl th { text-align: right; font: 700 12px var(--sc); letter-spacing: .08em; color: var(--gold); padding: 9px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.lvtbl td { text-align: right; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.lvtbl tr:nth-child(even) td { background: rgba(0, 0, 0, .14); }
.lvtbl th:first-child, .lvtbl td:first-child { text-align: left; padding-left: 20px; }
.scroll { overflow-x: auto; }
.stages { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.stages li { counter-increment: s; position: relative; padding: 14px 20px 14px 70px; border-bottom: 1px solid var(--line); font-size: 16px; }
.stages li:last-child { border: 0; }
.stages li::before { content: counter(s, upper-roman); position: absolute; left: 20px; top: 12px; width: 36px; text-align: center; font: 22px var(--uncial); color: var(--gold2); }
.quote { padding: 22px 26px; font-size: 18px; font-style: italic; color: var(--ink2); }
.quote::first-letter { font: 46px/0.8 var(--uncial); float: left; margin: 6px 8px 0 0; color: var(--gold2); font-style: normal; }
.alert { display: flex; gap: 14px; align-items: center; padding: 14px 20px; font-size: 15px; color: var(--ink2); font-style: italic; }
.alert i { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; font: 18px var(--uncial); color: var(--blood); border: 1px solid var(--blood); transform: rotate(45deg); }
.alert i::before { content: "!"; transform: rotate(-45deg); font-style: normal; }
.empty { padding: 44px; text-align: center; color: var(--faded); font-style: italic; }
#app.loading { opacity: .5; transition: opacity .2s; }

/* ---------- login ---------- */
body.login-page { background: #0b0806 url(/art/hall.webp) center/cover no-repeat fixed; background-blend-mode: normal; }
body.login-page::before { background: radial-gradient(ellipse at 30% 60%, transparent, rgba(6, 4, 2, .75) 70%); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 380px; text-align: center; }
.login .lt { padding: 30px 28px 18px; }
.login .lt img { width: 64px; filter: drop-shadow(0 2px 6px #000); }
.login h1 { font: 400 34px/1.1 var(--uncial); color: var(--gold2); margin: 12px 0 2px; }
.login .lt small { font: 13px var(--sc); letter-spacing: .3em; color: var(--ink2); }
.login p { color: var(--faded); margin: 12px 0 0; font-style: italic; }
.login input { width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .35); outline: none; text-align: center; font-style: italic; }
.login input:focus { background: rgba(0, 0, 0, .55); }
.login button { width: 100%; padding: 13px; border: 0; background: linear-gradient(var(--gold2), var(--gold)); color: #1a1208; font: 700 16px var(--sc); letter-spacing: .14em; cursor: pointer; }
.login button:hover { filter: brightness(1.1); }
.login .err { color: #e2806d; font-size: 15px; min-height: 22px; padding: 8px; font-style: italic; }

/* ---------- responsive ---------- */
.hide-d { display: none; }
@media (max-width: 1050px) {
  .g-2, .detail, .intro, .home-grid { grid-template-columns: 1fr; }
  .tip { position: static; }
}
@media (max-width: 760px) {
  .banner-in { flex-wrap: wrap; gap: 12px; padding: 16px 16px 0; min-height: 0; }
  body.home .banner-in { min-height: 210px; }
  .brand b { font-size: 24px; }
  .brand img { width: 38px; height: 38px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search kbd { display: none; }
  .leave { margin-left: auto; }
  .nav { padding: 12px 16px 0; }
  .nav a { padding: 8px 12px 9px; font-size: 15px; }
  .nav a small { display: none; }
  main { padding: 22px 16px 30px; }
  .g-11 { grid-template-columns: 1fr; }
  .hide-m { display: none; }
  .title h1 { font-size: 30px; }
  .tbl td, .tbl th { padding: 7px 10px; }
  .filters select, .filters .lv { flex: 1 1 40%; width: auto; }
  .panel-h .meta { display: none; }
  .shields { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .shields b { font-size: 12px; letter-spacing: 0; }
  .shields small { display: none; }
}

.detail-page .title h1 { font-size: 30px; }

/* ---------- v6: features ---------- */
[hidden] { display: none !important; }
.unofficial { font: 500 14px var(--sc); letter-spacing: .28em; color: var(--faded); text-transform: uppercase; margin: 0 0 4px; }
.notice { margin-top: 34px; padding: 14px 18px; border: 1px dashed var(--line2); color: var(--faded); font-size: 14px; font-style: italic; }
.notice b { font-style: normal; color: var(--ink2); }
.foot .fine { font-size: 13px; color: var(--dim); max-width: 640px; margin: 4px auto 0; }
.lede-s { color: var(--ink2); font-size: 16px; margin: -12px 0 22px; max-width: 760px; }
.lede-s a, .lede a, .notice a { color: var(--gold2); border-bottom: 1px dotted var(--gold-d); }
.lede-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.title-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; background: linear-gradient(var(--gold2), var(--gold)); color: #1a1208; border: 1px solid var(--gold); font: 700 14px var(--sc); letter-spacing: .08em; cursor: pointer; border-radius: 2px; }
.btn:hover { filter: brightness(1.1); color: #1a1208; }
.btn.ghost { background: none; color: var(--gold2); }
.btn.ghost:hover, .btn.ghost.on { background: rgba(201, 162, 74, .14); }
.btn.small { padding: 4px 11px; font-size: 13px; }
.link-btn { display: block; margin: 6px auto 0; background: none; border: 0; color: var(--faded); font: italic 13px var(--serif); cursor: pointer; }
.link-btn:hover { color: var(--blood); }

.daily { display: flex; gap: 16px; align-items: center; padding: 16px 20px; }
.daily b { display: block; font-size: 18px; }
.daily .sub { font: 14px var(--sc); color: var(--faded); letter-spacing: .05em; }

.tip-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px; border-top: 1px solid var(--line); }
.marks { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: none; border: 1px solid var(--line2); color: var(--ink2); font: 500 13px var(--sc); letter-spacing: .05em; cursor: pointer; border-radius: 2px; }
.mark:hover { border-color: var(--gold); color: var(--gold2); }
.mark.on { background: rgba(201, 162, 74, .18); border-color: var(--gold); color: var(--gold2); }
.tip-foot a { color: var(--gold); }
.links a.here { background: rgba(201, 162, 74, .12); }

.notes { padding: 14px 20px 12px; }
.notes textarea { width: 100%; min-height: 110px; resize: vertical; background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); color: var(--ink); padding: 10px 12px; font: italic 15px/1.5 var(--serif); outline: none; border-radius: 2px; }
.notes textarea:focus { border-color: var(--gold); }
.note-state { font-size: 13px; text-align: right; margin-top: 4px; font-style: italic; }
.locked { padding: 16px 20px; color: var(--faded); font-style: italic; }
.locked a { color: var(--gold2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90; background: #0d0a07; border: 1px solid var(--gold); padding: 8px 18px; font: 500 14px var(--sc); letter-spacing: .06em; color: var(--gold2); transition: .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .7); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.tray { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 16px; background: #120e09; border: 1px solid var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .7); font-size: 15px; }
.tray a { font: 700 14px var(--sc); letter-spacing: .08em; color: #1a1208; background: var(--gold); padding: 4px 12px; }
.tray button { background: none; border: 0; color: var(--faded); cursor: pointer; }
.hovertip { position: fixed; z-index: 80; width: 290px; pointer-events: none; }
.hovertip .card-head { padding: 12px 14px 10px; }
.hovertip .card-head b { font-size: 16px; }
.hovertip .statl li { padding: 1px 14px; font-size: 14px; }
.hovertip .req { padding: 6px 14px 10px; font-size: 13px; color: var(--faded); border-top: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; padding: 14px; }
.gallery a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; border: 1px solid transparent; }
.gallery a:hover { border-color: var(--line2); background: rgba(201, 162, 74, .06); }
.gallery b { font-weight: 500; font-size: 15px; line-height: 1.25; }
.gallery small { color: var(--faded); font-size: 13px; font-style: italic; }

.lvtbl.cmp td.best { color: var(--gold2); font-weight: 700; background: rgba(201, 162, 74, .1); }
.lvtbl.cmp td:first-child .name { gap: 10px; }
.lvtbl.wide th { text-align: center; vertical-align: bottom; min-width: 150px; }
.lvtbl.wide td { text-align: center; }
.lvtbl.wide td:first-child, .lvtbl.wide th:first-child { text-align: left; min-width: 140px; }
.cmp-head { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 14px var(--serif); text-transform: none; letter-spacing: 0; }

.tabsbar.plain { padding: 0 0 18px; }
.tabsbar.plain a { border: 1px solid var(--line2); padding: 4px 14px; font: 500 14px var(--sc); letter-spacing: .06em; color: var(--ink2); }
.tabsbar.plain a.on { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.tabsbar.plain a:last-child { margin-left: auto; border-color: transparent; color: var(--gold); }
.tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tree .node { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tree .node:hover { background: rgba(201, 162, 74, .07); }
.tree .node b { display: block; font-weight: 500; }
.tree .node small { color: var(--faded); font-size: 13px; font-style: italic; }
.tree .node em { margin-left: auto; font: 20px var(--uncial); color: var(--gold); font-style: normal; }
.levels.small { height: 120px; }

.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.mapcard { display: block; text-align: center; }
.mapcard span { display: block; aspect-ratio: 1; background: #0b0906 center/cover; border: 1px solid var(--gold-d); outline: 1px solid #000; outline-offset: 3px; box-shadow: 0 0 0 4px rgba(124, 97, 40, .18), 0 12px 26px rgba(0, 0, 0, .55); filter: sepia(.25) brightness(.9); transition: filter .2s, transform .2s; }
.mapcard span img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mapcard:hover span { filter: none; transform: translateY(-3px); }
.mapcard b { display: block; margin-top: 12px; font: 500 17px var(--sc); letter-spacing: .05em; color: var(--gold2); }
.mapcard small { color: var(--faded); font-style: italic; }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink2); }
.map-tools label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.map-tools input { accent-color: var(--gold); }
.map-tools #pinMode { margin-left: auto; }
.map-wrap { overflow: auto; max-height: 78vh; background: #070504; }
.map { position: relative; width: 100%; }
.map img { display: block; width: 100%; height: auto; user-select: none; }
/* de kleine voorbeeldkaart staat er meteen (vaag), de volle kaart vloeit erin zodra hij binnen is */
.map[style*="thumb"] { background-size: 100% 100%; background-repeat: no-repeat; }
.map[style*="thumb"] img { opacity: 0; transition: opacity .3s; }
.map[style*="thumb"] img.in { opacity: 1; }
.map.placing { cursor: crosshair; }
.mk { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.mk i { display: grid; place-items: center; font-style: normal; }
.mk em { margin-top: 2px; font: 600 12px var(--sc); letter-spacing: .04em; font-style: normal; color: #fff7dc; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000; pointer-events: none; }
.mk.tp i { width: 14px; height: 14px; background: var(--gold2); border: 2px solid #2a1d06; transform: rotate(45deg); box-shadow: 0 0 8px rgba(233, 201, 119, .8); }
.mk.ex i { width: 22px; height: 22px; border-radius: 50%; background: #2a1d06; border: 2px solid var(--gold2); color: var(--gold2); font-size: 12px; }
.mk.ex:hover i { background: var(--gold); color: #1a1208; }
.mk.pin i { font-size: 22px; line-height: 1; text-shadow: 0 0 3px #000, 0 2px 3px #000; }
.mk.pin.gold i { color: var(--gold2); } .mk.pin.red i { color: #ff6b55; } .mk.pin.green i { color: #9ee26b; } .mk.pin.blue i { color: #79b8ff; }
.pinlist { padding: 6px 0; }
.pinrow { display: flex; align-items: center; gap: 10px; padding: 6px 20px; }
.pinrow button { margin-left: auto; background: none; border: 0; color: var(--faded); cursor: pointer; }
.pinrow button:hover { color: var(--blood); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot.gold { background: var(--gold2); } .dot.red { background: #ff6b55; } .dot.green { background: #9ee26b; } .dot.blue { background: #79b8ff; }

.planner-bar { margin-bottom: 26px; }
.planner-bar label { font: 500 15px var(--sc); letter-spacing: .05em; }
.planner { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 30px; align-items: start; }
.paperdoll { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pslot { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 62px; background: rgba(10, 8, 5, .7); border: 1px solid var(--line2); cursor: pointer; outline: none; }
.pslot:hover, .pslot:focus { border-color: var(--gold); }
.pslot.full { background: linear-gradient(rgba(36, 28, 19, .95), rgba(18, 14, 9, .95)); }
.pslot b { font-size: 14px; line-height: 1.2; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pslot small { display: block; color: var(--faded); font-size: 12px; font-style: italic; }
.pslot .x { position: absolute; top: 2px; right: 4px; background: none; border: 0; color: var(--faded); cursor: pointer; font-size: 12px; }
.pslot .x:hover { color: var(--blood); }
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.totals > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.totals h4 { margin: 0; padding: 10px 18px 2px; font: 700 12px var(--sc); letter-spacing: .14em; color: var(--gold-d); }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(5, 4, 2, .75); display: grid; place-items: center; padding: 16px; }
.modal-in { width: 100%; max-width: 640px; max-height: 86vh; display: flex; flex-direction: column; }
.pk-list { overflow-y: auto; }
.pk-list a { cursor: pointer; }
.panel-h .act { background: none; border: 0; cursor: pointer; }

.jbody { padding-bottom: 8px; }
.jh { margin: 0; padding: 14px 20px 4px; font: 700 13px var(--sc); letter-spacing: .14em; color: var(--gold); }
.suggest a.all { justify-content: center; font: italic 14px var(--serif); color: var(--gold); }

@media (max-width: 1050px) { .planner { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pslot { min-height: 54px; padding: 6px 8px; }
  .pslot .ic { width: 34px; height: 34px; }
  .mark span { display: none; }
  .tray { left: 12px; right: 12px; justify-content: space-between; }
  .map-tools #pinMode { margin-left: 0; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .tabsbar.plain a:last-child { margin-left: 0; }
}

details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3::after { content: "▸"; margin-left: 8px; color: var(--gold); transition: transform .2s; }
details.fold[open] > summary h3::after { transform: rotate(90deg); }
details.fold:not([open]) > summary { border-bottom: 0; }

.nav a { padding: 9px 13px 10px; font-size: 15px; }
@media (max-width: 1240px) { .nav a { padding: 9px 10px 10px; letter-spacing: .05em; } }
@media (max-width: 1100px) { .nav a { padding: 8px 8px 9px; font-size: 14px; letter-spacing: .03em; } }

/* Master's Grimoire-paneel op Codex-pagina's */
.panel .notice { margin: 0; border: 0; border-top: 1px dashed var(--line2); }

/* bestiary: blok "In battle" uit de Grimoire */
.gr-codex { margin-top: 34px; }
.gr-codex-h h2 { margin: 0; font: 400 30px var(--uncial); color: var(--gold2); }
.gr-codex .tabsbar { margin: 4px 0 18px; }
.gr-codex .tabsbar a { cursor: pointer; }
.gr-codex > .notice { margin-top: 26px; border: 1px dashed var(--line2); }
/* kaart: spawns en routes */
.map svg.spawns { position: absolute; inset: 0; width: 100%; height: 100%; }
/* routes: donkerblauw zodat ze op het perkament zichtbaar zijn; dwaalgebieden licht gevuld */
.map svg.spawns .rt { --c: #123f8c; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-dasharray: 6 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; opacity: .85; filter: drop-shadow(0 0 1px rgba(255, 247, 220, .9)); }
.map svg.spawns .rt.area { fill: var(--c); fill-opacity: .14; stroke-dasharray: none; stroke-width: 1.6; }
.map svg.spawns .wp { --c: #123f8c; fill: var(--c); pointer-events: none; }
.map svg.spawns .rt.mine, .map svg.spawns .rt.sel { --c: #1f8a1a; stroke-width: 3; opacity: 1; }
.map svg.spawns .wp.mine, .map svg.spawns .wp.sel { --c: #1f8a1a; }
.map svg.spawns .rt.drop { stroke-width: 2.6; opacity: 1; }
.map svg.spawns .sp { --c: #c0392b; fill: var(--c); stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.map svg.spawns .sp.named { --c: #ff8a1f; stroke: #3a1a00; stroke-width: 1.5; }
.map svg.spawns .sp.boss { --c: #8e2bd9; stroke: #ffd75e; stroke-width: 2.5; filter: drop-shadow(0 0 3px rgba(142, 43, 217, .9)); }
.map svg.spawns .sp.drop { stroke: #fff; stroke-width: 2; }
.map svg.spawns .sp.drop.boss { stroke: #ffd75e; stroke-width: 3; }
.map svg.spawns .sp.dim { fill: #6b5a44; opacity: .45; stroke-width: .5; }
.map svg.spawns .sp.mine { --c: #7fe07a; }
.map svg.spawns .sp.sel { stroke: #ffe14d; stroke-width: 3; }
.map svg.spawns .sp:not(.drop).sel { --c: #ffe14d; stroke: #000; stroke-width: 1.5; }
.sp-legend { display: inline-flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; font: 13px var(--sc); color: var(--ink2); margin-left: auto; }
.sp-legend i { display: inline-block; border-radius: 50%; border: 1px solid #000; margin-left: 6px; }
.sp-legend .lg-sp { width: 8px; height: 8px; background: #c0392b; }
.sp-legend .lg-named { width: 11px; height: 11px; background: #ff8a1f; }
.sp-legend .lg-boss { width: 15px; height: 15px; background: #8e2bd9; border: 2px solid #ffd75e; }
.sp-legend .lg-rt { width: 18px; height: 0; border: 0; border-top: 2px dashed #6f9bea; border-radius: 0; }
.pill.boss { border-color: #8e2bd9; color: #d9a6ff; padding: 0 6px; margin: 0 0 0 4px; font-size: 11px; vertical-align: 1px; }
.pill.named { border-color: #b8641a; color: #ffb36b; padding: 0 6px; margin: 0 0 0 4px; font-size: 11px; vertical-align: 1px; }
.drop-list { display: flex; flex-direction: column; }
.drop-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.drop-row:last-child { border-bottom: 0; }
.drop-row .dot { width: 14px; height: 14px; border: 2px solid #fff; box-shadow: 0 0 0 1px #000; }
.drop-row > span { flex: 1; min-width: 0; }
.drop-row small { display: block; color: var(--ink3, var(--ink2)); font-size: 13px; }
.drop-row .btn { white-space: nowrap; }
.gr-odds .dot { display: inline-block; width: 9px; height: 9px; vertical-align: 0; }
#dropMap .map-tools { border-top: 0; }
.sp-info { padding: 4px 0; }
.sp-list { max-height: 420px; overflow-y: auto; }
#drops .drop-list { max-height: 640px; overflow-y: auto; }
/* inhoud die de server vooraf invult (voor zoekmachines); de app vervangt hem direct */
.prerender { padding: 10px 0 40px; color: var(--ink2); }
.prerender h1 { font: 400 40px var(--uncial); color: var(--gold2); margin: 0 0 14px; }
.prerender h2 { font: 700 18px var(--sc); color: var(--gold2); margin: 22px 0 8px; }
.prerender a { color: var(--gold2); }
/* leaderboards */
.tbl.lb td.rk { color: var(--faded); width: 48px; }
.tbl.lb tbody tr:nth-child(1) td.rk { color: #ffd75e; font-weight: 700; }
.tbl.lb tbody tr:nth-child(2) td.rk { color: #d9d9d9; font-weight: 700; }
.tbl.lb tbody tr:nth-child(3) td.rk { color: #d08a4c; font-weight: 700; }
.tbl.lb td.best { color: var(--gold2); font-weight: 700; }
.tbl.lb tr[data-href] { cursor: pointer; }
.tbl.lb td a { color: var(--gold2); }
.lb-note { margin: 0; padding: 12px 20px 2px; color: var(--faded); font-size: 15px; }
.lb-note a { color: var(--gold2); border-bottom: 1px dotted var(--gold-d); }
.lb-h { margin: 0; padding: 16px 20px 6px; font: 700 15px var(--sc); letter-spacing: .08em; color: var(--gold2); border-top: 1px solid var(--line); }
.lb-barcol { width: 30%; }
.lb-bar { display: block; height: 8px; background: rgba(201, 162, 74, .12); border-radius: 4px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold2)); }
.kv small { display: block; color: var(--faded); font-size: 13px; }
.tbl.lb a.pl { color: var(--ink); font-weight: 700; border-bottom: 1px dotted var(--gold-d); }
.tbl.lb a.pl:hover { color: var(--gold2); }
.lb-search { position: relative; max-width: 520px; margin: 0 0 26px; }
.lb-search input { width: 100%; background: rgba(10, 8, 5, .6); border: 1px solid var(--gold-d); padding: 11px 14px; font-size: 17px; outline: none; border-radius: 2px; color: var(--ink); }
.lb-search input:focus { border-color: var(--gold); }
.lb-search .suggest small { display: block; color: var(--faded); font-size: 13px; }
.lb-chips { padding: 4px 20px 10px; }
.lb-drops { white-space: nowrap; }
.lb-drops a { display: inline-block; margin-right: 3px; vertical-align: middle; }
.lb-date { display: inline-flex; align-items: center; gap: 6px; color: var(--faded); font-size: 15px; }
.lb-date input { color-scheme: dark; }
.kv b.sm { font-size: 20px; }
/* vaste rasters voor profiel en gevecht: 5 kolommen, labels op één regel, waarden niet te breed */
.kv.kv5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kv.kv5 > div { min-width: 0; }
.kv.kv5 span, .kv.kv5 b, .kv.kv5 small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv.kv5 b { display: block; }
.tabsbar + .kv { margin-top: 14px; border-top: 1px solid var(--line); }
.kv.kv5 > div:nth-child(5n) { border-right: 0; }
@media (max-width: 720px) { .kv.kv5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv.kv5 > div:nth-child(5n) { border-right: 1px solid var(--line); } .kv.kv5 > div:nth-child(2n) { border-right: 0; } }

/* ---------- rekentools (damage builder, tank calculator, gedeelde builds) ---------- */
.tooltabs { padding: 0 0 18px; }
.planner.tools { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
@media (max-width: 1050px) { .planner.tools { grid-template-columns: 1fr; } }
.kv4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.kv3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kv small { display: block; color: var(--faded); font-size: 13px; font-style: italic; }
.mobsearch { position: relative; display: inline-block; min-width: 200px; }
.mobsearch input { width: 100%; }
.mobsearch .suggest { min-width: 280px; }
.dmg-t select.rk { padding: 2px 4px; min-width: 52px; }
.tbl tr.dim td { opacity: .55; }
.tbl tr.sum td { border-top: 1px solid var(--line2); }
.tbl .x, .swaprow .x { background: none; border: 0; color: var(--faded); cursor: pointer; padding: 2px 6px; }
.tbl .x:hover, .swaprow .x:hover { color: var(--blood); }
.extra-t td { padding-top: 4px; padding-bottom: 4px; }
.extra-t input.xin { width: 84px; text-align: right; padding: 3px 6px; }
.swaprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.tool-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.notes { margin: 0; padding: 12px 20px 16px 38px; font-size: 15px; line-height: 1.55; }
.notes li { margin: 4px 0; }
.pubf { display: grid; gap: 12px; padding: 16px 20px; }
.pubf label { display: grid; gap: 4px; font: 500 14px var(--sc); letter-spacing: .05em; }
.pubf input, .pubf textarea { width: 100%; }
.build-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.build-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.build-card:hover { background: rgba(201, 162, 74, .07); }
.build-card .pill { grid-row: span 2; margin: 0; }
.build-card small { grid-column: 2; color: var(--faded); font-size: 13px; font-style: italic; }
.build-card .votes { grid-row: 1 / span 2; grid-column: 3; font: 500 15px var(--sc); color: var(--gold2); }
.build-notes { padding: 12px 20px; margin: 0; white-space: pre-wrap; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .kv3 { grid-template-columns: 1fr; } .mobsearch { min-width: 0; width: 100%; } }
#cbar label { max-width: 100%; }
#cbar select[name="boss"] { max-width: min(360px, calc(100vw - 120px)); }
.extra-t input.xin, .dmg-t select.rk, .pubf input, .pubf textarea { background: rgba(10, 8, 5, .6); color: inherit; font: inherit; border: 1px solid var(--line2); border-radius: 2px; outline: none; }
.extra-t input.xin:focus, .dmg-t select.rk:focus, .pubf input:focus, .pubf textarea:focus { border-color: var(--gold); }
.dmg-t select.rk option { background: #1a140d; }
.pubf input, .pubf textarea { padding: 7px 10px; }
/* staafjes: stat-waarde, schadebronnen, klassen */
.bars { padding: 8px 20px 14px; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto auto; align-items: center; gap: 10px; font-size: 14px; }
.bar > span { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar > i { position: relative; display: block; height: 10px; background: linear-gradient(90deg, var(--gold-d), var(--gold2)); border-radius: 1px; min-width: 3px; }
.bar.danger > i { background: linear-gradient(90deg, #7d3326, #e2806d); }
.bar > i em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .85; }
.bar > b { font-variant-numeric: tabular-nums; color: var(--gold2); }
.bar > small { color: var(--faded); font-style: italic; min-width: 70px; text-align: right; }
.bar.danger > small { color: #e2806d; }
@media (max-width: 760px) { .bar { grid-template-columns: 1fr auto; } .bar > i { grid-column: 1 / -1; grid-row: 2; } .bar > small { display: none; } }
/* setbonussen */
.setlist { display: grid; }
.setrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 20px; border-bottom: 1px solid var(--line); }
.setrow small { grid-column: 1 / -1; color: var(--faded); font-size: 13px; }
.setrow:not(.on) b { color: var(--ink2); font-weight: 400; }
.tooltabs a { border: 1px solid var(--line2); padding: 4px 14px; font: 500 14px var(--sc); letter-spacing: .06em; color: var(--ink2); }
.tooltabs a:hover { color: var(--gold2); border-color: var(--gold); }
.tooltabs a.on { background: var(--gold); border-color: var(--gold); color: #1a1208; }
/* grote getallen en lange namen in de vakjes niet over elkaar */
.kv > div { min-width: 0; }
.kv b { display: block; overflow-wrap: anywhere; line-height: 1.15; }
.kv4 b { font-size: clamp(19px, 2vw, 24px); }
/* beta-label voor planner en calculators */
.beta { display: inline-block; vertical-align: middle; padding: 1px 8px; border: 1px solid #b8862e; color: #e9b75a; background: rgba(184, 134, 46, .12); font: 600 12px var(--sc); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
.title-row .beta { margin-left: 12px; font-size: 13px; }
.beta-note { margin: -6px 0 18px; color: var(--faded); font-size: 14px; font-style: italic; }
.beta-note .beta { margin-right: 8px; font-style: normal; }
.beta-dot { margin-left: 4px; font: 600 9px var(--sc); letter-spacing: .1em; color: #e9b75a; text-transform: uppercase; }
.title-row h1 + .beta { margin-right: auto; align-self: center; }
/* rekenpagina's: overzichtsblok met deelknoppen en tabbladen binnen de pagina */
.tool-hero { margin-bottom: 18px; }
.tool-hero .panel-h { flex-wrap: wrap; gap: 8px; }
.hero-acts { display: inline-flex; gap: 8px; margin-left: auto; }
.sectabs { padding: 0 0 14px; }
.sectabs button { font-size: 13px; }
.secpane > .panel + .panel { margin-top: 18px; }
.tool-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool-cols { grid-template-columns: 1fr; } .hero-acts { margin-left: 0; } }
.signin { margin: 0 0 8px; }
