/* Inter (SIL Open Font License), self-hosted: vendor/fonts */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/vendor/fonts/inter-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/vendor/fonts/inter-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* midnight blue with Forever's teal and gold: the site sits on painted client art (.backdrop) */
  --bg: #070b16;
  --bg-2: #0e1426;
  --panel: rgba(16, 22, 40, .88);
  --panel-solid: #111831;
  --panel-2: #1a2441;
  --line: #26325a;
  --text: #dbe1ee;
  --muted: #8d99b8;
  --gold: #f0c35a;
  --gold-2: #b98a2c;
  --teal: #3fd0d9;
  --link: #6dcbe3;
  --new: #3ddc84;
  --changed: #ffb347;
  --removed: #ff6b6b;
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee; --q5: #ff8000; --q6: #e6cc80;
  --green: #1eff00;
  --radius: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); }
body { background: transparent; }   /* the painted .backdrop shows through */
body {
  font: 14.5px/1.55 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: inherit; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 30px; margin: 0 0 6px; color: #fff; letter-spacing: -.025em; }
h2 { font-size: 21px; margin: 32px 0 12px; color: #f4f5f8; }
h3 { font-size: 16px; margin: 18px 0 8px; color: #fff; font-weight: 650; }
h4 { font-size: 14px; margin: 14px 0 6px; color: #fff; font-weight: 650; }
.eyebrow { display: block; color: var(--gold); font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.page-intro { color: var(--muted); max-width: 820px; margin: 0 0 18px; font-size: 15px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "\203A"; margin: 0 7px; opacity: .55; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { color: var(--text); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button, input, select { font: inherit; color: inherit; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; background: rgba(13, 15, 20, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav-top {
  color: #c3c8d4; padding: 7px 12px; border-radius: 6px; font-weight: 550; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
button.nav-top::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); opacity: .6; }
.nav-top:hover, .nav-top.active, .nav-group.open .nav-top { color: #fff; background: var(--panel-2); text-decoration: none; }
.nav-group { position: relative; }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 1100; min-width: 320px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
}
.nav-group::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* hover bridge */
.nav-group.open .nav-menu, .nav-group:hover:not(.hold) .nav-menu { display: grid; }
.nav-menu a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 7px; color: var(--text); }
.nav-menu a b { font-weight: 600; color: #fff; }
.nav-menu a span { color: var(--muted); font-size: 12.5px; }
.nav-menu a:hover, .nav-menu a.active { background: var(--panel-2); text-decoration: none; }
.nav-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 420px; }
.nav-classes a.nav-class { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-classes img { border-radius: 5px; box-shadow: 0 0 0 1px #000; }
.nav-classes a.nav-all { grid-column: 1 / -1; color: var(--link); font-size: 13px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 4px; padding-top: 10px; }
.c-warrior { color: #C69B6D !important; } .c-paladin { color: #F48CBA !important; } .c-hunter { color: #AAD372 !important; }
.c-rogue { color: #FFF468 !important; } .c-priest { color: #FFFFFF !important; } .c-shaman { color: #0070DD !important; }
.c-mage { color: #3FC7EB !important; } .c-warlock { color: #8788EE !important; } .c-druid { color: #FF7C0A !important; }
.global-search { margin-left: auto; position: relative; width: min(340px, 40vw); }
.global-search input, .input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; outline: none;
}
.global-search input:focus, .input:focus { border-color: var(--gold-2); }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto;
}
.suggest a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--text); }
.suggest a:hover, .suggest a.hl { background: var(--panel-2); text-decoration: none; }
.suggest .kind { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.suggest-head { padding: 8px 10px 2px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.suggest a.suggest-all { color: var(--link); font-size: 13px; border-top: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }

.app { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; }
.app.wide { max-width: none; padding: 0; }
.footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 14px 20px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
.loading { color: var(--muted); padding: 40px; text-align: center; }
/* The server's version of a page (seo.py), shown until the app draws its own */
.ssr { max-width: 980px; }
.ssr img { display: block; max-width: 100%; height: auto; margin: 10px 0; border-radius: 8px; }
.ssr-list { columns: 3 260px; column-gap: 28px; padding-left: 18px; }
.ssr-list li { break-inside: avoid; margin: 0 0 4px; }

/* ---------- generic ---------- */
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 4px; background: var(--panel-2); color: var(--muted); vertical-align: middle;
}
.badge.new { background: rgba(61, 220, 132, .15); color: var(--new); }
.badge.changed { background: rgba(255, 179, 71, .15); color: var(--changed); }
.badge.era { background: rgba(127, 178, 255, .12); color: var(--link); }
.badge.race { background: rgba(200, 160, 255, .13); color: #c8a0ff; }
.badge.gold { background: rgba(240, 195, 90, .15); color: var(--gold); }
.btn {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer;
}
.btn:hover { border-color: var(--gold-2); }
.btn.primary { background: linear-gradient(180deg, #d9a93f, #a4761d); color: #1a1205; border: 0; font-weight: 600; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.active { border-color: var(--gold); color: var(--gold); }
select.input { width: auto; padding: 6px 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0; flex-wrap: wrap; }
.tabs a, .tabs button {
  padding: 8px 14px; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer;
}
.tabs a.active, .tabs button.active { color: #fff; border-bottom-color: var(--gold); text-decoration: none; }
.hero {
  position: relative; overflow: hidden; border-radius: 16px; padding: 56px 40px 40px; margin-bottom: 28px;
  background: #10131b; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 12, 18, .96) 0%, rgba(10, 12, 18, .92) 46%, rgba(10, 12, 18, .5) 72%, rgba(10, 12, 18, .1) 100%), linear-gradient(0deg, rgba(10, 12, 18, .6), transparent 45%); }
.hero-inner { position: relative; z-index: 2; max-width: 580px; }
.hero h1 { font-size: 40px; line-height: 1.1; }
.hero p { color: #c9ceda; max-width: 600px; margin: 10px 0 0; font-size: 16px; }
.hero-credit { position: absolute; z-index: 2; right: 14px; bottom: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.hero-search { position: relative; max-width: 560px; margin-top: 22px; }
.hero-search input {
  width: 100%; padding: 13px 16px 13px 42px; font-size: 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(13, 15, 20, .82) no-repeat 14px center / 18px; outline: none; color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}
.hero-search input:focus { border-color: var(--gold); }
.hero-search .suggest { z-index: 20; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: #aab1c0; font-size: 13px; }
.hero-meta b { color: #fff; font-weight: 600; }
.hero-meta a { color: #ffd98a; }
.stat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-tile .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-tile .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat-tile.accent .v { color: var(--new); }
.card-link { display: block; color: var(--text); }
.card-link:hover { text-decoration: none; border-color: var(--gold-2); }

/* ---------- icons & lists ---------- */
.icon {
  display: inline-block; vertical-align: middle;
  width: 36px; height: 36px; border-radius: 6px; border: 1px solid #000; box-shadow: 0 0 0 1px #3a3f4c;
  background: #222 center/cover; flex-shrink: 0;
}
.icon.sm { width: 22px; height: 22px; border-radius: 4px; }
.icon.lg { width: 56px; height: 56px; border-radius: 8px; }
.q0 { color: var(--q0) !important; } .q1 { color: var(--q1) !important; } .q2 { color: var(--q2) !important; }
.q3 { color: var(--q3) !important; } .q4 { color: var(--q4) !important; } .q5 { color: var(--q5) !important; }
.q6 { color: var(--q6) !important; } .q7 { color: var(--q6) !important; }
.icon.b0 { box-shadow: 0 0 0 1px var(--q0); } .icon.b2 { box-shadow: 0 0 0 1px var(--q2); }
.icon.b3 { box-shadow: 0 0 0 1px var(--q3); } .icon.b4 { box-shadow: 0 0 0 1px var(--q4); }
.icon.b5 { box-shadow: 0 0 0 1px var(--q5); }
.ent { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }

table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap;
  user-select: none;
}
table.list th.sorted { color: var(--gold); }
table.list td { padding: 6px 10px; border-bottom: 1px solid rgba(42, 49, 66, .6); vertical-align: middle; }
table.list tr:hover td { background: rgba(255, 255, 255, .025); }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.filters .input { width: auto; min-width: 220px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; }

/* ---------- tooltips ---------- */
.tooltip, .wt {
  background: linear-gradient(180deg, rgba(8, 12, 30, .97), rgba(4, 6, 18, .97)); border: 1px solid #5b6275;
  border-radius: 6px; padding: 9px 11px; color: #fff; font-size: 13px; line-height: 1.45; max-width: 340px;
  box-shadow: var(--shadow);
}
.tooltip { position: fixed; z-index: 5000; pointer-events: none; }
.wt .t-name { font-size: 15px; font-weight: 600; }
.wt .t-row { display: flex; justify-content: space-between; gap: 16px; }
.wt .t-green { color: var(--green); }
.wt .t-gold { color: #ffd100; }
.wt .t-muted { color: #9d9d9d; }
.wt .t-desc { color: #ffd100; }
.wt .t-red { color: #ff2020; }
.wt .t-set { color: #ffd100; margin-top: 8px; }
.wt .t-setitem { color: #9d9d9d; padding-left: 8px; }
.wt .t-new { color: var(--new); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.wt p { margin: 4px 0 0; }
.money { font-variant-numeric: tabular-nums; }
.money .g { color: #ffd700; } .money .s { color: #c7c7cf; } .money .c { color: #c7793b; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.detail .wt { max-width: none; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff .old { background: rgba(255, 107, 107, .06); border-radius: 8px; padding: 10px 12px; color: #c9b8b8; }
.diff .newv { background: rgba(61, 220, 132, .06); border-radius: 8px; padding: 10px 12px; }

/* ---------- classes ---------- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.class-card { padding: 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.class-card:hover { text-decoration: none; border-color: #3a4358; background: #1b2130; }
.class-card h3 { color: var(--cc); margin: 0; font-size: 17px; }
.class-head { display: flex; gap: 12px; align-items: center; }
.class-head img { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2e3546; }
.class-card .specs { color: var(--muted); font-size: 13px; }
.class-card .overview { margin: 10px 0 0; font-size: 13.5px; color: #b9bfcc; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.class-card .more { display: inline-block; margin-top: 10px; color: var(--link); font-size: 13px; }
.class-title { display: flex; gap: 14px; align-items: center; }
.class-title img { width: 48px; height: 48px; border-radius: 10px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2e3546; }
.rotation { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.rotation li {
  counter-increment: step; display: flex; gap: 10px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px dashed rgba(42, 49, 66, .8);
}
.rotation li::before {
  content: counter(step); flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--panel-2);
  color: var(--gold); font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-top: 7px;
}
.rotation .note { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.chip b { color: var(--gold); margin-right: 4px; }
.forever-note { background: rgba(61, 220, 132, .07); border-radius: 8px; padding: 10px 12px; }

/* talent calculator */
.talent-trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tree { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tree-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tree-head h3 { margin: 0; }
.tree-grid { display: grid; grid-template-columns: repeat(4, 52px); gap: 12px 16px; justify-content: center; }
.talent { position: relative; width: 44px; height: 44px; cursor: pointer; border-radius: 7px; }
.talent .icon { width: 44px; height: 44px; filter: grayscale(1) brightness(.55); }
.talent.avail .icon { filter: none; box-shadow: 0 0 0 2px #1eff00; }
.talent.some .icon { filter: none; box-shadow: 0 0 0 2px #1eff00; }
.talent.max .icon { filter: none; box-shadow: 0 0 0 2px #ffd100; }
.talent .pts {
  position: absolute; right: -8px; bottom: -6px; background: #000; border: 1px solid #555; border-radius: 4px;
  font-size: 11px; padding: 0 4px; color: #1eff00;
}
.talent.max .pts { color: #ffd100; }
.talent .newdot { position: absolute; top: -4px; left: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--new); }

/* ---------- maps ---------- */
.map-layout { display: grid; grid-template-columns: 280px 1fr 300px; height: calc(100vh - 57px - 47px); }
.map-side { border-right: 1px solid var(--line); overflow: auto; padding: 12px; background: var(--bg-2); }
.map-side.right { border-right: 0; border-left: 1px solid var(--line); }
.map-side h3 { margin-top: 6px; }
.map-side .map-title { font-size: 20px; margin: 4px 0 2px; }
.map-canvas { position: relative; background: #07080b; }
#map { position: absolute; inset: 0; background: #07080b; }
.zone-list a { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 5px; color: var(--text); }
.zone-list a:hover { background: var(--panel-2); text-decoration: none; }
.zone-list a.active { background: var(--panel-2); color: var(--gold); }
.zone-list .lv { color: var(--muted); font-size: 12px; }
.zone-list .group { color: var(--gold); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 4px; }
.layer-toggle { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #000; display: inline-block; }
.leaflet-container { font: inherit; background: #07080b; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #0b1020; color: #fff; border: 1px solid #5b6275; }
.leaflet-popup-content { margin: 10px 12px; }
.map-pin {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 2px 6px rgba(0, 0, 0, .6);
}
.map-pin.user { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.map-label {
  background: rgba(0, 0, 0, .7); border: 0; color: #fff; box-shadow: none; font-size: 11px; padding: 1px 5px;
}
.map-label::before { display: none; }
.coords { position: absolute; z-index: 800; left: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); padding: 3px 8px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.map-toolbar { position: absolute; z-index: 800; top: 10px; right: 10px; display: flex; gap: 6px; }
.adding .leaflet-container { cursor: crosshair; }
.pin-item { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 6px; }
.pin-item:hover { background: var(--panel-2); }
.pin-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- gear planner ---------- */
.gear-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot {
  display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; min-height: 58px; cursor: pointer;
}
.slot:hover { border-color: var(--gold-2); }
.slot .slot-name { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.slot .empty { width: 36px; height: 36px; border-radius: 6px; border: 1px dashed var(--line); }
.stat-sum div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed rgba(42, 49, 66, .7); }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 3000; display: grid; place-items: center; padding: 20px; }
.modal { width: min(820px, 100%); max-height: 86vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }

@media (max-width: 1000px) {
  .detail, .gear-layout { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-trees { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; grid-template-rows: auto 60vh auto; height: auto; }
  .map-side { max-height: 260px; border-right: 0; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); padding: 8px 12px 14px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 56px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-group::after { display: none; }
  .nav .nav-top { width: 100%; justify-content: flex-start; padding: 10px 8px; }
  .nav button.nav-top { pointer-events: none; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: none; padding: 12px 8px 4px; }
  .nav button.nav-top::after { display: none; }
  .nav-menu, .nav-group:hover:not(.hold) .nav-menu { display: grid; position: static; box-shadow: none; border: 0; background: none; padding: 0; min-width: 0; }
  .nav-menu a span { display: none; }
  .nav-classes { grid-template-columns: 1fr 1fr; min-width: 0; }
  .nav-toggle { display: block; }
  .global-search { width: auto; flex: 1; }
  .app { padding: 16px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .slots, .diff { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  table.list .hide-sm { display: none; }
}

/* ---------- speculation / level cap ---------- */
.badge.spec { background: rgba(255, 179, 71, .14); color: #ffb347; border: 1px dashed rgba(255, 179, 71, .5); }
.wt .t-spec { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 179, 71, .4); color: #ffb347; font-size: 11.5px; }
.cap-banner {
  display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; padding: 9px 14px; margin-bottom: 16px; border-radius: 8px;
  background: rgba(255, 179, 71, .07); color: #e9d3ae; font-size: 13.5px;
}
.cap-banner b { color: #ffb347; }
.dim { opacity: .45; }
tr.dim td { opacity: .5; }
.lv-tag { font-size: 11px; color: #ffb347; margin-left: 6px; white-space: nowrap; }
.talent .eradot {
  position: absolute; top: -6px; right: -6px; width: 15px; height: 15px; border-radius: 50%; background: #ffb347; color: #1a1205;
  font: 700 10px/15px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 1px #000;
}

/* ---------- news & articles ---------- */
.badge.blue { background: rgba(0, 174, 255, .14); color: #52c7ff; }
.news-list { display: grid; gap: 8px; }
.news-row { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.news-row:hover { text-decoration: none; border-color: var(--gold-2); }
.news-row .excerpt { color: var(--muted); font-size: 13px; margin-top: 4px; }
.article { max-width: 820px; }
.article .lead { font-size: 17px; color: #c9ccd6; }
.article-body p, .article-body li { font-size: 15px; line-height: 1.65; }
.article-body h2 { font-size: 19px; }
.article-quote { margin: 14px 0; padding: 12px 16px; background: rgba(0, 174, 255, .07); border-radius: 10px; }
.article-quote footer { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.blue-post { background: rgba(0, 174, 255, .05); border-radius: 10px; padding: 12px 16px; }
.article-card h3 { color: #fff; }

/* ---------- spells: ranks bundled per ability / talent ---------- */
p.small { font-size: 12.5px; }
table.spell-list tr.bundle { cursor: pointer; }
table.spell-list tr.bundle.open td { background: rgba(240, 195, 90, .05); border-bottom-color: transparent; }
table.spell-list .rk { min-width: 76px; text-align: left; white-space: nowrap; }
table.spell-list tr.ranks-row > td { padding: 0 10px 12px 44px; background: rgba(240, 195, 90, .05); }
.ranks-panel { padding: 2px 0 2px 4px; }
.ranks-panel p { margin: 6px 0; }
table.rank-list { width: auto; min-width: min(560px, 100%); }
table.rank-list td, table.rank-list th { padding: 4px 12px; }
@media (max-width: 700px) { table.spell-list tr.ranks-row > td { padding-left: 10px; } }
table.spell-list tr.dim, table.rank-list tr.dim { opacity: 1; }
table.spell-list tr.dim td, table.rank-list tr.dim td { opacity: .6; }

/* ---------- ability / talent write-ups ---------- */
.writeup { margin-top: 24px; max-width: 920px; }
.writeup h2 { margin-top: 0; }
.writeup .lead { font-size: 16.5px; color: #fff; }
.writeup p { line-height: 1.65; }
.writeup h3 { font-size: 14px; margin: 14px 0 6px; color: var(--gold); }
.writeup ul { margin: 0; padding-left: 20px; }
.writeup li { margin: 4px 0; line-height: 1.5; }
.wu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; }
.wu-row { margin-top: 4px; }
.wu-forever { margin: 14px 0; padding: 12px 16px; background: rgba(61, 220, 132, .07); border-radius: 10px; }
.wu-forever b { color: var(--new); }
.wu-forever p { margin: 4px 0 0; }
.ranks-panel .wu-summary { margin: 6px 0 8px; max-width: 760px; color: var(--text); }
.ab-summary { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; max-width: 620px; line-height: 1.4; }

/* ---------- class changes vs Classic Era ---------- */
.ch-summary { margin: 4px 0 18px; }
.ch-summary .chip { cursor: pointer; color: var(--text); }
.ch-sec { margin-bottom: 22px; }
.ch-sec h3 { margin-bottom: 4px; }
.ch-table td { vertical-align: top; }
.ch-table .small { font-size: 12.5px; }
.pos { color: var(--new); }
.neg { color: var(--removed); }
.ch-tip { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; background: var(--panel); }
.ch-tip summary { cursor: pointer; }
.ch-tip .diff { margin-top: 8px; }
.ch-tip .diff p { margin: 4px 0 0; font-size: 13.5px; }

/* ---------- raid & dungeon planner ---------- */
.input.small { padding: 4px 6px; font-size: 12.5px; height: auto; }
.pl-intro { max-width: 1000px; }
.pl-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; align-items: start; }
.pl-setup { display: grid; gap: 12px; }
.pl-setup .panel h3 { margin: 0 0 10px; }
.pl-field { display: grid; gap: 3px; margin-bottom: 8px; font-size: 13px; }
.pl-hints { margin: 6px 0; }
.pl-hints .chips { margin-top: 4px; }
.pl-comp-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pl-slots { display: grid; gap: 4px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.pl-slot { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: center; padding-left: 16px; }
.pl-slot::before { content: ''; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pl-slot-name { grid-column: 1 / -1; margin-top: -2px; }
.pl-mechs { display: grid; gap: 8px; }
.pl-mc { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel-2); }
.pl-mc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pl-mc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pl-mc-fields label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.pl-phase { display: flex; gap: 4px; align-items: center; }
.pl-phase input { width: 60px; }
.pl-say { margin: 6px 0 0; }
.pl-model summary { cursor: pointer; }
.pl-model[open] summary { margin-bottom: 10px; }
.pl-arena { position: relative; }
.pl-arena-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pl-mode { display: flex; gap: 4px; }
.arena-box { position: relative; display: flex; justify-content: center; }
.arena-box canvas { display: block; max-width: 100%; cursor: crosshair; }
.arena-tip { position: absolute; display: none; pointer-events: none; background: #0b0d12; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; font-size: 12px; white-space: nowrap; z-index: 5; }
.pl-playback { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.pl-playback input[type=range] { flex: 1; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.pl-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 6px; }
.pl-tabs { margin-top: 14px; }
.pl-warn { padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-size: 13.5px; border: 1px solid; }
.pl-warn.error { background: rgba(255, 107, 107, .08); border-color: rgba(255, 107, 107, .4); }
.pl-warn.warn { background: rgba(255, 179, 71, .08); border-color: rgba(255, 179, 71, .4); }
.pl-warn.info { background: rgba(127, 178, 255, .07); border-color: rgba(127, 178, 255, .3); }
.pl-list { padding-left: 18px; margin: 0 0 8px; }
.pl-list li { margin: 3px 0; }
.pl-calls, .pl-feed { list-style: none; padding: 0; margin: 0; max-height: 440px; overflow-y: auto; font-size: 13px; }
.pl-calls li, .pl-feed li { padding: 3px 6px; border-bottom: 1px solid rgba(42, 49, 66, .6); display: flex; gap: 10px; }
.pl-calls .t, .pl-feed .t { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 38px; }
.pl-feed li { opacity: .45; }
.pl-feed li.past { opacity: 1; }
.pl-feed li.good .t { color: var(--new); }
.pl-feed li.bad { color: #ff9b9b; }
.pl-feed li.call { color: #ffd580; }
.pl-bar { display: grid; grid-template-columns: 170px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.pl-bar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #ff6b6b, #ffb347); }
.pl-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.pl-stats { margin-bottom: 12px; }
.pl-util th { text-align: left; width: 150px; vertical-align: top; color: var(--muted); font-weight: 600; }
.pl-util td { line-height: 1.9; }
.pl-later { line-height: 1.5; margin-top: 2px; }
@media (max-width: 1000px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl-bar { grid-template-columns: 120px 1fr 36px; }
}

.pl-playback[hidden] { display: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* planner replay: raid frames and meters */
.pl-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 3px; margin-top: 10px; }
.pl-frames[hidden] { display: none; }
.rf { position: relative; height: 26px; border-radius: 4px; background: #1a1d25; border: 1px solid #000; overflow: hidden; font-size: 11px; }
.rf-hp { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: .75; transition: width .25s linear; }
.rf.low .rf-hp { background: #d9534f; opacity: .9; }
.rf.dead { background: #111; }
.rf.dead .rf-name { color: #777; text-decoration: line-through; }
.rf-name { position: absolute; left: 5px; top: 1px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; max-width: 78%; font-weight: 600; }
.rf-val { position: absolute; right: 5px; bottom: 1px; color: #eee; text-shadow: 0 1px 2px #000; font-size: 10px; }
.rf-db { position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; }
.rf-db.magic { background: #4aa3ff; } .rf-db.curse { background: #b36bff; } .rf-db.poison { background: #3ddc84; } .rf-db.disease { background: #c9a26b; }
.pl-meters { margin-top: 10px; }
.pl-meter { position: relative; height: 22px; margin: 3px 0; border-radius: 3px; background: #1a1d25; overflow: hidden; font-size: 12px; }
.pl-meter i { position: absolute; inset: 0 auto 0 0; background: var(--c); opacity: .55; }
.pl-meter span { position: absolute; left: 6px; top: 3px; color: #fff; text-shadow: 0 1px 2px #000; }
.pl-meter b { position: absolute; right: 6px; top: 3px; color: #fff; text-shadow: 0 1px 2px #000; }

/* ---------- How we verify ---------- */
.prose { max-width: 860px; }
.prose .lead { font-size: 16.5px; }
.prose li { margin: 6px 0; line-height: 1.55; }
.verify-stats { margin: 16px 0 6px; }
.verify-stats .v { font-size: 18px; }
.verify-labels { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.verify-labels dd { margin: 0; line-height: 1.5; }
.footer a { color: var(--link); }
@media (max-width: 640px) { .verify-labels { grid-template-columns: 1fr; } }

/* ---------- combat log replay ---------- */
.rp-drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px; border: 2px dashed var(--line); cursor: pointer; position: relative; overflow: hidden; margin-bottom: 16px; }
.rp-drop.over, .rp-drop:hover { border-color: var(--gold-2); }
.rp-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); transition: width .2s; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; margin-top: 14px; }
.rp-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rp-head h2 { margin: 0; }
.rp-side { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.rp-feed { max-height: none; }
.rp-feed li { cursor: pointer; }
#rp-tab table.list td { padding: 4px 6px; font-size: 12.5px; }
.pl-note { margin: 4px 0 0; color: #ffd580; }
@media (max-width: 1100px) { .rp-grid { grid-template-columns: 1fr; } .rp-side { position: static; max-height: none; } }

/* ---------- class builds ---------- */
.bd-jump { margin: 8px 0 18px; }
.bd-spec { margin-bottom: 30px; scroll-margin-top: 70px; }
.bd-builds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .bd-builds { grid-template-columns: 1fr; } }
.bd-card h3 { margin: 8px 0 6px; }
.bd-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bd-talents { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.bd-talents li { background: rgba(255, 255, 255, .025); border-radius: 8px; padding: 7px 10px; }
.bd-pts { color: var(--gold); margin-left: 4px; }
.bd-rots { margin-top: 12px; }
.bd-rot { padding-left: 20px; margin: 6px 0 10px; }
.bd-rot li { margin: 5px 0; }

/* Addon page */
.addon-dl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 8px; }
.addon-hash { font-size: 11px; word-break: break-all; }


/* ---------- home ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { white-space: nowrap; font-size: 14px; }
.tasks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.task:hover { text-decoration: none; background: #1d2331; border-color: #3a4358; }
.task img { width: 36px; height: 36px; border-radius: 7px; box-shadow: 0 0 0 1px #000; flex-shrink: 0; }
.task b { display: block; color: #fff; font-weight: 650; margin-bottom: 2px; }
.task span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.news-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.news-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.news-card:hover { text-decoration: none; border-color: #3a4358; }
.news-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.news-card .body { padding: 12px 14px 14px; }
.news-card .date { color: var(--muted); font-size: 12.5px; }
.news-card h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.3; }
.news-card p { margin: 0; color: #aab1c0; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card.lead { grid-column: 1 / -1; }
.news-card.lead img { aspect-ratio: 16 / 5; }
.news-card.lead h3 { font-size: 20px; }
.blue-list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.blue-list h3 { margin: 8px 10px 6px; font-size: 14px; }
.blue-list a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--text); }
.blue-list a:hover { background: var(--panel-2); text-decoration: none; }
.blue-list .who { color: #52c7ff; font-size: 12px; font-weight: 600; }
.blue-list .t { display: block; color: #fff; font-size: 13.5px; line-height: 1.35; margin: 2px 0; }
.blue-list .when { color: var(--muted); font-size: 12px; }
.blue-list .all { color: var(--link); font-size: 13px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.class-tiles { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.class-tile { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.class-tile:hover { text-decoration: none; border-color: #3a4358; background: #1d2331; }
.class-tile img { width: 44px; height: 44px; border-radius: 9px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2e3546; }
.class-tile b { font-weight: 650; font-size: 14px; }
.class-tile span { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-card { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #10131b; color: #fff; aspect-ratio: 16 / 9; }
.art-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.art-card:hover img { transform: scale(1.03); }
.art-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 15, .9), rgba(8, 10, 15, 0) 60%); }
.art-card .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.art-card .cap b { display: block; font-size: 16px; }
.art-card .cap span { color: #c9ceda; font-size: 12.5px; }
.art-card:hover { text-decoration: none; }
.num-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.num-strip div { color: var(--muted); font-size: 13px; }
.num-strip b { display: block; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num-strip .pos b { color: var(--new); }

/* ---------- dungeons ---------- */
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dg-card { border-radius: 12px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.dg-card.dim { opacity: 1; }
.dg-card.dim .dg-img img { filter: grayscale(.7) brightness(.7); }
.dg-img { position: relative; aspect-ratio: 16 / 7; background: #10131b; overflow: hidden; }
.dg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-img .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.dg-img .badges .badge { background: rgba(10, 12, 18, .85); }
.dg-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.dg-body h3 { margin: 0; font-size: 16px; }
.dg-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.dg-facts b { color: #fff; font-weight: 600; }
.dg-bosses { font-size: 13px; color: #b9bfcc; }
.dg-bosses summary { cursor: pointer; color: var(--link); }

@media (max-width: 1100px) {
  .tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* phones: the art becomes a banner above the text instead of sitting behind it */
  .hero { display: block; padding: 0; min-height: 0; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .hero::before { display: none; }
  .hero-bg { position: static; display: block; height: 150px; }
  .hero-inner { padding: 18px 16px 18px; max-width: none; }
  .hero-credit { display: none; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; color: #b9bfcc; }
  .hero-search input { font-size: 15px; }
  .nav > a.nav-top { color: #fff; font-weight: 600; border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 12px; }
  .nav > a.nav-top + a.nav-top { border-top: 0; margin-top: 0; padding-top: 10px; }
  .tasks { grid-template-columns: 1fr 1fr; }
  .task { padding: 12px; gap: 10px; }
  .task span { display: none; }
  .news-cards, .art-grid { grid-template-columns: 1fr; }
  .class-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-tile span { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; margin-top: 28px; }
}

.also-new { margin: 12px 0 0; color: #b9bfcc; font-size: 13.5px; }
.also-new b { color: #fff; font-weight: 600; }
.small { font-size: 12.5px; }

/* ---------- accounts, reports, characters, logs ---------- */
.account { display: flex; align-items: center; }
.account-me { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: #fff; font-weight: 600; white-space: nowrap; }
.account-me:hover { border-color: var(--gold-2); text-decoration: none; }
.account-me .muted { font-weight: 400; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #148eff; box-shadow: 0 0 6px #148eff; }
.account-login { white-space: nowrap; }
.btn.danger { color: var(--removed); }
.btn.danger:hover { border-color: var(--removed); }
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.rep-head h1 { margin-bottom: 4px; }
.rep-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rep-actions .input { width: auto; }
.rep-table tr.bundle { cursor: pointer; }
tr.loading-row { opacity: .5; }
.rp-up { display: grid; gap: 8px; margin-bottom: 16px; position: relative; overflow: hidden; }
.rp-up-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-up-row .input:first-child { flex: 1 1 260px; }
.rp-up-row select.input { width: auto; flex: 0 1 280px; }
.logs-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.logs-top h2 { margin-top: 0; }
.lg-found { display: grid; gap: 2px; margin-top: 8px; }
.lg-char { display: block; padding: 6px 8px; border-radius: 6px; border-left: 3px solid var(--c); }
.lg-char b { color: var(--c); }
.lg-char:hover { background: var(--panel-2); text-decoration: none; }
.lg-totals { color: var(--muted); }
.lg-totals b { color: var(--text); }
.ch-hero { border-left: 4px solid var(--c); padding-left: 14px; margin-bottom: 12px; }
.ch-hero h1 { margin-bottom: 2px; }
.pct { display: inline-block; min-width: 30px; font-weight: 700; }
.pct-gold { color: #e5cc80; } .pct-orange { color: #ff8000; } .pct-purple { color: #a335ee; }
.pct-blue { color: #0070ff; } .pct-green { color: #1eff00; } .pct-grey { color: #9d9d9d; }
@media (max-width: 760px) {
  .logs-top { grid-template-columns: 1fr; }
  .account-me .muted { display: none; }
}

/* =====================================================================================================
   Identity: painted client art behind every page, the ForeverDB mark, class headers with spec paintings
   ===================================================================================================== */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.backdrop::before {
  content: ''; position: absolute; inset: -30px; background: var(--bd-img, none) center 20% / cover no-repeat;
  filter: blur(var(--bd-blur, 2px)) saturate(1.15) brightness(.55); transform: scale(1.04);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(7, 11, 22, .15) 0%, rgba(7, 11, 22, .55) 55%, rgba(7, 11, 22, .92) 100%),
    linear-gradient(180deg, rgba(7, 11, 22, .1) 0%, rgba(7, 11, 22, .7) 55%, var(--bg) 92%);
}

/* header */
.topbar {
  background: linear-gradient(180deg, rgba(6, 10, 22, .94), rgba(9, 14, 30, .86));
  border-bottom: 1px solid rgba(240, 195, 90, .16); box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
/* the lockup: the badge, then the wordmark (img/wordmark.svg), whose capitals are built like the badge's F */
.brand { gap: 10px; align-items: center; }
.brand-logo { width: 36px; height: 36px; display: block; transition: transform .25s ease; }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.06); }
.brand-word { height: 16px; width: auto; display: block; }
.nav-menu { background: rgba(10, 15, 32, .97); border-color: #2a3764; }
.global-search input { background: rgba(14, 20, 38, .8); }

/* type and surfaces */
h1 { font-weight: 800; letter-spacing: -.03em; }
.app > h2, .app > div > h2, .prose h2 {
  padding-bottom: 7px; border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(240, 195, 90, .55), rgba(63, 208, 217, .25) 40%, transparent 75%) 1;
}
.panel, .task, .class-card, .class-tile, .news-card, .blue-list {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 26px rgba(0, 0, 0, .22);
}
.task:hover, .class-card:hover, .class-tile:hover { background: rgba(28, 38, 68, .92); border-color: #3a4a80; }
.tabs { border-bottom-color: #26325a; }
.footer { background: rgba(6, 9, 18, .85); border-top-color: rgba(240, 195, 90, .12); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* ---------- class header: the three spec paintings, the class crest and quick facts ---------- */
.class-hero {
  position: relative; overflow: hidden; border-radius: 14px; margin: 4px 0 12px; min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .07); background: #0b1020;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), inset 0 -2px 0 var(--cc);
}
.ch-art { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.ch-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.class-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6, 9, 20, .97) 0%, rgba(6, 9, 20, .88) 38%, rgba(6, 9, 20, .45) 70%, rgba(6, 9, 20, .25) 100%),
    linear-gradient(0deg, rgba(6, 9, 20, .75), transparent 55%);
}
.ch-body { position: relative; z-index: 2; display: flex; gap: 22px; align-items: center; padding: 26px 28px; }
.ch-crest {
  flex-shrink: 0; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .12), rgba(0, 0, 0, .55)), var(--cc);
  box-shadow: 0 0 0 3px #1a1206, 0 0 0 5px #c99a3f, 0 0 0 7px #2a1d08, 0 0 34px color-mix(in srgb, var(--cc) 55%, transparent);
}
.ch-crest img { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6); }
.ch-text h1 { font-size: 40px; margin: 2px 0 4px; color: var(--cc); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.ch-desc { margin: 0; max-width: 640px; color: #c6cde0; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ch-spec {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(8, 12, 26, .7); border: 1px solid rgba(255, 255, 255, .14);
}
.ch-spec:hover { border-color: var(--cc); text-decoration: none; }
.ch-spec img { width: 22px; height: 22px; border-radius: 50%; }
.ch-spec span { color: var(--muted); font-weight: 500; }
.ch-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 6px; }
.ch-fact { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; color: var(--text); }
.ch-fact dt { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ch-fact dd { margin: 3px 0 0; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.3; }
.ch-fact dd small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
a.ch-fact:hover { border-color: #3a4a80; text-decoration: none; }

/* spec cards: pick a spec by its painting */
.spec-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 18px; }
.spec-pick {
  position: relative; overflow: hidden; border-radius: 12px; min-height: 118px; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit;
  display: flex; gap: 12px; align-items: flex-end; color: #fff; border: 1px solid rgba(255, 255, 255, .08); background: #0b1020;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s ease, border-color .2s ease;
}
.spec-pick > img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s ease, transform .4s ease; }
.spec-pick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 9, 20, .95) 10%, rgba(6, 9, 20, .25) 70%); }
.spec-pick > :not(.art) { position: relative; z-index: 1; }
.spec-pick .sp-icon { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #1a1206, 0 0 0 3px #c99a3f; flex-shrink: 0; }
.spec-pick b { display: block; font-size: 18px; letter-spacing: -.02em; }
.spec-pick span { color: #b8c0d6; font-size: 12.5px; }
.spec-pick:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .22); }
.spec-pick:hover > img.art { opacity: .95; transform: scale(1.04); }
.spec-pick.active { border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc), 0 8px 26px color-mix(in srgb, var(--cc) 30%, transparent); }
.spec-pick.active > img.art { opacity: 1; }
.spec-pick .sp-sel { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--cc); color: #0a0d18; display: none; }
.spec-pick.active .sp-sel { display: block; }

/* class list: each card carries its first spec painting */
.class-card { position: relative; overflow: hidden; border-left: 3px solid var(--cc); }
.class-card .cc-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; transition: opacity .25s ease; }
.class-card:hover .cc-art { opacity: .3; }
.class-card > :not(.cc-art) { position: relative; }

/* ---------- home ---------- */
.hero.hero-forever { min-height: 430px; padding: 34px 32px 30px; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(255, 255, 255, .07); }
.hero.hero-forever::before {
  background: radial-gradient(70% 80% at 50% 38%, rgba(7, 11, 22, .15) 0%, rgba(7, 11, 22, .72) 70%, rgba(7, 11, 22, .92) 100%),
    linear-gradient(0deg, rgba(7, 11, 22, .85), transparent 60%);
}
.hero-forever .hero-inner { max-width: 720px; display: grid; justify-items: center; }
.hero-logo { width: min(330px, 72vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); margin-bottom: 6px; }
.hero-forever h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 0; color: #eef1f8; }
.hero-forever p { margin: 8px auto 0; }
.hero-forever .hero-search { width: 100%; margin-left: auto; margin-right: auto; }
.hero-forever .hero-meta { justify-content: center; }
.countdown {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  background: rgba(8, 14, 30, .78); border: 1px solid rgba(63, 208, 217, .35); color: #cfe9ef; font-size: 14px;
  box-shadow: 0 0 24px rgba(63, 208, 217, .12);
}
.countdown b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.countdown .cd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.crest-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: -8px 0 8px; padding: 14px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.crest { display: grid; justify-items: center; gap: 7px; padding: 6px 2px; border-radius: 10px; color: var(--cc); font-weight: 650; font-size: 13.5px; }
.crest img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px #1a1206, 0 0 0 3px #b98a2c; transition: transform .2s ease, box-shadow .2s ease; }
.crest:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
.crest:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px #1a1206, 0 0 0 3px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 50%, transparent); }
.crest small { color: var(--muted); font-weight: 400; font-size: 11px; margin-top: -4px; }

@media (max-width: 1000px) {
  .ch-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crest-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .brand-word { display: none; }   /* phones: the badge stands alone */
  .ch-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .ch-crest { width: 72px; height: 72px; }
  .ch-crest img { width: 54px; height: 54px; }
  .ch-text h1 { font-size: 30px; }
  .ch-art { grid-template-columns: 1fr; }
  .ch-art img:not(:first-child) { display: none; }
  .ch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-picks { grid-template-columns: 1fr; }
  .spec-pick { min-height: 84px; }
  .crest-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero.hero-forever { min-height: 0; padding: 26px 16px 22px; }
  .countdown { font-size: 13px; }
}

/* the selected spec's painting, faded behind its summary */
.spec-intro { position: relative; overflow: hidden; border-top: 2px solid var(--cc); }
.spec-intro .si-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.spec-intro > :not(.si-art) { position: relative; }

/* Builds tab: each spec opens with its painting */
.bd-spec-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 92px; margin: 34px 0 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid var(--cc); background: #0b1020; }
.bd-spec-head .art { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 65%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.bd-spec-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 20, .5) 0%, rgba(6, 9, 20, .15) 60%, rgba(6, 9, 20, 0) 100%); }
.bd-spec-head > :not(.art) { position: relative; z-index: 1; }
.bd-spec-head .sp-icon { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px #1a1206, 0 0 0 3px #c99a3f; }
.bd-spec-head h2 { margin: 0; font-size: 24px; border: 0; padding: 0; }
.bd-spec-head span { color: #b8c0d6; font-size: 13px; }

/* ---------- armour sets ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.set-card { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--line); }
.set-card.q-edge-2 { border-top-color: var(--q2); } .set-card.q-edge-3 { border-top-color: var(--q3); }
.set-card.q-edge-4 { border-top-color: var(--q4); } .set-card.q-edge-5 { border-top-color: var(--q5); }
.set-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.set-card header h3 { margin: 0; font-size: 16.5px; }
.set-card header a:hover { text-decoration: none; }
.set-pieces { display: flex; flex-wrap: wrap; gap: 6px; }
.icon.md { width: 38px; height: 38px; border-radius: 6px; }
.set-bonus { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.set-bonus b { color: var(--gold); font-weight: 650; }
.set-bonus a { color: #9fe0a0; }
table.set-diff { font-size: 13px; }
table.set-diff td { vertical-align: top; }
table.set-diff td:nth-child(2) a { color: #9fe0a0; }
table.set-diff td:nth-child(3) a { color: var(--muted); }
@media (max-width: 760px) { .set-grid { grid-template-columns: 1fr; } }

/* item model pictures (tools/build_models.py) */
.item-left { display: grid; gap: 14px; align-content: start; }
.item-model { float: right; width: 290px; margin: 0 0 14px 18px; padding: 12px; border-radius: 12px; background: radial-gradient(circle at 50% 42%, rgba(63, 208, 217, .12), rgba(9, 13, 27, .9) 70%); border: 1px solid var(--line); text-align: center; }
.item-model img { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
.item-model figcaption { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
@media (max-width: 760px) { .item-model { float: none; width: auto; max-width: 300px; margin: 0 auto 14px; } }

/* armour sets worn on a character (tools/build_outfits.py) */
.set-card.has-outfit { grid-template-columns: 120px minmax(0, 1fr); column-gap: 14px; }
.set-card .set-main { display: grid; gap: 8px; align-content: start; min-width: 0; }
/* the bonus list runs the full width of the card, under the portrait and the pieces */
.set-card .set-bonuses { grid-column: 1 / -1; min-width: 0; }
.set-card.has-outfit .set-outfit { max-height: 180px; }
.set-card.has-outfit .set-outfit img { height: 180px; width: auto; margin: 0 auto; }
table.set-diff th:first-child, table.set-diff td:first-child { width: 52px; }
.set-outfit { display: block; align-self: start; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, rgba(63, 208, 217, .14), rgba(9, 13, 27, .9) 72%); }
.set-outfit img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.set-outfit:hover img { transform: scale(1.04); }
.set-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-figure { margin: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--line); text-align: center; position: sticky; top: 76px;
  background: radial-gradient(circle at 50% 36%, rgba(63, 208, 217, .16), rgba(9, 13, 27, .92) 70%); }
.set-figure img { width: 100%; height: auto; display: block; }
.set-figure figcaption { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
@media (max-width: 1000px) { .set-detail { grid-template-columns: 1fr; } .set-figure { position: static; max-width: 320px; margin: 0 auto; } }
@media (max-width: 760px) { .set-card.has-outfit { grid-template-columns: 96px minmax(0, 1fr); } }
