/*
 * sunderkeep.com's top navigation and footer, on every page: the home page links it (site/index.html), and the
 * News, Guide, Library and Leaderboards pages have it first in their stylesheet (site/build/site.mjs). The markup is
 * site/build/site.mjs navHtml() and footerHtml() (put into the home page at build time).
 */
.sk-nav {
  --gold: #e7c27a; --text: #efe6d6;
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 64px;
  padding: 0 clamp(16px, 4vw, 40px); padding-top: env(safe-area-inset-top);
  background: rgba(11, 9, 7, .96); box-shadow: 0 1px 0 rgba(231, 194, 122, .22), 0 10px 30px rgba(0, 0, 0, .4);
  /* (Its own layer: it doesn't repaint with the page under it.) */
  transform: translateZ(0);
  font-family: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
}
.sk-nav a { text-decoration: none; }
.sk-brand { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 900 18px 'Cinzel', 'Trajan Pro', Georgia, serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sk-brand img { width: 30px; height: 30px; }
.sk-links { display: flex; gap: 2px; margin-left: auto; }
.sk-links a, .sk-menu nav a {
  position: relative; color: #d9cfbd; font: 700 13.5px 'Cinzel', 'Trajan Pro', Georgia, serif; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; border-radius: 6px;
}
.sk-links a:hover { color: var(--gold); background: rgba(231, 194, 122, .07); }
.sk-links a[aria-current] { color: var(--gold); }
.sk-links a[aria-current]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sk-find { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #d9cfbd; }
.sk-find:hover { color: var(--gold); background: rgba(231, 194, 122, .07); }
.sk-find .gl { width: 20px; height: 20px; padding: 0; background: none; color: inherit; display: inline-flex; }
.sk-find svg { width: 20px; height: 20px; }
.sk-play {
  white-space: nowrap; font: 900 13px 'Cinzel', 'Trajan Pro', Georgia, serif; letter-spacing: .12em; text-transform: uppercase; color: #2a1606; padding: 10px 18px; border-radius: 8px;
  background: linear-gradient(180deg, #fff1c4 0%, #f2c46a 35%, #c98a2a 70%, #8a4f12 100%); box-shadow: inset 0 0 0 1px rgba(90, 48, 10, .5), 0 0 18px rgba(255, 150, 50, .35);
}
.sk-play:hover { filter: brightness(1.08); }
/* Phones: the links fold into a menu. */
.sk-menu { display: none; position: relative; }
.sk-menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.sk-menu summary::-webkit-details-marker { display: none; }
.sk-menu summary span, .sk-menu summary span::before, .sk-menu summary span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); position: relative; transition: transform .2s, background .2s; }
.sk-menu summary span::before, .sk-menu summary span::after { content: ''; position: absolute; left: 0; }
.sk-menu summary span::before { top: -6px; } .sk-menu summary span::after { top: 6px; }
.sk-menu[open] summary span { background: transparent; }
.sk-menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.sk-menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.sk-menu nav { position: absolute; right: 0; top: calc(100% + 12px); display: flex; flex-direction: column; min-width: 220px; padding: 8px; background: #15100c; border: 1px solid rgba(231, 194, 122, .25); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .7); }
.sk-menu nav a { padding: 12px 14px; font-size: 14px; }
.sk-menu nav a[aria-current] { color: var(--gold); background: rgba(231, 194, 122, .08); }
@media (max-width: 900px) {
  .sk-links { display: none; }
  .sk-find { margin-left: auto; }
  .sk-menu { display: block; }
  .sk-nav { gap: 8px; }
}
@media (max-width: 480px) {
  .sk-brand { font-size: 15px; gap: 8px; letter-spacing: .06em; }
  .sk-brand img { width: 26px; height: 26px; }
  .sk-play { padding: 9px 12px; font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 359px) { .sk-brand span { display: none; } }

.sk-foot { padding: 44px clamp(16px, 4vw, 40px) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(231, 194, 122, .14); background: #080605; color: #a99e8c; font: 15px/1.5 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif; }
.sk-foot-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.sk-foot-logo img { display: block; width: 160px; height: auto; }
.sk-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.sk-foot-cols nav { display: flex; flex-direction: column; gap: 6px; }
.sk-foot-cols b { font: 700 12px 'Cinzel', Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: #e7c27a; margin-bottom: 4px; }
.sk-foot-cols a { color: #cfc4b2; text-decoration: none; font-weight: 500; }
.sk-foot-cols a:hover { color: #e7c27a; }
.sk-foot p { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 18px; border-top: 1px solid rgba(231, 194, 122, .08); font-size: 14px; }
.sk-foot .heart { color: #e0703f; }
@media (max-width: 760px) {
  .sk-foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sk-foot-cols { grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
}
/* (On the home page the bar lies over the hero.) */
.sk-nav.over { position: fixed; left: 0; right: 0; top: 0; }
/* The News, Guide, Library and Leaderboards pages (site/build/site.mjs). The game's palette and fonts, as on the home page. */
:root {
  color-scheme: dark;
  --bg: #0b0907;
  --panel: #17120d;
  --panel2: #201912;
  --panel3: #2a221a;
  --line: #342b20;
  --edge: rgba(231, 194, 122, .22);
  --text: #efe6d6;
  --muted: #a99e8c;
  --gold: #e7c27a;
  --gold-hi: #fff1c4;
  --gold-dim: #b8945a;
  --ember: #e0703f;
  --good: #8af07a;
  --blue: #7fb4e8;
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Alegreya Sans', 'Gill Sans', 'Segoe UI', sans-serif;
  --gut: clamp(16px, 3vw, 36px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--body); overflow-x: hidden;
  background: var(--bg) radial-gradient(ellipse 90% 420px at 50% 0, rgba(120, 60, 20, .16), transparent 70%) no-repeat;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 38px); color: var(--gold); line-height: 1.15; }
h2 { font-size: 23px; color: var(--gold); margin: 26px 0 8px; }
h3 { font-size: 18px; color: var(--text); margin: 20px 0 8px; }
h4 { font-size: 15px; color: var(--gold); margin: 14px 0 6px; }
p { max-width: 75ch; margin: 6px 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #1a1008; border-radius: 6px; font-weight: 800; }
.skip:focus { top: 12px; }
.lead { color: #d9cfbd; max-width: 75ch; font-size: 17.5px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.label { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- the page: side list and a framed panel */
.page { max-width: 1320px; margin: 0 auto; padding: 22px var(--gut) 70px; }
.page.has-side { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 28px; }
main {
  position: relative; min-width: 0; padding: clamp(16px, 2.4vw, 30px) clamp(16px, 2.6vw, 36px) 36px;
  background: linear-gradient(180deg, rgba(30, 23, 16, .92), rgba(18, 14, 10, .92)); border: 1px solid var(--edge); border-radius: 14px;
  box-shadow: inset 0 0 0 4px rgba(11, 9, 7, .6), inset 0 0 0 5px rgba(231, 194, 122, .08), 0 24px 60px rgba(0, 0, 0, .45);
}
/* (The frame's jewel, top middle.) */
main::before { content: ''; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -6px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hi), var(--gold-dim)); box-shadow: 0 0 12px rgba(255, 170, 70, .55); }
.side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 0 20px; scrollbar-width: thin; }
.side-g { margin-bottom: 16px; }
.side .label { display: block; margin: 0 10px 6px; color: var(--gold-dim); }
.side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.side a { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.side a .gl { width: 16px; height: 16px; padding: 0; background: none; color: inherit; }
.side a .ic { width: 18px; height: 18px; }
.side a:hover { background: var(--panel2); color: var(--gold); text-decoration: none; }
.side a[aria-current] { color: var(--gold); background: rgba(231, 194, 122, .08); font-weight: 700; }
.crumbs { margin: 0 0 12px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-style: normal; opacity: .6; }
.crumbs span { color: var(--text); }

/* A section's front page: the kicker with its ornaments, the title, the lead. */
.lib-hero { text-align: center; padding: 18px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font: 700 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dim); }
.kicker::before, .kicker::after { content: '✦'; font-size: 10px; letter-spacing: 0; color: var(--gold); opacity: .8; }
.lib-hero h1 { margin-top: 8px; font-size: clamp(30px, 5vw, 50px); font-weight: 900; color: var(--gold); text-shadow: 0 0 30px rgba(255, 150, 50, .25), 0 3px 12px #000; }
.lib-hero .lead { margin: 10px auto 0; }

/* ---------------------------------------------------------------- page heads, infobox */
.phead { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.phead .ic { width: 56px; height: 56px; border-radius: 9px; }
.phead .ic.crest { width: 64px; height: 64px; }
.phead > .gl { width: 48px; height: 48px; padding: 9px; border-radius: 10px; }
.phead .sub { color: var(--muted); font-size: 15px; margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 800 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; color: var(--muted); vertical-align: middle; }
.tag.gold { color: var(--gold); } .tag.ember { color: var(--ember); } .tag.blue { color: var(--blue); } .tag.green { color: var(--good); } .tag.store { color: #b9a0ff; }
.ent { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 10px 28px; align-items: start; }
.ent > .ent-main { min-width: 0; }
.infobox { background: #120e0a; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14.5px; }
.infobox .ib-h { padding: 10px 14px; font: 700 16px var(--display); color: var(--gold); background: var(--panel2); border-bottom: 1px solid var(--line); }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td { text-align: left; padding: 6px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.infobox th { color: var(--muted); font: 700 13px var(--body); white-space: nowrap; width: 1%; }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: 0; }
.banner { position: relative; display: flex; align-items: flex-end; min-height: 170px; border-radius: 12px; overflow: hidden; background: #000 center / cover no-repeat; margin: 0 0 14px; border: 1px solid var(--line); }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 15%, rgba(12, 10, 8, .94)); }
.banner .t { position: relative; z-index: 1; padding: 14px 18px; }
.banner h1 { margin: 2px 0 0; }
.lvl { display: inline-block; font: 800 12px/1 var(--body); padding: 4px 8px; border-radius: 4px; background: var(--gold); color: #1b140a; margin-right: 6px; white-space: nowrap; }

/* ---------------------------------------------------------------- tabs, filters, tables */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; width: 100%; }
.subtabs button { font: 700 14px var(--body); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.subtabs button .gl { width: 16px; height: 16px; padding: 0; background: none; color: inherit; }
.subtabs button[aria-selected="true"], .subtabs button[aria-pressed="true"] { color: #1b140a; background: var(--gold); border-color: var(--gold); }
.subtabs button .cnt { font-weight: 500; opacity: .75; }
.subtabs.sub2 { gap: 0 18px; border-bottom: 1px solid var(--line); }
.subtabs.sub2 button { background: none; border: 0; border-radius: 0; padding: 6px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs.sub2 button[aria-selected="true"], .subtabs.sub2 button[aria-pressed="true"] { color: var(--gold); background: none; border-bottom-color: var(--gold); }
/* Tabs need the script: without it every pane shows, each under its own heading. */
.tabset > .subtabs { display: none; }
.js .tabset > .subtabs { display: flex; }
.js .tpane[data-off] { display: none; }
.js .tpane-h { display: none; }
.tpane-h { font-size: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.f input, .f select { padding: 8px 10px; font: 15px var(--body); color: var(--text); background: #120e0a; border: 1px solid var(--line); border-radius: 8px; }
.f input:focus, .f select:focus { outline: 2px solid var(--gold-dim); outline-offset: 0; }
.f input[type=search] { flex: 1 1 220px; min-width: 0; }
.f input[type=number] { width: 74px; }
.f .rng { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.count { color: var(--muted); font-size: 13.5px; margin: 4px 0; min-height: 1em; }
.tbl { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .12); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 800 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--panel); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(231, 194, 122, .03); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more { display: block; width: 100%; margin: 8px 0; padding: 9px; font: 700 14px var(--body); color: var(--gold); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

/* ---------------------------------------------------------------- links, icons, chips */
.ic { display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 7px; overflow: hidden; background: var(--panel2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .5); vertical-align: middle; object-fit: cover; }
.ic.s20 { width: 20px; height: 20px; border-radius: 4px; }
.ic.s28 { width: 28px; height: 28px; border-radius: 5px; }
.ic.s48 { width: 48px; height: 48px; border-radius: 8px; }
.ic.round { border-radius: 50%; }
.ic.crest { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-dim), 0 4px 14px rgba(0, 0, 0, .6); }
.ic.badge { width: 52px; height: 52px; border-radius: 0; background-color: transparent; box-shadow: none; }
.gl { display: inline-flex; width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 6px; background: var(--panel2); color: var(--gold); vertical-align: middle; }
.gl svg { width: 100%; height: 100%; }
.gl.bare { background: none; padding: 0; width: 16px; height: 16px; vertical-align: -3px; }
.lk { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; max-width: 100%; }
.lk .ic { width: 20px; height: 20px; border-radius: 4px; }
.lk .gl { width: 18px; height: 18px; padding: 2px; border-radius: 4px; }
.lk > span { min-width: 0; }
.lk.np { color: #f0d890; } .lk.cr { color: #f09a7a; } .lk.qu { color: #f2d24a; } .lk.zn { color: var(--good); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; line-height: 1.3; padding: 3px 9px 3px 5px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); max-width: 100%; color: var(--text); }
.chip.plain { padding-left: 9px; }
.chip .gl { width: 18px; height: 18px; padding: 2px; background: none; }
.chip b { color: var(--gold); font-weight: 800; }
.chip.on { border-color: var(--gold); }
a.chip:hover { border-color: var(--gold-dim); text-decoration: none; }
.lvln { font: 800 12px var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
ul.tight { margin: 4px 0; padding-left: 18px; }
ul.tight li { margin: 3px 0; }
ul.plain { list-style: none; padding: 0; margin: 6px 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 12px; }
.grid.sm { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.rules { border-left: 3px solid var(--gold-dim); padding: 8px 14px; margin: 12px 0; background: rgba(231, 194, 122, .05); border-radius: 0 8px 8px 0; }
.rules ul { margin: 4px 0; padding-left: 18px; }
.rules li { margin: 3px 0; max-width: 80ch; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; font: 800 12.5px/1.5 var(--body); text-align: center; color: var(--text); background: #120f0b; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; margin: 8px 0; }
.keys div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- section fronts: tiles, zone cards, search */
.hsrch { position: relative; max-width: 620px; margin: 22px auto 0; text-align: left; }
.hsrch input { width: 100%; padding: 14px 16px 14px 44px; font: 17px var(--body); color: var(--text); background: #120e0a; border: 1px solid var(--gold-dim); border-radius: 12px; box-shadow: 0 0 30px rgba(231, 194, 122, .08); }
.hsrch input:focus { outline: 2px solid var(--gold-dim); outline-offset: 0; }
.hsrch > .gl { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; padding: 0; background: none; color: var(--muted); pointer-events: none; }
.hsrch.big { margin: 10px 0 0; max-width: none; }
.hsrch.big input { padding-left: 16px; }
.qres { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; background: #17130e; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .65); z-index: 60; }
.qres a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text); }
.qres a:hover, .qres a.on { background: var(--panel2); text-decoration: none; }
.qres a .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qres a small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-left: 8px; }
.qres .none, .qres .all { display: block; padding: 8px 10px; color: var(--muted); font-size: 14px; }
.qres .all { color: var(--gold); border-top: 1px solid var(--line); margin-top: 4px; }
.qres.static { position: static; max-height: none; box-shadow: none; }
.qres .ic { width: 20px; height: 20px; border-radius: 4px; }
.qres .gl { width: 20px; height: 20px; padding: 2px; }
.hcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 30px; }
.hcat { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); transition: border-color .15s, transform .15s; }
.hcat:hover { border-color: var(--gold-dim); transform: translateY(-2px); text-decoration: none; }
.hcat > .ic { width: 40px; height: 40px; }
.hcat > .gl { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #120f0b; box-shadow: inset 0 0 0 1px var(--line); }
.hcat b { display: block; font: 700 17px/1.2 var(--display); color: var(--gold); }
.hcat .d { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 3px; }
.hcats.mini { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.hcats.mini .hcat { padding: 10px 12px; align-items: center; }
.hcats.mini .hcat > .gl, .hcats.mini .hcat > .ic { width: 34px; height: 34px; }
.hcats.mini .hcat > .gl { padding: 7px; }
.hcats.mini .hcat b { font-size: 15px; }
.hzones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.hzone { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel) center / cover no-repeat; color: var(--text); overflow: hidden; isolation: isolate; transition: border-color .15s, transform .15s; }
.hzone::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 13, 11, .1), rgba(15, 13, 11, .9) 75%); }
.hzone:hover { border-color: var(--gold-dim); text-decoration: none; transform: translateY(-2px); }
.hzone b { font: 700 16px var(--display); color: var(--gold); }
.hzone span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- the Guide */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 26px; }
.gcard { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, var(--panel2), var(--panel)); color: var(--text); transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--gold-dim); transform: translateY(-2px); text-decoration: none; }
.gcard .gnum { position: absolute; right: 12px; top: 10px; font: 900 13px var(--display); color: rgba(231, 194, 122, .28); }
.gcard > .gl { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #120f0b; box-shadow: inset 0 0 0 1px var(--line); }
.gcard b { display: block; font: 700 17px/1.2 var(--display); color: var(--gold); padding-right: 22px; }
.gcard .d { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.guide { font-size: 16.5px; }
.guide p, .guide li { max-width: 72ch; }
.guide ul { padding-left: 20px; }
.guide li { margin: 5px 0; }
.gsec { margin-top: 8px; }
.gsec + .gsec { border-top: 1px solid var(--line); margin-top: 22px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.pager a { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: 700 16px var(--display); }
.pager a:hover { border-color: var(--gold-dim); text-decoration: none; }
.pager small { font: 800 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager .next { text-align: right; grid-column: 2; }

/* ---------------------------------------------------------------- News */
.newslist { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.newsrow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.newsrow.lead-post { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.nr-img { display: block; min-height: 150px; border-radius: 10px; background: #000 center / cover no-repeat; border: 1px solid var(--line); }
.lead-post .nr-img { min-height: 240px; }
.nr-body { padding: 6px 4px; }
.nr-body time, .post-head time { font: 800 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dim); }
.nr-body h2 { margin: 4px 0 8px; font-size: 26px; }
.nr-groups { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.nr-groups li { font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.nr-groups b { color: var(--gold); }
.post-head { position: relative; display: flex; align-items: flex-end; min-height: 260px; margin: 0 0 10px; padding: 22px; border-radius: 12px; overflow: hidden; background: #000 center 40% / cover no-repeat; border: 1px solid var(--line); }
.post-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(11, 9, 7, .95)); }
.post-head > div { position: relative; z-index: 1; }
.post-head h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; text-shadow: 0 3px 14px #000; }
.np-group h2 { display: flex; align-items: center; gap: 14px; }
.np-group h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.np-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.np-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.np-card.wide { flex-direction: column; }
.np-card h3 { margin: 0 0 4px; color: var(--gold); font-size: 17px; }
.np-card p { margin: 0; font-size: 15px; color: #d9cfbd; }
.np-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.np-ic .gl, .np-ic .ic { width: 48px; height: 48px; }
.np-ic .gl { padding: 10px; border-radius: 10px; }
.post-cta { text-align: center; margin-top: 28px; }
.btn-gold { display: inline-block; font: 900 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #2a1606; padding: 14px 34px; border-radius: 10px; background: linear-gradient(180deg, #fff1c4 0%, #f2c46a 35%, #c98a2a 70%, #8a4f12 100%); box-shadow: inset 0 0 0 1px rgba(90, 48, 10, .5), 0 0 24px rgba(255, 150, 50, .35); }
.btn-gold:hover { filter: brightness(1.08); text-decoration: none; }

/* ---------------------------------------------------------------- Leaderboards */
#board { margin-top: 22px; }
.board-body { margin-top: 10px; }
.board-wait { display: flex; align-items: center; gap: 8px; }
.brows { list-style: none; margin: 0; padding: 0; counter-reset: r; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.brows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .12); }
.brows li:last-child { border-bottom: 0; }
.brows .rk { font: 900 18px var(--display); color: var(--muted); text-align: center; }
.brows li:nth-child(1) .rk { color: #ffd76a; } .brows li:nth-child(2) .rk { color: #d8dde4; } .brows li:nth-child(3) .rk { color: #d79a62; }
.brows .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brows .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brows .who .ic { width: 26px; height: 26px; border-radius: 50%; }
.brows .who small { color: var(--muted); }
.brows .sc { font: 800 16px var(--body); color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tooltip (WoW's) */
.tt { position: fixed; z-index: 100; max-width: 330px; padding: 9px 12px; background: rgba(10, 12, 26, .97); border: 1px solid #5b6b8c; border-radius: 6px; box-shadow: 0 8px 26px rgba(0, 0, 0, .6); font-size: 14px; line-height: 1.35; pointer-events: none; }
.tt .n, .tipbox .n { font-weight: 800; font-size: 15.5px; }
.tt .w, .tipbox .w { color: #fff; } .tt .g, .tipbox .g { color: var(--good); } .tt .y, .tipbox .y { color: #ffd100; } .tt .m, .tipbox .m { color: var(--muted); } .tt .b, .tipbox .b { color: var(--blue); }
.tt .row, .tipbox .row { display: flex; justify-content: space-between; gap: 16px; }
.tt .fl, .tipbox .fl { color: #ffd100; font-style: italic; }
.tt .src { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(91, 107, 140, .5); color: var(--muted); font-size: 13px; }
.tipbox { max-width: 360px; padding: 12px 14px; background: rgba(10, 12, 26, .97); border: 1px solid #5b6b8c; border-radius: 8px; font-size: 14.5px; line-height: 1.4; }
.tipbox .n { font-size: 17px; }

/* ---------------------------------------------------------------- item cards, abilities, talents, recipes */
.icard { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--rc, var(--line)); border-radius: 8px; min-width: 0; }
.icard .ib { min-width: 0; flex: 1; }
.icard b.n { display: block; line-height: 1.2; }
.icard .meta { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.icard .st { display: block; font-size: 13px; color: var(--good); line-height: 1.35; }
.icard .fx { display: block; font-size: 13px; color: var(--text); line-height: 1.35; }
.icard .odds { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
a.icard { color: var(--text); }
a.icard:hover { border-color: var(--gold-dim); border-left-color: var(--rc); text-decoration: none; }
.odd { font: 700 12px/1 var(--body); padding: 3px 6px; border-radius: 4px; background: #120f0b; border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.odd i { font-style: normal; color: var(--muted); font-weight: 500; margin-right: 3px; }
.lootcls { margin: 12px 0 4px; display: flex; align-items: center; gap: 8px; font: 700 14px var(--display); color: var(--gold); }
.lootcls .ic { width: 24px; height: 24px; border-radius: 50%; }
.clsbar { display: flex; align-items: center; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.clsbar .subtabs { margin: 0; width: auto; }
.clsbar .subtabs button { padding: 4px 12px 4px 4px; }
.clsbar .subtabs button.all { padding-left: 12px; }
.clsbar .ic { width: 24px; height: 24px; border-radius: 50%; }
/* The class picker works without a reload: what isn't for the class shown is hidden. */
html[data-cls="warrior"] [data-cls]:not([data-cls~="warrior"]),
html[data-cls="rogue"] [data-cls]:not([data-cls~="rogue"]),
html[data-cls="mage"] [data-cls]:not([data-cls~="mage"]),
html[data-cls="priest"] [data-cls]:not([data-cls~="priest"]),
html[data-cls="druid"] [data-cls]:not([data-cls~="druid"]) { display: none !important; }
.ab { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); min-width: 0; }
.ab .ib { min-width: 0; flex: 1; }
.ab b.n { font-size: 15.5px; }
.ab p { margin: 3px 0 0; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 var(--body); padding: 3px 7px 3px 4px; border-radius: 4px; background: #120f0b; border: 1px solid var(--line); white-space: nowrap; }
.pill .gl { width: 15px; height: 15px; padding: 0; background: none; color: var(--pc, var(--muted)); }
.pill.dt { color: var(--pc); }
.tree { border: 1px solid var(--line); border-top: 3px solid var(--tc); border-radius: 10px; padding: 12px 14px; margin: 12px 0; background: var(--panel); }
.tree-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tree-head h3 { margin: 0; font-size: 18px; color: var(--tc); }
.row-h { font: 800 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.node { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); min-width: 0; }
.node > .gl { width: 40px; height: 40px; padding: 8px; border-radius: 7px; background: #120f0b; color: var(--tc); }
.node .ib { min-width: 0; flex: 1; font-size: 14px; }
.node .rk { font: 800 12px var(--body); color: var(--muted); margin-left: 6px; }
.node.capstone { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px rgba(231, 194, 122, .25); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.stats span b { color: var(--gold); margin-left: 4px; }
a.clscard { display: block; color: var(--text); border-top: 3px solid var(--cc, var(--line)); }
a.clscard:hover { border-color: var(--gold-dim); border-top-color: var(--cc); text-decoration: none; }
.foe { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.foe .nm { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.phase { font-size: 14px; margin: 4px 0; }
.phase b { color: var(--ember); }
details { margin: 10px 0; }
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font: 700 15px var(--body); color: var(--gold); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary .muted { font-weight: 500; font-size: 13.5px; }
details > .inner { padding: 4px 2px 0; }
.sk-menu { margin: 0; }
.sk-menu > summary { padding: 0; border: 0; background: none; }
.sk-menu > summary::before { display: none; }
.xmark { font: 800 10.5px/1 var(--body); color: var(--blue); border: 1px solid var(--blue); border-radius: 3px; padding: 2px 4px; letter-spacing: .04em; }
.need { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; white-space: nowrap; }
.need.pool { white-space: normal; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); min-width: 0; }
.ach .ib { min-width: 0; font-size: 14px; }
.pts { font: 800 12px var(--body); color: var(--gold); margin-left: 6px; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.qtext { font-size: 15.5px; max-width: 75ch; padding: 12px 16px; background: #1d1810; border: 1px solid #3c3020; border-radius: 8px; color: #e4d6bc; font-style: italic; }
.objs { list-style: none; padding: 0; margin: 6px 0; }
.objs li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; }
.objs li::before { content: ''; width: 7px; height: 7px; flex: none; transform: rotate(45deg) translateY(-2px); background: var(--gold-dim); }
.chain { list-style: none; counter-reset: q; padding: 0; margin: 6px 0; }
.chain li { counter-increment: q; display: flex; gap: 8px; align-items: center; padding: 4px 8px; border-radius: 6px; font-size: 14.5px; }
.chain li::before { content: counter(q); font: 800 12px var(--body); color: var(--muted); min-width: 18px; text-align: right; }
.chain li.on { background: rgba(231, 194, 122, .1); }
.zmap { display: block; width: 100%; height: auto; max-height: 460px; border-radius: 10px; border: 1px solid var(--line); background: #0b0a08; }
.zmap text { font-family: var(--body); font-weight: 700; paint-order: stroke; stroke: rgba(0, 0, 0, .75); stroke-linejoin: round; }
.zmap a:hover circle { stroke: #fff; }
.mapkey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin: 6px 0; }
.mapkey i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.mob-only { display: none; }

/* Phones: the section's pages as a strip (the side list is for wide screens). */
.mnav { display: none; }
@media (max-width: 980px) {
  .page.has-side { grid-template-columns: 1fr; }
  .side { display: none; }
  .mnav { display: flex; gap: 6px; overflow-x: auto; margin: -4px -4px 12px; padding: 4px 4px 8px; scrollbar-width: none; }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
  .mnav a .gl { width: 18px; height: 18px; padding: 2px; background: none; }
  .mnav a[aria-current] { color: var(--gold); border-color: var(--gold-dim); }
  .ent { grid-template-columns: 1fr; }
  .newsrow, .newsrow.lead-post { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .page { padding: 14px 10px 50px; }
  main { padding: 16px 14px 28px; border-radius: 12px; }
  .grid, .grid.sm, .nodes, .achs, .np-grid, .gcards { grid-template-columns: 1fr; }
  .hcats.mini { grid-template-columns: 1fr 1fr; }
  .hcats.mini .hcat .d { display: none; }
  .hide-sm { display: none; }
  .mob-only { display: block; }
  .banner { min-height: 130px; }
  .post-head { min-height: 190px; padding: 16px; }
  h2 { font-size: 21px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  #board > .subtabs[role=tablist] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  #board > .subtabs[role=tablist] button { flex: none; }
  .infobox th, .infobox td { padding: 5px 12px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
