@charset "utf-8";

/* Layout: a guild handbook. 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: #c2b8a3;          /* secondary text */
  --ash: #9b927f;            /* tertiary text: 6:1 on panels (was too dim for small text) */
  --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: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;   /* small labels, buttons, tabs */
  --f-head: "Metamorphous", "Cinzel", Georgia, serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
table, .num, .pstats b { font-variant-numeric: tabular-nums; }
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 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  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: 1220px) {
  .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(4, 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: 1220px) { .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); }

/* ---------- polish: hero background picture ---------- */
.hero { background: #0a0910 url(img/hero-bg.webp) 72% 50% / cover no-repeat; }
.hero::before {
  background:
    linear-gradient(90deg, rgba(10,9,16,.94) 0%, rgba(10,9,16,.86) 28%, rgba(10,9,16,.5) 44%, rgba(10,9,16,.05) 62%, rgba(10,9,16,0) 100%),
    linear-gradient(180deg, rgba(10,9,16,.4) 0%, transparent 16%, transparent 80%, #0a0910 100%);
}
.hero .wrap { grid-template-columns: minmax(0, 600px); min-height: min(860px, 88vh); }
@media (min-width: 1700px) { .hero { background-position: 70% 46%; } }
@media (max-width: 980px) {
  .hero { background-image: url(img/hero-bg-1200.webp); background-size: 1100px auto; background-position: 86% 0; }
  .hero::before { background: linear-gradient(180deg, transparent 0, transparent 250px, rgba(10,9,16,.7) 380px, rgba(10,9,16,.96) 520px, #0a0910 600px); }
  .hero .wrap { min-height: 0; padding-top: 360px; }
}

/* ---------- polish: the add-on in game, below the hero ---------- */
.ingame { padding-block: clamp(46px, 6vw, 76px) 0; position: relative; }
.ingame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 340px at 70% 30%, rgba(230,183,92,.07), transparent 70%); }
.ingame .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ingame h2 { font: 400 clamp(28px, 3.6vw, 40px)/1.1 var(--f-head); margin-top: 6px; }
.ingame h2 em { font-style: normal; color: var(--gold); }
.ingame p { color: var(--mist); margin: 12px 0 20px; max-width: 46ch; }
.ingame figure { position: relative; margin: 0; }
.ingame .alerts { left: -7%; bottom: 17%; }
@media (max-width: 980px) { .ingame .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- polish: hero pop-ups, one at a time, solid ---------- */
.alerts { left: -5%; right: auto; bottom: 9%; display: grid; justify-items: start; }
.alerts .warn, .alerts .toast { grid-area: 1 / 1; align-self: end; opacity: 0; animation: alertCycle 12s ease-in-out infinite; }
.alerts .warn { animation-delay: 0s; background: rgba(12,7,8,.92); padding: 9px 16px; border: 1px solid rgba(255,90,60,.5); border-radius: 4px;
  box-shadow: 0 12px 34px rgba(0,0,0,.7), 0 0 22px rgba(255,60,40,.18); }
.alerts .a1 { animation-delay: 4s; margin-left: 0; }
.alerts .a2 { animation-delay: 8s; margin-left: 0; }
.alerts .toast { max-width: 410px; background: linear-gradient(90deg, #2c2414, #15161c 42%); box-shadow: 0 14px 36px rgba(0,0,0,.75); }
@keyframes alertCycle { 0% { opacity: 0; transform: translateY(10px); } 4%, 29% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .alerts .warn, .alerts .a1 { display: none; }
  .alerts .a2 { animation: none; opacity: 1 !important; }
}
@media (max-width: 980px) { .alerts { position: static; margin-top: 12px; } }

/* ---------- polish: back to top ---------- */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; text-decoration: none;
  color: var(--gold-hi); background: radial-gradient(circle at 50% 35%, #2a2216, #121016); border: 1px solid var(--gold-lo);
  box-shadow: 0 8px 22px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover, .totop:focus-visible { border-color: var(--gold); box-shadow: 0 8px 22px rgba(0,0,0,.6), 0 0 16px rgba(230,183,92,.35); }

/* ---------- polish: 404 ---------- */
.lost { text-align: center; padding-block: clamp(50px, 9vw, 110px); }
.lost h1 { font: 400 clamp(40px, 6vw, 70px)/1.05 var(--f-head); color: var(--gold-hi); }
.lost p { color: var(--mist); max-width: 52ch; margin: 14px auto 26px; font-size: 19px; }
.lost .cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ================= clean theme (3.4.0.4) ================= */
:root {
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --line: #2b2733;            /* neutral hairline */
  --line-2: #3a3542;
  --card: #15131b;
  --card-2: #1a1721;
  --tint: rgba(230,183,92,.08);
}
h1, h2, h3, h4 { font-optical-sizing: auto; }

/* ---- top bar and navigation: plain text links, one underline for the current page ---- */
.bar { background: rgba(10,9,16,.92) !important; border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
.nav { gap: 2px; }
.nav a, .nav a:hover, .nav a.on {
  font: 500 14px/1 var(--f-body); letter-spacing: 0; text-transform: none; text-shadow: none;
  color: var(--mist); background: none; border: 0; border-radius: 0; padding: 20px 8px 18px; box-shadow: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--parch); }
.nav a.on { color: var(--gold-hi); border-bottom-color: var(--gold); }
@media (max-width: 1220px) {
  .nav a, .nav a:hover, .nav a.on { padding: 12px; font-size: 15px; border-bottom: 0; border-radius: 6px; }
  .nav a.on { background: var(--tint); }
}
.menu-btn { font: 600 14px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--parch); background: transparent; border: 1px solid var(--line-2); border-radius: 8px; }
.search-btn { font: 500 14px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--mist); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: none; }
.search-btn:hover { color: var(--parch); border-color: #4a4452; }
.search-btn kbd { border-color: var(--line-2); color: var(--ash); }

/* ---- type ladder ---- */
.eyebrow, .phead .eyebrow { font: 600 12.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.tagline { font: 500 clamp(21px, 2.2vw, 26px)/1.35 var(--f-head); letter-spacing: -.005em; }
.chapter h2, .newshead h2 {
  font: 600 clamp(30px, 3.8vw, 44px)/1.12 var(--f-head); letter-spacing: -.015em; color: #f6ecd6;
}
.pagehead h1, .phead h1, .psign h1, .pubhead h1 {
  font-family: var(--f-head); font-weight: 600; letter-spacing: -.02em; line-height: 1.06;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #f8eed8; filter: none;
  padding: 0; margin-right: 0;
}
.pagehead h1 { font-size: clamp(38px, 5vw, 58px); }
.pagehead { background: radial-gradient(700px 240px at 15% 0%, rgba(230,183,92,.09), transparent 70%) !important; border-bottom-color: var(--line) !important; }
.prose h3, .h3, .psec, .pempty h2, .psteps h2, .phero h2 {
  font: 600 24px/1.25 var(--f-head); letter-spacing: -.01em; color: #f4e7c8;
}
.psec { font-size: clamp(22px, 2.4vw, 26px); }
.prose h3::after { content: none; }
.steps h3, .mini .panel h3, .tile h3, .legend b, .pdialog h3, .pguild b, .path b, .pager b, .key b, .rank .rn {
  font-family: var(--f-head); font-weight: 600; letter-spacing: -.005em;
}
.steps h3 { font-size: 20px; color: #f4e7c8; margin: 6px 0 4px; }
.mini .panel h3, .newscard h3 { font-size: 20px; }
.tile h3 { font-size: 17px; color: var(--parch); }
.path b, .pager b { font-size: 20px; color: var(--gold-hi); }
.panel h4, .pcard h3 {
  font: 650 16px/1.3 var(--f-body); letter-spacing: -.005em; text-transform: none; color: var(--gold-hi); margin-bottom: 10px;
}
summary { font: 600 18px/1.35 var(--f-head); color: #f4e7c8; }
summary:hover { color: var(--gold-hi); }
th, .ptable th { font: 600 12.5px/1.3 var(--f-body); letter-spacing: .02em; text-transform: none; color: var(--ash); background: none; }
.note b { font: 650 14px/1.2 var(--f-body); letter-spacing: 0; text-transform: none; }
.meta { font: 500 13.5px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; }
.count, .copy, .tag, .chip, .onpage a, .footnav a, .pager span, .pvptags a, .award em, .night .nd, .pf span, .toast b, .ri, .rank .ri { letter-spacing: 0 !important; text-transform: none !important; }

/* ---- buttons: two looks. Solid gold for the one main action, quiet outline for the rest ---- */
.btn {
  font: 600 15px/1 var(--f-body); letter-spacing: 0; text-transform: none; text-shadow: none;
  padding: 12px 18px; border-radius: 8px; color: var(--parch);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); box-shadow: none; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: none; color: #fff; background: rgba(255,255,255,.07); border-color: #57505f; box-shadow: none; }
.btn.primary { color: #1d1204; background: var(--gold); border-color: var(--gold); text-shadow: none; }
.btn.primary:hover { color: #1d1204; background: #f0c674; border-color: #f0c674; }
.btn.war { color: #fff; background: #b8322a; border-color: #b8322a; text-shadow: none; box-shadow: none; }
.btn.war:hover { background: #cc3d33; border-color: #cc3d33; color: #fff; }
.btn.small { padding: 7px 11px; font-size: 13.5px; border-radius: 7px; }
.btn.big { padding: 14px 22px; font-size: 16px; }
/* small actions (edit, delete, reset, sign out...) read as quiet text until hovered */
.btn.small:not(.primary):not(.war) { background: transparent; border-color: transparent; color: var(--blue-hi); padding: 7px 9px; }
.btn.small:not(.primary):not(.war):hover { background: rgba(255,255,255,.06); border-color: transparent; color: #fff; }
.btn.small.danger, .btn.small[data-danger] { color: #ff8a7d; }
/* form fields: neutral borders, gold only on focus */
.search, .pfield input, .pfield select, .pfield textarea, .pf select, .pf input, select, input[type="text"], input[type="search"], input[type="date"], input[type="number"], textarea {
  border-color: var(--line-2) !important; border-radius: 8px; box-shadow: none !important; background-color: #0e0c13;
}
.search:focus, .pfield input:focus, .pfield select:focus, .pfield textarea:focus, .pf select:focus, .pf input:focus, select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(230,183,92,.15) !important;
}
.hero .cta .btn { padding: 13px 20px; letter-spacing: 0; }
.cta { align-items: center; }
/* text links standing in for secondary buttons */
.tlink { font: 600 15px/1.2 var(--f-body); color: var(--blue-hi); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.tlink::after { content: " \2192"; }
.tlink:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tlink.war { color: #ff8a7d; }
.copy { font: 600 13px/1 var(--f-body); padding: 7px 10px; border-radius: 6px; color: var(--mist); background: transparent; border: 1px solid var(--line-2); }
.copy:hover { color: #fff; border-color: #57505f; }
.linkbtn { font-weight: 600; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }

/* ---- labels that are not buttons: small, filled, no border ---- */
.tag, .pchip, .rchip {
  font: 600 12px/1 var(--f-body) !important; padding: 4px 8px; border-radius: 5px; border: 0 !important;
  background: rgba(255,255,255,.06); color: var(--mist);
}
.pchip .x { opacity: .7; }
/* filter toggles: a quiet segmented look */
.chip { font: 500 14px/1 var(--f-body); padding: 8px 12px; border-radius: 7px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: var(--mist); }
.chip:hover { color: var(--parch); background: rgba(255,255,255,.07); }
.chip[aria-pressed="true"] { color: var(--gold-hi); background: var(--tint); border-color: rgba(230,183,92,.4); }

/* "on this page" pills become a plain list of links */
.onpage { gap: 6px 22px; }
.onpage a { font: 600 15px/1.3 var(--f-body); padding: 0; border: 0; background: none; border-radius: 0; color: var(--blue-hi); }
.onpage a::before { content: "\2193  "; color: var(--ash); }
.onpage a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* world PvP words in the hero: inline links, not badges */
.pvptags { gap: 4px 0; }
.pvptags a { font: 600 14.5px/1.4 var(--f-body); padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; color: #ff8a7d; border-radius: 0; }
.pvptags a + a::before { content: "\00b7"; color: var(--ash); padding: 0 9px; }
.pvptags a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---- surfaces: flat cards, one border, no ornaments or glow ---- */
.panel, .tile, .path, .pager a, .pcard, .pstats div, .pguild, .award, .night, .phero, .pbox, details, .pfilters, .pdialog {
  box-shadow: none !important;
}
.panel {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 12px;
}
.panel.school { border-color: color-mix(in srgb, var(--school) 22%, var(--line)) !important; }
.panel::before, .panel::after { content: none !important; display: none !important; }
.tile, .path, .pager a, .pguild {
  background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: 12px; transform: none !important;
}
.tile:hover, .path:hover, .pager a:hover, .pguild:hover, .newscard:hover { border-color: #4a4452 !important; background: var(--card-2) !important; transform: none !important; }
.pstats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.pstats b { font: 650 26px/1.1 var(--f-body); letter-spacing: -.02em; color: #f8eed8; }
details { border-color: var(--line); background: var(--card); border-radius: 10px; }
.rule { height: 1px; margin: 40px 0 30px; background: var(--line) !important; }
.rule::before, .rule::after { content: none !important; }
footer { border-top-color: var(--line) !important; background: none !important; }
.footnav a { font: 500 14px/1 var(--f-body); color: var(--mist); }
.footnav a:hover { color: var(--parch); }

/* numbered steps: smaller, flatter counters */
.steps > li { grid-template-columns: 34px minmax(0, 1fr); }
.steps > li::before {
  width: 30px !important; height: 30px !important; font: 650 14px/1 var(--f-body) !important; color: var(--gold-hi) !important;
  background: var(--tint) !important; border: 1px solid rgba(230,183,92,.35) !important; box-shadow: none !important; margin-top: 6px;
}
.warlist li::before { box-shadow: none; }
.blue-name { text-shadow: none; }
.crest img { filter: none; }

/* ---------- portal ---------- */
.pbar2, .ptable td, .ptable th, td, th { border-color: var(--line) !important; }
.pnav a, .pnav a:hover, .pnav a.on { font: 500 14.5px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--mist); border: 0; background: none; padding: 8px 10px; }
.pnav a:hover { color: var(--parch); }
.pnav a.on { color: var(--gold-hi); }
.ptabs { border-bottom-color: var(--line) !important; gap: 2px; }
.ptabs a { font: 500 14.5px/1 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--mist); padding: 12px 10px; }
.ptabs a:hover { color: var(--parch); }
.ptabs a.on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.pseg { background: rgba(255,255,255,.04) !important; border: 1px solid var(--line) !important; border-radius: 9px !important; padding: 3px !important; }
.pseg a, .pseg button { font: 500 14px/1 var(--f-body); letter-spacing: 0; text-transform: none; padding: 8px 12px; border-radius: 7px; }
.pseg a.on, .pseg button.on { color: var(--gold-hi); background: var(--tint); box-shadow: inset 0 0 0 1px rgba(230,183,92,.35); }
.pf span { font: 600 12.5px/1 var(--f-body); color: var(--ash); }
.pfilters { background: var(--card) !important; border-color: var(--line) !important; border-radius: 12px !important; }
.award, .night, .phero, .vsplayer { background: var(--card) !important; border-color: var(--line) !important; border-radius: 12px; transform: none !important; }
.award:hover { border-color: #4a4452 !important; }
.award em, .night .nd { font: 600 12.5px/1.2 var(--f-body); color: var(--gold); }
.phero h2 { font-size: clamp(26px, 3.2vw, 36px); }
.pbig .parse { font-family: var(--f-body); font-weight: 700; letter-spacing: -.03em; }
.vspick .vs { font-family: var(--f-head); font-weight: 600; }
.ptable tr:hover td { background: rgba(255,255,255,.025); }
.pinit { box-shadow: none !important; }

/* ================= modern layout (3.5) ================= */
:root {
  --bg: #0d0e12; --bg-2: #111217; --surface: #14161b; --surface-2: #1a1d24; --line: #23262e; --line-2: #343842;
  --text: #e9e6df; --head: #f5f2ea; --muted: #a9a6a0; --dim: #8e919a; --faint: #6f727b;
  --gold: #e2b45a; --gold-hi: #f0cd84; --blue: #7cc4ff; --blue-hi: #b5ddff; --red: #ff8a7d;
  --void: #0d0e12; --stone: #14161b; --stone-2: #1a1d24; --rim: #23262e; --parch: #e9e6df; --mist: #c4c0b7; --ash: #9a9da6;
  --card: #14161b; --card-2: #1a1d24; --line-2: #343842;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-caps: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-head: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 14px;
}
html, body { background: var(--bg) !important; }
body { background-image: none !important; color: var(--text); font: 400 16.5px/1.65 var(--f-body); }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
a { color: var(--blue); }
a:hover { color: var(--blue-hi); }
.blue-name { color: var(--blue); font-weight: 600; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13,14,18,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tb { max-width: 1440px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px 26px; min-height: 44px; position: relative; }
.tb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--text); }
.tb-brand img { width: 30px; height: 30px; }
.tb-brand span { font: 700 18px/1 "Cinzel Decorative", Georgia, serif; color: var(--gold); letter-spacing: .02em; }
.topbar .tb-nav { display: flex; gap: 2px; flex: 1 1 auto; justify-content: flex-start; min-width: 0; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
.topbar .tb-nav a, .topbar .tb-nav a:hover, .topbar .tb-nav a.on {
  font: 500 15px/1 var(--f-body); letter-spacing: 0; text-transform: none; text-shadow: none; padding: 10px 12px; border-radius: 9px; border: 0;
  color: #cfcbc3; background: none; text-decoration: none; }
.topbar .tb-nav a:hover { color: var(--head); background: rgba(255,255,255,.04); }
.topbar .tb-nav a.on { color: var(--head); background: var(--surface-2); font-weight: 600; }
.topbar .tb-search { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2) !important; background: var(--surface) !important; color: var(--dim) !important; font: 400 14px/1 var(--f-body) !important; letter-spacing: 0; text-transform: none; cursor: pointer; margin: 0; }
.topbar .tb-search span { flex: 1; text-align: left; display: inline; }
.topbar .tb-search kbd { display: inline; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; font: 500 12px/1.4 var(--f-body); color: var(--dim); }
.topbar .tb-search:hover { color: var(--text) !important; border-color: #4a4f5a !important; }
.tb-signin { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; background: var(--gold); color: #18120a !important; font: 600 15px/1 var(--f-body); text-decoration: none; flex: none; }
.tb-signin:hover { background: var(--gold-hi); }
.topbar .tb-menu { display: none; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 14px/1 var(--f-body); letter-spacing: 0; text-transform: none; }
@media (max-width: 1220px) { .topbar .tb-nav { display: flex; position: static; padding: 0; background: none; border: 0; box-shadow: none; } }
@media (max-width: 860px) {
  .topbar .tb-menu { display: inline-flex; align-items: center; margin-left: auto; }
  .topbar .tb-nav { display: none !important; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 10px 16px 14px !important; background: rgba(13,14,18,.98) !important; border-bottom: 1px solid var(--line) !important; }
  .topbar .tb-nav.open { display: flex !important; }
  .topbar .tb-nav a { padding: 14px 12px; font-size: 16px; }
  .topbar .tb-search { min-width: 0; width: 40px; padding: 0; justify-content: center; margin-left: auto; }
  .topbar .tb-search span, .topbar .tb-search kbd { display: none; }
  .tb { gap: 10px; padding: 10px 16px; }
  .tb-signin { padding: 0 12px; }
}
/* search dialog */
.sbox { background: var(--surface) !important; border: 1px solid var(--line-2) !important; border-radius: 16px !important; box-shadow: 0 40px 100px rgba(0,0,0,.7) !important; }
.srow { border-bottom-color: var(--line) !important; color: var(--dim) !important; }
.sres b { font: 600 17px/1.3 var(--f-body) !important; color: var(--head) !important; }
.sres li.on a, .sres a:hover { background: var(--surface-2) !important; border-color: var(--line-2) !important; }
.sres .sp, .stry button { font: 600 12px/1 var(--f-body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.stry button { color: var(--text) !important; border-color: var(--line-2) !important; }

/* ---------- footer ---------- */
.sitefoot { margin-top: 0 !important; border-top: 1px solid var(--line) !important; background: #0a0b0e !important; }
.sf { max-width: 1240px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.sf-brand { flex: 2 1 280px; }
.sf-brand p { margin: 14px 0 0; max-width: 26rem; color: var(--dim); font-size: 14px; line-height: 1.6; }
.sf-col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.sf-col b { color: var(--head); font-weight: 600; margin-bottom: 2px; }
.sf-col a { color: var(--muted); text-decoration: none; }
.sf-col a:hover { color: var(--head); }
.sf-log { flex: 2 1 260px; }
.sf-log span { color: var(--muted); line-height: 1.45; }
.sf-log em { font-style: normal; color: var(--gold); font-weight: 600; margin-right: 8px; }

/* ---------- shared bits ---------- */
.btn { border-radius: 10px; font-family: var(--f-body); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #18120a; }
.btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #18120a; }
.panel, .tile, .path, .pager a, .pcard, details, .pfilters, .pguild { border-radius: var(--radius) !important; background: var(--surface) !important; border-color: var(--line) !important; }
.eyebrow { font: 600 13px/1.3 var(--f-body) !important; letter-spacing: .02em !important; text-transform: none !important; color: var(--gold); }
.tag, .pchip, .rchip { border-radius: 999px !important; background: var(--surface-2) !important; color: #c9c6be; }

/* ---------- home ---------- */
.h-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; box-sizing: border-box; }
.home .h-hero { position: relative; min-height: 680px; display: flex; align-items: center; margin-top: -61px; padding-top: 61px;
  background-image: linear-gradient(90deg, rgba(13,14,18,.97) 0%, rgba(13,14,18,.86) 36%, rgba(13,14,18,.32) 64%, rgba(13,14,18,.05) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(13,14,18,0) 26%), url(img/hero-bg.webp);
  background-size: cover; background-position: 62% 30%; }
.home .topbar { background: rgba(13,14,18,.55); border-bottom-color: rgba(255,255,255,.07); }
.h-hero-in { width: 100%; padding-block: 72px 104px; }
.h-hero-copy { max-width: 620px; }
.h-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(13,14,18,.55); color: #dcd8cf; font-size: 14px; text-decoration: none; }
.h-pill:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.h-pill > span { padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #18120a; font-weight: 700; font-size: 12px; }
.h-wordmark { margin: 26px 0 0; font: 900 clamp(56px, 8vw, 88px)/.95 "Cinzel Decorative", Georgia, serif; color: var(--gold); text-shadow: 0 4px 30px rgba(0,0,0,.6);
  background: linear-gradient(180deg, #fff3d0, #f0cd84 35%, #e2b45a 70%, #9a6a24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: .04em .14em .06em 0; display: inline-block; filter: drop-shadow(0 3px 0 #2a1c08); }
.h-hero h1 { margin: 18px 0 0; font: 600 clamp(28px, 3.4vw, 40px)/1.16 var(--f-body); letter-spacing: -.02em; color: #f7f4ec; }
.h-war { color: #ff8a7d; }
.h-lede { margin: 18px 0 0; max-width: 34rem; font-size: 18px; color: #c4c0b7; }
.h-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.h-ctas.center { justify-content: center; }
.h-btn { height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 12px; font: 600 16px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.h-btn.big { height: 52px; padding: 0 24px; }
.h-btn.gold { background: var(--gold); color: #18120a; box-shadow: 0 10px 30px rgba(226,180,90,.22); }
.h-btn.gold:hover { background: var(--gold-hi); color: #18120a; }
.h-btn.ghost { border-color: rgba(255,255,255,.22); background: rgba(13,14,18,.45); color: #f7f4ec; }
.h-btn.ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.h-btn.red { margin-top: 26px; background: #c9392e; color: #fff; }
.h-btn.red:hover { background: #dc4639; color: #fff; }
.h-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.h-meta b { color: #f7f4ec; font-weight: 600; }
.h-glance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.h-glance-in { padding-block: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px; }
.h-glance b { display: block; font: 700 30px/1.1 var(--f-body); color: var(--gold); letter-spacing: -.01em; }
.h-glance span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.h-show { padding-block: 88px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.h-show.rev { flex-wrap: wrap-reverse; flex-direction: row-reverse; }
.h-show-copy { flex: 1 1 380px; min-width: 0; }
.h-show-art { flex: 1.4 1 520px; min-width: 0; position: relative; }
.h-show-art::before { content: ""; position: absolute; inset: -40px; pointer-events: none; }
.glow-gold::before { background: radial-gradient(closest-side, rgba(226,180,90,.16), transparent); }
.glow-blue::before { background: radial-gradient(closest-side, rgba(124,196,255,.13), transparent); }
.glow-red::before { background: radial-gradient(closest-side, rgba(201,57,46,.2), transparent); }
.h-show-art > img { position: relative; display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.h-show-art.layered { padding-bottom: 64px; }
.h-show-art.layered > img:first-child { width: 88%; }
.h-show-art .h-over { position: absolute; right: 0; bottom: 0; width: 58%; border-color: #4a4f5a; box-shadow: 0 30px 70px rgba(0,0,0,.7); }
.h-kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--gold); }
.h-kicker.red { color: var(--red); }
.h-show h2, .h-rest h2, .h-new h2, .h-closer h2 { margin: 14px 0 0; font: 600 clamp(28px, 3vw, 38px)/1.15 var(--f-body); letter-spacing: -.02em; color: var(--head); }
.h-show p, .h-new p { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
.h-checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #dcd8cf; }
.h-checks li { display: flex; gap: 10px; }
.h-checks svg { flex: none; margin-top: 3px; color: var(--gold); }
.h-more { display: inline-flex; gap: 6px; margin-top: 24px; font-weight: 600; text-decoration: none; }
.h-pvp { margin-top: 88px; border-block: 1px solid #3a1c1c; background-image: linear-gradient(90deg, rgba(18,8,9,.96) 0%, rgba(18,8,9,.9) 40%, rgba(18,8,9,.62) 100%), url(img/hero-bg.webp); background-size: cover; background-position: 20% 60%; }
.h-pvp .h-show { padding-block: 88px; }
.h-pvp h2 { color: #fff4f2; }
.h-pvp p { color: #d9c4c0; }
.h-pvp .h-show-art > img { border-color: #5a2a28; box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 80px rgba(201,57,46,.18); }
.h-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips a { padding: 6px 12px; border-radius: 999px; background: rgba(255,107,91,.14); color: #ffb3a9; font-size: 14px; font-weight: 500; text-decoration: none; }
.h-chips a:hover { background: rgba(255,107,91,.24); color: #fff; }
.h-rest { padding-block: 96px 24px; }
.h-center { text-align: center; max-width: 640px; margin: 0 auto; }
.h-eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--gold); }
.h-eyebrow.blue { color: var(--blue); }
.h-tiles { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.h-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #16181e, #121318); color: var(--text); text-decoration: none; transition: border-color .15s; }
.h-tile:hover { border-color: #4a4f5a; color: var(--text); }
.h-tile img { flex: none; }
.h-tile b { display: block; font-size: 17px; font-weight: 600; color: var(--head); }
.h-tile span span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.h-strip { margin-top: 36px; display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.h-strip img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: 50% 30%; opacity: .55; }
.h-strip > span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; max-width: 560px;
  background: linear-gradient(90deg, rgba(13,14,18,.95) 0%, rgba(13,14,18,.6) 55%, rgba(13,14,18,0) 100%); }
.h-strip b { font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--f-body); color: var(--head); }
.h-strip span span { margin-top: 10px; color: #c4c0b7; }
.h-feats { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.h-feats div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.h-feats b { display: block; font-weight: 600; color: var(--head); }
.h-feats span { color: var(--dim); font-size: 14px; }
.h-portal { padding-block: 72px 32px; }
.h-browser { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); box-shadow: 0 40px 90px rgba(0,0,0,.6); overflow: hidden; }
.hb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #16181e; border-bottom: 1px solid var(--line); }
.hb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d46; }
.hb-bar span { margin-left: 12px; flex: 1; padding: 4px 12px; border-radius: 6px; background: var(--bg); color: var(--faint); font-size: 12px; }
.hb-body { display: flex; }
.hb-side { width: 150px; flex: none; padding: 14px 10px; border-right: 1px solid var(--line); background: #0a0b0e; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.hb-side span { padding: 6px 8px; border-radius: 6px; }
.hb-side .on { background: var(--surface-2); color: var(--head); font-weight: 600; }
.hb-main { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hb-main > b { font-size: 18px; font-weight: 600; color: var(--head); }
.hb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hb-kpis div, .hb-chart { padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.hb-kpis span, .hb-chart span { display: block; color: var(--dim); font-size: 11px; }
.hb-kpis b { font-size: 18px; color: var(--head); }
.hb-kpis b.g { color: var(--gold); }
.h-new { padding-block: 72px 96px; display: flex; flex-wrap: wrap; gap: 32px; }
.h-new > div:first-child { flex: 1 1 300px; }
.h-log { flex: 2 1 520px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.h-log div { display: flex; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: #c9c6be; }
.h-log div:last-child { border-bottom: 0; }
.h-log em { width: 56px; flex: none; font-style: normal; color: var(--gold); font-weight: 600; }
.h-closer { border-top: 1px solid var(--line); background-image: linear-gradient(0deg, rgba(13,14,18,.94), rgba(13,14,18,.78)), url(img/hero-bg.webp); background-size: cover; background-position: 70% 45%; }
.h-closer-in { max-width: 820px; margin: 0 auto; padding: 104px 24px; text-align: center; }
.h-closer h2 { font-size: clamp(30px, 3.6vw, 44px); color: #f7f4ec; }
.h-closer p { margin: 14px auto 0; max-width: 34rem; font-size: 18px; color: #c4c0b7; }
@media (max-width: 700px) {
  .home .h-hero { min-height: 0; background-position: 70% 30%; background-image: linear-gradient(0deg, rgba(13,14,18,.98) 30%, rgba(13,14,18,.55) 100%), url(img/hero-bg.webp); }
  .h-hero-in { padding-block: 40px 56px; }
  .h-show { padding-block: 56px 8px; gap: 32px; }
  .h-strip > span { padding: 0 20px; }
  .h-show-art.layered { padding-bottom: 40px; }
  .hb-side { display: none; }
}

/* ---------- guide pages: documentation layout ---------- */
.docs { max-width: 1440px; margin: 0 auto; padding: 0 24px; display: flex; gap: 0 40px; align-items: flex-start; }
.dside { flex: 0 0 236px; position: sticky; top: 61px; max-height: calc(100vh - 61px); overflow: auto; padding: 28px 4px 40px 0; box-sizing: border-box; font-size: 15px; scrollbar-width: thin; }
.dsd > summary { display: none; }
.ds-h { margin: 0 0 6px 12px; font: 600 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ds-list { display: flex; flex-direction: column; gap: 1px; margin-bottom: 22px; }
.ds-list a { padding: 7px 12px; border-radius: 8px; color: #b3b0a9; text-decoration: none; line-height: 1.35; }
.ds-list a:hover { color: var(--head); background: rgba(255,255,255,.035); }
.ds-list a.on { background: rgba(226,180,90,.12); color: var(--gold); font-weight: 600; }
.ds-list a.sub { padding: 6px 12px 6px 26px; color: var(--dim); font-size: 14px; }
.dmain { flex: 1 1 auto; min-width: 0; padding-bottom: 64px; }
.dtoc { flex: 0 0 200px; position: sticky; top: 61px; padding: 40px 0; font-size: 14px; }
.dtoc > div { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 14px; }
.dtoc a { color: var(--dim); text-decoration: none; line-height: 1.35; }
.dtoc a:hover { color: var(--head); }
.dtoc a.t1 { color: #c9c6be; font-weight: 500; }
.dtoc a.t2 { padding-left: 10px; font-size: 13.5px; }
.dmain .pagehead { background: none !important; border: 0 !important; overflow: visible; }
.dmain .pagehead .wrap { padding: 32px 0 8px !important; max-width: none; }
.dmain .pagehead h1 { font: 600 clamp(34px, 4vw, 46px)/1.08 var(--f-body) !important; letter-spacing: -.025em; color: var(--head) !important; margin-top: 10px; }
.dmain .pagehead p { font-size: 19px; color: var(--muted); max-width: 46rem; }
.crumb { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--head); }
.crumb b { color: #c9c6be; font-weight: 500; }
.dmain .onpage { display: none; }
.dmain .wrap { max-width: none !important; padding-inline: 0 !important; }
.dmain .chapter { padding-block: 36px 8px !important; border: 0; background: none !important; }
.dmain .chapter:first-of-type { padding-top: 24px !important; }
.dmain .chapter header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 20px; }
.dmain .chapter .numeral { font-size: 44px !important; line-height: 1; opacity: .9; }
.dmain .chapter h2 { font: 600 clamp(26px, 2.6vw, 32px)/1.2 var(--f-body) !important; letter-spacing: -.02em; color: var(--head) !important; width: 100%; }
.dmain .chapter h2 em { color: var(--gold); }
.dmain .prose h3, .dmain .h3 { font: 600 22px/1.3 var(--f-body) !important; color: var(--head) !important; scroll-margin-top: 80px; }
.dmain .chapter, .dmain [id] { scroll-margin-top: 76px; }
.dmain .steps h3 { font: 600 18px/1.35 var(--f-body) !important; }
.dmain .pager { margin-top: 48px; padding-inline: 0; }
.dmain .pager b { font: 600 18px/1.3 var(--f-body) !important; color: var(--head) !important; }
.dmain .rule { margin: 32px 0; }
.dmain summary { font: 600 17px/1.35 var(--f-body) !important; }
@media (max-width: 1280px) { .dtoc { display: none; } }
@media (max-width: 1000px) {
  .docs { display: block; padding: 0 16px; }
  .dside { position: static; max-height: none; padding: 16px 0 0; }
  .dsd { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 8px; }
  .dsd > summary { display: flex; padding: 10px 8px; font: 600 15px/1 var(--f-body); color: var(--head); cursor: pointer; }
  .dsd[open] > summary { margin-bottom: 8px; }
}
.dside .dsd { border: 0 !important; background: none !important; border-radius: 0 !important; padding: 0; }
@media (max-width: 1000px) { .dside .dsd { border: 1px solid var(--line) !important; background: var(--surface) !important; border-radius: 12px !important; padding: 4px 8px; } }

/* ---------- portal: app shell ---------- */
.papp { display: flex; align-items: stretch; min-height: calc(100vh - 61px); border-bottom: 1px solid var(--line); }
.pside { flex: 0 0 256px; box-sizing: border-box; position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; scrollbar-width: thin;
  padding: 18px 12px 16px; border-right: 1px solid var(--line); background: #0a0b0e; display: flex; flex-direction: column; gap: 18px; }
.pmain { flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 28px clamp(16px, 3vw, 40px) 64px !important; max-width: 1480px; min-height: 0; }
.ps-h { margin: 0 0 6px 10px; font: 600 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ps-sec { display: flex; flex-direction: column; }
.ps-switch { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; margin-bottom: 14px; }
.ps-switch:hover { border-color: #4a4f5a; }
.ps-switch:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.ps-switch select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ps-switch svg { color: var(--dim); flex: none; }
.ps-gi { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; background: rgba(226,180,90,.14); color: var(--gold); font: 700 13px/1 var(--f-body); }
.ps-gi.big { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
.ps-gt { flex: 1; min-width: 0; display: grid; }
.ps-gt b { font-weight: 600; font-size: 15px; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-gt span { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside .ptabs { display: flex; flex-direction: column; gap: 1px; border: 0 !important; margin: 0; padding: 0; }
.pside .ptabs .ps-h { margin-top: 16px; }
.pside .ptabs a, .pside .pnav a, .ps-guilds a { display: flex; align-items: center; gap: 10px; padding: 8px 10px !important; border-radius: 9px; border: 0 !important; margin: 0;
  font: 500 15px/1.25 var(--f-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: #b3b0a9 !important; text-decoration: none; background: none; }
.pside .ptabs a svg { flex: none; color: var(--faint); }
.pside .ptabs a span { flex: 1; min-width: 0; }
.pside .ptabs a:hover, .pside .pnav a:hover, .ps-guilds a:hover { color: var(--head) !important; background: rgba(255,255,255,.035); }
.pside .ptabs a.on, .pside .pnav a.on { color: var(--head) !important; background: var(--surface-2) !important; font-weight: 600 !important; }
.pside .ptabs a.on svg { color: var(--gold); }
.pside .pnav { display: flex; flex-direction: column; gap: 1px; }
.ps-guilds { display: flex; flex-direction: column; gap: 1px; }
.ps-gn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside .pbadge { margin-left: auto; }
.ps-user { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps-user .pname { color: var(--head); font-weight: 600; }
.ps-user .btn.small { margin-left: auto; }
.pmain .phead h1 { font: 600 clamp(28px, 3vw, 34px)/1.15 var(--f-body) !important; letter-spacing: -.02em; color: var(--head) !important; }
.pmain .psec, .pmain .pempty h2, .pmain .psteps h2 { font-family: var(--f-body) !important; font-weight: 600 !important; color: var(--head) !important; }
.pstats div { border-radius: var(--radius) !important; }
.pstats b { font-family: var(--f-body) !important; }
.pcard h3, .panel h4 { color: var(--head) !important; font-size: 16px !important; }
.cbox { position: relative; }
@media (max-width: 900px) {
  .papp { flex-direction: column; min-height: 0; }
  .pside { position: static; height: auto; flex: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 10px; }
  .pside .ptabs, .pside .pnav, .ps-guilds { flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .pside .ptabs .ps-h { display: none; }
  .pside .ptabs a, .pside .pnav a, .ps-guilds a { flex: none; white-space: nowrap; }
  .pside .ptabs a svg { display: none; }
  .ps-sec .ps-h { display: none; }
  .ps-switch { margin-bottom: 4px; }
  .ps-user { margin-top: 0; padding-top: 10px; }
  .pmain { padding: 20px 16px 48px !important; }
}
@media (max-width: 900px) { .pside .ptabs, .pside .pnav, .ps-guilds { flex-wrap: nowrap !important; } }
/* the decorative H's crossbar ran into the E: the wordmark uses Cinzel's plain H */
.wm-h { font-family: "Cinzel", "Cinzel Decorative", Georgia, serif; font-style: normal; }
