/* mmorpg website: the one stylesheet.
 *
 * 1. Tokens   2. Fonts and base   3. Layout   4. Components   5. Pages
 *
 * Identity (docs/website.md): warm charcoal-brown, aged gold, parchment;
 * Cinzel for titles, Source Sans 3 for text. Dark only, contrast AA or better
 * (on the page background: text 15:1, muted 9:1, faint 6.3:1, accents 7-10:1).
 */

/* ------------------------------------------------------------ 1. tokens */

:root {
  /* colour */
  --bg: #17120e;
  --bg-deep: #100c09;
  --surface: #221a14;
  --surface-2: #2b2119;
  --surface-3: #352a20;
  --line: rgb(226 190 128 / 0.16);
  --line-strong: rgb(226 190 128 / 0.32);
  --text: #efe6d6;
  --text-muted: #c2b49d;
  --text-faint: #a39580;
  --parchment: #f1e4c6;
  --gold: #dcae5a;
  --gold-bright: #f3cf7c;
  --gold-deep: #a47833;
  --gold-ink: #1c140b;
  --ember: #e58a5c;
  --moss: #9cc98a;
  --sky: #9ec1ea;
  --violet: #c7a6ec;
  --danger: #ef9a86;

  /* type */
  --font-title: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --font-text: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  /* space (4px grid) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 8px rgb(0 0 0 / 0.25);
  --shadow-2: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.38);
  --shadow-3: 0 4px 10px rgb(0 0 0 / 0.35), 0 24px 64px rgb(0 0 0 / 0.5);
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-bright);

  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------ 2. base */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel.022cdb8573.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.125c226ee1.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
main:focus { outline: none; }

img, svg { display: block; max-width: 100%; height: auto; }
img { image-rendering: auto; }

a { color: var(--gold-bright); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--parchment); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; color: var(--parchment); text-wrap: balance; }
p { text-wrap: pretty; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: var(--s-4); top: -4rem; z-index: 100;
  background: var(--gold); color: var(--gold-ink); font-weight: 700;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* ------------------------------------------------------------ 3. layout */

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.container--mid { max-width: 58rem; }
.container--narrow { max-width: 46rem; }

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--s-6) var(--section); }
.section__head { text-align: center; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__title { font-size: var(--step-3); }
.section__more { text-align: center; margin-top: var(--s-6); }

.overline {
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}

/* The logo's own ornament: a line, a diamond, a line. */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin: var(--s-4) auto var(--s-5); width: min(12rem, 60%);
  color: var(--gold-deep);
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornament span { width: 0.55rem; height: 0.55rem; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold-deep); }
.ornament--wide { width: min(20rem, 80%); }

/* ------------------------------------------------------------ 4. components */

/* buttons */
.btn {
  --pad-y: 0.7rem; --pad-x: 1.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-family: var(--font-text); font-weight: 700; font-size: 1rem; line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s, box-shadow 0.15s, color 0.15s, border-color 0.15s;
}
.btn__icon { width: 1.05em; height: 1.05em; margin-right: -0.2em; }
.btn--primary {
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #c8953f);
  border-color: #f6dc9c;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 -2px 0 rgb(0 0 0 / 0.15) inset, 0 6px 18px rgb(220 174 90 / 0.25);
}
.btn--primary:hover { color: var(--gold-ink); background: linear-gradient(180deg, #fbe0a0, var(--gold-bright) 55%, var(--gold)); box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 8px 26px rgb(243 207 124 / 0.35); }
.btn--ghost { color: var(--parchment); background: rgb(23 18 14 / 0.45); border-color: var(--line-strong); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--parchment); border-color: var(--gold); background: rgb(23 18 14 / 0.7); }
.btn:focus-visible { border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
}
.btn--sm { --pad-y: 0.5rem; --pad-x: 1rem; font-size: 0.9375rem; }
.btn--lg { --pad-y: 0.8rem; --pad-x: 1.5rem; font-size: 1.0625rem; }
.btn--xl { --pad-y: 0.95rem; --pad-x: 2rem; font-size: 1.1875rem; }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform 0.15s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(23 18 14 / 0.86);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { flex: none; display: block; padding: 0.25rem; margin-left: -0.25rem; border-radius: var(--radius-sm); }
.brand img { width: 117px; height: 44px; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: var(--s-1); }
.site-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: var(--parchment); background: rgb(255 255 255 / 0.04); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.site-nav a[aria-current="page"]:focus-visible { box-shadow: var(--ring); border-radius: var(--radius-sm); }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-strong); color: var(--parchment); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.15rem; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 63.99em) {
  /* Without JavaScript the nav simply wraps under the logo. */
  .site-header__bar { flex-wrap: wrap; column-gap: var(--s-2); }
  .site-nav { order: 4; width: 100%; }
  .nav-toggle { order: 3; }
  .site-nav ul { flex-wrap: wrap; padding-bottom: var(--s-2); }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .is-open .site-nav { display: block; padding-bottom: var(--s-4); }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: 0; border-top: 1px solid var(--line); }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav a { padding: 0.95rem 0.25rem; font-size: 1.125rem; border-radius: 0; color: var(--text); }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 0.9rem; border-radius: 0; }
}
@media (max-width: 22em) {
  .site-header__actions .btn { --pad-x: 0.8rem; }
}

/* footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: var(--s-8) var(--s-7); color: var(--text-muted); font-size: 1rem; }
.site-footer__grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr; gap: var(--s-7); } }
.site-footer__brand img { margin-bottom: var(--s-4); }
.site-footer__brand p { max-width: 30ch; }
.site-footer__heading { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s-2) var(--s-6); }
.site-footer a { color: var(--text); text-decoration-color: var(--line-strong); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__nav a { text-decoration: none; }

/* page head (inner pages) */
.page-head {
  text-align: center; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--s-6);
  background:
    radial-gradient(60rem 22rem at 50% -6rem, rgb(220 174 90 / 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.page-head__title { font-size: var(--step-4); }
.page-head__lede { max-width: 40rem; margin-inline: auto; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; }

/* framed screenshot */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); pointer-events: none; }

/* sprite cropped from a 4×2 sheet of 128×128 cells: cell (0,0) */
.sprite {
  display: block; width: 128px; height: 128px; flex: none;
  background-repeat: no-repeat; background-position: 0 0; background-size: 512px 256px;
}
.sprite--sm { width: 128px; height: 128px; }
.sprite--missing { display: grid; place-items: center; font: 600 2.5rem var(--font-title); color: var(--text-faint); }

/* badges */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 5.75rem; padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill); border: 1px solid currentColor;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  white-space: nowrap;
}
.badge--new { color: var(--moss); background: rgb(156 201 138 / 0.1); }
.badge--improved { color: var(--sky); background: rgb(158 193 234 / 0.1); }
.badge--fixed { color: var(--gold-bright); background: rgb(243 207 124 / 0.1); }
.badge--balance { color: var(--violet); background: rgb(199 166 236 / 0.1); }

.rarity { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.05rem 0.5rem; border-radius: var(--radius-pill); white-space: nowrap; }
.rarity--common { color: var(--text-muted); background: rgb(255 255 255 / 0.06); }
.rarity--uncommon { color: var(--sky); background: rgb(158 193 234 / 0.12); }
.rarity--rare { color: var(--gold-bright); background: rgb(243 207 124 / 0.14); box-shadow: inset 0 0 0 1px rgb(243 207 124 / 0.35); }

