@charset "utf-8";

/* Layout: a guild codex. Gilded hero with embers, then numbered chapters (it is a real reading order),
   each framed like an in-game panel and tinted by its own school of magic; screens carry numbered pins. */
:root {
  color-scheme: dark;
  --void: #0a0910;          /* page ground: blue-black with a violet bias */
  --stone: #14121b;         /* panels */
  --stone-2: #1c1925;       /* raised panels */
  --rim: #3a2d18;           /* dark gold edge */
  --gold: #e6b75c;          /* gilt */
  --gold-hi: #ffe3a3;
  --gold-lo: #8a5c20;
  --parch: #eadfc6;         /* body text: parchment */
  --mist: #a69d8b;          /* secondary text */
  --ash: #6f6758;
  --frost: #00b4ff; --fel: #74e07a; --fire: #ff7b32; --arcane: #b47cff; --blood: #ff4b4b; --holy: #ffd36a;
  --blue: #00b4ff; --blue-hi: #7fd9ff;   /* Blizzard "blue post" color, for navigation */
  --q-epic: #b048f8; --q-rare: #1f8fff; --q-unc: #1eff00; --q-leg: #ff8000;   /* item quality colors */
  --school: var(--gold);
  --f-wordmark: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --f-caps: "Cinzel", Georgia, "Times New Roman", serif;
  --f-head: "Metamorphous", "Cinzel", Georgia, serif;
  --f-body: "Alegreya", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; background: var(--void); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--void); color: var(--parch);
  font: 400 18px/1.62 var(--f-body);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(180,124,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(98,198,255,.06), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(255,123,50,.07), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--blue); text-decoration-color: rgba(0,180,255,.45); text-underline-offset: 3px; }
a:hover { color: var(--blue-hi); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }
code, kbd { font-family: var(--f-mono); font-size: .82em; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: linear-gradient(180deg, rgba(10,9,16,.96), rgba(10,9,16,.88));
  border-bottom: 1px solid var(--rim);
  box-shadow: 0 1px 0 rgba(230,183,92,.12), 0 10px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font: 700 18px/1 var(--f-wordmark); letter-spacing: .06em; color: var(--gold); }
.nav { display: flex; gap: 2px; min-width: 0; flex: 1; justify-content: flex-end; }
.nav a {
  flex: none; padding: 8px 9px; border-radius: 4px; text-decoration: none;
  font: 600 12px/1 var(--f-caps); letter-spacing: .07em; text-transform: uppercase; color: var(--blue);
  border: 1px solid transparent; text-shadow: 0 0 12px rgba(0,180,255,.25);
}
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 4px; cursor: pointer;
  font: 700 12px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); background: #1c1724; border: 1px solid var(--gold-lo); }
.menu-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.menu-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
@media (max-width: 1060px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px var(--gutter) 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px;
    background: rgba(10,9,16,.98); border-bottom: 1px solid var(--rim); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
  .nav.open { display: grid; }
  .nav a { padding: 12px; font-size: 13px; }
}
.nav a:hover { color: var(--blue-hi); text-shadow: 0 0 14px rgba(0,180,255,.6); }
.nav a.on { color: var(--blue-hi); border-color: rgba(0,180,255,.35); background: linear-gradient(180deg, rgba(0,180,255,.14), rgba(0,180,255,.03)); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rim); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 30% 35%, rgba(230,183,92,.16), transparent 70%),
    radial-gradient(600px 400px at 80% 60%, rgba(255,75,75,.10), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 86px) clamp(40px, 6vw, 72px); }
