/* RevAddons - same look as PetSkillScout's journal theme. */
:root {
  --bg: #0d1713; --surface: #13221b; --surface2: #1a2920; --selected: #1f3328; --deep: #0a1310;
  --gold: #d9b26d; --cream: #f1e4c6; --muted: #a9bcab; --green: #8fe0a0; --red: #ff7878;
  --border: #2c3b2f; --dim: #22302a; --ink: #1b140a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--cream);
  font: 16px/1.5 "Noto Sans", "Segoe UI", system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
header.top { background: var(--deep); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font-weight: 700; font-size: 20px; color: var(--gold); letter-spacing: .5px; }
.brand span { color: var(--cream); }
nav { display: flex; gap: 8px; }
nav a { color: var(--cream); padding: 7px 16px; border: 1px solid #4a3d24; border-radius: 6px; font-weight: 600;
  background: linear-gradient(180deg, #22301f, #121c16); box-shadow: inset 0 1px 0 rgba(217,178,109,.15); }
nav a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
nav a.on { color: var(--ink); background: linear-gradient(180deg, #f0cf86, #c99a4c); border-color: #f0cf86;
  box-shadow: 0 0 12px rgba(217,178,109,.35); }
.spacer { flex: 1; }
.btn { display: inline-block; border: 1px solid var(--gold); color: var(--gold); background: transparent;
  padding: 6px 14px; border-radius: 6px; cursor: pointer; font: inherit; }
.btn:hover { background: var(--gold); color: var(--ink); text-decoration: none; }
.btn.solid { background: var(--gold); color: var(--ink); }
.btn.small { padding: 3px 10px; font-size: 14px; }
h1 { color: var(--gold); font-size: 34px; margin: 36px 0 6px; }
h2 { color: var(--gold); margin: 32px 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  display: flex; gap: 16px; align-items: flex-start; }
.card img.logo { width: 72px; height: 72px; border-radius: 10px; border: 1px solid var(--border); }
.card h3 { margin: 0 0 6px; color: var(--cream); }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.chip { background: var(--surface2); border: 1px solid var(--border); color: var(--cream); border-radius: 999px;
  padding: 5px 14px; cursor: pointer; font: inherit; font-size: 14px; }
.chip.on { border-color: var(--gold); color: var(--gold); background: var(--selected); }
.preset { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.preset .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.preset .title { font-weight: 700; font-size: 18px; }
.preset .meta { color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.row .lbl { width: 80px; color: var(--muted); font-size: 14px; }
.icon { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: var(--deep); }
.code { width: 100%; background: var(--deep); color: var(--green); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px; font: 12px/1.4 Consolas, monospace; resize: none; height: 54px; margin-top: 8px; }
.cls-HUNTER { color: #abd473; } .cls-WARRIOR { color: #c79c6e; } .cls-PALADIN { color: #f58cba; }
.cls-ROGUE { color: #fff569; } .cls-MAGE { color: #69ccf0; } .cls-WARLOCK { color: #9482c9; }
.cls-PRIEST { color: #ffffff; } .cls-SHAMAN { color: #0070de; } .cls-DRUID { color: #ff7d0a; }
.note { background: var(--surface2); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 12px 16px; color: var(--muted); margin: 18px 0; }
footer { border-top: 1px solid var(--border); margin-top: 50px; padding: 22px 0; color: var(--muted); font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink);
  padding: 8px 18px; border-radius: 6px; font-weight: 700; display: none; }
select.chip { padding: 4px 10px; margin-right: 8px; }
select.chip option { background: var(--surface); color: var(--cream); }

/* --- WoW: Forever look --- */
.wf-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gold); border-radius: 4px;
  padding: 2px 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(180deg, #2a2112, #15100a); box-shadow: 0 0 10px rgba(217,178,109,.25); }
.wf-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.hero { position: relative; margin: 26px 0 30px; padding: 34px 30px 28px; border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217,178,109,.18), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(143,224,160,.08), transparent 55%),
    linear-gradient(180deg, #13221b, #0a1310);
  border: 1px solid #5a4a2c; box-shadow: inset 0 0 0 3px #0a1310, inset 0 0 0 4px rgba(217,178,109,.35), 0 10px 30px rgba(0,0,0,.45); }
.hero::before, .hero::after { content: ""; position: absolute; width: 46px; height: 46px; border: 2px solid var(--gold); opacity: .7; }
.hero::before { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.hero::after { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.hero h1 { margin: 12px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; letter-spacing: .5px;
  color: #f3cf7e; text-shadow: 0 2px 0 #3a2a10, 0 0 18px rgba(217,178,109,.35); }
.hero .lead { margin-bottom: 18px; }
.crests { display: flex; flex-wrap: wrap; gap: 10px; }
.crests img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #6b5630; box-shadow: 0 0 0 2px #0a1310, 0 0 10px rgba(0,0,0,.6); }
.crests img:hover { border-color: var(--gold); transform: translateY(-2px); transition: .15s; }
h1, h2, .card h3, .preset .title { font-family: Georgia, "Times New Roman", serif; }
.card, .preset { box-shadow: inset 0 1px 0 rgba(217,178,109,.12); }
.card:hover, .preset:hover { border-color: #5a4a2c; }
.divider { height: 1px; margin: 26px 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.guide p { color: var(--cream); }
.guide h3 { color: var(--gold); margin: 18px 0 6px; font-size: 18px; }
ul.steps { margin: 0; padding-left: 22px; }
ul.steps li { margin: 4px 0; }
ul.steps li::marker { color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip-icon { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #6b5630; }

/* --- Talent trees --- */
.lvl-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.lvl-row .lvl { flex: 1; max-width: 520px; accent-color: var(--gold); }
.lvl-num { color: var(--gold); font-size: 22px; min-width: 32px; }
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.tree { background: var(--deep); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.tree-head { color: var(--gold); font-family: Georgia, serif; font-weight: 700; margin-bottom: 8px; text-align: center; }
.tree-grid { display: grid; grid-template-columns: repeat(4, 48px); grid-auto-rows: 52px; gap: 6px; justify-content: center; }
.tal { position: relative; width: 44px; height: 44px; border: 2px solid #3a3a3a; border-radius: 6px; filter: grayscale(1) brightness(.45); cursor: help; }
.tal img { width: 100%; height: 100%; border-radius: 4px; display: block; }
.tal.on { filter: none; border-color: var(--green); }
.tal.max { border-color: var(--gold); box-shadow: 0 0 8px rgba(217,178,109,.5); }
.tal .rk { position: absolute; right: -6px; bottom: -6px; background: #000; color: var(--green); font-size: 11px; padding: 0 3px; border-radius: 3px; border: 1px solid var(--border); }
.tal.max .rk { color: var(--gold); }
ol.order { columns: 3 220px; padding-left: 0; list-style: none; font-size: 14px; }
ol.order li { display: flex; align-items: center; gap: 6px; margin: 2px 0; color: var(--muted); break-inside: avoid; }
ol.order li.done { color: var(--cream); }
ol.order img { width: 20px; height: 20px; border-radius: 3px; }
.ol-lvl { width: 24px; text-align: right; color: var(--gold); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.toc a { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: var(--surface2); }
.toc a:hover { border-color: var(--gold); text-decoration: none; }
.guide section { scroll-margin-top: 60px; }
.guide h2 { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.sp { white-space: nowrap; }
.sp img { width: 18px; height: 18px; border-radius: 3px; vertical-align: -3px; margin-right: 4px; border: 1px solid var(--border); }
a.wf-badge:hover { text-decoration: none; border-color: #f3cf7e; box-shadow: 0 0 14px rgba(217,178,109,.45); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #777; }
.dot.up { background: var(--green); box-shadow: 0 0 7px var(--green); }
.dot.partial { background: #f0b84a; box-shadow: 0 0 7px #f0b84a; }
.dot.down { background: var(--red); box-shadow: 0 0 7px var(--red); }
.realms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.realm { display: flex; align-items: center; gap: 8px; background: var(--deep); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; }
.realm.down { border-color: #5a2a2a; }

/* --- News --- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; color: var(--cream); }
.news-card:hover { border-color: #5a4a2c; text-decoration: none; box-shadow: 0 0 14px rgba(217,178,109,.15); }
.news-card img { width: 56px; height: 56px; border-radius: 8px; border: 1px solid #6b5630; flex: none; }
.news-card h3 { margin: 4px 0; color: var(--cream); font-family: Georgia, serif; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink);
  background: var(--gold); border-radius: 3px; padding: 1px 7px; }
aside { display: flex; flex-direction: column; gap: 12px; }
.side-card { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--cream); }
.side-card:hover { border-color: var(--gold); text-decoration: none; }
.side-card .ico { grid-row: span 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--deep); border: 1px solid #6b5630; overflow: hidden; }
.side-card .ico img { width: 100%; height: 100%; object-fit: cover; }
.side-card .dot { width: 14px; height: 14px; }
.side-card .meta { grid-column: 2; font-size: 13px; line-height: 1.4; }
.side-card b { line-height: 1.2; }
.article { max-width: 820px; margin: 24px auto; }
.article h1 { margin: 6px 0; font-size: 32px; }
.article p { font-size: 17px; line-height: 1.7; }
.article .lead { font-size: 19px; color: var(--cream, #f1e4c6); border-left: 3px solid #d9b26d; padding-left: 14px; }
.article .src { font-size: 14px; margin-top: 24px; }
.article .cover { width: 100%; border-radius: 10px; border: 1px solid #5a4a2c; margin: 16px 0 6px; display: block; }
/* --- Account --- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.form label { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; color: var(--muted); font-size: 14px; }
.form input, .form select, .form textarea, .note-in, table.users select { background: var(--deep); color: var(--cream); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; font: inherit; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { margin-top: 8px; }
.err { color: var(--red); min-height: 1em; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick img { width: 34px; height: 34px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; opacity: .6; }
.icon-pick img.on { border-color: var(--gold); opacity: 1; }
table.users { width: 100%; border-collapse: collapse; }
table.users td, table.users th { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; }
select.saved { border-color: var(--green); }
#acct { margin-left: 8px; }
details summary { cursor: pointer; color: var(--gold); margin: 8px 0; }
.news-card img.thumb { width: 200px; height: 112px; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .news-card img.thumb { width: 110px; height: 70px; } }
.article .credit { font-size: 12px; margin: 0 0 10px; text-align: right; }
/* header: one line, nothing wraps */
header.top .wrap { flex-wrap: nowrap; gap: 12px; }
header.top a, header.top .wf-badge, nav a, #lang, #acct { white-space: nowrap; }
nav { flex-wrap: nowrap; gap: 6px; }
nav a { padding: 6px 12px; font-size: 15px; line-height: 1.2; }
.wf-badge { font-size: 12px; padding: 2px 8px; }
header.top .btn.small { padding: 4px 10px; line-height: 1.2; }
#lang { max-width: 130px; }
@media (max-width: 1100px) { header.top .wrap { flex-wrap: wrap; height: auto; padding: 8px 20px; } }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.social h2 { width: 100%; margin: 0 0 4px; }
.social .meta { width: 100%; margin: 4px 0 0; }
.btn.bnet { background: #148eff; border-color: #148eff; color: #fff; }
.btn.disabled { opacity: .45; cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.tile b { font-size: 28px; color: var(--gold); font-family: Georgia, serif; }
.tile span { color: var(--muted); font-size: 13px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; background: var(--deep); border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.chart .bar { position: relative; flex: 1; height: 100%; }
.chart .bar i { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(217,178,109,.35); border-radius: 3px 3px 0 0; }
.chart .bar u { position: absolute; bottom: 0; left: 22%; width: 56%; background: var(--gold); border-radius: 3px 3px 0 0; }
textarea.code { height: auto; min-height: 60px; }
footer a { color: var(--muted); }
/* --- Map --- */
.wrap.wide { max-width: 1500px; }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 10px; }
.map-bar label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.map-bar input#search { min-width: 220px; }
.dotk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.map-wrap { display: grid; grid-template-columns: 1fr; gap: 10px; position: relative; }
#mapview { position: relative; height: 72vh; min-height: 420px; overflow: hidden; background: #050a08; border: 1px solid #5a4a2c; border-radius: 10px;
  touch-action: none; cursor: grab; user-select: none; }
#mapview:active { cursor: grabbing; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#mapimg { display: block; width: 100%; height: 100%; pointer-events: none; }
#pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); border: 1px solid #000;
  transform: scale(var(--s, 1)); cursor: pointer; box-shadow: 0 0 4px rgba(0,0,0,.8); }
.pin.kq { border-radius: 2px; }
.pin.hot { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 3px #fff, 0 0 16px var(--c); z-index: 5; }
.pin.mark { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,120,120,.4), 0 0 20px #ff7878; } }
.zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.zoom .btn { background: rgba(10,19,16,.85); min-width: 34px; }
.zname { position: absolute; left: 12px; top: 10px; font-family: Georgia, serif; font-size: 22px; color: #f3cf7e; text-shadow: 0 2px 4px #000; pointer-events: none; }
.maptip { position: fixed; display: none; z-index: 50; background: rgba(10,19,16,.95); border: 1px solid var(--gold); border-radius: 6px; padding: 4px 8px;
  color: var(--cream); font-size: 13px; pointer-events: none; }
.results { list-style: none; padding: 0; margin: 0; columns: 3 260px; font-size: 14px; }
.results li { display: flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; color: var(--cream); }
.results li:hover { color: var(--gold); }
.maplink { border-bottom: 1px dashed var(--gold); } .maplink::before { content: "📍"; font-size: 12px; margin-right: 2px; }
/* --- Tier lists --- */
.tier-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; margin: 8px 0; align-items: stretch; }
.tier-letter { display: flex; align-items: center; justify-content: center; font: 700 30px Georgia, serif; color: #1b140a; border-radius: 8px; }
.tier-specs { display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.tier-spec { display: flex; align-items: center; gap: 8px; background: var(--deep); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px 4px 4px; }
.tier-spec img { width: 32px; height: 32px; border-radius: 5px; }
a.tier-spec:hover { border-color: var(--gold); text-decoration: none; }
.tier-badge { display: inline-block; font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 4px; color: #1b140a; margin: 0 6px 6px 0; }
.tier-badge.tS { background: #ff8a5c; } .tier-badge.tA { background: #f3cf7e; } .tier-badge.tB { background: #8fe0a0; } .tier-badge.tC { background: #69ccf0; }
.pros h3 { color: var(--green); } .cons h3 { color: var(--red); }
.race.ally h3 { color: #69aaff; } .race.horde h3 { color: #ff6b5c; }

/* --- Map v2 (Leaflet) --- */
#mapview { height: 76vh; min-height: 460px; background: #070d10; border: 1px solid #5a4a2c; border-radius: 10px; }
#mapview.leaflet-container { font: inherit; background: #070d10; }
.zlabel span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 700 15px Georgia, serif; color: #f3cf7e;
  text-shadow: 0 0 3px #000, 0 0 6px #000, 0 2px 2px #000; pointer-events: none; }
#mapview[data-z="0"] .zlabel span, #mapview[data-z="1"] .zlabel span { font-size: 11px; }
#mapview[data-z="5"] .zlabel span, #mapview[data-z="6"] .zlabel span, #mapview[data-z="7"] .zlabel span, #mapview[data-z="8"] .zlabel span { opacity: .45; font-size: 20px; }
.leaflet-tooltip { background: rgba(10,19,16,.95); color: var(--cream); border: 1px solid var(--gold); }
.leaflet-tooltip-top:before { border-top-color: var(--gold); }
.leaflet-bar a { background: rgba(10,19,16,.9); color: var(--gold); border-color: #5a4a2c; }
.leaflet-bar a:hover { background: #1f3328; color: #f3cf7e; }
path.pulse { animation: pulse2 1.2s infinite; }
@keyframes pulse2 { 50% { stroke-width: 8; stroke-opacity: .5; } }
.rtag { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; color: #1b140a; vertical-align: 1px; }
.rtag.rPvE { background: #8fe0a0; } .rtag.rPvP { background: #ff8a5c; } .rtag.rboth { background: #f3cf7e; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.ptable th, .ptable td { text-align: left; padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.ptable th { opacity: .7; font-weight: 600; }
.steps.cols { columns: 3 180px; }
.tal.calc { cursor: pointer; user-select: none; }
.tal.off { filter: grayscale(1); opacity: .45; }
#mapview, #mapview.leaflet-container { height: calc(100vh - 190px); min-height: 480px; background: #10212e; }
main.wrap:has(#mapview) { max-width: none; padding-left: 16px; padding-right: 16px; }
#mapview, #mapview.leaflet-container { background: #2a1d10; }
#mapview .zlabel span { color: #ffe7a8; text-shadow: 0 0 3px #000, 0 0 6px #000; }
#mapview[data-z="0"] .zlabel:not(.city) span, #mapview[data-z="1"] .zlabel:not(.city) span { font-size: 10px; }
#mapview[data-z="0"] .zlabel span, #mapview[data-z="1"] .zlabel span, #mapview[data-z="2"] .zlabel span { opacity: 0; }
#mapview .zlabel { display: none; }
/* nav with icons (like big WoW sites) */
header nav a { display: inline-flex; align-items: center; gap: 7px; }
header nav a::before { content: ""; width: 22px; height: 22px; border-radius: 4px; background: center/cover no-repeat; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5a4a2c; flex: none; }
header nav a[href="/news/"]::before { background-image: url(/icons/inv_scroll_03.jpg); }
header nav a[href="/guides/"]::before { background-image: url(/icons/inv_misc_book_09.jpg); }
header nav a[href="/map/"]::before { background-image: url(/icons/inv_misc_map_01.jpg); }
header nav a[href="/rotation/"]::before { background-image: url(/icons/ability_hunter_rapidkilling.jpg); }
header nav a[href="/addons/"]::before { background-image: url(/icons/inv_gizmo_02.jpg); }
@media (max-width: 900px) { header nav a::before { display: none; } }
/* home: category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 16px; border-radius: 12px; text-decoration: none;
  background: radial-gradient(120% 90% at 50% 0%, #22382c 0%, var(--surface) 60%); border: 1px solid #3a4b35; color: var(--cream); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 8px 24px #0008, 0 0 0 1px #d9b26d55 inset; }
.tile img { width: 56px; height: 56px; border-radius: 8px; box-shadow: 0 0 0 2px #000, 0 0 0 4px #8a6a2e, 0 6px 14px #000a; }
.tile b { font: 700 16px Georgia, serif; color: var(--gold); letter-spacing: .3px; }
.tile span { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.35; }
.qsteps li { margin-bottom: 12px; }
.qsteps .maplink { font-size: 13px; margin-left: 6px; white-space: nowrap; }
.ally-t { color: #6fa8ff; } .horde-t { color: #ff6f6f; }
.comments { margin-top: 28px; }
.cm { border-top: 1px solid var(--border); padding: 10px 0; }
.cm-h { display: flex; gap: 10px; align-items: baseline; }
.cm-b { white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.cm-form { display: grid; gap: 8px; margin-top: 12px; max-width: 720px; }
.cm-form input, .cm-form textarea { background: var(--deep); color: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; }
.cm-form .cm-name { max-width: 280px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 16px 0 6px; }
.gbtn { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; text-decoration: none; color: var(--cream);
  background: linear-gradient(180deg, #2a3f30, #182a20); border: 1px solid #6b5630; box-shadow: 0 3px 0 #0a1310, 0 6px 14px #0007; transition: transform .12s, border-color .12s, box-shadow .12s; }
.gbtn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 5px 0 #0a1310, 0 10px 22px #000a, 0 0 0 1px #d9b26d55 inset; }
.gbtn:active { transform: translateY(1px); box-shadow: 0 1px 0 #0a1310; }
.gbtn img { width: 46px; height: 46px; border-radius: 7px; box-shadow: 0 0 0 2px #000, 0 0 0 3px #8a6a2e; flex: none; }
.gbtn b { display: block; font: 700 17px Georgia, serif; color: var(--gold); }
.gbtn small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
@media (min-width: 1100px) { .gbtns { grid-template-columns: repeat(5, 1fr); } .gbtn { padding: 12px; gap: 10px; } .gbtn img { width: 42px; height: 42px; } }
.brand { display: flex; align-items: center; line-height: 0; }
.brand img { height: 54px; width: auto; margin: -6px 0; filter: drop-shadow(0 2px 6px #000c); transition: filter .15s, transform .15s; }
.brand:hover img { filter: drop-shadow(0 0 10px #4f8cffaa); transform: scale(1.03); }
.home-hero { background: linear-gradient(180deg, #0d171300 0%, #0d171300 45%, #0d1713e6 78%, #0d1713 100%), url(/img/banner.jpg) center 30%/cover no-repeat;
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; align-items: center; }
.home-hero h1 { text-shadow: 0 2px 12px #000, 0 0 2px #000; }
.home-hero .lead { text-shadow: 0 1px 6px #000; }
@media (max-width: 700px) { .home-hero { min-height: 340px; background-size: auto 100%; } }
.brand img { -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 92%); mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 92%); height: 62px; }
.home-hero { min-height: 640px; background-position: center top; background-size: 100% auto; background-color: #0a1018;
  background-image: linear-gradient(180deg, #0d171300 0%, #0d171300 62%, #0d1713d9 80%, #0d1713 100%), url(/img/banner.jpg); }
@media (max-width: 1100px) { .home-hero { min-height: 0; padding-top: 52vw; } }
header.top .wrap > #srv { order: 99; margin-left: 4px; }
#mapview .clabel span { display: block; white-space: nowrap; text-align: justify; text-align-last: justify; line-height: 1; pointer-events: none;
  font-family: 'Morpheus', 'Trajan Pro', Georgia, serif; font-weight: 700; color: rgb(78, 44, 12);
  text-shadow: 0 0 3px rgba(243, 189, 81, .9), 0 0 7px rgba(243, 189, 81, .7), 0 0 12px rgba(243, 189, 81, .45); }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 12px; padding: 7px 14px; border-radius: 8px; text-decoration: none;
  color: var(--gold); font-weight: 600; background: linear-gradient(180deg, #2a3f30, #182a20); border: 1px solid #6b5630; box-shadow: 0 2px 0 #0a1310; }
.backlink:hover { border-color: var(--gold); transform: translateY(-1px); }

/* ---------- profile ---------- */
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: swap; src: url(/fonts/cinzel.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
.acct-me { display: inline-flex; align-items: center; gap: 7px; padding: 2px 12px 2px 3px !important; }
.acct-me img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #6b5630; object-fit: cover; }
.ptabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; border-bottom: 1px solid #4a3d24; }
.ptab { font: 700 14px 'Cinzel', Georgia, serif; letter-spacing: .6px; color: var(--muted); cursor: pointer; padding: 10px 18px;
  background: linear-gradient(180deg, #1a2920, #101b15); border: 1px solid #3a3020; border-bottom: none; border-radius: 8px 8px 0 0; }
.ptab:hover { color: var(--cream); }
.ptab.on { color: #ffe2a0; background: linear-gradient(180deg, #2c3f2c, #18261d); border-color: #8a6a32; box-shadow: 0 -2px 10px rgba(217,178,109,.18); }
.pf-card { position: relative; margin: 18px 0; padding: 28px; border-radius: 12px; border: 1px solid #6b5630;
  background: radial-gradient(ellipse at 15% 0%, rgba(217,178,109,.14), transparent 55%), linear-gradient(180deg, #17261d, #0d1612);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.45), 0 10px 30px rgba(0,0,0,.35); }
.pf-card::before, .pf-card::after { content: ''; position: absolute; width: 34px; height: 34px; border: 2px solid #c99a4c; pointer-events: none; }
.pf-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.pf-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.pf-top { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.pf-frame { position: relative; width: 132px; height: 132px; padding: 0; border-radius: 50%; cursor: pointer; flex: none;
  background: conic-gradient(from 200deg, #6b4a1c, #f3d48c, #a8772f, #ffe8a8, #6b4a1c); border: none; box-shadow: 0 0 0 3px #0b130f, 0 0 22px rgba(217,178,109,.35); }
.pf-avatar { position: absolute; inset: 6px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid #0b130f; }
.pf-edit { position: absolute; right: 2px; bottom: 6px; width: 32px; height: 32px; border-radius: 50%; background: #1b140a; border: 2px solid #d9b26d; color: #f0cf86;
  display: grid; place-items: center; font-size: 15px; opacity: .85; transition: .15s; }
.pf-frame:hover .pf-edit { opacity: 1; transform: scale(1.1); }
.pf-id { flex: 1; min-width: 240px; }
.pf-nameline { display: flex; align-items: center; gap: 8px; }
.pf-name { margin: 0; font: 800 38px/1.1 'Cinzel', Georgia, serif; letter-spacing: 1px; color: #f6d995;
  background: linear-gradient(180deg, #fff1c4, #d9a54e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 2px #000); }
.pf-pencil { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.pf-pencil:hover { color: var(--gold); }
.pf-rename { display: flex; gap: 8px; align-items: center; }
.pf-name-in { font: 700 24px 'Cinzel', Georgia, serif; background: #0a130f; color: var(--cream); border: 1px solid var(--gold); border-radius: 6px; padding: 4px 10px; width: 300px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.pf-role, .pf-via, .pf-mail { font: 700 12px 'Cinzel', Georgia, serif; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; border: 1px solid #4a3d24; color: var(--cream); background: #101b15; }
.pf-mail { text-transform: none; font-family: inherit; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pf-role.r-admin { color: #ff8000; border-color: #ff8000; } .pf-role.r-moderator { color: #a335ee; border-color: #a335ee; }
.pf-role.r-author { color: #3f9bff; border-color: #0070dd; } .pf-role.r-user { color: #1eff00; border-color: #2d7a24; }
.pf-via.v-bnet { color: #4fb6ff; border-color: #1f5f99; }
.pf-since { color: var(--muted); font-style: italic; }
.pf-out { align-self: flex-start; }
.pf-main { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; padding: 12px 16px; border-radius: 10px; text-decoration: none !important;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.1)); border: 1px solid #3a3020; color: var(--cream); }
.pf-main:hover { border-color: var(--gold); }
.pf-main img { width: 56px; height: 56px; border-radius: 8px; border: 2px solid #6b5630; }
.pf-cname { font: 700 20px 'Cinzel', Georgia, serif; }
.pf-mainlbl { margin-left: auto; font: 700 11px 'Cinzel', serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.pf-stat { text-align: center; padding: 14px 8px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid #2c3b2f; }
.pf-stat b { display: block; font: 800 30px 'Cinzel', Georgia, serif; color: #f0cf86; }
.pf-stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.pf-hint { margin: 18px 0 0; }
.pf-empty { text-align: center; }
@media (max-width: 700px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } .pf-name { font-size: 28px; } }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal { background: linear-gradient(180deg, #17261d, #0d1612); border: 1px solid #8a6a32; border-radius: 12px; padding: 20px 24px; width: min(760px, 100%); max-height: 86vh; overflow: auto; box-shadow: 0 20px 60px #000; }
.pf-pick-head { display: flex; justify-content: space-between; align-items: center; }
.pf-pick-head h2 { margin: 0; font-family: 'Cinzel', Georgia, serif; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.av { padding: 0; border: 2px solid #3a3020; border-radius: 8px; background: #000; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av:hover, .av.on { border-color: var(--gold); box-shadow: 0 0 10px rgba(217,178,109,.5); }
.av-up { position: relative; overflow: hidden; } .av-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.av-grid .meta { grid-column: 1 / -1; }
.ch-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 860px) { .ch-wrap { grid-template-columns: 1fr; } }
.ch-side { background: #0f1914; border: 1px solid #3a3020; border-radius: 10px; padding: 12px; align-self: start; }
.ch-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ch-side-head h3 { margin: 0; font-family: 'Cinzel', Georgia, serif; color: var(--gold); }
.ch-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px; margin-bottom: 6px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, #18261d, #111c16); border: 1px solid #2c3b2f; color: var(--cream); font: inherit; }
.ch-row:hover, .ch-row.on { border-color: var(--gold); }
.ch-row img { width: 42px; height: 42px; border-radius: 6px; border: 1px solid #6b5630; }
.ch-row b { display: block; font-family: 'Cinzel', Georgia, serif; }
.ch-row .meta { font-size: 13px; }
.ch-row .fac { margin-left: auto; width: 8px; height: 30px; border-radius: 3px; background: #1e5bb8; } .ch-row .fac.h { background: #a31c1c; }
.doll { border-radius: 12px; border: 1px solid #6b5630; padding: 18px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(70,110,180,.25), transparent 60%), linear-gradient(180deg, #121c26, #0a0f14); }
.doll.fac-h { background: radial-gradient(ellipse at 50% 45%, rgba(170,40,30,.28), transparent 60%), linear-gradient(180deg, #1f1212, #0f0a0a); }
.doll-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.doll-name { font: 800 28px 'Cinzel', Georgia, serif; text-shadow: 0 2px 4px #000; }
.doll-guild { color: #40ff40; font-weight: 600; }
.doll-act { display: flex; gap: 8px; align-items: flex-start; }
.doll-body { display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; margin-top: 10px; }
.doll-model { position: relative; min-height: 460px; overflow: hidden; }
.doll-model img { position: absolute; left: 50%; top: 50%; height: 185%; transform: translate(-50%, -47%); pointer-events: none; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.slots { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 2; }
.slots.bottom { flex-direction: row; justify-content: center; margin-top: 12px; }
.slot { width: 52px; height: 52px; border-radius: 6px; border: 2px solid var(--q, #444); background: #000; display: block; box-shadow: 0 0 6px color-mix(in srgb, var(--q) 50%, transparent), inset 0 0 0 1px #000; }
.slot img { width: 100%; height: 100%; border-radius: 4px; display: block; }
.slot.empty { border-color: #2a2a2a; background: linear-gradient(135deg, #15191c, #0a0c0e); box-shadow: inset 0 0 8px #000; }
.slot:hover { transform: scale(1.06); }
.wtip { position: fixed; z-index: 3000; display: none; max-width: 330px; padding: 9px 11px; pointer-events: none; font-size: 13.5px; line-height: 1.45; color: #fff;
  background: rgba(6, 10, 28, .96); border: 1px solid #a9a9a9; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 6px 20px #000; }
.wtip .q { font-size: 15px; font-weight: 600; }
.wtip .gold { color: #ffd100; } .wtip .green { color: #1eff00; }
.wtip .two-col { display: flex; justify-content: space-between; gap: 20px; }
/* home: a banner, not a full-screen poster */
.home-hero { min-height: 0; padding: 215px 30px 18px; background-color: #0a1018; background-repeat: no-repeat; background-size: cover; background-position: center 47%;
  background-image: linear-gradient(180deg, #0d171300 0%, #0d171300 50%, #0d1713cc 72%, #0d1713 100%), url(/img/banner.jpg); }
.home-hero h1 { font-size: 30px; margin: 8px 0 2px; }
.home-hero .lead { font-size: 15.5px; margin-bottom: 10px; }
.home-hero .crests img { width: 38px; height: 38px; }
@media (max-width: 1100px) { .home-hero { padding-top: 170px; } }
@media (max-width: 700px) { .home-hero { padding-top: 120px; } .home-hero h1 { font-size: 24px; } }
.home-hero { padding-top: 300px; background-position: center 36%;
  background-image: linear-gradient(180deg, #0d171300 0%, #0d171300 66%, #0d1713d9 80%, #0d1713 100%), url(/img/banner.jpg); }
@media (max-width: 1100px) { .home-hero { padding-top: 24vw; } }
@media (max-width: 700px) { .home-hero { padding-top: 34vw; } }
.home-hero { padding: 0 30px 18px; background: linear-gradient(180deg, #121e18, #0d1713); overflow: hidden; }
.home-hero .hero-art { margin: 0 -30px 6px; aspect-ratio: 1060 / 340; background: url(/img/banner.jpg) center 57% / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
@media (max-width: 1100px) { .home-hero { padding-top: 0; } }
@media (max-width: 700px) { .home-hero { padding-top: 0; } .home-hero .hero-art { aspect-ratio: 16 / 7; } }
.home-hero .hero-art { align-self: stretch; width: auto; }
/* home banner: a slim strip like a header */
.home-hero { padding: 0 24px 12px; margin-top: 18px; }
.home-hero .hero-art { margin: 0 -24px 2px; aspect-ratio: auto; height: 190px; background: #0a1018 url(/img/banner.jpg) center 52% / auto 210% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.home-hero .wf-badge { display: none; }
.home-hero h1 { font-size: 22px; margin: 0 0 2px; }
.home-hero .lead { font-size: 14px; margin: 0 0 8px; }
.home-hero .crests img { width: 30px; height: 30px; }
@media (max-width: 700px) { .home-hero .hero-art { height: 130px; aspect-ratio: auto; } }
.home-hero .hero-art { background-color: transparent; position: relative; }
.home-hero .hero-art { -webkit-mask-image: radial-gradient(ellipse 36% 95% at 50% 40%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 36% 95% at 50% 40%, #000 70%, transparent 100%); }
@media (max-width: 1100px) { .home-hero .hero-art { -webkit-mask-image: radial-gradient(ellipse 50% 95% at 50% 40%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 95% at 50% 40%, #000 70%, transparent 100%); } }
@media (min-width: 1101px) { .home-hero .hero-art { -webkit-mask-image: radial-gradient(ellipse 33% 100% at 50% 38%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 33% 100% at 50% 38%, #000 55%, transparent 100%); } }
.home-hero .hero-art { height: 200px; background: #0a1018 url(/img/banner-wide.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
@media (min-width: 1101px) { .home-hero .hero-art { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); } }
@media (max-width: 1100px) { .home-hero .hero-art { height: 18vw; min-height: 120px; background-size: cover; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); } }
.home-hero .crests { gap: 10px; }
.home-hero .crests img { width: 48px; height: 48px; }
@media (max-width: 700px) { .home-hero .crests img { width: 38px; height: 38px; } }
.home-hero .hero-art, .home-hero .hero-art:is(*) { height: auto; aspect-ratio: 1672 / 480; min-height: 0;
  background: #0a1018 url(/img/banner.jpg) center 57% / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
@media (max-width: 1100px) { .home-hero .hero-art { height: auto; min-height: 0; aspect-ratio: 1672 / 480; background-size: 100% auto; } }
header.top .wrap > .online-now { order: 100; font: 700 13px 'Cinzel', Georgia, serif; color: #8fe0a0; padding: 4px 10px; border: 1px solid #2d7a24; border-radius: 6px; background: #0e1a12; white-space: nowrap; }
/* banner: soft fade from the art into the text, with a gold rule */
.home-hero .hero-art { -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%) !important; mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%) !important; margin-bottom: -46px; }
.home-hero h1 { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%;
  text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.home-hero h1::before, .home-hero h1::after { content: ''; flex: 0 1 220px; height: 2px; background: linear-gradient(90deg, transparent, #c99a4c 70%, #f3d48c); }
.home-hero h1::after { background: linear-gradient(270deg, transparent, #c99a4c 70%, #f3d48c); }
.home-hero .lead, .home-hero .crests { position: relative; z-index: 1; }
.home-hero { background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(217,178,109,.10), transparent 70%), linear-gradient(180deg, #0f1a1a, #0d1713) !important; }
header.top .wrap { max-width: 1480px; gap: 10px; }
header.top nav { gap: 6px; }
header.top nav a { padding: 6px 11px; }
header.top #lang { max-width: 120px; }
@media (max-width: 1250px) { header.top nav a img { display: none; } }
@media (max-width: 1320px) { header nav a::before { display: none; } header.top #lang { width: 100px; } header.top .wrap { gap: 8px; } }
@media (max-width: 1180px) { header.top #srv span[data-t] { display: none; } }
header.top .wrap > .spacer { flex: 0 0 0; min-width: 0; } header.top nav { margin: 0 auto; }
header.top nav { justify-content: center; }
/* news page banner: Blizzard art on the right, text on a dark fade */
.news-hero { min-height: 230px; padding: 34px 36px 30px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: linear-gradient(90deg, #0d1713 0%, #0d1713f2 30%, #0d1713a6 55%, #0d171320 100%), url(/img/news-hero.jpg) right 38% / 68% auto no-repeat, #0d1713; }
.news-hero h1 { font-size: 42px; text-shadow: 0 2px 12px #000; }
.news-hero .lead { max-width: 520px; text-shadow: 0 1px 6px #000; }
.news-hero::after { z-index: 1; }
@media (max-width: 800px) { .news-hero { background: linear-gradient(90deg, #0d1713f0, #0d1713b0), url(/img/news-hero.jpg) center / cover no-repeat; } .news-hero h1 { font-size: 30px; } }
.news-hero .wf-badge { align-self: flex-start; } .news-hero { background-position: 0 0, right 45%, 0 0; }
header.top .brand { margin-left: auto; } header.top nav { margin: 0 auto 0 14px; } header.top .wrap { max-width: 1400px; }
@media (max-width: 1420px) { header.top nav a::before { display: none !important; } header.top #lang { width: 105px !important; } }
@media (max-width: 1300px) { header.top #srv span[data-t] { display: none; } header.top .wrap { gap: 8px; padding: 0 12px; } }
/* map: continent / zone pickers, cursor coords, pick mode for the article editor */
#selCont, #selZone { min-width: 150px; }
#cursor { margin-left: auto; font-variant-numeric: tabular-nums; }
body.pick header.top, body.pick footer, body.pick #results, body.pick main > p.meta { display: none; }
body.pick main.wrap { padding: 8px; max-width: none; }
body.pick #mapview { height: calc(100vh - 70px); }
.pick-pop { display: grid; gap: 6px; } .pick-label { background: #0a130f; color: var(--cream); border: 1px solid var(--gold); border-radius: 4px; padding: 4px 6px; font: inherit; }
/* article editor toolbar + rich article body */
.rt { margin: 4px 0 6px; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #0a130f; border: 1px solid #3a3020; border-radius: 8px 8px 0 0; }
.rt-btn { font: 600 13px inherit; font-family: inherit; color: var(--cream); background: linear-gradient(180deg, #22301f, #121c16); border: 1px solid #4a3d24; border-radius: 5px; padding: 4px 9px; cursor: pointer; }
.rt-btn:hover { border-color: var(--gold); color: var(--gold); }
.rt-sep { width: 1px; background: #3a3020; margin: 0 4px; }
.rt-help summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 4px 2px; }
.rt-help pre { background: #0a130f; border: 1px solid #2c3b2f; border-radius: 6px; padding: 10px; font-size: 13px; white-space: pre-wrap; color: var(--muted); }
.rt-preview { min-height: 300px; background: #0f1914; border: 1px solid #3a3020; border-radius: 0 0 8px 8px; padding: 14px 18px; }
.rt-body h2, .rt-preview h2 { font-family: Georgia, serif; color: var(--gold); font-size: 24px; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #4a3d24; }
.rt-body h3, .rt-preview h3 { font-family: Georgia, serif; color: #f0cf86; font-size: 19px; margin: 20px 0 8px; }
.rt-body blockquote, .rt-preview blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(217,178,109,.07); color: var(--cream); font-style: italic; border-radius: 0 6px 6px 0; }
.rt-body .callout, .rt-preview .callout { margin: 14px 0; padding: 12px 16px 12px 44px; position: relative; border: 1px solid #2d7a24; background: rgba(30,255,0,.05); border-radius: 8px; }
.rt-body .callout::before, .rt-preview .callout::before { content: '💡'; position: absolute; left: 14px; top: 11px; }
.rt-body ul, .rt-body ol, .rt-preview ul, .rt-preview ol { padding-left: 24px; } .rt-body li, .rt-preview li { margin: 4px 0; }
.rt-body hr, .rt-preview hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, #c99a4c, transparent); margin: 24px 0; }
a.whlink { color: #1eff00; border-bottom: 1px dotted; } a.whlink.wh-spell { color: #71d5ff; } a.whlink.wh-npc { color: #ffd100; }
.modal.map-pick { width: min(1200px, 96vw); max-height: 94vh; display: flex; flex-direction: column; }
.map-pick iframe { width: 100%; height: 72vh; border: 1px solid #4a3d24; border-radius: 8px; background: #0a1018; }
/* side art: Alliance on the left, Horde on the right, the page runs down the dark middle */
body { background: #0b130f url(/img/bg-sides.jpg) center top / 1920px auto no-repeat fixed; }
@media (min-width: 1921px) { body { background-size: 100% auto; } }
@media (max-width: 1200px) { body { background-image: none; } }
header.top { background: rgba(8, 14, 11, .92); backdrop-filter: blur(4px); }
footer { background: rgba(8, 14, 11, .85); }
/* comment counter on news cards and articles */
.ccount { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--gold); white-space: nowrap; text-decoration: none !important; }
.ccount.zero { color: var(--muted); opacity: .7; }
.map-how { margin: 16px 0 0; } .map-how summary { cursor: pointer; font: 700 16px Georgia, serif; color: var(--gold); }
.map-how ol { margin: 12px 0; padding-left: 22px; } .map-how li { margin: 5px 0; }
.map-how pre { background: #0a130f; border: 1px solid #2c3b2f; border-radius: 6px; padding: 10px; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.tr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; padding: 8px 12px; border-radius: 8px; font-size: 14px;
  color: var(--muted); background: rgba(79,182,255,.07); border: 1px solid #1f5f99; }
.article-comments { max-width: 820px; margin: 0 auto 40px; padding: 18px 22px; border-radius: 12px; background: rgba(13,23,19,.92); border: 1px solid #2c3b2f; }
/* header must not move between pages: logo + menu pinned to the left, the
   right group (language, account, status, online) grows to the left of its own
   space only; the scrollbar always keeps its place */
html { scrollbar-gutter: stable; }
header.top .brand { margin-left: 0 !important; flex: none; }
header.top nav { margin: 0 auto 0 14px !important; flex: none; }
header.top nav a { flex: none; }
header.top #acct { min-width: 96px; justify-content: center; }
