/* Project Deus. Colours are taken from the realm's own login screen: Stormwind's gate at dusk,
   slate stone under lamplight. Type is Marcellus, the face the in-game Deus windows use. */
:root {
  --night: #0e1017;
  --dusk: #171a27;
  --stone: #22263a;
  --stone-2: #2c3149;
  --line: #3b4160;
  --fog: #d6d9e6;
  --mist: #8f95b2;
  --lamp: #f0c264;
  --lamp-deep: #b9842c;
  --moss: #93a94f;
  --roll: #c79cff;
  --blood: #d0624a;
  --parchment: #e9dcc0;
  --ink: #2b2118;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0a84ff; --q4: #b048f8; --q5: #ff8000; --q6: #e6cc80; --q7: #00ccff;
  --display: "Marcellus", "Palatino Linotype", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--fog); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--lamp); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: #fff; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: #0008; padding: .1em .4em; border-radius: 3px; color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--lamp); color: #000; padding: .4em .8em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--mist); }
.small { font-size: .88rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 10px 24px; background: #0e1017e8; backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff14; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.3rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px var(--lamp-deep); }
.top nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.top nav a { color: var(--fog); font-weight: 500; }
.top nav a:hover { color: #fff; text-decoration: none; }
.top nav a[aria-current] { color: var(--lamp); }
.nav-gap { flex: 1; }
.nav-toggle { display: none; }
.linklike { background: none; border: 0; color: var(--mist); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: #fff; }
.top form { margin: 0; }

/* ---- buttons, forms ---- */
.btn { display: inline-block; font: 500 1.05rem var(--body); color: #201505; background: linear-gradient(#f6d384, #d9a441); border: 1px solid #7a5516; border-radius: 3px; padding: .62em 1.3em; cursor: pointer; box-shadow: inset 0 1px 0 #fff6, 0 2px 0 #0006; }
.btn:hover { background: linear-gradient(#ffe2a0, #e6b24e); text-decoration: none; }
.btn.small { font-size: .95rem; padding: .4em .9em; }
.top nav a.btn { color: #201505; }
.btn.ghost { background: #0005; color: var(--fog); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--lamp); color: #fff; }
.btn.danger { background: #5a231a; color: #ffd9cf; border-color: #8c3a2c; box-shadow: none; }
label { display: block; font-weight: 500; margin: 0 0 .3em; }
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; color: #fff; background: #0b0d14; border: 1px solid var(--line); border-radius: 3px; padding: .55em .7em; height: 2.7em; }
textarea { height: auto; }
input:focus, select:focus { border-color: var(--lamp); outline: none; }
.field { margin-bottom: 1.1em; }
.hint { color: var(--mist); font-size: .9rem; margin-top: .3em; }
.notice { border-left: 3px solid var(--lamp); background: #f0c26414; padding: .7em 1em; margin: 0 0 1.2em; }
.notice.bad { border-color: var(--blood); background: #d0624a1c; }
.notice.good { border-color: var(--moss); background: #93a94f1c; }
.hp { position: absolute; left: -5000px; }

/* ---- hero ---- */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; background: #0b0d14 url(/static/img/hero.jpg) center 38% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0e101700 30%, #0e1017d9 78%, var(--night) 100%), linear-gradient(90deg, #0e1017b0 0%, #0e101700 62%); }
.hero-in { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 56px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin-bottom: .35em; text-shadow: 0 2px 24px #000a; }
.hero p.lede { font-size: 1.25rem; color: #e9ebf5; max-width: 34em; text-shadow: 0 1px 8px #000; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4em; }
.mix { background: #10121be0; border: 1px solid #f0c26455; border-radius: 4px; padding: 18px 20px 14px; box-shadow: 0 20px 60px #000a; }
.mix-title { font-family: var(--display); font-size: 1.35rem; color: var(--lamp); margin: 0 0 12px; min-height: 1.3em; }
.mix-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #ffffff12; }
.mix-row:first-of-type { border-top: 0; }
.mix-row .ic { width: 40px; height: 40px; }
.mix-row b { color: #fff; font-weight: 500; }
.mix-row span { margin-left: auto; color: var(--mist); font-size: .92rem; }
.mix-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .92rem; color: var(--mist); }
.mix-rows { transition: opacity .25s; }
.mix-rows.swap { opacity: 0; }

/* ---- realm strip ---- */
.strip { border-block: 1px solid #ffffff12; background: var(--dusk); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 44px; padding-block: 16px; align-items: center; }
.strip dt { color: var(--mist); font-size: .88rem; }
.strip dd { margin: 0; font-family: var(--display); font-size: 1.3rem; color: #fff; }
.strip dl { margin: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 8px var(--moss); margin-right: 8px; vertical-align: 2px; }
.dot.off { background: var(--blood); box-shadow: none; }

section.band { padding: 72px 0; }
section.band.alt { background: var(--dusk); }
.lead-in { max-width: 44em; margin-bottom: 36px; }
.lead-in p { color: var(--mist); font-size: 1.12rem; }

/* features: a ledger, not cards */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.ledger article { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid #ffffff14; }
.ledger h3 { margin-bottom: .25em; }
.ledger p { color: #b9bdd2; margin: 0; font-size: 1rem; }
.ic { display: inline-block; width: 36px; height: 36px; border-radius: 4px; background: #000 center / cover; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b6f86; flex: none; vertical-align: middle; }
.ic.lg { width: 56px; height: 56px; }
.ic.sm { width: 22px; height: 22px; box-shadow: 0 0 0 1px #000; border-radius: 3px; }
.roll { color: var(--roll); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--lamp-deep); padding-top: 16px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.4rem; color: var(--lamp); line-height: 1; display: block; margin-bottom: 8px; }
.steps p { color: #b9bdd2; font-size: 1rem; }

/* ---- generic page ---- */
.page { padding: 48px 0 80px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.page-head p { color: var(--mist); }
.narrow { max-width: 520px; }
.panel { background: var(--dusk); border: 1px solid #ffffff14; border-radius: 4px; padding: 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.cols.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
table.list { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.list th { text-align: left; font-weight: 500; color: var(--mist); font-size: .9rem; padding: 6px 10px; border-bottom: 1px solid var(--line); }
table.list td { padding: 7px 10px; border-bottom: 1px solid #ffffff0d; vertical-align: middle; }
table.list tr:hover td { background: #ffffff06; }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); } .q6 { color: var(--q6); } .q7 { color: var(--q7); }
a.q0:hover, a.q1:hover, a.q2:hover, a.q3:hover, a.q4:hover, a.q5:hover { text-decoration: underline; }
.itemlink { display: inline-flex; align-items: center; gap: 10px; }
.coin { white-space: nowrap; margin-left: .35em; }
.coin::after { content: ""; display: inline-block; width: .72em; height: .72em; border-radius: 50%; margin-left: .2em; vertical-align: -.02em; }
.coin.g::after { background: radial-gradient(circle at 35% 30%, #fff3b0, #e0a81f 60%, #8a5f08); }
.coin.s::after { background: radial-gradient(circle at 35% 30%, #fff, #b8bcc6 60%, #6d717c); }
.coin.c::after { background: radial-gradient(circle at 35% 30%, #ffd0a6, #c2702f 60%, #6f3610); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.pager a, .pager span { padding: .3em .8em; border: 1px solid var(--line); border-radius: 3px; color: var(--fog); }
.pager span { color: var(--mist); border-color: transparent; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a, .tabs button { font: 500 1.05rem var(--body); color: var(--mist); background: none; border: 0; border-bottom: 2px solid transparent; padding: .5em 1em; cursor: pointer; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: #fff; text-decoration: none; }
.tabs [aria-selected=true], .tabs .on { color: var(--lamp); border-bottom-color: var(--lamp); }
.tabs .count { color: var(--mist); font-weight: 400; font-size: .9em; margin-left: .3em; }
.filters { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 20px; }
.filters label { font-size: .85rem; color: var(--mist); }
.empty { padding: 40px 0; color: var(--mist); text-align: center; }

/* ---- tooltips (the game's) ---- */
.tooltip { position: fixed; z-index: 200; max-width: 340px; pointer-events: none; }
.tt, .tooltip { background: #070a14f2; border: 1px solid #8a8fa8; border-radius: 5px; padding: 9px 11px; font: 400 14.5px/1.38 "Alegreya Sans", sans-serif; color: #fff; box-shadow: 0 8px 30px #000c; }
.tt { max-width: 360px; pointer-events: auto; }
.tt-name { font-size: 16.5px; font-weight: 500; }
.tt-name:not([class*=" q"]) { color: #fff; }
.tt-rank { color: #9d9d9d; float: right; margin-top: -1.4em; }
.tt-split { display: flex; justify-content: space-between; gap: 18px; }
.tt-green { color: #1eff00; }
.tt-grey { color: #9d9d9d; }
.tt-roll { color: var(--roll); }
.tt-desc { color: #ffd100; margin-top: 2px; }
.tt-flavor { color: #ffd100; }
.tt-ilvl { color: #ffd100; }
.tt-set { margin-top: 8px; }
.tt-setname { color: #ffd100; }
.tt-indent { padding-left: 10px; }
.tt-socket { color: #9d9d9d; padding-left: 18px; position: relative; }
.tt-socket::before { content: ""; position: absolute; left: 1px; top: 4px; width: 11px; height: 11px; border: 1px solid #777; background: #333; }
.tt-socket.s2::before { background: #a22; } .tt-socket.s4::before { background: #b9a31a; } .tt-socket.s8::before { background: #2a5fc0; }
.tt-sell { margin-top: 2px; }
.tt-cost { color: #fff; margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff22; }
.tt-cost .ae { color: #00ccff; } .tt-cost .te { color: #c77dff; }

/* ---- footer ---- */
.foot { border-top: 1px solid #ffffff12; background: #0a0c12; padding: 36px 24px; display: grid; grid-template-columns: 2fr 1fr auto; gap: 32px; color: var(--mist); font-size: .95rem; }
.foot p { margin: .4em 0 0; max-width: 46ch; }
.foot strong { font-family: var(--display); font-weight: 400; color: #fff; font-size: 1.1rem; }
.foot-links { display: grid; gap: 4px; align-content: start; }
.foot-links a { color: var(--fog); }

/* ---- shop ---- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cos { position: relative; display: flex; flex-direction: column; background: var(--dusk); border: 1px solid #ffffff14; border-radius: 4px; overflow: hidden; color: inherit; text-align: left; padding: 0; font: inherit; cursor: pointer; }
.cos:hover { border-color: var(--lamp-deep); text-decoration: none; }
.cos-pic { flex: none; width: 100%; aspect-ratio: 1; background: radial-gradient(circle at 50% 38%, #3a4064 0%, #1a1d2c 62%, #12141e 100%); display: grid; place-items: center; overflow: hidden; }
.cos-pic img.render { width: 100%; height: 100%; object-fit: cover; }
.cos-pic .ic { width: 64px; height: 64px; }
.cos-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cos-name { font-weight: 500; line-height: 1.25; }
.cos-meta { color: var(--mist); font-size: .88rem; }
.cos-price { margin-top: auto; padding-top: 6px; font-size: .95rem; }
.cos-price .coin:first-child { margin-left: 0; }
.tag { display: inline-block; font-size: .78rem; padding: .05em .5em; border-radius: 2px; background: #c79cff22; color: var(--roll); margin-left: .4em; vertical-align: 1px; }
.shop-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.shop-tools input { max-width: 300px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.emoji-grid div { display: flex; gap: 10px; align-items: center; background: var(--dusk); padding: 8px 10px; border-radius: 4px; font-size: .95rem; }
dialog.sheet { background: var(--dusk); color: var(--fog); border: 1px solid var(--lamp-deep); border-radius: 5px; padding: 0; max-width: min(880px, 94vw); width: 100%; }
dialog.sheet::backdrop { background: #000b; }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.sheet-pic { background: radial-gradient(circle at 50% 38%, #3a4064 0%, #1a1d2c 62%, #12141e 100%); min-height: 380px; display: grid; place-items: center; }
.sheet-pic img.render { width: 100%; height: 100%; object-fit: contain; }
.sheet-body { padding: 24px; }
.sheet-close { position: absolute; right: 10px; top: 8px; }

/* ---- item / character pages ---- */
.item-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.source-block { margin-bottom: 26px; }
.source-block h3 { color: var(--lamp); }
.paperdoll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 4px; background: #ffffff05; min-height: 52px; }
.slot .ic { width: 40px; height: 40px; }
.slot.empty-slot { color: #5e6382; }
.slot.empty-slot .ic { background: #0006; box-shadow: 0 0 0 1px #33384f; }
.slot > span { font-size: .98rem; line-height: 1.25; }
.slot small { display: block; color: var(--mist); font-size: .82rem; line-height: 1.1; }
.char-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.char-head h1 { margin: 0; }
.crest { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 400 2rem var(--display); color: #fff; border: 2px solid var(--lamp-deep); }
.crest.alliance { background: radial-gradient(circle at 40% 30%, #3f6fd0, #172a5c); }
.crest.horde { background: radial-gradient(circle at 40% 30%, #c04a3a, #4c1510); }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stats div { font-size: .9rem; color: var(--mist); }
.stats b { display: block; font: 400 1.4rem var(--display); color: #fff; }
.build-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.build-tree { margin-bottom: 14px; }
.build-tree h4 { margin: 0 0 6px; font: 500 1rem var(--body); color: var(--mist); display: flex; gap: 8px; align-items: center; }
.icon-row { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-row .ic { position: relative; }
.icon-row .ic i { position: absolute; right: -3px; bottom: -4px; font: 500 11px var(--body); background: #000; color: var(--lamp); padding: 0 3px; border-radius: 2px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fog); font: inherit; padding: .3em .8em; border-radius: 3px; }
  .top { flex-wrap: wrap; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 10px 0; }
  .top nav.open { display: flex; }
  .hero-in, .cols, .cols.wide-left, .ledger, .steps, .sheet-in { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 180px; }
  .foot { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .paperdoll { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- features ---- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.feat-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--dusk); border: 1px solid #ffffff14; border-radius: 4px; padding: 18px; color: inherit; }
.feat-card:hover { border-color: var(--lamp-deep); text-decoration: none; }
.feat-card h2 { font-size: 1.35rem; margin-bottom: .2em; }
.feat-card p { margin: 0; color: #b9bdd2; font-size: 1rem; }
.feat-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.feat-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; font-size: .97rem; }
.feat-nav a { display: flex; align-items: center; gap: 10px; color: var(--fog); padding: 6px 8px; border-radius: 3px; }
.feat-nav a:hover { background: #ffffff08; text-decoration: none; }
.feat-nav a[aria-current] { background: #f0c2641a; color: var(--lamp); }
.feat-nav .feat-all { color: var(--mist); margin-bottom: 6px; }
.feat-head { display: flex; gap: 20px; align-items: center; margin: 6px 0 22px; }
.feat-head h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.lede-sm { color: var(--mist); margin: .2em 0 0; }
.crumbs { margin: 0; }
.nowrap { white-space: nowrap; }
.prose p { max-width: 50em; }
.feat-sec { padding: 26px 0; border-top: 1px solid #ffffff12; }
.feat-sec h2 { font-size: 1.7rem; }
.feat-sec h3 { font-size: 1.25rem; margin-top: 1.4em; color: var(--lamp); }
.feat-sec h4 { font: 500 1rem var(--body); color: var(--mist); margin: 1em 0 .5em; }
.feat-sec > p, .feat-sec li { max-width: 52em; }
.feat-live { margin-top: 30px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.toc a { border: 1px solid var(--line); border-radius: 3px; padding: .25em .7em; font-size: .93rem; color: var(--fog); }
.toc a:hover { border-color: var(--lamp); text-decoration: none; }
.toc b { color: var(--lamp); font-weight: 500; margin-left: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--stone); border-radius: 3px; padding: .15em .6em; font-size: .93rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 18px 0 22px; color: var(--mist); font-size: .9rem; }
.stat-row b { display: block; font: 400 1.6rem var(--display); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.drops td { vertical-align: top; }
table.drops details summary { cursor: pointer; color: var(--lamp); font-size: .88rem; }
.droplist { list-style: none; margin: 6px 0 0; padding: 0; }
.droplist li { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0; border-bottom: 1px solid #ffffff0a; }
.droplist .right { margin-left: auto; }
.mats { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mat { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; color: var(--fog); }
.mat b { font-weight: 500; color: #fff; }
.mat:hover { text-decoration: none; }
.mat:hover span { text-decoration: underline; }
table.crafted td:first-child { width: 40%; }
.setline { display: flex; flex-wrap: wrap; gap: 4px 22px; color: #1eff00; font-size: .95rem; }
.setline b { color: #ffd100; font-weight: 500; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.perk h3 { margin: 0 0 8px; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.15rem; }
.up { color: var(--moss); font-weight: 500; }
.tag.warn { background: #d0624a22; color: var(--blood); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.feature-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.panel-details { background: var(--dusk); border: 1px solid #ffffff14; border-radius: 4px; padding: 12px 16px; margin: 14px 0; }
.panel-details summary { cursor: pointer; color: var(--lamp); }
.narrow-table { max-width: 520px; }
.pinmap { margin: 0; }
.pinmap-in { position: relative; line-height: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pinmap img { width: 100%; height: auto; }
.pinmap figcaption { color: var(--mist); font-size: .88rem; margin-top: 6px; }
.pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 2px #000a, 0 0 8px var(--lamp); }
.pin.big { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: radial-gradient(circle, #fff 0 25%, var(--lamp) 30%); }
.zone-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 0; border-top: 1px solid #ffffff10; align-items: start; }
.zone-card h3 { margin-top: 0; }
.zone-card .icon-row .ic { width: 30px; height: 30px; }
.zone-card .icon-row .ic i { font-size: 10px; }
.terr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.terr h3 { margin: 0 0 6px; }
.terr p { margin: 0; font-size: .97rem; }
.terr.t1, .terr-h.t1 { border-top: 3px solid #4fbf5a; } .terr.t2, .terr-h.t2 { border-top: 3px solid #e3c043; } .terr.t3, .terr-h.t3 { border-top: 3px solid var(--blood); }
.terr-h { padding-top: 6px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) {
  .feat-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feat-wrap .wrap, .feat-body { min-width: 0; }
  table.drops td:nth-child(4), table.drops th:nth-child(4) { white-space: nowrap; }
  .zone-card { grid-template-columns: minmax(0, 1fr); }
  .feat-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .feat-nav a { border: 1px solid var(--line); padding: 4px 8px; font-size: .9rem; }
  .feat-nav a .ic { display: none; }
  .zone-card, .feature-item, .terr-grid, .cols3 { grid-template-columns: 1fr; }
  table.drops th:nth-child(2), table.drops td:nth-child(2) { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
}
.shop-tools select { width: auto; max-width: 260px; }
.tt-made { margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid #ffffff1a; }
.tt-reagents { color: #fff; }
/* armory: creatures, quests, recipes */
.tag.boss { background: #d0624a22; color: var(--blood); }
.role { display: inline-block; font-size: .78rem; padding: .05em .5em; border-radius: 2px; background: #ffffff0f; color: var(--mist); margin-left: .4em; vertical-align: 1px; }
a.npc.r3, a.npc.r1, a.npc.r2 { color: #ffd27a; }
.react { font-size: .9rem; padding: .1em .55em; border-radius: 2px; }
.react.friendly { background: #3fae5a22; color: #6fd889; }
.react.hostile { background: #d0624a22; color: #f08a75; }
.react.neutral { background: #f0c26422; color: var(--lamp); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 26px; }
.facts dt { color: var(--mist); }
.facts dd { margin: 0; }
.reag { display: inline-flex; align-items: center; gap: 2px; margin: 2px 8px 2px 0; white-space: nowrap; }
.reag .ic { width: 26px; height: 26px; position: relative; }
.reag .n { font-size: .85rem; color: var(--fog); }
.skill4 { font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.skill4 .o { color: #ff8040; } .skill4 .y { color: #ffff00; } .skill4 .g { color: #40bf40; } .skill4 .x { color: #808080; }
.craft-group { margin-bottom: 30px; }
.craft-group h3 { color: var(--lamp); display: flex; gap: .5em; align-items: baseline; }
.craft-group h3 .count { color: var(--mist); font-size: .85em; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.chips a { padding: .25em .8em; border: 1px solid var(--line); border-radius: 999px; color: var(--fog); font-size: .92rem; }
.chips a:hover { border-color: var(--lamp); text-decoration: none; }
.quest-text { white-space: pre-line; max-width: 70ch; }
.cost { white-space: nowrap; }
.cost .ic { width: 20px; height: 20px; vertical-align: -4px; margin-left: 4px; }
details.shared summary { cursor: pointer; color: var(--fog); }
details.shared .itemlink { margin-right: 10px; }
@media (max-width: 760px) { .reag-col { display: none; } }
.reag .ic.sm { width: 28px; height: 28px; }
.reag { position: relative; }
.reag .n { position: absolute; right: 2px; bottom: -1px; font-size: .78rem; font-weight: 600; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; pointer-events: none; }
.item-wide { margin-top: 40px; }
@media (max-width: 760px) {
  table.crafts tr:first-child { display: none; }
  table.crafts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mk sk" "rg rg"; border-bottom: 1px solid #ffffff0d; padding: 4px 0; }
  table.crafts td { border: 0; padding: 3px 6px; }
  table.crafts td.mk { grid-area: mk; } table.crafts td.sk { grid-area: sk; } table.crafts td.rg { grid-area: rg; }
  table.crafts td.pf, table.crafts td.reag-col { display: none; }
}
/* multi-select filter dropdowns */
.ms-field { position: relative; min-width: 0; }
.ms-field .lbl { display: block; font-size: .85rem; color: var(--mist); margin-bottom: 4px; }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: .55em .7em; border: 1px solid var(--line); border-radius: 3px; background: #0b0d14; color: var(--fog); height: 2.7em; }
.ms summary::-webkit-details-marker { display: none; }
.ms summary::after { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--mist); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.ms[open] summary { border-color: var(--lamp); }
.ms summary:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.ms-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mist); }
.ms-val.set { color: #fff; }
.ms-pop { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, 90vw);
  max-height: 360px; overflow-y: auto; background: #12141d; border: 1px solid var(--line); border-radius: 4px; padding: 6px; box-shadow: 0 10px 30px #000a; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 3px; cursor: pointer; color: var(--fog); font-size: .95rem; margin: 0; }
.ms-opt:hover { background: #ffffff0d; }
.ms-opt input { width: auto; margin: 0; accent-color: var(--lamp); }
.ms-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); padding: 8px 8px 2px; }
.ms-actions { position: sticky; bottom: -6px; display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px 4px; background: #12141d; border-top: 1px solid #ffffff12; margin-top: 4px; }
.ms-actions .ms-clear { background: none; border: 0; color: var(--mist); cursor: pointer; font: inherit; font-size: .95rem; }
.ms-field .lbl { margin-bottom: 2px; }
.ms-actions .ms-clear:hover { color: #fff; }
.filter-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchip { display: inline-flex; gap: 6px; align-items: center; padding: .2em .7em; border-radius: 999px; background: #f0c26418; border: 1px solid #f0c26455; color: var(--lamp); font-size: .9rem; }
.fchip:hover { text-decoration: none; background: #f0c26430; }
.fchip span { color: var(--fog); }
@media (max-width: 760px) { .ms-pop { max-width: calc(100vw - 32px); } }

/* ---- raid logs ---- */
.p-gold { color: #e5cc80; } .p-pink { color: #e268a8; } .p-orange { color: #ff8000; } .p-purple { color: #a335ee; }
.p-blue { color: #0070ff; } .p-green { color: #1eff00; } .p-gray { color: #8a8a8a; }
a.p-gold, a.p-pink, a.p-orange, a.p-purple, a.p-blue, a.p-green, a.p-gray { text-decoration: none; }
.pct { display: inline-block; min-width: 2.2em; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 26px; font-size: .9rem; }
.tier-legend span { white-space: nowrap; }
.logs-search { display: flex; gap: 10px; max-width: 520px; margin: 0 0 22px; }
.logs-found { margin: 0 0 28px; max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.raid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.raid-card { background: var(--dusk); border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 8px; min-width: 0; }
.raid-card.quiet { opacity: .72; }
.raid-card h2 { font-size: 1.45rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.raid-card .count { color: var(--mist); font: 400 .95rem var(--body); }
.raid-card .avg { margin-left: auto; font: 700 1.1rem var(--body); }
.boss-table td, .boss-table th { padding: 5px 8px; font-size: .95rem; }
.boss-table tr.unkilled td:first-child a { color: var(--mist); }
.boss-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -10px 0 28px; font-size: .95rem; }
.boss-nav a { color: var(--mist); }
.boss-nav a.on { color: var(--lamp); }
.rank-table td { padding: 6px 10px; }
.guild-table tr.first td { color: #e5cc80; }
.tag-bot { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mist); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; }
.kill-table .exp-row { cursor: pointer; }
.kill-table .exp-row[aria-expanded=true] td { background: #ffffff08; }
.kill-table td.deaths { color: var(--blood); }
.exp-body > td { background: #0007; padding: 8px 10px 12px 28px; }
.bar-cell { position: relative; width: 22%; min-width: 120px; }
.bar { display: block; height: 16px; background: linear-gradient(90deg, #b9842c, #f0c264); border-radius: 2px; min-width: 2px; }
.bar.heal { background: linear-gradient(90deg, #5f7a2a, #93a94f); }
.bar-num { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.spell-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spell-table td { padding: 3px 8px; border-bottom: 1px solid #ffffff0a; }
.spell-table td:first-child { white-space: nowrap; }
.spell-table .ic.sm { vertical-align: -6px; margin-right: 4px; }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .exp-body > td { padding-left: 8px; }
  .spell-table td:nth-child(2), .spell-table td:nth-child(4) { display: none; }
  .logs-search { max-width: none; }
}
table.list th.right { text-align: right; }
.spell-table td:first-child { width: 34%; }
.spell-table td.bar-cell { width: 30%; }
.page .tier-legend:last-child { margin-top: 28px; }

/* donation points in the header, left of the account name */
#nav a.nav-dp { color: var(--lamp, #f0c060); font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-dp::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; border-radius: 50%;
  background: currentColor; vertical-align: .08em; }