.crest { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.crest img { width: 76px; height: 76px; filter: drop-shadow(0 6px 18px rgba(230,183,92,.35)); }
.eyebrow { font: 600 12px/1.2 var(--f-caps); letter-spacing: .22em; text-transform: uppercase; color: var(--school); }
.wordmark {
  font: 900 clamp(46px, 7.4vw, 92px)/1.05 var(--f-wordmark); letter-spacing: .02em;
  display: inline-block; padding: .04em .18em .06em .04em; margin: -.04em -.18em -.06em -.04em;  /* room for swashes so the gradient covers every letter */
  background: linear-gradient(180deg, #fff6d8 0%, var(--gold-hi) 22%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1c08) drop-shadow(0 10px 30px rgba(230,183,92,.25));
}
.tagline { font: 400 clamp(21px, 2.3vw, 27px)/1.35 var(--f-head); color: var(--parch); margin-top: 16px; max-width: 30ch; }
.lede { color: var(--mist); margin-top: 14px; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 4px; text-decoration: none; cursor: pointer;
  font: 700 13px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-hi); background: linear-gradient(180deg, #2a2233, #17131e); border: 1px solid var(--gold-lo);
  box-shadow: inset 0 1px 0 rgba(255,227,163,.15), 0 4px 14px rgba(0,0,0,.4);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--blue); color: var(--blue-hi); box-shadow: inset 0 1px 0 rgba(255,227,163,.25), 0 6px 20px rgba(230,183,92,.18); }
.btn.primary { color: #2a1700; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b9802c); border-color: #f7d48a; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn.primary:hover { color: #160b00; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 500 13px/1.3 var(--f-caps); letter-spacing: .08em; color: var(--ash); text-transform: uppercase; }
.meta b { color: var(--mist); font-weight: 600; }

/* framed screenshot */
.screen { position: relative; border-radius: 6px; isolation: isolate; }
.screen img { display: block; width: 100%; height: auto; border-radius: 6px; }
.screen.tilt { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); box-shadow: -30px 40px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(230,183,92,.25), 0 0 60px rgba(230,183,92,.10); transition: transform .5s; }
.screen.tilt:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.screen.flat { box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(230,183,92,.22); }
.caption { margin-top: 12px; font-size: 14.5px; color: var(--ash); font-style: italic; }

/* ---------- features strip ---------- */
.strip { padding-block: 46px 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--stone-2), var(--stone)); border: 1px solid #2a2232; border-radius: 6px;
  transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.tile img { width: 56px; height: 56px; }
.tile h3 { font: 400 17px/1.2 var(--f-head); color: var(--gold-hi); }
.tile p { font-size: 14.5px; line-height: 1.4; color: var(--mist); margin-top: 3px; }

/* ---------- chapters ---------- */
.chapter { padding-block: clamp(52px, 7vw, 88px) 10px; scroll-margin-top: 70px; }
.chapter > .wrap > header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: end; margin-bottom: 30px; }
.numeral {
  grid-row: span 2; font: 900 clamp(54px, 8vw, 92px)/.8 var(--f-wordmark); color: transparent;
  -webkit-text-stroke: 1px var(--school); opacity: .85;
  text-shadow: 0 0 40px color-mix(in srgb, var(--school) 35%, transparent);
}
.chapter h2 { font: 400 clamp(30px, 4vw, 46px)/1.08 var(--f-head); color: var(--parch); }
.chapter h2 em { font-style: normal; color: var(--school); }
.rule { height: 14px; margin: 36px 0 26px; background:
  linear-gradient(90deg, transparent, var(--gold-lo) 20%, var(--gold) 50%, var(--gold-lo) 80%, transparent) center/100% 1px no-repeat; position: relative; }
.rule::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg); background: var(--void); border: 1px solid var(--gold); box-shadow: 0 0 12px rgba(230,183,92,.5); }
.c-frost { --school: var(--frost); } .c-fel { --school: var(--fel); } .c-fire { --school: var(--fire); }
.c-arcane { --school: var(--arcane); } .c-blood { --school: var(--blood); } .c-holy { --school: var(--holy); } .c-gold { --school: var(--gold); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 44px); }
.cols.wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 14px; }
.prose h3, .h3 { font: 400 23px/1.25 var(--f-head); color: var(--gold-hi); margin-top: 26px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--school); }
.lead { font-size: 20px; color: var(--parch); }
.muted { color: var(--mist); }
.k { color: var(--gold-hi); font-weight: 700; }

