/* Valkyr: a Wrath of the Lich King / Val'kyr inspired theme. Persian, right to left.
   Artwork is original (tools/make_assets.py); fonts: Vazirmatn and Cinzel (SIL Open Font License, assets/fonts/LICENSES.txt). */

@font-face { font-family: "Vazirmatn"; src: url(assets/fonts/Vazirmatn.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(assets/fonts/Cinzel.ttf) format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #060b16; --bg2: #0a1325; --panel: #0e1a30; --panel2: #132642; --line: #29486f; --line-soft: #1b3252;
  --text: #dde8f6; --muted: #93a8c4; --gold: #e3bf6b; --gold-hi: #fff0bd; --gold-lo: #9a6d1c;
  --ice: #7fd0ff; --ice-lo: #2f6fa8; --good: #5fe0a0; --bad: #ff7b7b; --warn: #ffc15e;
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; background: #060b16; }
body {
  margin: 0; color: var(--text); font: 400 13.3px/1.85 "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  background: radial-gradient(1032px 447.2px at 50% -140px, rgba(63, 133, 207, .28), transparent 70%),
              url(assets/frost.png), linear-gradient(#08111f, #050a14) fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ice); text-decoration: none; transition: color .15s, text-shadow .15s; }
a:hover { color: #c5ecff; text-shadow: 0 0 8.6px rgba(127, 208, 255, .55); }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 800; line-height: 1.5; margin: 0 0 .5em; }
h1 { font-size: 25.8px; color: var(--gold-hi); text-shadow: 0 2px 10.3px rgba(227, 191, 107, .25); margin-top: .3em; }
h1::after { content: ""; display: block; height: 15.5px; margin-top: 3.4px; background: url(assets/divider.png) no-repeat right center / 292.4px 12.9px; }
h2 { font-size: 17.2px; color: var(--gold); margin-top: 1.7em; }
h3 { font-size: 14.6px; color: var(--ice); }
p { margin: .6em 0; }
code, .code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; direction: ltr; unicode-bidi: isolate; }
code { background: #050b17; border: 1px solid var(--line-soft); padding: 2px 6.9px; border-radius: 3.4px; color: #bfe6ff; }
.ltr { direction: ltr; unicode-bidi: isolate; }
b { font-weight: 700; }
.muted { color: var(--muted); } .up { color: var(--good); } .down { color: var(--bad); } .warn { color: var(--warn); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(#0d1b33f2, #08121fee); backdrop-filter: blur(6.9px);
  border-bottom: 1px solid var(--line); box-shadow: 0 5.2px 20.6px rgba(0, 0, 0, .45); }
.top::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent); opacity: .75; }
.bar { max-width: 997.6px; margin: 0 auto; padding: 5.2px 17.2px; display: flex; align-items: center; gap: 8.6px 18.9px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10.3px; color: inherit; }
.brand:hover { text-shadow: none; }
.brand img { width: 63.6px; height: auto; max-height: 44.7px; object-fit: contain; filter: drop-shadow(0 0 8.6px rgba(127, 208, 255, .45)); }
.brand .name { display: block; font: 800 23.2px/1.1 "Cinzel", serif; letter-spacing: .16em; direction: ltr;
  background: linear-gradient(#fff6d0, #e3bf6b 55%, #b98a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tag { display: block; font-size: 9.9px; color: var(--muted); letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.top nav.user { margin-inline-start: auto; }
.top nav a, .top nav button.link { padding: 6px 11.2px; border-radius: 5.2px; color: #c8d8ee; font-weight: 500; position: relative; }
.top nav a:hover, .top nav button.link:hover { background: rgba(127, 208, 255, .09); color: #fff; text-shadow: none; }
.top nav a.on { color: var(--gold-hi); }
.top nav a.on::after { content: ""; position: absolute; inset-inline: 10.3px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.top nav a.cta { background: linear-gradient(#f4dc92, #cf9b30 55%, #9c6d16); color: #2a1a02; font-weight: 800; border: 1px solid #5f410b; }
.top nav a.cta:hover { filter: brightness(1.1); color: #1b1000; }
.navbox, .burger { display: none; }
form.inline { display: inline; }
.subbar { background: rgba(4, 9, 20, .62); border-top: 1px solid var(--line-soft); }
.subbar .bar { padding-block: 2px; gap: 3.4px 13.8px; justify-content: space-between; }
.top .subbar nav a, .top .subbar button.link { padding: 3.4px 11.2px; font-size: 12px; color: #a9c0de; }
.top .subbar nav a.on { color: var(--gold-hi); background: rgba(227, 191, 107, .1); }
.top .subbar nav a.on::after { display: none; }
.top .subbar form { margin-inline-start: auto; }
.top .subbar button.link { all: unset; cursor: pointer; padding: 3.4px 11.2px; font-size: 12px; color: #a9c0de; border-radius: 5.2px; }
.top .subbar button.link:hover { background: rgba(255, 123, 123, .12); color: #ffd0d0; }

/* ---------------------------------------------------------------- hero (home page) */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background: #030814 url(assets/img/nexus3.webp) center 55% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 46% 80% at 24% 60%, rgba(40, 90, 190, .32), transparent 70%),
              linear-gradient(270deg, rgba(2, 6, 16, .9) 0%, rgba(2, 6, 16, .72) 50%, rgba(2, 6, 16, .8) 100%),
              linear-gradient(180deg, rgba(2, 6, 16, .45), rgba(2, 6, 16, 0) 30%, rgba(6, 11, 22, 0) 70%, var(--bg)); }
.hero-inner { position: relative; max-width: 997.6px; margin: 0 auto; padding: 48.2px 17.2px 0; display: grid; grid-template-columns: minmax(0, 1fr) 447.2px; gap: 17.2px; align-items: end; }
.hero-text { text-align: start; max-width: 481.6px; padding-bottom: 82.6px; align-self: center; }
.hero-title { font: 900 clamp(44.7px, 8vw, 82.6px)/1.05 "Cinzel", serif; letter-spacing: .14em; margin: 0; direction: ltr; text-align: right;
  background: linear-gradient(#fffbea, #f2d489 45%, #b98a2b); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3.4px 18.9px rgba(120, 200, 255, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .85)); }
.hero-title::after { display: none; }
.hero-sub { font-size: 25.8px; font-weight: 800; line-height: 1.5; color: #f1f7ff; margin: 12px 0 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.hero-art { margin: 0; position: relative; z-index: 1; filter: drop-shadow(0 6.9px 34.4px rgba(70, 140, 255, .45));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent); }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10.3px; margin-top: 20.6px; }
.hero-status { margin: 15.5px 0 0; color: #bcd2ea; font-size: 12px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 997.6px; margin: 0 auto; padding: 18.9px 17.2px 37.8px; flex: 1; }
footer { text-align: center; padding: 22.4px 13.8px 27.5px; color: var(--muted); font-size: 10.8px; border-top: 1px solid var(--line-soft);
  background: linear-gradient(transparent, rgba(3, 8, 17, .7)); }
footer img { width: 60.2px; height: auto; opacity: .8; display: block; margin: 0 auto 6.9px; }
footer small { display: block; max-width: 619.2px; margin: 5.2px auto 0; opacity: .8; }

/* ---------------------------------------------------------------- panels */
.box { position: relative; margin: 12px 0; padding: 13.8px 17.2px; border: 1px solid var(--line); border-radius: 6.9px;
  background: linear-gradient(180deg, rgba(20, 36, 62, .93), rgba(10, 19, 36, .95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), inset 0 0 34.4px rgba(60, 130, 210, .07), 0 6.9px 18.9px rgba(0, 0, 0, .4); }
.box::before { content: ""; position: absolute; inset: 3px; pointer-events: none; border-radius: 4.3px;
  background:
    linear-gradient(var(--gold), var(--gold)) top right / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) top right / 2px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 2px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 2px 12px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom left / 2px 12px no-repeat;
  opacity: .55; }
.box > :first-child { margin-top: 0; } .box > :last-child { margin-bottom: 0; }
.box h2, .box h3 { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180.6px, 1fr)); gap: 12px; margin: 12px 0; }
.cards .box { margin: 0; text-align: center; padding: 15.5px 10.3px; }
.stat .label { color: var(--muted); font-size: 11.6px; }
.stat .value { font-size: 25.8px; font-weight: 800; color: var(--gold-hi); line-height: 1.4; }
.stat .value.small { font-size: 17.2px; }
.stat .note { color: var(--muted); font-size: 10.8px; }
.dot { display: inline-block; width: 8.6px; height: 8.6px; border-radius: 50%; margin-inline-end: 5.2px; background: var(--bad); box-shadow: 0 0 6.9px var(--bad); }
.dot.on { background: var(--good); box-shadow: 0 0 7.7px var(--good); }

.realmbar { display: flex; flex-wrap: wrap; gap: 6.9px 15.5px; align-items: center; justify-content: center; }
.rates { display: flex; flex-wrap: wrap; gap: 8.6px 22.4px; align-items: baseline; justify-content: center; }
.rates span b { color: var(--gold-hi); font-size: 1.15em; }

/* ---------------------------------------------------------------- forms and buttons */
form.stack, div.stack { display: flex; flex-direction: column; gap: 12px; max-width: 378.4px; }
label { display: flex; flex-direction: column; gap: 3.4px; font-weight: 500; color: #c7d7ee; }
label small { color: var(--muted); font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
label.check input { flex: 0 0 auto; width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--gold, #e8c46c); }
input, textarea, select { font: inherit; padding: 7.7px 10.3px; color: #eaf3ff; background: #050c1a; border: 1px solid #355577; border-radius: 5.2px;
  box-shadow: inset 0 2px 5.2px rgba(0, 0, 0, .5); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--ice); box-shadow: inset 0 2px 5.2px rgba(0, 0, 0, .5), 0 0 0 3px rgba(127, 208, 255, .22); }
input.ltr, input[type=email], input[type=password], input[name=username], input[name=captcha], input[name=code] { direction: ltr; text-align: left; }
input::placeholder { color: #5b7192; direction: ltr; }
textarea { min-height: 129px; }
button, .btn, a.button {
  display: inline-block; font: 700 12.9px "Vazirmatn", sans-serif; padding: 7.7px 20.6px; cursor: pointer; align-self: flex-start; text-align: center; text-decoration: none;
  color: #2a1a02; border: 1px solid #5f410b; border-radius: 5.2px; text-shadow: 0 1px 0 rgba(255, 240, 189, .6);
  background: linear-gradient(#f6e09a, #d3a13a 52%, #a3721a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 8.6px rgba(0, 0, 0, .45); transition: filter .15s, transform .08s; }
button:hover, .btn:hover, a.button:hover { filter: brightness(1.12); color: #1b1000; text-shadow: 0 1px 0 rgba(255, 240, 189, .6); }
button:active, .btn:active, a.button:active { transform: translateY(1px); }
.btn.ghost { background: linear-gradient(rgba(127, 208, 255, .16), rgba(127, 208, 255, .06)); color: #d8f1ff; border-color: #4a7fae; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn.ghost:hover { color: #fff; text-shadow: none; }
.btn.big { font-size: 14.6px; padding: 10.3px 27.5px; }
button.danger { background: linear-gradient(#e87a6e, #b03a30 55%, #7c1d17); color: #fff; border-color: #4d0f0b; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
button.danger:hover { color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.top nav button.link { all: unset; cursor: pointer; color: #c8d8ee; padding: 6px 11.2px; border-radius: 5.2px; }
.top nav button.link:hover { background: rgba(127, 208, 255, .09); color: #fff; }
.auth { max-width: 412.8px; margin: 8.6px auto; }
.narrow { max-width: 481.6px; }
.auth img.emblem { display: block; width: 111.8px; height: auto; margin: 0 auto 5.2px; filter: drop-shadow(0 0 12px rgba(127, 208, 255, .45)); }
.auth h1 { text-align: center; } .auth h1::after { margin-inline: auto; background-position: center; }
.auth form.stack { max-width: none; }
.auth p { text-align: center; }
/* Hidden trap field for bots. Not moved off-screen: in a right-to-left page that would add a huge scroll area. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.captcha { display: flex; flex-direction: column; gap: 4.3px; }
.captcha img { border-radius: 5.2px; cursor: pointer; align-self: flex-start; border: 1px solid #355577; background: #e8e8e2; }
.captcha span { font-size: 10.8px; }

/* ---------------------------------------------------------------- messages */
.flash { padding: 9.5px 13.8px; border-radius: 5.2px; margin: 10.3px 0; border: 1px solid; border-inline-start-width: 4.3px; }
.flash.ok { background: rgba(30, 110, 70, .28); border-color: #2a8a5a; color: #c9f5de; }
.flash.error { background: rgba(140, 40, 40, .3); border-color: #b24a4a; color: #ffd6d6; }
ul.errors { list-style: none; margin: 10.3px 0; padding: 9.5px 13.8px; border-radius: 5.2px; background: rgba(140, 40, 40, .3); border: 1px solid #b24a4a; border-inline-start-width: 4.3px; color: #ffd6d6; }
ul.errors li + li { margin-top: 3.4px; }
.code { display: inline-block; font-size: 18.9px; font-weight: 700; letter-spacing: 2px; color: var(--gold-hi); background: #050c1a; padding: 8.6px 15.5px; border: 1px dashed var(--gold); border-radius: 5.2px; user-select: all; }

/* ---------------------------------------------------------------- tables */
.table { overflow-x: auto; margin: 8.6px 0; border: 1px solid var(--line-soft); border-radius: 6.9px; background: rgba(8, 16, 31, .72); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 7.7px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { color: var(--gold); font-weight: 700; background: rgba(41, 72, 111, .22); white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
table tr:hover td { background: rgba(127, 208, 255, .045); }
.table.kv th { width: 34%; background: transparent; color: var(--muted); font-weight: 500; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 24.1px; height: 24.1px; border-radius: 50%; font-weight: 800; font-size: 11.2px; background: #14263f; border: 1px solid var(--line); color: var(--muted); }
.rank.r1 { background: linear-gradient(#fff0bd, #c9962c); color: #3a2503; border-color: #8d6418; box-shadow: 0 0 8.6px rgba(227, 191, 107, .5); }
.rank.r2 { background: linear-gradient(#f4f7fb, #9aa7b8); color: #1d2634; border-color: #6d7889; }
.rank.r3 { background: linear-gradient(#f0c9a0, #a8693a); color: #2e1707; border-color: #7a4620; }

/* ---------------------------------------------------------------- game things */
.fac { display: inline-block; width: 13.8px; height: 16.3px; vertical-align: -4px; background-size: contain; background-repeat: no-repeat; margin-inline-end: 3.4px; }
.fac-a { background-image: url(assets/faction-alliance.png); } .fac-h { background-image: url(assets/faction-horde.png); }
.coin-g { color: #ffd45a; } .coin-s { color: #d4dbe6; } .coin-c { color: #e0955a; }
.class-1 { color: #c79c6e; } .class-2 { color: #f58cba; } .class-3 { color: #abd473; } .class-4 { color: #fff569; }
.class-5 { color: #fff; } .class-6 { color: #e5405c; } .class-7 { color: #4f9bff; } .class-8 { color: #69ccf0; }
.class-9 { color: #a899e0; } .class-11 { color: #ff7d0a; }
.q-poor { color: #9d9d9d; } .q-common { color: #fff; } .q-uncommon { color: #1eff00; } .q-rare { color: #4d96ff; }
.q-epic { color: #c070ff; } .q-legendary { color: #ff8000; } .q-artifact, .q-heirloom { color: #e6cc80; }
.picker { display: flex; flex-wrap: wrap; gap: 6.9px; margin: 10.3px 0; }
.picker a { padding: 6px 13.8px; border: 1px solid var(--line); border-radius: 859.1px; background: rgba(14, 26, 48, .8); color: #cfe3fb; }
.picker a:hover { border-color: var(--ice); text-shadow: none; }
.picker a.on { background: linear-gradient(#f4dc92, #cf9b30 55%, #9c6d16); border-color: #5f410b; color: #2a1a02; font-weight: 700; }
.charhead { display: flex; flex-wrap: wrap; gap: 5.2px 15.5px; align-items: center; }
.charhead strong { font-size: 16.3px; }

.service { border-inline-start: 3.4px solid var(--line); }
.service.s-ready { border-inline-start-color: var(--ice); }
.service.s-waiting { border-inline-start-color: var(--good); }
.service.s-cooldown { border-inline-start-color: var(--warn); }
.service.s-blocked, .service.s-online { border-inline-start-color: var(--bad); }
.service .title { font-size: 15.5px; font-weight: 800; color: var(--gold-hi); }
.service .state { margin: 6.9px 0 0; }

.product { display: flex; gap: 17.2px; align-items: flex-start; flex-wrap: wrap; }
.product .icon { flex: 0 0 auto; width: 61.9px; height: 61.9px; }
.product .info { flex: 1 1 275.2px; }
.product h3 { margin: 0; font-size: 17.2px; }
.price { display: inline-block; padding: 2px 12px; border-radius: 859.1px; background: rgba(95, 224, 160, .14); border: 1px solid #2a8a5a; color: var(--good); font-weight: 800; }

.news-body { white-space: pre-line; }
.news-item h3 { margin: 0; color: var(--gold-hi); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0; }
.steps li { counter-increment: step; position: relative; padding: 3.4px 48.2px 12px 0; min-height: 37.8px; }
.steps li::before { content: counter(step, persian); position: absolute; right: 0; top: 0; width: 32.7px; height: 32.7px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 800; color: #2a1a02; background: linear-gradient(#f6e09a, #c9962c); border: 1px solid #5f410b; box-shadow: 0 0 10.3px rgba(227, 191, 107, .35); }
.actions { display: flex; flex-wrap: wrap; gap: 8.6px 12px; margin: 10.3px 0; }
.actions a { white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 12px; }

/* ---------------------------------------------------------------- photographs and paintings */
.plate { margin: 0; padding: 6px; border-radius: 8.6px; border: 1px solid var(--gold-lo);
  background: linear-gradient(#3a280a, #150e03);
  box-shadow: 0 0 0 1px #000, 0 12px 32.7px rgba(0, 0, 0, .65), 0 0 29.2px rgba(227, 191, 107, .16); }
.plate img { display: block; width: 100%; height: auto; border-radius: 4.3px; }
.plate figcaption { font-size: 10.8px; color: var(--muted); }
/* museum photos of steel are shown in the site's icy blue: the picture keeps its light and shade, the colour comes from the panel */
.steel { background: #1d4a78; }
.plate.steel { background: linear-gradient(#27547f, #0e2240); padding: 6px; border-color: #6e94bd; box-shadow: 0 0 0 1px #000, 0 12px 32.7px rgba(0, 0, 0, .65), 0 0 29.2px rgba(127, 208, 255, .2); }
.steel img { mix-blend-mode: luminosity; }

.poster { margin: 0; overflow: hidden; border-radius: 8.6px; border: 1px solid var(--gold-lo); background: #02050d;
  box-shadow: 0 0 0 1px #000, 0 12px 32.7px rgba(0, 0, 0, .65), 0 0 34.4px rgba(60, 140, 255, .3); }
.poster img { display: block; width: 100%; height: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(177.2px, 1fr)); gap: 13.8px; margin: 18.9px 0 6.9px; }
a.tile { display: block; color: inherit; border: 1px solid var(--line); border-radius: 8.6px; overflow: hidden;
  background: linear-gradient(#112240, #0a1425); box-shadow: 0 6.9px 20.6px rgba(0, 0, 0, .45); transition: transform .2s, border-color .2s, box-shadow .2s; }
a.tile:hover { transform: translateY(-4px); border-color: var(--gold); text-shadow: none; box-shadow: 0 12px 27.5px rgba(0, 0, 0, .6), 0 0 18.9px rgba(227, 191, 107, .22); }
a.tile .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #0a1425; }
a.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
a.tile:hover .ph img { transform: scale(1.07); }
a.tile .ph.scene { background: #0a1425 center / cover no-repeat; transition: transform .6s; }
a.tile:hover .ph.scene { transform: scale(1.06); }
a.tile .ph.sc-gameplay1 { background-image: url(assets/img/gameplay1.webp); }
a.tile .ph.sc-wyrmrest { background-image: url(assets/img/wyrmrest.webp); }
a.tile .ph.sc-wintergrasp { background-image: url(assets/img/wintergrasp.webp); }
a.tile .ph.sc-shadowguard { background-image: url(assets/img/shadowguard.webp); background-position: center 24%; }
a.tile .ph.sc-sunborne { background-image: url(assets/img/sunborne.webp); background-position: center 30%; }
a.tile .cap { padding: 10.3px 12.9px 12.9px; border-top: 1px solid var(--gold-lo); }
a.tile .cap b { display: block; color: var(--gold-hi); font-size: 14.6px; }
a.tile .cap span { display: block; color: var(--muted); font-size: 11.2px; line-height: 1.7; }

/* a photo strip under the menu on inner pages; the page title sits on its lower, faded part */
.banner { position: relative; height: 232.2px; background-color: #08111f; background-repeat: no-repeat; border-bottom: 1px solid var(--line-soft); }
.banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, .42) 0%, rgba(5, 10, 20, .62) 50%, var(--bg) 100%); }
.banner { background-image: var(--bn); background-size: cover; background-position: center 40%; }
.bn-nexus1 { --bn: url(assets/img/nexus1.webp); } .bn-nexus2 { --bn: url(assets/img/nexus2.webp); } .bn-nexus3 { --bn: url(assets/img/nexus3.webp); }
.bn-wyrmrest { --bn: url(assets/img/wyrmrest.webp); } .bn-wintergrasp { --bn: url(assets/img/wintergrasp.webp); } .bn-gameplay1 { --bn: url(assets/img/gameplay1.webp); }
.wrap.lifted { position: relative; margin-top: -150px; }
.wrap.lifted > h1:first-child, .wrap.lifted > .flash + h1 { text-shadow: 0 3px 13.8px rgba(0, 0, 0, .95), 0 0 25.8px rgba(0, 0, 0, .7); }

.authwrap { display: grid; grid-template-columns: minmax(0, 249.4px) minmax(0, 412.8px); gap: 24.1px; justify-content: center; align-items: start; margin: 6.9px 0; }
.authwrap .box.auth { margin: 0; }
.authwrap .poster { position: sticky; top: 86px; }
.armoryhead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18.9px; align-items: start; }
.armoryhead .box { margin: 0; }
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(283.8px, 1fr)); gap: 13.8px; margin-top: 12px; }
.credit { display: flex; flex-direction: column; gap: 8.6px; margin: 0; }
.credit img { width: 100%; height: 163.4px; object-fit: cover; border-radius: 5.2px; border: 1px solid var(--line); }
.credit figcaption { font-size: 11.6px; line-height: 1.85; color: #c7d7ee; }
.credit figcaption b { color: var(--gold-hi); font-size: 12.9px; }

/* ---------------------------------------------------------------- the Armory: the in-game character panel and item tooltips */
.paperdoll { display: grid; grid-template-columns: 60.2px minmax(0, 1fr) 60.2px; grid-template-areas: "l m r" "b b b"; gap: 15.5px 20.6px;
  max-width: 653.6px; margin: 17.2px auto 22.4px; padding: 22.4px 20.6px 18.9px; border-radius: 5.2px; border: 2px solid #7a5c2a;
  background: radial-gradient(ellipse at 50% 30%, #2a1f12, #120d07 70%), #120d07;
  box-shadow: inset 0 0 0 2px #1d1409, inset 0 0 0 3.4px #4a3818, 0 13.8px 34.4px rgba(0, 0, 0, .7); direction: ltr; unicode-bidi: isolate; }
.pd-col { display: flex; flex-direction: column; gap: 8.6px; }
.pd-left { grid-area: l; } .pd-right { grid-area: r; } .pd-bottom { grid-area: b; display: flex; justify-content: center; gap: 22.4px; padding-top: 5.2px; }
.pd-mid { grid-area: m; position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4px; min-height: 283.8px; }
.pd-crest { position: absolute; inset: 8% 6% auto; height: 70%; opacity: .1; background: no-repeat center / contain; pointer-events: none; }
.pd-crest.fa { background-image: url(assets/faction-alliance.png); } .pd-crest.fh { background-image: url(assets/faction-horde.png); }
.pd-name { font: 700 22.4px/1.2 "Cinzel", "Vazirmatn", serif; position: relative; text-shadow: 0 2px 6.9px #000; }
.pd-sub { position: relative; font-size: 12px; color: #e6e0d0; }
.gs { position: relative; margin-top: 15.5px; padding: 6.9px 22.4px 5.2px; border: 1px solid #6b5226; border-radius: 5.2px; background: rgba(0, 0, 0, .45); }
.gs-label { font: 700 9.5px/1 "Cinzel", serif; letter-spacing: .22em; color: #c8b078; text-transform: uppercase; }
.gs-num { font: 800 32.7px/1.25 "Cinzel", serif; text-shadow: 0 0 12px currentColor; }
.pd-ilvl { position: relative; font-size: 11.2px; color: #cfc6ac; margin-top: 3.4px; } .pd-ilvl b { color: #ffd100; }

.slot { position: relative; width: 55px; height: 55px; border-radius: 3.4px; background: #0a0a10; border: 2px solid #3d3d4a; flex: 0 0 auto; }
.slot .ic { display: block; width: 100%; height: 100%; border-radius: 2px; object-fit: cover; }
.slot:hover, .slot:focus { outline: 0; border-color: #ffd100 !important; box-shadow: 0 0 0 1px #000, 0 0 12px rgba(255, 209, 0, .55); z-index: 30; }
.slot.b0 { border-color: #9d9d9d; } .slot.b1 { border-color: #ffffff; } .slot.b2 { border-color: #1eff00; box-shadow: 0 0 7.7px rgba(30, 255, 0, .35); }
.slot.b3 { border-color: #0070dd; box-shadow: 0 0 7.7px rgba(0, 112, 221, .5); } .slot.b4 { border-color: #a335ee; box-shadow: 0 0 8.6px rgba(163, 53, 238, .5); }
.slot.b5 { border-color: #ff8000; box-shadow: 0 0 8.6px rgba(255, 128, 0, .5); } .slot.b6, .slot.b7 { border-color: #e6cc80; box-shadow: 0 0 8.6px rgba(230, 204, 128, .45); }
.slot.empty { background: radial-gradient(#171722, #0a0a10); border-style: dashed; border-color: #34343f; display: flex; align-items: center; justify-content: center; }
.slot.empty .sl { font: 8.6px/1.2 Arial, sans-serif; color: #6d675a; text-align: center; padding: 2px; }
.slot .gems { position: absolute; right: 2px; bottom: 2px; display: flex; gap: 1px; }
.slot .gems .ic { width: 12px; height: 12px; border: 1px solid #000; border-radius: 3px; }

.tt-src { display: none; position: absolute; top: -8px; z-index: 90; min-width: 215px; max-width: 301px; padding: 7.7px 9.5px; text-align: left; pointer-events: none;
  border: 1px solid #6a6a8a; border-radius: 4.3px; background: linear-gradient(rgba(14, 14, 38, .98), rgba(5, 5, 16, .98)); box-shadow: 0 8.6px 29.2px #000, 0 0 0 1px #000;
  font: 11.2px/1.42 "Segoe UI", Arial, Helvetica, sans-serif; color: #fff; white-space: normal; }
.pd-left .tt-src { left: calc(100% + 10.3px); } .pd-right .tt-src { right: calc(100% + 10.3px); } .pd-bottom .tt-src { left: 50%; transform: translateX(-50%); top: auto; bottom: calc(100% + 10.3px); }
.slot.up .tt-src { top: auto; bottom: -8px; }
.slot:hover > .tt-src, .slot:focus > .tt-src { display: block; }
.tt-name { font-size: 12.9px; font-weight: 700; line-height: 1.3; }
.tt .q0 { color: #9d9d9d; } .tt .q1 { color: #fff; } .tt .q2 { color: #1eff00; } .tt .q3 { color: #0070dd; } .tt .q4 { color: #a335ee; }
.tt .q5 { color: #ff8000; } .tt .q6, .tt .q7 { color: #e6cc80; }
.tt-two { display: flex; justify-content: space-between; gap: 22.4px; }
.tt-g { color: #1eff00; } .tt-gr { color: #8d8d8d; } .tt-y { color: #ffd100; } .tt-gap { height: 6.9px; }
.tt-set-on { color: #ffff98; padding-inline-start: 8.6px; } .tt-set .tt-gr { padding-inline-start: 8.6px; }
.tt-sock { display: flex; align-items: center; gap: 5.2px; } .tt-sock .ic { width: 13.8px; height: 13.8px; border: 1px solid #555; }
.tt-sock.empty { color: #9a9a9a; } .pip { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #aaa; }
.pip.s1 { background: #8f4fcf; } .pip.s2 { background: #e0443f; } .pip.s4 { background: #e3d241; } .pip.s8 { background: #4274e6; }
.tt-sell { margin-top: 3.4px; }
.tt .coin-g { color: #ffd45a; } .tt .coin-s { color: #d4dbe6; } .tt .coin-c { color: #e0955a; }
.tt .coin-g::after { content: "g"; } .tt .coin-s::after { content: "s"; } .tt .coin-c::after { content: "c"; }

/* ---------------------------------------------------------------- compact scale (more content per screen) */
body { font-size: 14px; line-height: 1.75; }
h1 { font-size: 24px; } h2 { font-size: 17px; margin-top: 1.4em; } h3 { font-size: 15px; }
.wrap { padding: 16px 18px 34px; }
.box { padding: 12px 16px; margin: 11px 0; }
.hero-inner { padding: 40px 18px 0; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; }
.hero-text { padding-bottom: 70px; }
.hero-title { font-size: clamp(40px, 6.5vw, 70px); }
.hero-sub { font-size: 25px; }
.banner { height: 138px; } .wrap.lifted { margin-top: -72px; }
a.tile .ph { aspect-ratio: 16 / 10; }
.tiles { margin: 16px 0 6px; gap: 12px; }
.cards { gap: 10px; }

/* the Armory: a smaller in-game character panel */
.paperdoll { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px 14px; max-width: 460px; margin: 8px auto 14px; padding: 12px 12px 10px; }
.pd-col { gap: 5px; }
.slot { width: 42px; height: 42px; border-width: 2px; }
.slot .gems .ic { width: 10px; height: 10px; }
.pd-mid { min-height: 0; gap: 2px; }
.pd-name { font-size: 18px; }
.pd-sub { font-size: 12.5px; }
.gs { margin-top: 10px; padding: 5px 18px 3px; }
.gs-label { font-size: 9.5px; }
.gs-num { font-size: 26px; }
.pd-ilvl { font-size: 12px; }
.pd-bottom { gap: 14px; padding-top: 2px; }
.tt-src { min-width: 230px; max-width: 320px; padding: 7px 9px; font-size: 12px; line-height: 1.38; }
.tt-name { font-size: 13.5px; }
.slot.empty .sl { font-size: 8.5px; }
.charhead { gap: 4px 14px; } .charhead strong { font-size: 16px; }
.stat .value { font-size: 22px; } .stat .value.small { font-size: 16px; }
.cards .box { padding: 12px 10px; }

.cards.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.cards.compact .box { padding: 5px 8px; }
.cards.compact .stat .label { font-size: 11px; } .cards.compact .stat .value { font-size: 17px; line-height: 1.35; }
.charhead.box { padding: 8px 14px; }

/* ---------------------------------------------------------------- shop: compact catalog and cart */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; margin-top: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
  background: linear-gradient(180deg, rgba(20, 36, 62, .9), rgba(10, 19, 36, .94)); transition: border-color .15s; }
.pcard:hover { border-color: #5b86b5; }
.phead { display: flex; gap: 10px; align-items: center; }
.phead h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.pmeta { margin: 0; font-size: 11px; color: var(--muted); }
.pdesc { margin: 0; font-size: 12px; line-height: 1.7; color: #b4c4dc; min-height: 3.4em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.pfoot { display: flex; align-items: center; gap: 7px; margin-top: auto; flex-wrap: wrap; }
.pfoot .price { padding: 0 9px; font-size: 11.5px; }
.pfoot .small { margin-inline-start: auto; }
.incart { font-size: 11.5px; color: var(--ice); } .incart[hidden] { display: none; }
button.small, .btn.small { font-size: 12px; padding: 4px 12px; }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
button:disabled:hover { filter: grayscale(.4); transform: none; }
.slot.sm { width: 44px; height: 44px; }
.slot .count-badge { position: absolute; right: 2px; bottom: 0; font: 700 12px/1.1 Arial, sans-serif; color: #fff; direction: ltr; pointer-events: none;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
.ppack { margin: 0; font-size: 11.5px; color: #ffd100; }
.cart-lines .nm small.pack { color: #ffd100; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 9px; }
.tab { padding: 4px 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(20, 36, 62, .7); color: #b4c4dc; font-size: 13px; }
.tab small { color: var(--muted); font-size: 11px; margin-inline-start: 4px; }
.tab:hover { border-color: #5b86b5; color: #fff; text-decoration: none; }
.tab.on { border-color: var(--gold); color: var(--gold); background: rgba(70, 52, 12, .55); }
.gdesc { margin: 0 0 9px; font-size: 12.5px; line-height: 1.8; color: #b4c4dc; }
.psearch { display: flex; gap: 6px; max-width: 420px; margin: 0 0 9px; }
.psearch input[type=search] { flex: 1; min-width: 0; padding: 5px 10px; font-size: 13px; }
.tag { display: inline-block; padding: 0 6px; border: 1px solid; border-radius: 3px; font-size: 10.5px; font-weight: 700; direction: ltr; }
.tag.side-alliance { color: #6ea8ff; border-color: #2d5a9c; } .tag.side-horde { color: #ff7b6e; border-color: #8c2a22; }
.cartbox { position: sticky; top: 10px; margin: 0; }
.cartbox h2 { font-size: 15px; margin: 0 0 8px; } .cartbox .count { color: var(--gold); }
.cart-lines { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cart-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.cart-lines .nm { display: flex; flex-direction: column; font-size: 12.5px; min-width: 0; } .cart-lines .nm small { font-size: 10.5px; }
.cart-lines .qty { display: flex; align-items: center; gap: 5px; } .cart-lines .qty b { min-width: 1.4em; text-align: center; }
button.mini { padding: 0 8px; font-size: 14px; line-height: 22px; min-width: 24px; }
button.mini.x { background: linear-gradient(#e87a6e, #b03a30 55%, #7c1d17); color: #fff; border-color: #4d0f0b; text-shadow: none; }
.cartbox label { margin: 6px 0; font-size: 12px; } .cartbox select { padding: 5px 8px; font-size: 12px; }
.cartbox .wide { width: 100%; align-self: stretch; margin-top: 4px; }
.cartbox .note { font-size: 11px; margin: 6px 0 0; }
.orders { margin: 16px 0; } .orders summary { cursor: pointer; color: var(--gold); font-weight: 700; padding: 4px 0; }
.cartbar { display: none; } .cartbar[hidden] { display: none !important; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 12px); max-width: 90vw; padding: 8px 16px; border-radius: 6px; font-size: 12.5px;
  background: #12361f; border: 1px solid #2a8a5a; color: #c9f5de; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { background: #471c1c; border-color: #b24a4a; color: #ffd6d6; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .burger { display: block; margin-inline-start: auto; padding: 5.2px 12px; border: 1px solid var(--line); border-radius: 5.2px; cursor: pointer; font-size: 17.2px; line-height: 1.2; color: var(--gold); }
  .top nav.main, .top nav.user { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 3.4px 0 6.9px; }
  .navbox:checked ~ nav.main, .navbox:checked ~ nav.user { display: flex; }
  .top nav.main a, .top nav.user a { padding: 9.5px 10.3px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .subbar .bar { padding-inline: 8.6px; }
  h1 { font-size: 21.5px; } .hero-sub { font-size: 20.6px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 31px; gap: 6.9px; }
  .hero-text { padding-bottom: 0; }
  .hero-art { width: 258px; margin-inline: auto; }
  .hero-title { text-align: center; } .hero-text { text-align: center; max-width: none; } .hero-actions { justify-content: center; }
  .banner { height: 172px; } .wrap.lifted { margin-top: -110px; }
  .paperdoll { grid-template-columns: 49.9px minmax(0, 1fr) 49.9px; gap: 12px 8.6px; padding: 13.8px 8.6px; }
  .slot { width: 48.2px; height: 48.2px; } .pd-name { font-size: 17.2px; } .gs-num { font-size: 25.8px; }
  .cards.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authwrap, .armoryhead { grid-template-columns: 1fr; } .authwrap .poster { display: none; } .armoryhead .plate { width: 154.8px; margin-inline: auto; }
  .brand .tag { display: none; } .brand img { width: 51.6px; height: 32.7px; } .brand .name { font-size: 19.8px; }
  .wrap { padding-inline: 12px; } .box { padding: 12px; }
  .steps li { padding-right: 43px; }
  .shop { grid-template-columns: 1fr; } .cartbox { position: static; }
  .cartbar { display: block; position: fixed; bottom: 12px; inset-inline: 12px; z-index: 50; padding: 10px; text-align: center; font-weight: 700; border-radius: 8px;
    color: #2a1a02; border: 1px solid #5f410b; background: linear-gradient(#f6e09a, #d3a13a 52%, #a3721a); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
  .cartbar:hover { color: #1b1000; }
  .toast { bottom: 72px; }
}