/* changelog entries */
.changes { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.change { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.change .badge { margin-top: 0.2rem; }
.entry__date { font-family: var(--font-title); font-weight: 600; color: var(--gold); font-size: 1rem; letter-spacing: 0.04em; }
.entry__title { font-size: var(--step-2); margin-block: var(--s-2) var(--s-2); }
.entry__summary { color: var(--text-muted); }
.entry__more { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.teaser { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.teaser .entry__title { margin-top: var(--s-1); }
@media (max-width: 30em) {
  .change { grid-template-columns: 1fr; gap: var(--s-1); }
  .change .badge { justify-self: start; min-width: 0; }
}

/* skeleton (loading) */
.skeleton { display: block; height: 1rem; width: 70%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: shimmer 1.6s linear infinite; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* empty / unreachable states */
.empty-state { text-align: center; padding: var(--s-7) var(--s-5); display: grid; justify-items: center; gap: var(--s-3); }
.empty-state__art { margin-bottom: calc(var(--s-4) * -1); }
.empty-state__title { font-family: var(--font-title); font-size: var(--step-2); color: var(--parchment); line-height: 1.25; max-width: 24ch; text-wrap: balance; }
.empty-state__text { color: var(--text-muted); max-width: 38ch; margin-bottom: var(--s-3); }

/* ------------------------------------------------------------ 5. pages */

/* --- home: hero */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; min-height: min(56rem, calc(100svh - var(--header-h))); padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgb(16 12 9 / 0.62), rgb(16 12 9 / 0.18) 70%),
    linear-gradient(180deg, rgb(23 18 14 / 0.55) 0%, rgb(23 18 14 / 0.1) 30%, rgb(23 18 14 / 0.35) 62%, var(--bg) 100%);
}
.hero__inner { text-align: center; display: grid; justify-items: center; }
.hero__title { width: min(36rem, 92%); margin-bottom: var(--s-3); }
.hero__title img { width: 100%; filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.55)); }
.hero__tagline {
  font-size: var(--step-2); line-height: 1.3; font-weight: 600; color: var(--parchment);
  max-width: 28ch; text-wrap: balance;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.75), 0 1px 2px rgb(0 0 0 / 0.6);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero__fine { margin-top: var(--s-3); font-size: 0.9375rem; color: var(--parchment); font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / 0.9); }

/* --- home: live stats */
.stats { margin-top: clamp(2rem, 1rem + 4vw, 3.5rem); width: min(52rem, 100%); }
.stats__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgb(20 15 11 / 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.stat { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.15rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.stat__value { font-family: var(--font-title); font-size: var(--step-3); font-weight: 700; color: var(--gold-bright); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat__value--text { font-family: var(--font-text); font-weight: 600; font-size: var(--step-1); line-height: 1.3; padding-block: 0.4rem 0.3rem; color: var(--parchment); }
.stat__time { color: var(--text-faint); letter-spacing: 0.06em; }
.stat__time:empty { display: none; }
.pulse { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--text-faint); flex: none; }
[data-state="ok"] .pulse { background: var(--moss); box-shadow: 0 0 0 0 rgb(156 201 138 / 0.6); }
@media (prefers-reduced-motion: no-preference) {
  [data-state="ok"] .pulse { animation: pulse 2.4s ease-out infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(156 201 138 / 0.55); } 70%, 100% { box-shadow: 0 0 0 0.6rem rgb(156 201 138 / 0); } }
.stats[data-state="loading"] .stat__value:not(.stat__value--text) { color: var(--text-faint); }
.stats__note { margin-top: var(--s-3); font-size: 0.9375rem; color: var(--parchment); text-shadow: 0 1px 8px rgb(0 0 0 / 0.9); }
.stats__note--down { display: none; }
.stats[data-state="down"] .stats__note--down { display: block; }
.stats[data-state="down"] .stat__value { color: var(--text-faint); }

@media (max-width: 40em) {
  .hero { min-height: 0; padding-top: var(--s-7); }
  .hero__img { object-position: 24% 40%; }
  .hero__title { width: min(22rem, 96%); }
  .hero__actions { flex-direction: column; align-items: stretch; width: min(22rem, 100%); }
  .stats__list { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s-3) var(--s-2); }
  .stat__label { letter-spacing: 0.08em; font-size: 0.75rem; }
  .stat--clock { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
}

/* --- home: intro */
.intro { text-align: center; }
.intro__p { font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.intro__p + .intro__p { margin-top: var(--s-4); color: var(--text-muted); font-size: var(--step-0); }

/* --- home: features */
.features { background: linear-gradient(180deg, var(--bg), var(--bg-deep) 50%, var(--bg)); }
.feature { display: grid; gap: var(--s-5) clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 2rem + 5vw, 6rem); }
@media (min-width: 48em) {
  .feature { grid-template-columns: 7fr 5fr; }
  .feature--flip { grid-template-columns: 5fr 7fr; }
  .feature--flip .feature__media { order: 2; }
}
.feature__num { font-family: var(--font-title); font-size: 0.9375rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-3); }
.feature__num::after { content: ""; height: 1px; width: 3rem; background: var(--gold-deep); }
.feature__title { font-size: var(--step-2); margin-bottom: var(--s-3); }
.feature__text p:not(.feature__num) { color: var(--text-muted); }

/* --- home: meet the creatures */
.meet__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 40em) { .meet__list { grid-template-columns: repeat(2, 1fr); } }
.meet__item {
  display: grid; justify-items: center; gap: var(--s-1); padding: var(--s-4) var(--s-3) var(--s-5);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--parchment);
  background: radial-gradient(circle at 50% 42%, rgb(220 174 90 / 0.12), transparent 62%), var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s var(--ease);
}
.meet__item:hover { border-color: var(--gold-deep); color: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) { .meet__item:hover { transform: translateY(-3px); } }
.meet__item .sprite { margin-block: -1.5rem -0.25rem; }
.meet__name { font-family: var(--font-title); font-weight: 600; font-size: var(--step-1); }

