/* WoW Onchain: the World of Warcraft 1.12 interface, rebuilt for the web from original CSS/SVG,
   OFL fonts and CC0 textures. Nothing here comes from the game client.
   Type: Della Respira (Friz Quadrata's role), Grenze Gotisch (Morpheus' role), Cinzel Decorative
   (wordmark), Brygada 1918 (numerals). */

@font-face { font-family: "Della Respira"; src: url("/fonts/della-respira-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("/fonts/grenze-gotisch-600-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Grenze Gotisch"; src: url("/fonts/grenze-gotisch-800-normal.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("/fonts/cinzel-decorative-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Brygada 1918"; src: url("/fonts/brygada-1918-VF-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* Della Respira's figures are old-style (its 1 reads as I): lining digits come from Brygada. */
@font-face { font-family: "WOC Digits"; src: url("/fonts/brygada-1918-VF-wght-normal.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+0030-0039; font-display: swap; }

:root {
  --gold: #ffd100;          /* GameFontNormal */
  --gold-2: #e8b94a;
  --white: #ffffff;
  --text: #ece4d0;
  --muted: #a99d84;
  --grey: #9d9d9d;
  --green: #1eff00;
  --red: #ff2020;
  --orange-ui: #ff7f00;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee; --q5: #ff8000; --q6: #e6cc80;
  --q3-on-dark: #3e9bff;
  --ink: #2b1a0d;           /* QuestFont on parchment */
  --ink-2: #4a321a;
  --ink-red: #7a1a08;
  --mith: #cfe2f0;
  --mith-2: #8fb3cc;
  --stone: #17130f;
  --f-ui: "WOC Digits", "Della Respira", Georgia, serif;
  --f-title: "Grenze Gotisch", "Della Respira", Georgia, serif;
  --f-mark: "Cinzel Decorative", "Grenze Gotisch", Georgia, serif;
  --f-num: "Brygada 1918", Georgia, serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --outline: 0 1px 1px #000, 0 0 2px #000;
  --bar-h: 0px;
  color-scheme: dark;
  accent-color: var(--gold);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0b0907; scrollbar-color: #7a6030 #0e0b08; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: var(--text); font: 17px/1.55 var(--f-ui);
  background: #0b0907 url("/img/stone.webp") 0 0 / 512px;
  padding-bottom: var(--bar-h);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 20%, transparent 30%, rgba(0,0,0,.65) 100%); }
img { max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
::selection { background: rgba(255, 209, 0, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0 0 .8em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: #000; color: var(--gold); padding: 8px 14px; }
.skip:focus { top: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3-on-dark); } .q4 { color: var(--q4); } .q5 { color: var(--q5); } .q6 { color: var(--q6); }
.gold { color: var(--gold); } .white { color: #fff; } .green { color: var(--green); } .red { color: var(--red); } .grey { color: var(--grey); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.outline { text-shadow: var(--outline); }

/* ------------------------------------------------------------ icons (game-icons.net, masked) */
.gi { display: inline-block; width: 1em; height: 1em; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.coin { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-left: .22em;
  background: url("/img/mithril/coin-64.png") center / contain no-repeat; filter: drop-shadow(0 1px 0 #000); }
.money { white-space: nowrap; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.money .amt { color: #fff; }

/* ------------------------------------------------------------ top bar: the main menu bar */
.topbar { position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(36,29,22,.97), rgba(13,10,8,.97)), url("/img/stone.webp") 0 0 / 512px;
  border-bottom: 1px solid #000; box-shadow: 0 1px 0 #6b5426, 0 2px 0 #000, 0 8px 20px rgba(0,0,0,.6); }
.topbar-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 4px 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-coin { width: 34px; height: 34px; filter: drop-shadow(0 2px 2px #000); }
.brand-text { display: flex; flex-direction: column; line-height: .9; }
.brand-wow { font: 900 25px/1 var(--f-mark); letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6c8 0%, #ffd34d 40%, #c98a1c 70%, #8a560f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 1px #000); }
.brand-on { font: 900 13px/1 var(--f-mark); letter-spacing: .16em; text-transform: uppercase; color: var(--mith); text-shadow: var(--outline); margin-top: 3px; }

.actionbar { margin: 0 auto; display: flex; align-items: flex-end; gap: 4px; padding: 5px 4px 3px; position: relative;
  background: linear-gradient(180deg, #2b241c, #15110d); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 1px 0 #6a5638, inset 0 -1px 0 #000, 0 0 0 1px #3d3122; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 0 10px; min-width: 76px; }
.slot-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 3px; border: 2px solid #000;
  box-shadow: inset 0 0 0 1px rgba(255,235,180,.35), inset 0 -8px 12px rgba(0,0,0,.55), 0 0 0 1px #4a3c28;
  transition: box-shadow .12s; }
.s-home .slot-ico { background: radial-gradient(circle at 35% 30%, #b8863a, #5a3810 70%, #2a1806); }
.s-play .slot-ico { background: radial-gradient(circle at 35% 30%, #a77ce0, #4a2482 65%, #1c0b38); }
.s-ah .slot-ico { background: radial-gradient(circle at 35% 30%, #7cc04a, #2f5d18 65%, #12260a); }
.s-docs .slot-ico { background: radial-gradient(circle at 35% 30%, #6aa6d8, #234d7a 65%, #0c1f36); }
.slot-ico .gi { width: 30px; height: 30px; color: #fbf0cc; filter: drop-shadow(0 1px 1px #000); }
.hk { position: absolute; top: 1px; left: calc(50% - 20px); font: 600 11px/1 var(--f-num); color: #e6e6e6; text-shadow: var(--outline); }
.slot-l { font-size: 13.5px; color: var(--gold); margin-top: 2px; white-space: nowrap; text-shadow: var(--outline); }
.slot:hover .slot-ico, .slot:focus-visible .slot-ico { box-shadow: inset 0 0 0 1px rgba(255,235,180,.6), inset 0 0 14px rgba(255,209,0,.75), 0 0 0 1px #4a3c28; }
.slot:hover .slot-l { color: #fff; }
.slot[aria-current="page"] .slot-ico { border-color: #ffd100; box-shadow: inset 0 0 10px rgba(255,209,0,.55), 0 0 6px rgba(255,209,0,.6); }
.slot:active .slot-ico { transform: translateY(1px); filter: brightness(.85); }
.gryphon { width: 50px; height: 50px; align-self: center; flex: none;
  background: linear-gradient(180deg, #fff1b0, #d9a63a 45%, #7a4f12);
  -webkit-mask: url("/icons/griffin-symbol.svg") center / contain no-repeat; mask: url("/icons/griffin-symbol.svg") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 #000); }
.gryphon.left { transform: scaleX(-1); }

.buffs { display: flex; gap: 8px; flex: none; }
.buff { position: relative; display: flex; flex-direction: column; align-items: center; cursor: help; }
.buff-ico { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #000; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 1px #3a2f20; }
.buff-ico .gi { width: 20px; height: 20px; color: #fff4d0; filter: drop-shadow(0 1px 0 #000); }
.buff-l { font-size: 11.5px; color: var(--gold); text-shadow: var(--outline); margin-top: 1px; white-space: nowrap; }
.buff.pre .buff-ico { background: radial-gradient(circle at 35% 30%, #7fb0d0, #24506e 70%); }
.buff.dev .buff-ico { background: radial-gradient(circle at 35% 30%, #d07fd0, #5e2a70 70%); }
.buff.sample .buff-ico { background: radial-gradient(circle at 35% 30%, #e06a5a, #6e1a12 70%); }
.buff.live .buff-ico { background: radial-gradient(circle at 35% 30%, #8ae06a, #2a6e1a 70%); }

/* UIErrorsFrame: one centred line under the bar that fades */
.sysmsg { position: absolute; top: 88px; left: 0; right: 0; z-index: 55; text-align: center; pointer-events: none; padding: 0 16px;
  font-size: 18px; color: var(--gold); text-shadow: 0 1px 1px #000, 0 0 3px #000, 0 0 8px #000; transition: opacity 1.2s; }
.sysmsg.err { color: var(--red); }
.sysmsg.fade { opacity: 0; }

/* ------------------------------------------------------------ frames (UI-DialogBox) */
.frame { position: relative; isolation: isolate; color: var(--text);
  border: 20px solid transparent; border-image: url("/img/frame-silver.svg") 20 stretch; padding: 6px 8px 8px; }
.frame::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 2px;
  background: linear-gradient(rgba(6,5,4,.80), rgba(6,5,4,.90)), url("/img/stone.webp") 0 0 / 512px; }
.frame.gold { border-image-source: url("/img/frame-gold.svg"); }
.frame:has(> .frame-title) { margin-top: 30px; padding-top: 22px; }
.frame-title { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); z-index: 2;
  height: 44px; padding: 0 6px; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  border-style: solid; border-color: transparent; border-width: 0 30px; border-image: url("/img/header.svg") 0 30 fill / 0 30px stretch; }
.frame-title > span, .frame-title > h2 { font: 400 17px/1 var(--f-ui); color: var(--gold); text-shadow: var(--outline); padding: 0 4px; }
.inset { background: rgba(0,0,0,.45); border: 1px solid #000; box-shadow: inset 0 0 0 1px #3d3428, inset 0 2px 8px rgba(0,0,0,.8); border-radius: 2px; }
.section { margin: 64px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.8); }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.kicker { font: 400 14px var(--f-ui); color: var(--gold-2); letter-spacing: .06em; margin: 0 0 6px; text-shadow: var(--outline); }
.display { font: 800 clamp(38px, 6vw, 72px)/1 var(--f-title); color: #fff; text-shadow: 0 3px 0 #000, 0 0 24px rgba(0,0,0,.8); }
.lede { font-size: 19px; color: #f1e8d2; max-width: 62ch; text-shadow: var(--outline); }

/* ------------------------------------------------------------ buttons (UI-Panel-Button) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; cursor: pointer;
  font: 400 15.5px/1 var(--f-ui); color: var(--gold); text-decoration: none; white-space: nowrap; text-shadow: 0 1px 0 #000;
  padding: 8px 18px 7px; min-height: 32px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(180deg, #b31b17 0%, #7d0d0b 48%, #520605 52%, #3f0403 100%);
  box-shadow: inset 0 0 0 1px rgba(214,170,80,.75), inset 0 1px 0 1px rgba(255,170,140,.25), 0 1px 0 rgba(0,0,0,.8); }
.btn:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,214,110,.95), inset 0 0 12px rgba(255,209,0,.45), 0 1px 0 rgba(0,0,0,.8); }
.btn:active { background: linear-gradient(180deg, #520605, #7d0d0b 60%, #8d1210); padding-top: 9px; padding-bottom: 6px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; color: #8a8a8a; filter: grayscale(.85) brightness(.75); }
.btn.small { font-size: 14px; padding: 5px 12px 4px; min-height: 26px; }
.btn.ghost { background: linear-gradient(180deg, #3b332b, #1b1612); }
.btn .gi { width: 1.15em; height: 1.15em; }
/* the glue-screen button: bigger, gold ornate rim */
.btn-glue { font-size: 21px; padding: 15px 34px 13px; min-height: 54px; border-radius: 6px; letter-spacing: .02em;
  border: 2px solid #1a0d02; box-shadow: inset 0 0 0 2px #e2b44a, inset 0 0 0 3px #5a3a0c, inset 0 2px 0 3px rgba(255,180,150,.25), 0 0 0 1px #000, 0 4px 14px rgba(0,0,0,.7); }
.btn-glue:hover { box-shadow: inset 0 0 0 2px #ffe08a, inset 0 0 0 3px #5a3a0c, inset 0 0 20px rgba(255,209,0,.5), 0 0 0 1px #000, 0 0 18px rgba(255,180,40,.45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.input, .select { font: 15px var(--f-ui); color: #fff; background: #0b0a09; border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #5a4c38, inset 0 2px 4px rgba(0,0,0,.9); padding: 6px 9px; min-height: 32px; }
.input::placeholder { color: #7d7466; }
.select option { background: #120f0c; }
.check { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; color: #fff; }
.check input { width: 17px; height: 17px; }
.tag { display: inline-block; font-size: .78em; padding: 0 .45em; border-radius: 2px; vertical-align: .1em; }
.tag-sample { color: var(--red); }
.tag-dev { color: #d8a0ff; }
.tag-live { color: var(--green); }

/* ------------------------------------------------------------ tooltip (GameTooltip) */
.tip { background: rgba(9, 9, 25, .94); color: #fff; border: 1px solid #b4b4b4; border-radius: 6px; padding: 8px 11px 9px;
  box-shadow: inset 0 0 0 1px #34344a, 0 0 0 1px #000, 0 6px 18px rgba(0,0,0,.8);
  font: 15px/1.35 var(--f-ui); text-shadow: 0 1px 0 #000; max-width: 340px; }
.tip .t { display: block; color: #fff; font-size: 16.5px; font-weight: 400; margin-bottom: 3px; }
.tip, .tip p { color: var(--gold); }
.tip .w { color: #fff; }
.tip-float { position: fixed; z-index: 1000; pointer-events: none; }
.tooltip-item { min-width: 250px; }
.tt-name { font-size: 16.5px; }
.tt-row { display: flex; justify-content: space-between; gap: 18px; color: #fff; }
.tt-line { color: #fff; }
.tt-green { color: var(--green); }
.tt-flavor { color: var(--gold); }
.tt-sell { color: #fff; margin-top: 2px; }

/* ------------------------------------------------------------ parchment (quest frames, the book) */
.parchment { color: var(--ink); background: #e6d1a1 url("/img/parchment.webp") 0 0 / 512px; border-radius: 3px;
  box-shadow: inset 0 0 50px rgba(120, 72, 20, .55), inset 0 0 8px rgba(80, 45, 10, .7), 0 0 0 1px #3a2510, 0 10px 28px rgba(0,0,0,.7); }
.parchment a { color: var(--ink-red); }
.parchment a:hover { color: #000; }
.parchment h1, .parchment h2, .parchment h3 { color: #1b0f04; text-shadow: none; }

/* ------------------------------------------------------------ art slots */
.art { position: relative; margin: 0; overflow: hidden; background: radial-gradient(ellipse at 60% 35%, #57442c 0%, #241c14 55%, #0e0b08 100%); }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art.missing::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background: url("/img/mithril/coin-256.png") center / min(26%, 160px) no-repeat, repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,220,150,.12) 22px 23px); }
.art.missing::after { content: "Art slot: " attr(data-slot); position: absolute; right: 10px; bottom: 10px;
  font: 12px var(--f-ui); color: #d8c49a; background: rgba(0,0,0,.65); border: 1px solid #6b5426; padding: 2px 8px; border-radius: 3px; }

/* ------------------------------------------------------------ hero: a loading screen */
.hero { position: relative; min-height: clamp(560px, 86vh, 860px); display: flex; flex-direction: column; overflow: hidden;
  border-bottom: 2px solid #000; box-shadow: 0 1px 0 #6b5426; }
.hero-art { position: absolute; inset: 0; }
.hero-art.missing { background: radial-gradient(ellipse at 50% 70%, #6b4a22 0%, #2a1d10 45%, #0c0907 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 34%, rgba(0,0,0,.15) 58%, rgba(0,0,0,.85) 100%); }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 16px 12px; }
.wordmark { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-wow { font: 900 clamp(72px, 12vw, 156px)/.92 var(--f-mark); letter-spacing: .01em;
  background: linear-gradient(180deg, #fffbe0 0%, #ffe07a 28%, #f0b02c 52%, #a8670f 78%, #e7a93a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #3a2204; filter: drop-shadow(0 3px 0 #1f1202) drop-shadow(0 0 1px #000) drop-shadow(0 10px 22px rgba(0,0,0,.85)); }
.wm-plate { margin-top: -.18em; display: inline-block; padding: .14em 1.1em .1em; position: relative;
  font: 900 clamp(20px, 3vw, 36px)/1 var(--f-mark); letter-spacing: .24em; text-transform: uppercase; text-indent: .24em;
  background: linear-gradient(180deg, #474b52, #23262b 55%, #15171a); border: 2px solid #000;
  clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%);
  box-shadow: inset 0 0 0 2px #c99a3a, inset 0 0 0 3px #3a2508, inset 0 2px 0 3px rgba(255,255,255,.12); }
.wm-plate > span { background: linear-gradient(180deg, #ffffff, #cfe2f0 45%, #7fa3bf); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 #000); }
.hero-sub { margin: 18px auto 0; max-width: 46ch; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.4; color: #fff; text-shadow: 0 1px 1px #000, 0 0 6px #000, 0 0 16px rgba(0,0,0,.9); }
.hero-sub b { color: var(--gold); font-weight: 400; }
.hero-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ca-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; align-items: center; font-size: 15px; text-shadow: var(--outline); }
.ca-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; background: rgba(9,9,25,.85); border: 1px solid #8a8a8a; border-radius: 5px; box-shadow: inset 0 0 0 1px #34344a; }
.ca-chip .lbl { color: var(--gold); }
.ca-chip code { font: 14px var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.ticker { font: 700 17px var(--f-num); color: var(--mith); letter-spacing: .04em; }
.loading { position: relative; width: min(920px, calc(100% - 32px)); margin: 0 auto 26px; }
.lb-tip { text-align: center; color: #fff; font-size: 16px; margin: 0 0 10px; min-height: 1.5em; text-shadow: 0 1px 1px #000, 0 0 6px #000; transition: opacity .5s; }
.lb-tip b { color: var(--gold); font-weight: 400; }
.lb-frame { position: relative; height: 26px; padding: 5px 7px; border-radius: 3px;
  background: linear-gradient(#0d0b09, #000); border: 1px solid #000;
  box-shadow: inset 0 0 0 2px #8f7a52, inset 0 0 0 3px #2a2014, inset 0 0 0 4px #c9b07a, 0 0 0 1px #000, 0 6px 14px rgba(0,0,0,.7); }
.lb-frame::before, .lb-frame::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff1b0, #c9962e 50%, #6e4a10); border: 1px solid #000; }
.lb-frame::before { left: -11px; } .lb-frame::after { right: -11px; }
.lb-fill { height: 100%; width: 0; border-radius: 1px; background: linear-gradient(180deg, #ffb84a 0%, #e0621a 40%, #9a2a08 60%, #c8461a 100%);
  box-shadow: 0 0 10px rgba(255,120,30,.6); transition: width 1.8s cubic-bezier(.3,.6,.4,1); }
.loaded .lb-fill { width: 100%; }

/* ------------------------------------------------------------ realm selection + stats */
.status-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.realms { width: 100%; border-collapse: collapse; font-size: 16px; }
.realms th { text-align: left; font-weight: 400; color: var(--gold); padding: 6px 10px; border-bottom: 1px solid #4a3c28;
  background: linear-gradient(#2c241b, #1a1510); text-shadow: var(--outline); }
.realms td { padding: 9px 10px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.realms tr.sel { background: linear-gradient(90deg, rgba(255,209,0,.2), rgba(255,209,0,.03)); }
.realms .pop-pre { color: var(--grey); }
.realms .pop-on { color: var(--green); }
.realms .pop-off { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; margin-top: 14px; padding: 12px 14px; }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted rgba(255,209,0,.15); font-size: 15.5px; }
.stat > span:first-child { color: var(--gold); }
.stat > span:last-child { color: #fff; text-align: right; }
.stat .sub { display: block; font-size: 12.5px; color: var(--muted); }
.frame-foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }

/* chat frame */
.chat { display: flex; flex-direction: column; min-height: 100%; }
.chat-tabs { display: flex; gap: 2px; margin: -4px 0 6px; }
.chat-tab { font: 14px var(--f-ui); color: var(--gold); background: linear-gradient(#2c241b, #120f0c); border: 1px solid #000; border-bottom: 0;
  border-radius: 5px 5px 0 0; padding: 4px 12px; cursor: pointer; box-shadow: inset 0 1px 0 #5a4a33; }
.chat-tab[aria-selected="true"] { color: #fff; background: linear-gradient(#4a3c28, #1b1611); }
.chat-log { flex: 1; font-size: 15px; line-height: 1.45; padding: 10px 12px; max-height: 430px; overflow: auto; background: rgba(0,0,0,.55); border: 1px solid #000; box-shadow: inset 0 0 0 1px #2c241b; }
.chat-log p { margin: 0 0 6px; text-shadow: 0 1px 0 #000; }
.ch-sys { color: var(--gold); }
.ch-guild { color: #40ff40; }
.ch-trade { color: #ffc0c0; }
.ch-say { color: #fff; }
.chat-log time { color: #8a8070; font-family: var(--f-num); font-size: 13px; margin-right: 4px; }
.chat-log a { color: #3e9bff; }

/* ------------------------------------------------------------ feature cards */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.feat { display: flex; flex-direction: column; padding: 0; }
.feat .art { aspect-ratio: 4 / 3; border: 1px solid #000; box-shadow: 0 0 0 1px #4a3c28; }
.feat h3 { font-size: 26px; color: var(--gold); margin: 14px 4px 6px; text-shadow: var(--outline); }
.feat p { font-size: 15.5px; color: #e9e1cf; margin: 0 4px 10px; }
.feat .fx { margin: auto 4px 4px; font-size: 14px; color: var(--green); }

/* gold to wallet: item slots in a row */
.flow-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; align-items: start; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; padding: 16px 6px 6px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 13px); opacity: .7; }
.islot { width: 60px; height: 60px; display: grid; place-items: center; border: 2px solid #000; border-radius: 4px;
  background: radial-gradient(circle at 35% 30%, #4a4036, #15110d 75%); box-shadow: inset 0 0 0 1px #8a7444, 0 0 0 1px #3a2f20, 0 4px 10px rgba(0,0,0,.6); }
.islot .gi { width: 38px; height: 38px; color: #f6e7bd; filter: drop-shadow(0 1px 1px #000); }
.islot.mith { background: radial-gradient(circle at 35% 30%, #a9c8de, #2a4a62 75%); }
.islot.phantom { background: radial-gradient(circle at 35% 30%, #b49af0, #3d2370 75%); }
.islot.q-epic { box-shadow: inset 0 0 0 1px var(--q4), 0 0 0 1px #3a2f20, 0 0 10px rgba(163,53,238,.5); }
.step h3 { font: 400 17px/1.2 var(--f-ui); color: var(--gold); margin: 10px 0 4px; }
.step p { font-size: 14px; color: var(--text); margin: 0; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 20px; }
.rule { display: flex; gap: 10px; align-items: center; padding: 9px 10px; cursor: help; }
.rule .buff-ico { width: 36px; height: 36px; flex: none; background: radial-gradient(circle at 35% 30%, #7fb0d0, #24506e 70%); }
.rule .buff-ico .gi { width: 24px; height: 24px; }
.rule b { display: block; font-weight: 400; color: #fff; font-size: 17px; font-family: var(--f-num); }
.rule span { font-size: 13.5px; color: var(--gold); }
.cfg-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* gossip (parchment with options) */
.gossip { padding: 22px 24px 18px; }
.gossip .npc { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.gossip .npc-name { font: 600 26px var(--f-title); color: #1b0f04; }
.gossip p { font-size: 17px; color: var(--ink); }
.gopts { list-style: none; padding: 0; margin: 10px 0 0; }
.gopts li { margin: 0 0 4px; }
.gopt { display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 4px 6px; cursor: pointer;
  font: 16.5px/1.35 var(--f-ui); color: #1b0f04; border-radius: 2px; text-decoration: none; }
.gopt:hover, .gopt[aria-expanded="true"] { background: linear-gradient(90deg, rgba(255,209,0,.35), rgba(255,209,0,0)); color: #000; }
.gopt .gi { width: 18px; height: 18px; color: #6b4a14; margin-top: 2px; }
.gans { margin: 2px 0 8px 33px; font-size: 16px; color: var(--ink-2); }

/* treasury */
.treasury { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.bigbar { margin: 8px 0 6px; height: 30px; position: relative; border: 1px solid #000; border-radius: 3px; background: #0a0a0a;
  box-shadow: inset 0 0 0 1px #5a4c38, 0 0 0 1px #2a2218; overflow: hidden; }
.bigbar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #a9d0ef, #3e7bb0 50%, #1f4f7d 51%, #2e6596); transition: width 1.4s ease-out; }
.bigbar .rest { position: absolute; inset: 0 0 0 auto; background: linear-gradient(180deg, #8ae06a, #2f8a1a 50%, #1c5e0f 51%, #2a7a18); }
.bigbar.split .rest { inset: 0; background: linear-gradient(180deg, #ffd98a, #c07a16 50%, #8a5108 51%, #b0700f); }
.bigbar .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 15px var(--f-num); color: #fff; text-shadow: var(--outline); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid #000; margin-right: 6px; vertical-align: -1px; }
.policy { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 10px; }
#tok-stats { grid-template-columns: minmax(0, 1fr); }

/* auction rows (shared by the AH page and the teaser) */
.lots { list-style: none; margin: 0; padding: 0; }
.lot { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 90px minmax(0, 120px) 132px; gap: 10px; align-items: center;
  padding: 4px 8px 4px 4px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; font-size: 15.5px; }
.lot:hover { background: linear-gradient(90deg, rgba(255,209,0,.14), rgba(255,209,0,.02)); }
.lot.sel { background: linear-gradient(90deg, rgba(255,209,0,.32), rgba(255,209,0,.06)); box-shadow: inset 0 0 0 1px rgba(255,209,0,.45); }
.lot .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot .lvl, .lot .tl, .lot .sl { color: #fff; font-size: 14.5px; }
.lot .sl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lot .pr { text-align: right; line-height: 1.15; }
.lot .pr small { display: block; color: var(--muted); font-size: 12.5px; }
.ico { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #000; border-radius: 3px;
  background: radial-gradient(circle at 35% 30%, #3a332c, #0d0b09 80%); box-shadow: inset 0 0 0 1px currentColor, 0 0 0 1px #2a2218; }
.ico .gi { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px #000); }
.ico .n { position: absolute; right: 2px; bottom: 0; font: 600 12px var(--f-num); color: #fff; text-shadow: var(--outline); }
.ico.big { width: 56px; height: 56px; } .ico.big .gi { width: 40px; height: 40px; }

/* quick links: spellbook buttons */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.qlink { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; text-decoration: none; color: #fff; border-radius: 4px;
  background: linear-gradient(180deg, rgba(43,36,28,.95), rgba(15,12,9,.95)); border: 1px solid #000; box-shadow: inset 0 0 0 1px #4a3c28; }
.qlink:hover { box-shadow: inset 0 0 0 1px #ffd100, inset 0 0 14px rgba(255,209,0,.25); color: #fff; }
.qlink .islot { width: 46px; height: 46px; } .qlink .islot .gi { width: 28px; height: 28px; }
.qlink b { display: block; font-weight: 400; color: var(--gold); font-size: 17px; }
.qlink small { color: var(--muted); font-size: 13.5px; }
.qlink.off { opacity: .6; cursor: default; }

/* quest log (roadmap) */
.roadmap { position: relative; isolation: isolate; padding: 70px 0; }
.roadmap-bg { position: absolute; inset: 0; z-index: -1; opacity: .45; }
.roadmap-bg.missing { opacity: .25; }
.roadmap-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0907, rgba(11,9,7,.35) 30%, rgba(11,9,7,.35) 70%, #0b0907); }
.qlog { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
.qlog-list { list-style: none; margin: 0; padding: 8px 6px; max-height: 520px; overflow: auto; }
.qlog-list .zone { font-size: 15px; color: #d0c0a0; padding: 8px 6px 3px; display: flex; gap: 6px; align-items: center; }
.qlog-list .zone::before { content: "\2212"; display: inline-grid; place-items: center; width: 14px; height: 14px; font-size: 12px; border: 1px solid #8a7444; border-radius: 2px; color: #fff; }
.qbtn { display: flex; gap: 8px; justify-content: space-between; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 3px 8px 3px 26px;
  font: 15.5px/1.35 var(--f-ui); color: var(--gold); }
.qbtn:hover { color: #fff; background: rgba(255,209,0,.1); }
.qbtn[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, rgba(255,209,0,.3), rgba(255,209,0,.05)); }
.qbtn.done { color: var(--grey); }
.qbtn .st { font-size: 13px; color: var(--grey); white-space: nowrap; }
.qbtn.cur .st { color: var(--green); }
.qlog-detail { margin: 0; padding: 22px 26px; min-height: 100%; }
.qlog-detail h3 { font-size: 30px; margin-bottom: 8px; }
.qlog-detail h4 { font: 600 22px var(--f-title); color: #1b0f04; margin: 16px 0 6px; }
.qlog-detail p, .qlog-detail li { font-size: 16.5px; color: var(--ink); }
.qlog-detail ul { padding-left: 1.2em; margin: 0; }
.qlog-detail li.ok::marker { content: "\2713  "; color: #1d6a0a; }
.qlog-detail li.todo::marker { content: "\25CB  "; color: #6b4a14; }
.qlog-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* FAQ band */
.faq-band { position: relative; isolation: isolate; padding: 60px 0; }
.faq-band .art { position: absolute; inset: 0; z-index: -1; opacity: .4; }
.faq-band .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0907, rgba(11,9,7,.2) 30%, rgba(11,9,7,.4) 70%, #0b0907); }
.faq-box { max-width: 820px; margin: 0 auto; }

/* ------------------------------------------------------------ static popups */
.popups { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.popups:not(:empty) { background: rgba(0,0,0,.45); pointer-events: auto; }
.popup { width: min(440px, 100%); text-align: center; pointer-events: auto; animation: pop .14s ease-out; }
.popup p { font-size: 17px; color: #fff; margin: 4px 6px 14px; text-shadow: var(--outline); }
.popup p.g { color: var(--gold); }
.popup .btn-row { justify-content: center; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
/* inline popup (system check result) */
.popup-inline { margin: 0 auto; width: min(560px, 100%); text-align: center; }
.popup-inline p { margin: 2px 4px 12px; font-size: 17.5px; color: #fff; text-shadow: var(--outline); }
.popup-inline.err p.head { color: var(--red); }
.popup-inline.ok p.head { color: var(--gold); }

/* ------------------------------------------------------------ PLAY */
.band { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid #000; box-shadow: 0 1px 0 #6b5426; }
.band > .art { position: absolute; inset: 0; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1)), linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); }
.band-in { position: relative; z-index: 1; padding: 60px 24px 40px; max-width: 1240px; margin: 0 auto; width: 100%; }
.band-in .lede { margin-bottom: 18px; }
.playstate { margin-top: 12px; font-size: 15px; color: #d8cfb8; text-shadow: var(--outline); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.checks .mk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-num); border: 1px solid #000; }
.checks .mk.ok { background: radial-gradient(circle at 35% 30%, #8ae06a, #1d6a0a); color: #fff; }
.checks .mk.bad { background: radial-gradient(circle at 35% 30%, #ff8a7a, #8a0d06); color: #fff; }
.checks .mk.warn { background: radial-gradient(circle at 35% 30%, #ffe08a, #a87a10); color: #000; }
.checks .mk.wait { background: #333; color: #aaa; }
.checks b { font-weight: 400; color: var(--gold); display: block; }
.checks small { color: #d8cfb8; font-size: 14px; }
.checks .val { color: #fff; font-size: 14.5px; text-align: right; }
.quest { padding: 24px 26px; }
.quest h2 { font-size: 34px; margin-bottom: 4px; }
.quest h3 { font: 600 22px var(--f-title); color: #1b0f04; margin: 18px 0 8px; }
.quest p { font-size: 17px; }
.quest ol { padding-left: 1.4em; margin: 0; }
.quest ol li { margin-bottom: 10px; font-size: 17px; }
.quest ol li b { color: #1b0f04; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(122,26,8,.4); }
.reward { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: 16px; }
.addons { width: 100%; border-collapse: collapse; }
.addons td { padding: 8px 8px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; font-size: 15px; }
.addons td:first-child { width: 28px; }
.addons .an { color: var(--gold); font-size: 16.5px; }
.addons .ad { color: #e6dcc6; }
.addons .lic { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.addons .st { color: var(--green); white-space: nowrap; }
.binds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.bind { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15.5px; }
.bind > span:first-child { color: #fff; }
kbd { display: inline-block; min-width: 26px; text-align: center; font: 600 13px/1 var(--f-num); color: #fff; padding: 5px 7px; border-radius: 3px;
  background: linear-gradient(#3b342c, #17130f); border: 1px solid #000; box-shadow: inset 0 0 0 1px #6a5a42, 0 2px 0 #000; }
.limits { list-style: none; padding: 0; margin: 0; }
.limits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15.5px; }
.limits li::before { content: "!"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #a87a10; color: #000; font: 700 13px var(--f-num); border: 1px solid #000; }
.limits b { color: var(--gold); font-weight: 400; }

/* ------------------------------------------------------------ Auction House */
.ah-wrap { margin-top: 30px; }
.ah { padding: 4px 4px 0; }
.ah-top { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 6px 4px 10px; }
.fld { display: flex; flex-direction: column; gap: 3px; }
.fld > label, .fld > .label { font-size: 14px; color: var(--gold); text-shadow: var(--outline); }
.lvlr { display: flex; gap: 4px; align-items: center; color: #fff; }
.lvlr .input { width: 52px; text-align: center; }
.ah-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; }
.cats { list-style: none; margin: 0; padding: 4px; max-height: 560px; overflow: auto; }
.cat { display: block; width: 100%; text-align: left; font: 15px var(--f-ui); color: var(--gold); text-decoration: none; cursor: pointer;
  background: linear-gradient(90deg, rgba(60,48,34,.9), rgba(30,24,17,.9)); border: 1px solid #000; box-shadow: inset 0 1px 0 #5a4a33; padding: 4px 8px; margin-bottom: 2px; border-radius: 2px; }
.cat:hover { color: #fff; box-shadow: inset 0 1px 0 #5a4a33, inset 0 0 10px rgba(255,209,0,.3); }
.cat[aria-current="true"] { color: #fff; background: linear-gradient(90deg, rgba(150,110,30,.9), rgba(60,45,20,.9)); }
.cat.sub { padding-left: 22px; font-size: 14px; background: rgba(20,16,12,.85); }
.cols { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 90px minmax(0, 120px) 132px; gap: 10px; padding: 0 8px 0 4px; }
.col { font: 14px var(--f-ui); color: var(--gold); background: linear-gradient(#3a2f22, #1b1611); border: 1px solid #000; border-radius: 3px 3px 0 0;
  padding: 4px 8px; text-align: left; cursor: pointer; text-shadow: var(--outline); white-space: nowrap; }
.col:hover { color: #fff; } .col.on { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.col.r { text-align: right; }
.col-ico { grid-column: span 2; }
.lotbox { min-height: 420px; max-height: 620px; overflow: auto; }
.ah-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px 8px; }
.ah-foot .bal { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--gold); }
.ah-foot .bal .inset { padding: 4px 10px; color: #fff; min-width: 150px; text-align: right; }
.pager { display: flex; align-items: center; gap: 10px; color: #fff; }
.tabs { display: flex; gap: 4px; padding: 0 18px; margin-top: -2px; }
.tab { font: 15.5px var(--f-ui); color: var(--gold); padding: 8px 22px 9px; border: 1px solid #000; border-top: 0; border-radius: 0 0 6px 6px; cursor: pointer;
  background: linear-gradient(#120f0c, #2c241b); box-shadow: inset 0 -1px 0 #5a4a33; text-decoration: none; }
.tab[aria-selected="true"] { color: #fff; background: linear-gradient(#1b1611, #4a3c28); padding-top: 11px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--gold); font-weight: 400; font-size: 18px; margin-bottom: 6px; }
.ah-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 10px; }
.trend { list-style: none; margin: 0; padding: 0; }
.trend li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 3px 0; }
.trend .ico { width: 34px; height: 34px; } .trend .ico .gi { width: 22px; height: 22px; }
.sbar { position: relative; height: 22px; background: #111; border: 1px solid #000; overflow: hidden; }
.sbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #5ae03a, #1f8a10 50%, #126a08 51%, #1c7a10); }
.sbar span { position: relative; padding: 0 6px; font-size: 14px; line-height: 22px; color: #fff; text-shadow: var(--outline); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.trend .chg { font: 13px var(--f-num); }
.vob { text-align: center; }
.vob .tooltip-item { text-align: left; margin: 8px auto 12px; max-width: 330px; }
.vob .q { font-size: 17px; color: #fff; margin-bottom: 10px; }
.vob .score { font-size: 14px; color: var(--muted); margin-top: 10px; }
.sell-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; padding: 4px; }
.bag { display: grid; grid-template-columns: repeat(4, 44px); gap: 5px; padding: 10px; justify-content: center; }
.bag button { padding: 0; background: none; border: 0; cursor: pointer; }
.bag button[aria-pressed="true"] .ico { box-shadow: inset 0 0 0 2px var(--gold), 0 0 8px rgba(255,209,0,.6); }
.create { display: grid; gap: 10px; padding: 10px; }

/* ------------------------------------------------------------ DOCS: the book */
.docs-band { height: 120px; position: relative; overflow: hidden; border-bottom: 2px solid #000; }
.docs-band .art { position: absolute; inset: 0; }
.docs-band .art img { object-position: 50% 40%; }
.docs-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(11,9,7,1)); }
.book { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 34px; padding-bottom: 60px; }
.questlog { position: sticky; top: 112px; }
.questlog .ql-list { max-height: calc(100vh - 250px); overflow: auto; }
.ql-mobile > summary { display: none; }
.ql-search { display: block; margin: 0 0 8px; }
.ql-search .input { width: 100%; }
.ql-list { list-style: none; margin: 0; padding: 0; }
.ql-entry > a { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; color: var(--gold); text-decoration: none; font-size: 16px; border-radius: 2px; }
.ql-entry > a:hover { color: #fff; background: rgba(255,209,0,.1); }
.ql-entry.cur > a { color: #fff; background: linear-gradient(90deg, rgba(255,209,0,.3), rgba(255,209,0,.04)); }
.ql-n { font: 13px var(--f-num); color: var(--muted); min-width: 1.3em; }
.ql-sub { list-style: none; margin: 2px 0 8px; padding: 0 0 0 30px; }
.ql-sub a { display: block; padding: 2px 4px; font-size: 14.5px; color: #d8cfb8; text-decoration: none; }
.ql-sub a:hover, .ql-sub a.on { color: #fff; }
.ql-sub a.on::before { content: "\25B8 "; color: var(--gold); }
.ql-entry.hide, .ql-sub li.hide { display: none; }
.page { padding: 40px clamp(20px, 5vw, 64px) 30px; min-width: 0; }
.page-head { border-bottom: 2px solid rgba(90, 55, 15, .35); padding-bottom: 14px; margin-bottom: 22px; }
.page-meta { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.page-head h1 { font: 800 clamp(38px, 5vw, 58px)/1 var(--f-title); color: #140a02; }
.page-sum { font-size: 19px; color: var(--ink-2); margin: 10px 0 0; max-width: 62ch; }
.prose { font-size: 17.5px; line-height: 1.65; color: var(--ink); max-width: 76ch; }
.prose h2 { font: 800 34px/1.1 var(--f-title); color: #140a02; margin: 38px 0 12px; padding-top: 6px; border-top: 1px solid rgba(90,55,15,.25); }
.prose h3 { font: 600 25px/1.15 var(--f-title); color: #2a1404; margin: 26px 0 8px; }
.prose h4 { font: 400 18px var(--f-ui); color: var(--ink-red); margin: 18px 0 6px; }
.prose .anchor { margin-left: 8px; opacity: 0; text-decoration: none; }
.prose .anchor::after { content: "\00a7"; color: var(--ink-red); font-size: .7em; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: #6b3a10; }
.prose strong { color: #1b0f04; font-weight: 400; text-shadow: .35px 0 0 #1b0f04; }
.prose code { font: .86em var(--f-mono); background: rgba(90, 55, 15, .14); border: 1px solid rgba(90, 55, 15, .2); padding: .05em .35em; border-radius: 3px; color: #3a1a04; word-break: break-word; }
.prose pre.code { background: #17110b; color: #eadfc4; border: 1px solid #000; box-shadow: inset 0 0 0 1px #4a3c28, 0 4px 10px rgba(60,30,0,.35); border-radius: 3px; padding: 14px 16px; overflow: auto; font: 14px/1.5 var(--f-mono); }
.prose pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .tbl { overflow-x: auto; margin: 14px 0 18px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.4; }
.prose th { text-align: left; font-weight: 400; color: #140a02; background: rgba(110, 70, 20, .2); border-bottom: 2px solid rgba(90,55,15,.45); padding: 7px 10px; }
.prose td { border-bottom: 1px solid rgba(90,55,15,.22); padding: 7px 10px; vertical-align: top; }
.prose td.r, .prose th.r { text-align: right; font-family: var(--f-num); }
.prose hr.divider { border: 0; height: 18px; margin: 26px 0; background: radial-gradient(circle, #6b3a10 2.5px, transparent 3px) center / 18px 18px repeat-x; opacity: .45; }
.prose .item { font-weight: 400; text-shadow: 0 0 1px rgba(0,0,0,.5); }
.prose .item.q2 { color: #128a00; } .prose .item.q3 { color: #0057b0; } .prose .item.q4 { color: #7a1fc0; } .prose .item.q5 { color: #b85c00; }
.callout { margin: 18px 0; padding: 12px 16px 6px; border-radius: 3px; border: 1px solid rgba(90,55,15,.4); background: rgba(255, 245, 210, .45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.callout-title { font: 600 21px var(--f-title); color: #1b0f04; margin: 0 0 4px; }
.callout-tip { border-color: rgba(30, 110, 10, .5); background: rgba(210, 240, 190, .4); }
.callout-warn { border-color: rgba(140, 20, 10, .5); background: rgba(255, 210, 190, .45); }
.callout-warn .callout-title { color: #7a1a08; }
.callout-dev { border-color: rgba(90, 40, 140, .45); background: rgba(225, 210, 250, .4); }
.callout p:last-child { margin-bottom: 8px; }
.docpager { margin-top: 40px; padding-top: 18px; border-top: 2px solid rgba(90,55,15,.3); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-n { font-size: 14px; color: var(--ink-2); }
.docs-cover { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid #000; }
.docs-cover .cover-art { position: absolute; inset: 0; }
.docs-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.2) 65%), linear-gradient(0deg, rgba(11,9,7,1), transparent 50%); }
.cover-text { position: relative; z-index: 1; max-width: 1240px; width: 100%; margin: 0 auto; padding: 50px 24px 70px; }
.toc-wrap { margin-top: -30px; margin-bottom: 70px; position: relative; z-index: 2; }
.chapters { list-style: none; padding: 6px; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chapter { display: grid; align-content: start; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; padding: 12px; height: 100%; text-decoration: none; border-radius: 3px;
  background: linear-gradient(180deg, rgba(43,36,28,.9), rgba(15,12,9,.9)); border: 1px solid #000; box-shadow: inset 0 0 0 1px #4a3c28; }
.chapter:hover { box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 14px rgba(255,209,0,.2); }
.chapter .gi { grid-row: span 3; width: 34px; height: 34px; color: var(--gold-2); margin-top: 4px; }
.ch-n { font-size: 13px; color: var(--muted); }
.ch-t { font: 600 24px/1.1 var(--f-title); color: var(--gold); }
.ch-s { font-size: 14.5px; color: #e0d6bf; margin-top: 4px; }

/* ------------------------------------------------------------ credits / 404 */
.plain { max-width: 820px; margin: 50px auto; padding: 30px clamp(18px, 4vw, 40px); }
.plain h1 { font-size: 46px; margin-bottom: 14px; }
.plain li { margin-bottom: 6px; }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 40px; border-top: 1px solid #000; box-shadow: 0 -1px 0 #4a3c28; background: rgba(0,0,0,.55); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 34px; }
.foot-brand { display: flex; gap: 10px; align-items: center; color: #e6dcc6; margin-bottom: 12px; }
.foot-brand b { color: var(--gold); font-weight: 400; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot-links a { font-size: 15px; }
.fine { font-size: 13.5px; color: #9a8f78; max-width: 110ch; }
.fine a { color: #c8b48a; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .status-grid, .flow-grid, .treasury, .two, .qlog { grid-template-columns: minmax(0, 1fr); }
  .book { grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
  .questlog { position: relative; top: 0; }
  .questlog .ql-list { max-height: none; }
  .ql-mobile > summary { display: block; cursor: pointer; color: var(--gold); padding: 4px 6px; font-size: 16px; }
  .ql-mobile:not([open]) > :not(summary) { display: none; }
  .ah-body { grid-template-columns: minmax(0, 1fr); }
  .cats { display: flex; flex-wrap: wrap; gap: 4px; max-height: none; }
  .cats li { flex: none; }
  .cats .cat { margin: 0; }
  .sell-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --bar-h: 74px; }
  .topbar-in { min-height: 56px; padding: 4px 16px; justify-content: space-between; }
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 70; justify-content: space-evenly; border-radius: 0;
    padding: 6px 4px calc(4px + env(safe-area-inset-bottom)); border-width: 1px 0 0; box-shadow: inset 0 1px 0 #6a5638, 0 -6px 16px rgba(0,0,0,.6); }
  .slot { min-width: 0; padding: 0 4px; flex: 1; }
  .slot-l { font-size: 12.5px; }
  .gryphon { width: 34px; height: 34px; }
  .sysmsg { top: 66px; font-size: 16px; }
  html { scroll-padding-top: 70px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .gryphon { display: none; }
  .hk { display: none; }
  .buff-l { display: none; }
  .features, .chapters, .ah-side, .binds { grid-template-columns: minmax(0, 1fr); }
  .policy, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { padding: 8px; gap: 8px; }
  .rule .buff-ico { width: 30px; height: 30px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .step:nth-child(2)::after { display: none; }
  .hero { min-height: 640px; }
  .hero-in { padding-top: 26px; }
  .frame { border-width: 16px; border-image-width: 16px; padding: 4px 4px 6px; }
  .frame::before { inset: -11px; }
  .frame-title > span, .frame-title > h2 { font-size: 15.5px; }
  .lot, .cols { grid-template-columns: 40px minmax(0, 1fr) 100px; }
  .lot .lvl, .lot .tl, .lot .sl, .cols .c-lvl, .cols .c-tl, .cols .c-sl { display: none; }
  .col-ico { grid-column: span 2; }
  .ah-top .fld.adv { display: none; }
  .ah.filters-open .ah-top .fld.adv { display: flex; }
  .band { min-height: 380px; }
  .band-in { padding: 40px 16px 28px; }
  .page { padding: 28px 18px 24px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 29px; }
  .tabs { padding: 0 6px; } .tab { padding: 8px 12px 9px; }
  .ca-chip code { font-size: 12.5px; }
  .section { margin: 48px auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .lb-fill { width: 100%; }
}
.ah-mobile { display: none; }
@media (max-width: 640px) {
  .ah-mobile { display: inline-flex; }
  .sysmsg { display: none; }
  .realms th:nth-child(3), .realms td:nth-child(3) { display: none; }
}
/* scroll boxes contain their own visually-hidden spans */
.lots, .cats, .chat-log, .qlog-list, .ql-list, .trend { position: relative; }
.quest ol li b { text-decoration: none; text-shadow: .35px 0 0 #1b0f04; }
.lot .pr .nobuy { color: var(--muted); font-size: 13px; }
.tooltip-item .red { color: var(--red); }
@media (max-width: 640px) { .hero-art img { object-position: 24% 50%; } .band > .art img { object-position: 62% 50%; } }