/* gilded panel */
.panel {
  position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: 4px;
  background: linear-gradient(180deg, rgba(28,25,37,.96), rgba(17,15,23,.96));
  border: 1px solid var(--rim);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,227,163,.06), 0 18px 50px rgba(0,0,0,.45);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0/100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0/1.5px 100% no-repeat,
    radial-gradient(circle at 7px 7px, var(--gold-hi) 2.2px, transparent 2.8px);
}
.panel::before { top: -1px; left: -1px; }
.panel::after { bottom: -1px; right: -1px; transform: rotate(180deg); }
.panel.school { border-color: color-mix(in srgb, var(--school) 35%, var(--rim)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 0 40px color-mix(in srgb, var(--school) 10%, transparent), 0 18px 50px rgba(0,0,0,.45); }
.panel h4 { font: 700 13px/1.2 var(--f-caps); letter-spacing: .16em; text-transform: uppercase; color: var(--school); margin-bottom: 10px; }

/* numbered steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font: 700 19px/1 var(--f-caps); color: var(--gold-hi);
  background: radial-gradient(circle at 50% 35%, #3a2f1c, #15110b 70%); border: 1px solid var(--gold-lo);
  box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 18px color-mix(in srgb, var(--school) 30%, transparent);
}
.steps h3 { font: 400 20px/1.3 var(--f-head); color: var(--gold-hi); margin: 8px 0 4px; }
.steps p { color: var(--parch); }

/* hotspot screens */
.hot { position: relative; align-self: start; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; cursor: pointer; padding: 0;
  display: grid; place-items: center; font: 700 13px/1 var(--f-caps); color: #1a0f00;
  background: radial-gradient(circle at 40% 35%, #fff2c9, var(--gold) 55%, #9a6522);
  border: 1px solid #fff0c0; box-shadow: 0 0 0 3px rgba(10,9,16,.75), 0 0 16px rgba(230,183,92,.75);
  animation: throb 2.6s ease-in-out infinite; transition: transform .15s;
}
.pin:hover, .pin.on { transform: scale(1.18); box-shadow: 0 0 0 3px rgba(10,9,16,.75), 0 0 26px var(--school), 0 0 6px #fff; animation: none; }
@keyframes throb { 50% { box-shadow: 0 0 0 3px rgba(10,9,16,.75), 0 0 26px rgba(230,183,92,1); } }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.legend li:hover, .legend li.on { background: rgba(230,183,92,.07); border-color: var(--rim); }
.legend .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 12.5px/1 var(--f-caps); color: var(--gold-hi); border: 1px solid var(--gold-lo); background: #1b1610; }
.legend li.on .n { background: var(--gold); color: #1a0f00; }
.legend b { display: block; font: 400 17px/1.25 var(--f-head); color: var(--gold-hi); font-weight: 400; }
.legend span { display: block; font-size: 15.5px; line-height: 1.45; color: var(--mist); margin-top: 2px; }

/* WoW-style tooltip */
.tt-demo { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.slot {
  width: 64px; height: 64px; border-radius: 6px; flex: none; position: relative; cursor: help;
  background: radial-gradient(circle at 50% 40%, #b3b6c2 0 14%, #6d7380 15% 38%, #3b3f49 39% 60%, #22252c 61%);
  border: 2px solid #8f8f8f; box-shadow: inset 0 0 0 2px #000, 0 0 0 1px #000;
}
.slot.epic { border-color: var(--q-epic); box-shadow: inset 0 0 0 2px #000, 0 0 16px rgba(176,72,248,.5); background: radial-gradient(circle at 50% 45%, #f2d27a 0 18%, #b0812c 19% 40%, #4a2a59 41% 64%, #1e1426 65%); }
.slot .qty { position: absolute; right: 4px; bottom: 2px; font: 700 13px/1 var(--f-body); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.tooltip {
  min-width: 0; width: min(100%, 360px); padding: 10px 12px; font: 500 14.5px/1.42 var(--f-body); color: #fff;
  background: rgba(8, 8, 18, .94); border: 1px solid #4a5a73; border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 12px 30px rgba(0,0,0,.6);
}
.tooltip .t { font-size: 16.5px; font-weight: 700; }
.tooltip .y { color: #ffd100; } .tooltip .g { color: #1eff00; } .tooltip .w { color: #fff; } .tooltip .s { color: #9d9d9d; }
.tooltip .o { color: #ff9933; } .tooltip .b { color: #71d5ff; } .tooltip hr { border: 0; border-top: 1px solid #2c3647; margin: 6px 0; }

/* raid warning + toast */
.rw {
  text-align: center; font: 900 clamp(18px, 2.6vw, 28px)/1.25 var(--f-body); color: #ff6040;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 20px rgba(255,80,40,.5);
  letter-spacing: .01em; padding: 10px; animation: rw 3.4s ease-in-out infinite;
}
@keyframes rw { 0%, 100% { opacity: .55; } 12%, 70% { opacity: 1; } }
.toast {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; max-width: 440px;
  background: linear-gradient(90deg, rgba(230,183,92,.16), rgba(19,21,27,.96) 40%); border: 1px solid #85662b; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.toast img { width: 42px; height: 42px; }
.toast b { display: block; font: 700 13px/1 var(--f-caps); letter-spacing: .1em; color: var(--gold); margin-bottom: 4px; }
.toast span { font-size: 14.5px; line-height: 1.35; }
.red { color: #ff4040; font-weight: 700; } .orange { color: #ff9933; font-weight: 700; } .green { color: #3ce06a; }

/* action buttons (keybinds) */
.keys { display: flex; flex-wrap: wrap; gap: 18px; }
.key { display: grid; justify-items: center; gap: 8px; width: 116px; text-align: center; }
.abtn {
  position: relative; width: 64px; height: 64px; border-radius: 6px; display: grid; place-items: center;
  font: 900 30px/1 var(--f-body); color: #ffe7b0; text-shadow: 0 2px 0 #000;
  border: 2px solid #c79a4a; box-shadow: inset 0 0 0 2px #000, inset 0 10px 20px rgba(255,255,255,.12), 0 0 0 1px #000, 0 8px 18px rgba(0,0,0,.55);
}
.abtn.help { background: radial-gradient(circle at 50% 30%, #d8452f, #6b120c 75%); }
.abtn.kos { background: radial-gradient(circle at 50% 30%, #6c4fa8, #23123f 75%); }
.abtn.rally { background: radial-gradient(circle at 50% 30%, #c96a24, #4a1c06 75%); }
.abtn kbd { position: absolute; top: 3px; right: 5px; font: 700 12px/1 var(--f-body); color: #ddd; text-shadow: 1px 1px 0 #000; }
.abtn.glow { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px #000, 0 0 0 1px #000, 0 0 22px 4px rgba(255,150,40,.85); } }
.key b { font: 400 15px/1.2 var(--f-head); color: var(--gold-hi); }
.key small { font-size: 13.5px; line-height: 1.3; color: var(--mist); }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--rim); border-radius: 4px; background: rgba(14,12,20,.7); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; vertical-align: top; border-bottom: 1px solid #241f2c; }
th { font: 700 12px/1.3 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--school); background: rgba(230,183,92,.05); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; color: var(--gold-hi); font-weight: 700; white-space: nowrap; }

/* commands */
.cmd { font-family: var(--f-mono); font-size: 14.5px; color: var(--blue); white-space: nowrap; }
.chat {
  font: 500 15px/1.5 var(--f-body); background: rgba(0,0,0,.55); border-left: 2px solid var(--school); padding: 10px 14px; border-radius: 0 4px 4px 0;
}
.chat .pfx { color: #33ff99; }
.codebox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--rim); border-radius: 4px; background: #0d0b12; }
.codebox code { color: #ffe3a3; font-size: 14.5px; word-break: break-all; flex: 1 1 260px; min-width: 0; }
.copy { font: 700 11px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border-radius: 3px; cursor: pointer; color: var(--gold-hi); background: #221c29; border: 1px solid var(--gold-lo); }
.copy:hover { border-color: var(--gold); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.search {
  flex: 1 1 260px; min-width: 0; padding: 11px 14px; border-radius: 4px; font: 500 16px/1.2 var(--f-body); color: var(--parch);
  background: #0d0b12; border: 1px solid var(--gold-lo); box-shadow: inset 0 2px 6px rgba(0,0,0,.6);
}
.search::placeholder { color: var(--ash); }
.search:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 3px rgba(0,180,255,.18); }
.chip { font: 600 11.5px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; cursor: pointer; color: var(--mist); background: transparent; border: 1px solid #3a3242; }
.chip[aria-pressed="true"] { color: #1a0f00; background: var(--gold); border-color: var(--gold-hi); }
.cmds td:first-child { width: 38%; }
.tag { font: 600 10.5px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); border: 1px solid #3a3242; border-radius: 999px; padding: 4px 7px; white-space: nowrap; }
.count { font: 600 12px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }

/* access builder */
.ranks { display: grid; gap: 6px; }
.rank { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 4px; background: rgba(0,0,0,.3); border: 1px solid #2a2333; }
.rank .rn { font: 400 17px/1.2 var(--f-head); color: var(--parch); }
.rank .ri { font: 600 11px/1 var(--f-caps); color: var(--ash); letter-spacing: .1em; margin-left: 8px; }
.rank label, .opts label { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--mist); cursor: pointer; white-space: nowrap; }
input[type="checkbox"] { accent-color: var(--gold); width: 17px; height: 17px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }

/* sync diagram */
.diagram { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--f-caps); }

/* FAQ */
details { border: 1px solid #2a2333; border-radius: 4px; background: rgba(20,18,27,.8); }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 14px 16px; font: 400 18px/1.3 var(--f-head); color: var(--gold-hi); list-style: none; display: flex; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); transition: transform .2s; flex: none; }
details[open] summary::before { transform: rotate(45deg); }
summary:hover { color: var(--blue-hi); }
details .body { padding: 0 16px 16px 36px; color: var(--parch); }
details .body > * + * { margin-top: 10px; }

.note { border-left: 3px solid var(--school); padding: 10px 14px; background: color-mix(in srgb, var(--school) 7%, transparent); border-radius: 0 4px 4px 0; font-size: 16.5px; }
.note b { color: var(--school); font: 700 12px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.stack { display: grid; gap: 18px; align-content: start; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini .panel p { font-size: 16px; color: var(--mist); }
.mini .panel h3 { font: 400 19px/1.25 var(--f-head); color: var(--gold-hi); margin-bottom: 6px; }
.pill { display: inline-block; font: 700 11px/1 var(--f-caps); letter-spacing: .1em; padding: 5px 8px; border-radius: 3px; text-transform: uppercase; }
.pill.bis { color: #1a0d00; background: var(--q-leg); } .pill.norm { color: #fff; background: #345a9a; } .pill.low { color: #ddd; background: #3b3b46; }

.blue-name { color: var(--blue); font-weight: 700; text-shadow: 0 0 12px rgba(0,180,255,.35); }
footer { margin-top: 90px; border-top: 1px solid var(--rim); background: linear-gradient(180deg, rgba(20,17,27,.9), var(--void)); }
footer .wrap { padding-block: 40px 50px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; font-size: 15.5px; color: var(--mist); }
.log b { font: 700 14px/1.5 var(--f-caps); color: var(--gold); }

@media (max-width: 980px) {
  .hero .wrap, .cols, .cols.wide-left, footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .screen.tilt { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 10.5px; }
  .rank { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .brand span { display: none; }
}

/* ---------- multi-page additions ---------- */
.pagehead { position: relative; border-bottom: 1px solid var(--rim); overflow: hidden;
  background: radial-gradient(700px 260px at 20% 0%, rgba(230,183,92,.13), transparent 70%), radial-gradient(600px 300px at 90% 100%, rgba(0,180,255,.08), transparent 70%); }
.pagehead .wrap { padding-block: clamp(34px, 5vw, 58px) clamp(26px, 4vw, 40px); }
.pagehead h1 { font: 400 clamp(38px, 5.4vw, 62px)/1.05 var(--f-head); margin-top: 8px;
  background: linear-gradient(180deg, #fff6d8, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding: .04em .14em .08em .02em; margin-right: -.14em; filter: drop-shadow(0 2px 0 #2a1c08); }
.pagehead p { margin-top: 12px; max-width: 60ch; color: var(--mist); font-size: 19px; }
.onpage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.onpage a { font: 600 12px/1 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 9px 12px; border-radius: 999px; color: var(--blue); border: 1px solid rgba(0,180,255,.3); background: rgba(0,180,255,.05); }
.onpage a:hover { color: var(--blue-hi); border-color: var(--blue); }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 70px; }
.pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 4px; text-decoration: none; border: 1px solid var(--rim); background: linear-gradient(180deg, var(--stone-2), var(--stone)); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: var(--blue); transform: translateY(-2px); }
.pager .next { text-align: right; }
.pager span { font: 600 11.5px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.pager b { font: 400 22px/1.2 var(--f-head); color: var(--blue); font-weight: 400; }
.pager .prev b::before { content: "‹ "; color: var(--gold); } .pager .next b::after { content: " ›"; color: var(--gold); }
.news, .paths { padding-block: clamp(46px, 6vw, 72px) 0; }
.newshead { margin-bottom: 22px; }
.newshead h2 { font: 400 clamp(28px, 3.6vw, 40px)/1.1 var(--f-head); margin-top: 6px; }
.newshead h2 em { font-style: normal; color: var(--gold); }
.newscard { display: block; text-decoration: none; color: inherit; transition: transform .2s; }
.newscard:hover { transform: translateY(-3px); }
.newscard h3 { color: var(--school) !important; }
.pathgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.path { display: grid; gap: 6px; padding: 18px 20px; border-radius: 4px; text-decoration: none; border: 1px solid #2a2232;
  background: linear-gradient(135deg, rgba(0,180,255,.06), transparent 40%), linear-gradient(180deg, var(--stone-2), var(--stone)); transition: border-color .2s, transform .2s; }
.path:hover { border-color: var(--blue); transform: translateY(-2px); }
.path b { font: 400 21px/1.2 var(--f-head); color: var(--blue); font-weight: 400; }
.path span { color: var(--mist); font-size: 16px; line-height: 1.4; }
.hero .cta .btn { padding: 12px 15px; letter-spacing: .1em; }
.footnav { display: flex !important; flex-wrap: wrap; gap: 6px 18px; padding-block: 0 34px !important; }
.footnav a { font: 600 12px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.chapter:first-of-type { padding-top: clamp(36px, 5vw, 56px); }
@media (max-width: 980px) { .pathgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pathgrid, .pager { grid-template-columns: minmax(0, 1fr); } .pager .next { text-align: left; } }

/* ---------- site search ---------- */
.search-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 10px 8px 12px; border-radius: 4px; cursor: pointer;
  font: 600 12px/1 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: rgba(0,180,255,.06); border: 1px solid rgba(0,180,255,.32); }
.search-btn:hover { color: var(--blue-hi); border-color: var(--blue); }
@media (max-width: 1060px) { .search-btn { margin-left: auto; } .menu-btn { margin-left: 0 !important; } }
.search-btn kbd { font: 600 11px/1 var(--f-mono); color: var(--mist); border: 1px solid #3a3242; border-radius: 3px; padding: 3px 5px; }
.sdlg[hidden] { display: none !important; }
.sdlg { position: fixed; inset: 0; z-index: 100; background: rgba(4,3,8,.72); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start;
  padding: calc(env(safe-area-inset-top, 0px) + 9vh) 16px 16px; }
.sbox { width: min(720px, 100%); max-height: 78vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 6px;
  background: linear-gradient(180deg, #1d1926, #121019); border: 1px solid var(--gold-lo); box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0,0,0,.7), 0 0 50px rgba(0,180,255,.08); }
.srow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rim); color: var(--blue); }
.srow input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font: 500 19px/1.3 var(--f-body); color: var(--parch); }
.srow input::placeholder { color: var(--ash); }
.sclose { font: 600 11px/1 var(--f-mono); color: var(--mist); background: #221c29; border: 1px solid #3a3242; border-radius: 3px; padding: 6px 8px; cursor: pointer; }
.sres { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.sres a { display: grid; gap: 3px; padding: 10px 12px; border-radius: 4px; text-decoration: none; border: 1px solid transparent; }
.sres li.on a, .sres a:hover { background: rgba(0,180,255,.08); border-color: rgba(0,180,255,.3); }
.sres .sp { font: 600 10.5px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.sres b { font: 400 18px/1.25 var(--f-head); color: var(--blue); font-weight: 400; }
.sres .sx { font-size: 15px; line-height: 1.4; color: var(--mist); }
.sres mark { background: rgba(230,183,92,.22); color: var(--gold-hi); border-radius: 2px; padding: 0 1px; }
.sres .empty { padding: 16px 12px; color: var(--mist); }
.stry { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; }
.stry button { font: 600 11.5px/1 var(--f-caps); letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; cursor: pointer; color: var(--blue); background: transparent; border: 1px solid rgba(0,180,255,.3); }
.shint { margin: 0; padding: 9px 14px; border-top: 1px solid var(--rim); font-size: 13px; color: var(--ash); }
@media (max-width: 960px) { .search-btn span, .search-btn kbd { display: none; } }

/* ---------- world PvP emphasis ---------- */
.warline { color: transparent; background: linear-gradient(180deg, #ffb39a, #ff4b4b 60%, #a01818); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 14px rgba(255,75,75,.35)); padding-right: .08em; }
.pvplede { color: var(--parch); }
.pvplede b { color: #ff8a6a; font-weight: 700; }
.pvptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pvptags a { font: 600 11.5px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 7px 10px; border-radius: 3px;
  color: #ffd0c4; background: linear-gradient(180deg, rgba(255,75,75,.18), rgba(255,75,75,.05)); border: 1px solid rgba(255,75,75,.45); }
.pvptags a:hover { color: #fff; border-color: #ff6b5b; box-shadow: 0 0 14px rgba(255,75,75,.35); }
.btn.war { color: #ffe4dc; background: linear-gradient(180deg, #8f1d17, #4a0b08); border-color: #e0553f; box-shadow: inset 0 1px 0 rgba(255,200,180,.2), 0 0 18px rgba(255,60,40,.25); }
.btn.war:hover { color: #fff; border-color: #ff8a6a; box-shadow: inset 0 1px 0 rgba(255,200,180,.3), 0 0 26px rgba(255,60,40,.45); }
.hero figure { position: relative; }
.alerts { position: absolute; left: -4%; right: 6%; bottom: 14%; display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.alerts .warn { font: 900 clamp(15px, 1.7vw, 21px)/1.2 var(--f-body); color: #ff5a3c; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 0 0 18px rgba(255,80,40,.6);
  animation: warnIn 7s ease-in-out infinite; }
.alerts .toast { max-width: 380px; animation: toastIn 7s ease-in-out infinite; }
.alerts .toast span { font-size: 13.5px; }
.alerts .a2 { animation-delay: 1.1s; margin-left: 18%; }
@keyframes warnIn { 0%, 100% { opacity: .0; transform: translateY(6px); } 8%, 80% { opacity: 1; transform: none; } }
@keyframes toastIn { 0%, 6% { opacity: 0; transform: translateX(-16px); } 14%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .alerts .warn, .alerts .toast { opacity: 1 !important; transform: none !important; } }
@media (max-width: 980px) { .alerts { position: static; margin-top: -8px; } .alerts .a2 { margin-left: 0; } }
.warband { padding-block: clamp(46px, 6vw, 72px) 0; position: relative; }
.warband::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 300px at 50% 0%, rgba(255,75,75,.08), transparent 70%); }
.red-em { font-style: normal; color: var(--blood) !important; }
.warlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.warlist li { padding-left: 16px; position: relative; font-size: 16px; line-height: 1.45; color: var(--mist); }
.warlist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--school); box-shadow: 0 0 8px var(--school); }
.warlist b { color: var(--parch); }