/* --- home: latest + CTA */
.latest { padding-top: 0; }
.cta {
  text-align: center; padding-block: var(--section);
  background:
    radial-gradient(40rem 18rem at 50% 100%, rgb(220 174 90 / 0.14), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}
.cta__inner { display: grid; justify-items: center; gap: var(--s-4); }
.cta__title { font-size: var(--step-3); }
.cta__text { color: var(--text-muted); max-width: 36ch; margin-bottom: var(--s-3); font-size: var(--step-1); line-height: 1.5; }

/* --- screenshots: gallery */
.gallery { list-style: none; padding: 0; display: grid; gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 40em) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery__item--featured { grid-column: span 2; grid-row: span 2; } }
@media (min-width: 40em) and (max-width: 63.99em) { .gallery__item--featured { grid-column: 1 / -1; } }
.gallery figure { display: flex; flex-direction: column; height: 100%; }
.gallery__link {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
}
.gallery__item--featured .gallery__link { flex: 1; aspect-ratio: auto; min-height: 0; }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), filter 0.2s; }
.gallery__link:focus-visible { border-radius: var(--radius); }
.gallery__zoom {
  position: absolute; right: 0.75rem; bottom: 0.75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--parchment); background: rgb(16 12 9 / 0.7); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity 0.2s;
}
.gallery__zoom svg { width: 1.25rem; height: 1.25rem; }
.gallery__link:hover .gallery__zoom, .gallery__link:focus-visible .gallery__zoom { opacity: 1; }
@media (hover: none) { .gallery__zoom { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .gallery__link:hover img { transform: scale(1.03); }
}
.gallery__caption { padding: var(--s-3) var(--s-1) 0; color: var(--text-muted); font-size: 1rem; line-height: 1.5; }
.gallery__caption strong { display: block; font-family: var(--font-title); font-weight: 600; color: var(--parchment); font-size: 1.0625rem; margin-bottom: 0.1rem; }

/* lightbox (a modal <dialog>) */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0;
  background: rgb(10 8 6 / 0.94); color: var(--text);
}
.lightbox::backdrop { background: rgb(10 8 6 / 0.7); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open]:not(.no-anim) { animation: fade-in 0.2s var(--ease); }
}
@keyframes fade-in { from { opacity: 0; } }
.lightbox__figure { display: grid; justify-items: center; gap: var(--s-3); padding: 4.5rem 1rem 1rem; max-width: 100%; }
.lightbox__img { max-width: min(1280px, calc(100vw - 9rem)); max-height: calc(100dvh - 12rem); width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-3); border: 1px solid var(--line-strong); }
.lightbox__caption { text-align: center; color: var(--text-muted); max-width: 60ch; padding-inline: var(--s-4); }
.lightbox__title { display: block; font-family: var(--font-title); color: var(--parchment); font-weight: 600; font-size: 1.125rem; }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.5rem; color: var(--text-muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  position: absolute; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgb(43 33 25 / 0.9); color: var(--parchment); border: 1px solid var(--line-strong);
  font: 400 1.75rem/1 var(--font-text);
}
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.lightbox__btn:focus-visible { border-radius: 50%; }
.lightbox__close { top: 0.75rem; right: 0.75rem; font-size: 1.25rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40em) {
  .lightbox__img { max-width: calc(100vw - 1.5rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
  .lightbox__figure { padding-bottom: 5rem; }
}

/* --- changelog: timeline */
.timeline { display: grid; gap: var(--s-6); position: relative; }
.entry { display: grid; gap: var(--s-3); }
.entry__main { padding: clamp(1.25rem, 0.75rem + 2vw, 2.25rem); }
.entry__main .entry__title { margin-top: 0; }
.entry__flag { display: inline-block; margin-top: var(--s-1); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold); padding: 0.1rem 0.55rem; border-radius: var(--radius-pill); }
.entry--latest .entry__main { border-color: var(--line-strong); box-shadow: var(--shadow-2), 0 0 0 1px rgb(220 174 90 / 0.08); }
@media (min-width: 48em) {
  .timeline::before { content: ""; position: absolute; left: 10.5rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: linear-gradient(180deg, var(--gold-deep), var(--line) 85%, transparent); }
  .entry { grid-template-columns: 9.5rem 1fr; gap: var(--s-7); }
  .entry__aside { text-align: right; padding-top: 1.85rem; position: relative; }
  .entry__aside::after { content: ""; position: absolute; right: calc(-1 * var(--s-7) / 2 - 0.3rem); top: 2.25rem; width: 0.6rem; height: 0.6rem; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
}

/* --- who is online */
.who { display: grid; gap: var(--s-5); }
.who__summary { padding: var(--s-5) clamp(1.25rem, 1rem + 2vw, 2.25rem); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); }
.who__total { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.who__count { font-family: var(--font-title); font-weight: 700; font-size: var(--step-4); color: var(--gold-bright); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.who__noun { font-size: var(--step-1); color: var(--parchment); }
.who__meta { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9375rem; }
.who__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--text-faint); }
[data-state="list"] .who__dot, [data-state="empty"] .who__dot { background: var(--moss); }
[data-state="down"] .who__dot { background: var(--danger); }
.who__panel { display: none; }
[data-state="loading"] .who__panel--loading,
[data-state="list"] .who__panel--list,
[data-state="empty"] .who__panel--empty,
[data-state="down"] .who__panel--down { display: grid; }
[data-state="down"] .who__count, [data-state="loading"] .who__count { color: var(--text-faint); }
[data-state="down"] .who__updated { display: none; }
[data-state="down"] .who__meta::after { content: "Not reachable"; }
.who__panel--empty, .who__panel--down { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); }
.who__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: var(--s-2); }
.who__item { min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 0.7rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.who__name { font-weight: 600; color: var(--parchment); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__lvl { flex: none; font-size: 0.875rem; font-weight: 700; color: var(--gold); background: rgb(220 174 90 / 0.1); padding: 0.05rem 0.55rem; border-radius: var(--radius-pill); font-variant-numeric: tabular-nums; }
.who__list--skeleton .who__item { height: 3.1rem; }
.who__more:empty { display: none; }
.who__more { color: var(--text-muted); text-align: center; margin-top: var(--s-4); }

/* --- reference lists: bestiary and items (".dex")
 * One row per entry on a shared column template, so the figures line up down
 * the page and can be compared at a glance. Desktop: a header row names the
 * columns and each figure's own label is visually hidden; narrower screens
 * fold the row and show the labels next to the figures. */
.dex {
  --art: 5.75rem;
  --main: minmax(0, 1fr);
  --figs: 15rem;
  --fig-cols: repeat(3, minmax(0, 1fr));
  --rest: 15.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.dex--items .dex__row { padding-block: 0.5rem; }
.dex--items { --art: 4.25rem; --main: minmax(0, 1fr); --figs: 30rem; --fig-cols: 5.5rem minmax(0, 1fr) minmax(0, 1fr); --rest: 0; }
.dex + .dex { margin-top: var(--s-5); }
.dex__list { list-style: none; padding: 0; }
.dex__head, .dex__row {
  display: grid; align-items: center;
  grid-template-columns: var(--art) var(--main) var(--figs) var(--rest);
  column-gap: var(--s-5);
  padding-inline: var(--s-4) var(--s-5);
}
.dex__head {
  position: sticky; top: var(--header-h); z-index: 2;
  padding-block: 0.7rem;
  background: rgb(34 26 20 / 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.dex__head-figs { display: grid; grid-template-columns: var(--fig-cols); text-align: center; }
.dex__head-figs--item span:not(:first-child) { text-align: left; padding-left: var(--s-3); }
.dex__row { padding-block: var(--s-3); border-top: 1px solid var(--line); position: relative; }
.dex__list > .dex__row:first-child { border-top: 0; }
.dex__row:nth-child(even) { background: rgb(255 255 255 / 0.018); }
.dex__row:target { background: rgb(220 174 90 / 0.08); box-shadow: inset 3px 0 0 var(--gold); }
.dex__list > .dex__row:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* the picture: a small lit plinth that the sprite fills */
.dex__art {
  width: var(--art); height: var(--art); display: grid; place-items: center;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 18% at 50% 80%, rgb(0 0 0 / 0.45), transparent 70%),
    radial-gradient(circle at 50% 45%, rgb(220 174 90 / 0.16), transparent 70%),
    var(--bg);
  border: 1px solid var(--line);
}
.crop {
  --k: 1;
  display: block; flex: none;
  width: calc(84px * var(--k)); height: calc(84px * var(--k));
  background-image: var(--sheet); background-repeat: no-repeat;
  background-size: calc(512px * var(--k)) calc(256px * var(--k));
  background-position: calc(var(--sx) * var(--k)) calc(var(--sy) * var(--k));
}
.crop--missing { display: grid; place-items: center; font: 600 2rem var(--font-title); color: var(--text-faint); }
.item__frame { display: grid; place-items: center; width: 100%; height: 100%; }
.item__frame img { width: 48px; height: 48px; }

/* name, temperament, where */
.dex__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem var(--s-3); min-width: 0; }
.dex__name { font-family: var(--font-title); font-weight: 600; color: var(--parchment); font-size: var(--step-1); line-height: 1.2; }
.dex__where { flex-basis: 100%; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.45; }
.temper { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.05rem 0.5rem; border-radius: var(--radius-pill); border: 1px solid currentColor; white-space: nowrap; }
.temper--aggressive { color: var(--ember); background: rgb(229 138 92 / 0.1); }
.temper--passive { color: var(--moss); background: rgb(156 201 138 / 0.1); }
.temper--unknown { color: var(--text-muted); }

/* the figures */
.figs { display: grid; grid-template-columns: var(--fig-cols); align-items: center; }
.fig { text-align: center; min-width: 0; }
.fig dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fig dd { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--parchment); font-variant-numeric: lining-nums tabular-nums; }
.fig dd.fig--word { font-family: var(--font-text); font-weight: 600; font-size: 0.9375rem; color: var(--text-faint); }
.fig dd.fig--safe { color: var(--moss); }
.fig--stat dd { color: var(--gold-bright); }
.fig--price { text-align: left; padding-left: var(--s-3); }
.fig--price dd { font-family: var(--font-text); font-size: 1rem; font-weight: 400; color: var(--text); }
.price { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; line-height: 1.4; }
.price + .price { margin-top: 0.15rem; }
.price__n { font-weight: 700; color: var(--parchment); font-variant-numeric: tabular-nums; }
.price__who { color: var(--text-muted); font-size: 0.9375rem; }
.price--none { color: var(--text-faint); font-size: 0.9375rem; }
.price--drop { font-size: 0.9375rem; color: var(--text-muted); }
.coin { width: 18px; height: 18px; flex: none; }

/* drops: one short line each, icon first */
.chips { list-style: none; padding: 0; display: grid; gap: 0.1rem; }
.chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.1rem 0.4rem 0.1rem 0.1rem; margin-left: -0.1rem;
  border-radius: var(--radius-sm); color: var(--text); text-decoration: none; line-height: 1.25;
}
a.chip { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a.chip:hover { background: rgb(255 255 255 / 0.05); color: var(--parchment); }
.chip__icon { width: 32px; height: 32px; flex: none; }
.chip__icon--missing { display: block; border-radius: var(--radius-sm); background: var(--surface-3); }
.chip__text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45rem; min-width: 0; }
.chip__name { font-weight: 600; font-size: 0.9375rem; }
.chip__meta { font-size: 0.8125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-common { color: var(--text-muted); }
.r-uncommon { color: var(--sky); font-weight: 600; }
.r-rare { color: var(--gold-bright); font-weight: 700; }
.dex__none { color: var(--text-faint); font-size: 0.9375rem; }

/* the longer description, secondary: its first sentence, the rest on demand */
.dex__about { grid-column: 2 / -1; margin-top: var(--s-2); font-size: 0.9375rem; color: var(--text-muted); line-height: 1.5; max-width: 62rem; }
.dex__about summary { cursor: pointer; list-style: none; border-radius: var(--radius-sm); }
.dex__about summary::-webkit-details-marker { display: none; }
.dex__more { display: inline-block; margin-left: 0.25rem; font-size: 0.8125rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.dex__more::after { content: " ▾"; }
.dex__about summary:hover .dex__more { color: var(--gold-bright); }
.dex__about[open] .dex__more { display: none; }
.dex__about p { display: inline; }
.dex__about[open] summary { display: inline; }

/* toolbar, legend, unreachable */
.dex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.dex-bar__count { color: var(--text-muted); font-size: 0.9375rem; }
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.sorter[hidden] { display: none; }
.sorter__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-right: 0.25rem; }
.sorter button {
  font: 600 0.875rem/1 var(--font-text); color: var(--text-muted); cursor: pointer;
  padding: 0.45rem 0.75rem; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--line);
}
.sorter button:hover { color: var(--parchment); border-color: var(--line-strong); }
.sorter button[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.sorter button:focus-visible { border-radius: var(--radius-pill); }
.dex__key { margin-top: var(--s-4); color: var(--text-muted); font-size: 0.875rem; text-align: center; }
.dex__key-title { font-weight: 700; color: var(--text); }
.bestiary__down { display: none; text-align: center; color: var(--text-muted); padding: var(--s-7) var(--s-4); }
.dex:has([data-bestiary][data-state="down"]) + .bestiary__down { display: block; }

/* items page bits */
.toc-chips ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.toc-chips a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.9rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--parchment); text-decoration: none; font-weight: 600; }
.toc-chips a:hover { border-color: var(--gold); color: var(--gold-bright); }
.toc-chip__n { font-size: 0.8125rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.items-sec { padding-bottom: var(--s-4); }
.items-sec + .items-sec { padding-top: var(--s-6); }
.items-sec__head { margin-bottom: var(--s-4); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); }
.items-sec__title { font-size: var(--step-3); }
.items-sec__lede { color: var(--text-muted); }
.dex__group {
  font-family: var(--font-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  padding: 0.5rem var(--s-4); background: rgb(0 0 0 / 0.18); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.dex__head + .dex__group { border-top: 0; }
.dex--items .dex__list > .dex__row:last-child { border-radius: 0; }
.dex--items > .dex__list:last-child > .dex__row:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.page-items .dex__key { margin-bottom: var(--section); }

/* desktop: picture, figures and drops span the name line and the description line */
@media (min-width: 64em) {
  .dex--beasts .dex__art, .dex--beasts .figs, .dex--beasts .dex__drops { grid-row: span 2; }
  .dex--beasts .dex__main { align-self: end; }
  .dex--beasts .dex__about { grid-column: 2; align-self: start; margin-top: 0.35rem; }
}

/* tablet: the row folds; figures carry their own labels */
@media (max-width: 63.99em) {
  .dex__head { display: none; }
  .dex__row { grid-template-columns: var(--art) minmax(0, 1fr) auto; row-gap: var(--s-2); padding: var(--s-4); }
  .dex__art { grid-row: span 2; align-self: start; }
  .figs { grid-template-columns: repeat(3, 4.75rem); }
  .fig dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
  .fig dd { font-size: 1.3rem; }
  .dex__drops { grid-column: 2 / -1; }
  .dex__about { grid-column: 2 / -1; margin-top: 0; }
  .dex--items .figs { grid-column: 2 / -1; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); justify-items: start; align-items: start; }
  .dex--items .fig { text-align: left; padding-left: 0; }
  .dex--items .dex__art { grid-row: span 2; }
}
/* phone */
@media (max-width: 40em) {
  .dex { --art: 4.25rem; }
  .dex__row { grid-template-columns: var(--art) minmax(0, 1fr); column-gap: var(--s-3); padding: var(--s-3); }
  .dex__art { grid-row: auto; }
  .crop { --k: 0.75; }
  .item__frame img { width: 44px; height: 44px; }
  .dex__name { font-size: 1.1875rem; }
  .dex__where { font-size: 0.875rem; }
  .figs { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0; background: rgb(0 0 0 / 0.14); }
  .fig + .fig { border-left: 1px solid var(--line); }
  .dex__drops { grid-column: 1 / -1; }
  .dex__about { grid-column: 1 / -1; }
  .dex--items { --art: 3.75rem; }
  .dex--items .dex__row { row-gap: 0.2rem; }
  .dex--items .dex__art { grid-row: span 2; align-self: center; }
  .dex--items .figs { grid-column: 2; grid-template-columns: 3.75rem minmax(0, 1fr) minmax(0, 1fr); border: 0; background: none; padding: 0; column-gap: 0.5rem; }
  .dex--items .fig + .fig { border-left: 0; }
  .dex--items .fig { padding-inline: 0; }
  .dex--items .fig dd { font-size: 1.125rem; }
  .dex--items .fig--price dd { font-size: 0.9375rem; }
  .dex--items .price { column-gap: 0.3rem; row-gap: 0; }
  .dex--items .figs { align-items: start; }
  .dex--items .price__who { flex-basis: 100%; line-height: 1.2; }
  .dex--items .item__frame img { width: 40px; height: 40px; }
  .price__who { font-size: 0.8125rem; }
  .dex-bar { justify-content: center; }
  .sorter__label { display: none; }
  .sorter button { padding: 0.45rem 0.6rem; font-size: 0.8125rem; }
  .dex-bar__count { display: none; }
  .dex__group { padding-inline: var(--s-3); }
  .items-sec__head { display: block; }
}

/* --- how to play */
.guide { display: grid; gap: var(--s-6); }
@media (min-width: 60em) {
  .guide { grid-template-columns: 14rem minmax(0, 46rem); justify-content: center; gap: var(--s-8); }
  .guide__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
}
.guide__toc { border-left: 1px solid var(--line-strong); padding-left: var(--s-4); }
.guide__toc-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-2); }
.guide__toc ol { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.guide__toc a { display: block; padding: 0.3rem 0; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.guide__toc a:hover { color: var(--gold-bright); }
.guide__section + .guide__section { margin-top: var(--s-7); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.guide__title { font-size: var(--step-2); display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.guide__num { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--gold-deep); color: var(--gold-bright); font-size: 1rem; font-weight: 700; }
.guide__section p + p { margin-top: var(--s-3); }
.guide__section p { color: var(--text); max-width: 65ch; }
.keys { margin-top: var(--s-5); display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keys__row { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: var(--s-4); align-items: center; padding: 0.7rem 1rem; }
.keys__row:nth-child(odd) { background: rgb(255 255 255 / 0.03); }
.keys__row + .keys__row { border-top: 1px solid var(--line); }
.keys dt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.keys dd { color: var(--text-muted); }
.keys__plus { color: var(--text-faint); }
kbd {
  display: inline-block; min-width: 2rem; padding: 0.15rem 0.55rem; text-align: center;
  font: 700 0.9375rem/1.4 var(--font-text); color: var(--parchment);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: var(--radius-sm);
  white-space: nowrap;
}
@media (max-width: 30em) { .keys__row { grid-template-columns: 1fr; gap: var(--s-1); } }
.guide__end { margin-top: var(--s-7); padding: var(--s-6); text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.guide__end-title { font-size: var(--step-2); }
.guide__end p { color: var(--text-muted); }

/* --- 404 */
.lost { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - var(--header-h) - 2rem); display: grid; align-items: center; text-align: center; padding-block: var(--s-8); }
.lost__bg { position: absolute; inset: 0; z-index: -1; }
.lost__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(23 18 14 / 0.75), rgb(23 18 14 / 0.88) 70%, var(--bg)); }
.lost__inner { display: grid; justify-items: center; }
.lost__title { font-size: var(--step-4); max-width: 18ch; }
.lost__text { font-size: var(--step-1); color: var(--parchment); max-width: 34ch; }

/* Who is online on phones: two columns, so a full island still fits a few screens. */
@media (max-width: 40em) {
  .who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-1) var(--s-2); }
  .who__item { padding: 0.5rem 0.6rem; gap: var(--s-2); font-size: 0.9375rem; }
  .who__lvl { font-size: 0.8125rem; padding: 0 0.4rem; }
  .who__name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .who__list--skeleton .who__item { height: 2.6rem; }
}

/* Without JavaScript nothing will ever load: no skeleton, just the <noscript> note. */
html:not(.js) .who__panel--loading { display: none; }
