/* ============================================================================
   GIELINOR — an old school world in the browser
   Oak, bronze and parchment. A tavern noticeboard for a living world.
   ========================================================================== */

@font-face {
  font-family: "RuneScape";
  src: url("./assets/runelite/fonts/runescape.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RuneScape";
  src: url("./assets/runelite/fonts/runescape_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RuneScape Small";
  src: url("./assets/runelite/fonts/runescape_small.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0704;
  --ink-2: #100b06;
  --ink-3: #171009;
  --panel: #1b140d;
  --panel-2: #241a10;
  --panel-3: #332315;
  --line: #3a2b1b;
  --line-2: #5b4228;
  --line-gold: rgba(226, 181, 92, .36);
  --gold: #d7aa58;
  --gold-bright: #f3d493;
  --gold-deep: #8e6428;
  --parch: #f4e6c6;
  --parch-2: #e5d2aa;
  --parch-ink: #2d1e0e;
  --parch-muted: #6f5839;
  --text: #e0d3ba;
  --muted: #b7a68b;
  --faint: #937f66;
  --green: #94b76c;
  --green-bright: #bad59a;
  --red: #d97b5c;
  --blue: #8db1ce;
  --violet: #b89bd6;
  --display: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, Georgia, serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rs: "RuneScape", "Trebuchet MS", "Segoe UI", sans-serif;
  --rs-small: "RuneScape Small", "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --shadow: 0 22px 70px rgba(0, 0, 0, .55);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .32);
  --radius: 3px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse 68% 42% at 82% -8%, rgba(129, 91, 40, .2), transparent 62%),
    radial-gradient(ellipse 54% 38% at 4% 6%, rgba(78, 102, 55, .12), transparent 64%),
    linear-gradient(180deg, #0a0704 0%, #0d0905 54%, #0a0704 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 236, 195, .022) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 40% 30%, rgba(255, 229, 172, .025), transparent 22rem);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
::selection { background: rgba(207, 169, 99, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- utilities */
.site-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.rs { font-family: var(--rs); }
.rs-small { font-family: var(--rs-small); }
.parchment {
  color: var(--parch-ink);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 250, 227, .5), transparent 55%),
    linear-gradient(180deg, #f5e8ca 0%, #ecdbb8 58%, #dfcaa1 100%);
  border: 1px solid #a77d42;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 46px rgba(0, 0, 0, .35);
}
.parchment .section-eyebrow, .parchment .eyebrow { color: #815522; }
.parchment .muted { color: var(--parch-muted); }
.parchment h1, .parchment h2, .parchment h3, .parchment strong { color: var(--parch-ink); }
main { flex: 1; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 10px; }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: var(--red); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.desktop-only { display: initial; }
.mobile-only { display: none; }
.stack { display: grid; gap: 14px; }
.inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.glance-row { width: 100%; padding: 3px 0; background: none; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.glance-row:hover { color: var(--gold); }
.glance-row + .glance-row { padding-top: 12px; border-top: 1px solid var(--line); }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 12px; }
.p-4 { padding: 18px; }
.text-right { text-align: right; }
.h-full { height: 100%; }
.font-serif { font-family: var(--serif); }
.font-semibold { font-weight: 600; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.stack > .btn:not(.btn-block), .stack > a.btn:not(.btn-block) { justify-self: start; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.rounded { border-radius: var(--radius); }
.block { display: block; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-6 > * + * { margin-top: 24px; }

.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  padding: 10px 16px; color: var(--ink); background: var(--gold);
  font-size: 12px; font-weight: 700; transition: top .15s ease;
}
.skip-link:focus { top: 10px; }

/* ---------------------------------------------------------------- boot */
.boot-screen {
  min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px;
  color: var(--muted); font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: 12px;
}
.boot-crest { width: 68px; height: 76px; color: var(--gold); filter: drop-shadow(0 0 28px rgba(207, 169, 99, .28)); animation: breathe 2.8s ease-in-out infinite; }
.boot-crest svg { width: 100%; height: 100%; }
@keyframes breathe { 50% { opacity: .48; transform: translateY(-4px); } }

/* ---------------------------------------------------------------- top strip */
.top-strip {
  border-bottom: 1px solid rgba(226, 181, 92, .18);
  background: linear-gradient(180deg, #150e08, #100a05);
  color: var(--muted);
  font-family: var(--rs-small);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.top-strip-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.strip-left, .strip-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.strip-sep { width: 1px; height: 11px; background: var(--line-2); }
.world-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--parch); font-weight: 600; }
.strip-live { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.strip-muted { color: var(--faint); }
.strip-play { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.strip-play:hover { color: var(--gold-bright); }
.status-dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%; display: inline-block;
  background: var(--green); box-shadow: 0 0 12px rgba(148, 182, 115, .7);
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 12px rgba(217, 124, 95, .5); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-gold);
  background:
    linear-gradient(180deg, rgba(30, 20, 11, .98), rgba(17, 11, 6, .97)),
    repeating-linear-gradient(90deg, rgba(255, 225, 170, .025) 0 2px, transparent 2px 7px);
  box-shadow: 0 1px 0 rgba(255, 231, 181, .06), 0 14px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.crest { color: var(--gold); flex: none; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55)); }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--rs); font-size: 31px; letter-spacing: .015em; font-weight: 700; text-transform: uppercase;
  background: linear-gradient(180deg, #fff0c6 0%, #e7c479 44%, #c29245 72%, #f4db9d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(34, 20, 5, .9)) drop-shadow(0 0 14px rgba(226, 181, 92, .12));
}
.brand-sub { margin-top: 8px; font-family: var(--rs-small); font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--faint); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  position: relative; padding: 12px 17px;
  font-family: var(--rs); font-size: 16px; font-weight: 400; letter-spacing: .01em;
  color: var(--muted); transition: color .16s ease, background .16s ease;
}
.nav-link:hover { color: var(--gold-bright); }
.nav-link.active { color: var(--gold-bright); }
.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 12px rgba(215, 170, 88, .6);
}
.header-actions { display: flex; align-items: center; gap: 9px; margin-left: 2px; }
.header-signin { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: var(--text); font-family: var(--rs); font-size: 13px; }
.header-signin:hover { color: var(--gold-bright); }
.account-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px;
  border: 1px solid var(--line-2); border-radius: 2px; background: rgba(20, 26, 18, .78); transition: border-color .15s ease;
}
.account-chip:hover { border-color: var(--gold-deep); }
.account-meta { display: grid; line-height: 1.2; }
.account-meta strong { font-size: 11px; font-weight: 600; color: var(--parch); }
.account-meta span { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.admin-shortcut { color: var(--gold); }
.mobile-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--parch); border-radius: 2px; padding: 8px 10px; cursor: pointer; }
.mobile-toggle.active { border-color: var(--gold-deep); color: var(--gold); }
.mobile-nav { display: none; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; border-bottom: 1px solid var(--line); }
.mobile-close { background: none; border: 0; color: var(--parch); cursor: pointer; }
.mobile-nav-links { display: grid; margin: 10px 0 18px; }
.mobile-nav-link { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--parch); }
.mobile-nav-link span { font-family: var(--display); font-size: 20px; letter-spacing: .03em; }
.mobile-nav-link small { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.mobile-nav-link.active span, .mobile-nav-link:hover span { color: var(--gold); }
.mobile-actions { margin: 12px 0 18px; }
.mobile-actions .btn { flex: 1; }
.mobile-nav-foot { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  font-family: var(--rs); font-size: 14px; font-weight: 400; letter-spacing: .01em;
  transition: transform .13s ease, filter .13s ease, border-color .13s ease, background .13s ease, color .13s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.disabled { opacity: .42; cursor: not-allowed; transform: none; filter: none; }
.btn-gold {
  color: #231604; border-color: #6e4b18;
  background: linear-gradient(180deg, #f4d99a 0%, #ddb56a 44%, #b27e33 100%);
  box-shadow: inset 0 1px 0 rgba(255, 251, 226, .55), inset 0 -1px 0 rgba(74, 42, 4, .35), 0 3px 0 rgba(45, 26, 5, .55), 0 9px 22px rgba(0, 0, 0, .25);
  text-shadow: 0 1px 0 rgba(255, 246, 213, .32);
}
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 251, 226, .6), inset 0 -1px 0 rgba(74, 42, 4, .35), 0 3px 0 rgba(45, 26, 5, .55), 0 11px 28px rgba(215, 170, 88, .16); }
.btn-ghost { color: var(--parch); border-color: #60472b; background: linear-gradient(180deg, rgba(44, 31, 18, .82), rgba(22, 15, 8, .82)); }
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-bright); background: linear-gradient(180deg, rgba(55, 39, 22, .9), rgba(28, 19, 10, .9)); }
.btn-dark { color: var(--text); border-color: var(--line); background: var(--panel); }
.btn-danger { color: #f1c4b6; border-color: #6d382b; background: rgba(88, 35, 25, .45); }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.btn-lg { min-height: 50px; padding: 12px 23px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; min-height: 34px; min-width: 34px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--gold); font-family: var(--rs); font-size: 13px; letter-spacing: .01em; cursor: pointer;
}
.link-more:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------------- badges / avatars */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  border: 1px solid var(--line); border-radius: 2px; background: rgba(7, 5, 3, .4);
  font-family: var(--rs-small); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.badge-gold { color: var(--gold); border-color: var(--line-gold); background: rgba(207, 169, 99, .075); }
.badge-green { color: var(--green); border-color: rgba(148, 182, 115, .3); background: rgba(148, 182, 115, .07); }
.badge-red { color: var(--red); border-color: rgba(217, 124, 95, .32); background: rgba(217, 124, 95, .07); }
.badge-blue { color: var(--blue); border-color: rgba(130, 168, 200, .3); background: rgba(130, 168, 200, .07); }
.badge-purple { color: var(--violet); border-color: rgba(183, 158, 213, .3); background: rgba(183, 158, 213, .07); }
.badge-muted { color: var(--muted); }

.avatar {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid #6b4d28; border-radius: 2px;
  background: linear-gradient(155deg, #4a351c, #1a1108);
  font-family: var(--display); font-size: 13px; color: var(--gold);
}
.avatar.sm { width: 27px; height: 27px; font-size: 10px; }
.avatar.lg { width: 54px; height: 54px; font-size: 18px; }
.avatar.online { border-color: rgba(148, 182, 115, .55); }
.dot-online, .dot-offline { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--panel); background: var(--muted); }
.dot-online { background: var(--green); }
.player-cell { display: flex; align-items: center; gap: 11px; min-width: 160px; }
.player-name { color: var(--parch); font-weight: 600; }
.player-mode { display: block; font-size: 9px; color: var(--muted); }

/* ---------------------------------------------------------------- page head */
.page-head {
  position: relative; padding: 56px 0 40px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 80% 0%, rgba(155, 112, 49, .17), transparent 66%),
    linear-gradient(180deg, rgba(27, 19, 11, .88), rgba(11, 7, 4, .35)),
    repeating-linear-gradient(90deg, rgba(255, 223, 164, .018) 0 1px, transparent 1px 9px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 230, 180, .025) 0 1px, transparent 1px 5px);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(215, 170, 88, .5), transparent);
}
.page-head .wrap { position: relative; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.page-title {
  margin: 5px 0 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(42px, 5vw, 64px); line-height: 1.02; color: var(--parch); letter-spacing: .005em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .45);
}
.page-lede { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--rs-small); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: "◆"; font-size: 6px; color: var(--gold-deep); }

/* ---------------------------------------------------------------- home hero */
.hero {
  position: relative; overflow: hidden; min-height: 650px;
  border-bottom: 1px solid var(--line-gold);
  background: #0a0805;
}
.hero-scene {
  position: absolute; inset: 0;
  background-image: url("./assets/hero-landscape.svg");
  background-position: center 42%;
  background-size: cover;
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.05) brightness(1.23);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 5, 3, .95) 0%, rgba(7, 5, 3, .8) 34%, rgba(7, 5, 3, .2) 65%, rgba(7, 5, 3, .42) 100%),
    linear-gradient(0deg, rgba(7, 5, 3, .96) 0%, transparent 30%, transparent 68%, rgba(7, 5, 3, .48) 100%);
}
.hero-shade::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 226, 175, .02) 0 1px, transparent 1px 4px);
  opacity: .6;
}
.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(310px, .7fr);
  align-items: center; gap: 52px; min-height: 650px; padding-top: 48px; padding-bottom: 58px;
}
.hero-copy { padding-top: 6px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--gold); font-family: var(--rs-small); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hero-kicker-line { width: 47px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.hero-kicker-line:last-child { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.hero-title {
  margin: 18px 0 0; max-width: 800px;
  font-family: var(--display); font-weight: 500; font-size: clamp(52px, 6.2vw, 88px);
  line-height: .98; letter-spacing: -.008em; color: var(--parch);
  text-shadow: 0 4px 0 rgba(0, 0, 0, .22), 0 16px 60px rgba(0, 0, 0, .55);
}
.hero-title em { font-style: normal; color: var(--gold-bright); text-shadow: 0 0 55px rgba(215, 170, 88, .2); }
.hero-lede { max-width: 590px; margin: 21px 0 0; color: #c4b79f; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-family: var(--rs-small); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--green); }
.hero-latest {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 15px;
  border-top: 1px solid rgba(215, 170, 88, .22); max-width: 590px; font-size: 12px;
}
.hero-latest-label { color: var(--gold); font-family: var(--rs-small); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hero-latest-title { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.hero-latest:hover .hero-latest-title { color: var(--gold-bright); }
.realm-panel {
  position: relative; justify-self: end; width: min(100%, 370px); padding: 26px;
  border: 2px solid #8e6428; border-radius: 2px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 252, 232, .6), transparent 56%),
    linear-gradient(180deg, #f5e8c8 0%, #ecdab4 58%, #ddc79c 100%);
  color: var(--parch-ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .62), inset 0 0 0 1px rgba(255, 246, 214, .5), inset 0 1px 0 #fff8df;
}
.realm-panel::before, .realm-panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-color: rgba(93, 58, 17, .6); border-style: solid;
}
.realm-panel::before { left: 7px; top: 7px; border-width: 1px 0 0 1px; }
.realm-panel::after { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.realm-panel-ornament { position: absolute; right: 20px; top: 18px; color: rgba(91, 55, 14, .5); }
.realm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 34px; }
.realm-panel .section-eyebrow { color: #7e4f16; }
.realm-status { display: inline-flex; align-items: center; gap: 6px; color: #406b32; font-family: var(--rs-small); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.realm-online { margin-top: 18px; font-family: var(--display); font-size: 52px; line-height: .9; color: #3a2915; }
.realm-online span { display: block; margin-top: 7px; font-family: var(--rs-small); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #7b6445; }
.realm-rows { margin-top: 21px; border-top: 1px solid rgba(82, 53, 20, .3); }
.realm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(82, 53, 20, .22); font-size: 11px; }
.realm-row span { color: #7e6748; }
.realm-row strong { color: #31210f; font-weight: 600; text-align: right; }
.realm-panel-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: #74470f; font-family: var(--rs); font-size: 14px; }
.realm-panel-action:hover { color: #3e2607; }

/* ---------------------------------------------------------------- realm bar */
.realm-bar { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 17, 9, .9), rgba(14, 9, 5, .92)); }
.realm-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.realm-stat { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 20px 22px; border-left: 1px solid rgba(91, 66, 40, .55); }
.realm-stat:first-child { border-left: 0; padding-left: 0; }
.realm-stat-index { color: var(--faint); font-family: var(--rs-small); font-size: 11px; padding-top: 2px; }
.realm-stat-label { font-family: var(--rs-small); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.realm-stat-value { margin-top: 4px; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--parch); }
.realm-stat-value.gold { color: var(--gold); }
.realm-stat-value.green { color: var(--green-bright); }
.realm-stat-note { margin-top: 5px; color: var(--faint); font-size: 10px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 76px 0; border-bottom: 1px solid rgba(58, 43, 27, .8); }
.section:last-child { border-bottom: 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }
.section-eyebrow { font-family: var(--rs-small); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.section-title { margin: 5px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 43px); line-height: 1.05; color: var(--parch); }
.section-copy { max-width: 630px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.section-action { flex: none; }

/* ---------------------------------------------------------------- panels */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(37, 26, 15, .94), rgba(20, 14, 8, .96)),
    repeating-linear-gradient(90deg, rgba(255, 230, 180, .02) 0 1px, transparent 1px 8px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 235, 193, .04);
}
.panel::before { content: ""; position: absolute; top: -1px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(215, 170, 88, .42), transparent); pointer-events: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 229, 174, .025); }
.panel-title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--parch); }
.panel-body { padding: 20px; }
.panel-tight .panel-body { padding: 0; }
.panel-foot { padding: 14px 20px; border-top: 1px solid var(--line); }
.panel-head .section-eyebrow { margin-bottom: 3px; }
.panel-parch { background: linear-gradient(180deg, #f4e6c6, #e3d0a7); border-color: #a77d42; color: var(--parch-ink); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 250, 226, .35); }
.panel-parch .panel-head { background: rgba(111, 74, 27, .08); border-bottom-color: rgba(92, 60, 22, .28); }
.panel-parch .panel-title { color: var(--parch-ink); }
.panel-parch .section-eyebrow { color: #815522; }
.panel-parch .panel-foot { border-top-color: rgba(92, 60, 22, .28); }
.panel-parch .muted, .panel-parch .small { color: var(--parch-muted); }

/* ---------------------------------------------------------------- news */
.news-toolbar { margin-bottom: 24px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 26px; align-items: start; }
.news-main { min-width: 0; }
.news-loading { padding: 40px 0; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: stretch; }
.news-feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 475px;
  border: 1px solid #a77d42; border-radius: var(--radius);
  background: linear-gradient(180deg, #f5e8ca, #e4d0a7);
  color: var(--parch-ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 249, 222, .4);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.news-feature:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 24px 58px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 249, 222, .4); }
.news-cover { position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, #3a2b1a, #14100a); }
.news-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 3, .06), rgba(5, 4, 3, .66));
}
.news-cover-news { background: linear-gradient(140deg, #4a3a23, #1a160e 64%, #0b0906); }
.news-cover-update { background: linear-gradient(140deg, #2e442c, #141c12 68%, #070c07); }
.news-cover-community { background: linear-gradient(140deg, #3d4431, #1b1d13 68%, #090a07); }
.news-cover-maintenance { background: linear-gradient(140deg, #4a3526, #221910 68%, #0d0a07); }
.news-cover-glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 196, 131, .22), transparent 66%);
}
.news-cover-mark { position: absolute; color: rgba(239, 220, 179, .25); z-index: 1; }
.news-cover-mark svg { stroke-width: 1; }
.news-cover.is-featured { min-height: 235px; width: 100%; }
.news-feature .news-cover.is-featured {
  background-image: linear-gradient(180deg, rgba(8, 6, 4, .04), rgba(8, 6, 4, .55)), url("./assets/title.jpg");
  background-size: cover;
  background-position: center 40%;
}
.news-feature .news-cover.is-featured .news-cover-glow { display: none; }
.news-feature .news-cover.is-featured .news-cover-mark { color: rgba(246, 226, 181, .16); }
.article-banner .news-cover.is-featured {
  background-image: linear-gradient(180deg, rgba(8, 6, 4, .1), rgba(8, 6, 4, .55)), url("./assets/title.jpg");
  background-size: cover;
  background-position: center 38%;
}
.article-banner .news-cover.is-featured .news-cover-glow { display: none; }
.article-banner .news-cover.is-featured .news-cover-mark { color: rgba(246, 226, 181, .14); }
.news-feature-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 22px; background: linear-gradient(180deg, #f5e8ca, #e6d3ac); }
.news-feature-body .news-title { font-size: clamp(24px, 2.5vw, 33px); color: var(--parch-ink); }
.news-feature .badge, .news-card .badge { border-color: rgba(102, 68, 28, .4); background: rgba(112, 77, 32, .07); color: #75501f; }
.news-feature .link-more { color: #6f4612; }
.news-feature .link-more:hover { color: #2f1c08; }
.news-feature-body .news-excerpt { color: #5c4730; }
.news-feature-body .news-author { color: #7b6345; }
.news-feature-body .news-author strong { color: #3b2814; }
.news-feature-body .news-date { color: #7b6345; }
.news-feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(96, 65, 27, .24); }
.news-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-date { margin-left: auto; font-size: 10px; color: var(--faint); letter-spacing: .02em; white-space: nowrap; }
.news-title { margin: 11px 0 0; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.24; color: var(--parch); }
.news-excerpt { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-author { font-size: 10px; color: var(--faint); }
.news-author strong { color: var(--text); font-weight: 500; }
.news-list { display: grid; gap: 14px; align-content: start; }
.news-card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden;
  border: 1px solid #a77d42; border-radius: var(--radius);
  background: linear-gradient(180deg, #f2e4c4, #e2cea5); color: var(--parch-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 249, 222, .35);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.news-card:hover { border-color: var(--gold); transform: translateY(-2px); background: linear-gradient(180deg, #f7ebcf, #e8d6b1); }
.news-card-cover { min-height: 100%; }
.news-card-cover .news-cover { height: 100%; min-height: 155px; }
.news-card-content { padding: 15px 16px; min-width: 0; display: flex; flex-direction: column; }
.news-card .news-title { font-size: 18px; margin-top: 8px; color: var(--parch-ink); }
.news-card .news-excerpt { -webkit-line-clamp: 2; font-size: 11px; color: #604a31; }
.news-card .news-author { margin-top: auto; padding-top: 9px; color: #7b6345; }
.news-card .news-author strong { color: #3b2814; }
.news-card .news-date { color: #7b6345; }
.news-card .badge { border-color: rgba(102, 68, 28, .4); background: rgba(112, 77, 32, .07); color: #75501f; }
.news-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.news-side-note { padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(26, 18, 10, .6); }
.news-side-note h3 { margin: 8px 0 0; font-family: var(--display); font-size: 25px; font-weight: 500; color: var(--parch); }
.news-side-note p { margin: 10px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.news-about { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 18px; padding: 25px 27px; border: 1px solid var(--line); background: rgba(27, 19, 11, .55); }
.news-about h3 { margin: 4px 0 0; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--parch); }
.news-about p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.news-empty { padding: 42px; border: 1px solid #a77d42; border-radius: var(--radius); background: linear-gradient(180deg, #f2e4c4, #e1cda4); color: var(--parch-ink); }
.news-empty-crest { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(102, 68, 28, .45); color: #7c4d18; }
.news-empty h3 { margin: 7px 0 0; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--parch-ink); }
.news-empty p { margin: 9px 0 0; color: #604a31; font-size: 13px; max-width: 540px; }
.news-rail { display: grid; gap: 16px; position: sticky; top: 110px; }
.rail-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(41, 48, 35, .7); font-size: 11px; }
.rail-stat span { color: var(--muted); }
.rail-stat strong { color: var(--parch); font-family: var(--display); font-size: 16px; font-weight: 500; }
.rail-links { display: grid; }
.rail-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(41, 48, 35, .7); color: var(--text); font-size: 11px; }
.rail-link:hover { color: var(--gold); }
.rail-join { padding: 22px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(32, 39, 26, .86), rgba(13, 17, 12, .9)); }
.rail-join-mark { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--line-gold); color: var(--gold); }
.rail-join h3 { margin: 7px 0 0; font-family: var(--display); font-size: 23px; font-weight: 500; line-height: 1.18; color: var(--parch); }
.rail-join p { margin: 9px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.7; }

/* article */
.breadcrumb { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.breadcrumb:hover { color: var(--gold-bright); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin-top: 24px; align-items: start; }
.article { min-width: 0; border: 1px solid #a77d42; background: linear-gradient(180deg, #f5e8ca, #e7d5af); color: var(--parch-ink); box-shadow: 0 20px 55px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 249, 222, .4); }
.article-banner .news-cover { height: 290px; }
.article-content { padding: 34px clamp(24px, 5vw, 58px) 40px; }
.article-title { margin: 15px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); font-weight: 500; line-height: 1.05; color: var(--parch-ink); }
.article-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 17px; color: #7b6345; font-size: 10px; }
.article-byline strong { color: #3b2814; font-weight: 600; }
.article-copy { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 0; border: 0; background: none; color: #7c4d18; font: inherit; cursor: pointer; }
.article-copy:hover { color: #3e2607; }
.article-rule { height: 1px; margin: 26px 0; background: linear-gradient(90deg, rgba(111, 74, 27, .45), transparent); }
.article-body.md { max-width: 760px; color: #43311d; font-size: 15px; line-height: 1.9; }
.article-body.md p { margin: 0 0 18px; }
.article-body.md h1, .article-body.md h2, .article-body.md h3 { margin: 34px 0 12px; font-family: var(--display); font-weight: 500; color: var(--parch-ink); }
.article-body.md h1 { font-size: 35px; }
.article-body.md h2 { font-size: 29px; }
.article-body.md h3 { font-size: 23px; }
.article-body.md ul, .article-body.md ol { padding-left: 23px; margin: 0 0 20px; }
.article-body.md li { margin: 7px 0; }
.article-body.md li::marker { color: #8a5a1e; }
.article-body.md a { color: #7c4d18; text-decoration: underline; text-underline-offset: 3px; }
.article-body.md strong { color: var(--parch-ink); }
.article-body.md blockquote { margin: 25px 0; padding: 8px 0 8px 22px; border-left: 2px solid #98703a; color: #4c3820; font-family: var(--serif); font-size: 19px; }
.article-body.md code { padding: 2px 5px; background: rgba(111, 74, 27, .12); color: #5d3a0d; font-family: var(--mono); font-size: 12px; }
.article-body.md pre { overflow-x: auto; padding: 16px; border: 1px solid rgba(111, 74, 27, .3); background: #f7edd7; color: #43311d; }
.article .badge { border-color: rgba(102, 68, 28, .4); background: rgba(112, 77, 32, .07); color: #75501f; }
.article .news-card-top { color: #7b6345; }
.article .btn-ghost { color: #3b2814; border-color: rgba(102, 68, 28, .5); background: rgba(255, 248, 226, .32); }
.article .btn-ghost:hover { color: #241608; border-color: #7c4d18; background: rgba(255, 248, 226, .58); }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 34px; padding-top: 23px; border-top: 1px solid var(--line); }
.article-rail { display: grid; gap: 16px; position: sticky; top: 110px; }
.article-related { display: grid; gap: 4px; }
.related-story { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(41, 48, 35, .7); }
.related-story:last-child { border-bottom: 0; }
.related-mark { width: 26px; height: 30px; display: grid; place-items: center; flex: none; color: var(--gold); background: linear-gradient(150deg, #2b3825, #10150e); }
.related-story span:nth-child(2) { min-width: 0; flex: 1; }
.related-story strong { display: block; color: var(--text); font-size: 11px; font-weight: 600; line-height: 1.35; }
.related-story small { display: block; margin-top: 3px; color: var(--faint); font-size: 9px; }
.related-story:hover strong { color: var(--gold); }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 34px; padding: 28px 32px; border: 1px solid var(--line-gold); background: linear-gradient(130deg, rgba(48, 34, 19, .85), rgba(16, 11, 6, .94)); }
.article-cta h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: 27px; color: var(--parch); }

/* ---------------------------------------------------------------- game modes */
.modes-section { background: linear-gradient(180deg, rgba(14, 19, 13, .4), transparent); }
.mode-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.mode-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 252px;
  padding: 20px 18px 17px; border: 1px solid #4b3520; background: linear-gradient(170deg, rgba(54, 38, 21, .8), rgba(24, 16, 8, .92));
  box-shadow: inset 0 1px 0 rgba(255, 232, 183, .035);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.mode-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); background: linear-gradient(170deg, rgba(67, 47, 25, .88), rgba(31, 21, 10, .95)); }
.mode-watermark { position: absolute; right: -8px; top: 20px; color: rgba(207, 169, 99, .055); transform: rotate(-8deg); pointer-events: none; }
.mode-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-gold); color: var(--gold); background: rgba(9, 6, 3, .35); }
.mode-note { margin-top: 19px; color: #a98e64; font-family: var(--rs-small); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.mode-name { margin-top: 5px; font-family: var(--display); font-size: 21px; font-weight: 500; line-height: 1.15; color: var(--parch); }
.mode-copy { margin-top: 9px; color: #b6a58b; font-size: 11px; line-height: 1.65; }
.mode-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 16px; color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.mode-regular .mode-icon { color: var(--gold); }
.mode-ironman .mode-icon { color: var(--blue); border-color: rgba(130, 168, 200, .35); }
.mode-hardcore .mode-icon { color: var(--red); border-color: rgba(217, 124, 95, .4); }
.mode-ultimate .mode-icon { color: var(--violet); border-color: rgba(183, 158, 213, .36); }
.mode-group .mode-icon { color: var(--green); border-color: rgba(148, 182, 115, .38); }

/* ---------------------------------------------------------------- market + ranks */
.realm-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.realm-panel-card { height: 100%; }
.market-rows { display: grid; }
.market-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(91, 66, 40, .5); }
.market-row:last-child { border-bottom: 0; }
.market-row:hover .market-item strong { color: var(--gold); }
.market-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.market-item > span:last-child { min-width: 0; }
.market-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; font-weight: 600; }
.market-item small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.market-value { text-align: right; flex: none; }
.market-value strong { display: block; color: var(--gold); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.market-value small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.price-up { color: var(--green) !important; }
.price-down { color: var(--red) !important; }
.rank-rows { display: grid; }
.rank-row { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid rgba(91, 66, 40, .5); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { width: 27px; flex: none; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.rank-number.first { color: var(--gold); }
.rank-player { min-width: 0; flex: 1; }
.rank-player strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--parch); font-size: 12px; font-weight: 600; }
.rank-player small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; }
.rank-score { text-align: right; flex: none; }
.rank-score strong { display: block; color: var(--gold); font-family: var(--display); font-size: 17px; font-weight: 500; }
.rank-score small { display: block; color: var(--faint); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.rank-row:hover .rank-player strong { color: var(--gold-bright); }

/* ---------------------------------------------------------------- home store */
.store-section { position: relative; }
.store-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 30px; align-items: center; padding: 40px 44px;
  border: 1px solid var(--line-gold);
  background:
    linear-gradient(120deg, rgba(51, 35, 18, .94), rgba(17, 11, 6, .97) 58%),
    repeating-linear-gradient(90deg, rgba(255, 228, 174, .025) 0 2px, transparent 2px 10px);
  box-shadow: var(--shadow);
}
.store-banner-art {
  position: absolute; right: 21%; top: -20%; width: 38%; height: 150%;
  background: linear-gradient(90deg, rgba(17, 11, 6, .92), rgba(17, 11, 6, .35)), url("./assets/title.jpg") center/cover;
  opacity: .38; filter: saturate(.72); mask-image: linear-gradient(90deg, transparent, #000 30%, transparent 100%);
  pointer-events: none;
}
.store-banner-copy { position: relative; z-index: 1; }
.store-banner-copy h2 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(33px, 4vw, 50px); font-weight: 500; line-height: 1.04; color: var(--parch); }
.store-banner-copy p { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.store-banner-meta { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 19px; color: var(--faint); font-family: var(--rs-small); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.store-banner-meta span { display: inline-flex; align-items: center; gap: 6px; }
.store-banner-meta svg { color: var(--gold); }
.store-feature-card { position: relative; z-index: 1; padding: 23px; border: 1px solid #a77d42; background: linear-gradient(180deg, #f2e4c4, #dfcaa1); color: var(--parch-ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 249, 222, .4); }
.store-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-feature-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-top: 23px; border: 1px solid rgba(102, 68, 28, .5); color: #7c4d18; background: radial-gradient(circle, rgba(124, 77, 24, .14), transparent 70%); }
.store-feature-card h3 { margin: 15px 0 0; font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--parch-ink); }
.store-feature-card p { margin: 8px 0 0; color: #604a31; font-size: 11px; line-height: 1.7; }
.store-feature-price { margin-top: 17px; color: #6f4612; font-family: var(--display); font-size: 28px; }
.store-feature-price small { display: block; margin-top: 4px; color: #7b6345; font-family: var(--sans); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.store-feature-card .btn { margin-top: 17px; }
.store-feature-card .btn-ghost { color: #3b2814; border-color: rgba(102, 68, 28, .55); background: rgba(255, 248, 226, .35); }
.store-feature-card .btn-ghost:hover { color: #241608; border-color: #7c4d18; background: rgba(255, 248, 226, .6); }
.store-feature-card .badge { border-color: rgba(102, 68, 28, .4); background: rgba(112, 77, 32, .07); color: #75501f; }

/* ---------------------------------------------------------------- community */
.community-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 55px; align-items: center; }
.community-copy h2 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(32px, 4vw, 49px); font-weight: 500; line-height: 1.06; color: var(--parch); }
.community-copy p { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 520px; }
.community-links { display: grid; }
.community-link { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.community-link:first-child { border-top: 1px solid var(--line); }
.community-link-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-2); color: var(--gold); }
.community-link > span:nth-child(2) { min-width: 0; flex: 1; }
.community-link strong { display: block; color: var(--parch); font-family: var(--display); font-size: 18px; font-weight: 500; }
.community-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.community-link:hover .community-link-icon { border-color: var(--gold-deep); color: var(--gold-bright); }
.community-link:hover strong { color: var(--gold); }

/* ---------------------------------------------------------------- footer */
.footer {
  position: relative; overflow: hidden; margin-top: 0;
  border-top: 1px solid var(--line-gold);
  background:
    linear-gradient(180deg, #100a06, #080503),
    repeating-linear-gradient(90deg, rgba(255, 228, 174, .02) 0 1px, transparent 1px 8px);
}
.footer-glow { position: absolute; inset: -35% 10% auto; height: 300px; background: radial-gradient(ellipse, rgba(175, 132, 62, .18), transparent 65%); pointer-events: none; }
.footer .wrap { position: relative; z-index: 1; }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 42px 0; border-bottom: 1px solid var(--line);
}
.footer-cta h2 { margin: 5px 0 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 43px); font-weight: 500; line-height: 1.05; color: var(--parch); }
.footer-cta p { max-width: 620px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.footer-cta-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, .8fr); gap: 38px; padding: 46px 0 35px; }
.footer-brand p { max-width: 380px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 17px; }
.footer-col { padding-top: 5px; }
.footer-title { margin: 0 0 14px; font-family: var(--rs-small); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
.footer-links { display: grid; gap: 9px; }
.footer-link { color: var(--muted); font-size: 11px; }
.footer-link:hover { color: var(--parch); }
.footer-legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 9px; line-height: 1.6; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0 24px; color: var(--faint); font-size: 9px; letter-spacing: .06em; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.table th { padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--rs-small); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(91, 66, 40, .48); color: var(--text); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: rgba(255, 230, 180, .014); }
.table tbody tr:hover td { background: rgba(215, 170, 88, .055); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { color: var(--parch); font-weight: 600; }
.table-empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.select, .input, .textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px;
  background: rgba(12, 8, 4, .72); color: var(--parch); font-family: var(--sans); font-size: 12px;
}
.select { width: auto; min-width: 155px; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--gold-deep); outline: none; }
.textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
.field { display: grid; gap: 6px; }
.field-label { font-family: var(--rs-small); font-size: 11px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.field-hint { font-size: 10px; color: var(--faint); }
.field-error { color: var(--red); font-size: 10px; }
.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text); cursor: pointer; }
.checkbox input { accent-color: var(--gold); width: 14px; height: 14px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .search-icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.search-input { width: 250px; padding: 9px 12px 9px 35px; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(12, 8, 4, .7); color: var(--parch); font-size: 12px; }
.search-input::placeholder { color: var(--faint); }
.search-input:focus { border-color: var(--gold-deep); outline: none; }

/* ---------------------------------------------------------------- tabs, pagination */
.tabs { display: flex; gap: 3px; flex-wrap: wrap; }
.tab { padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: rgba(26, 18, 10, .58); color: var(--muted); font-family: var(--rs); font-size: 13px; font-weight: 400; letter-spacing: .01em; cursor: pointer; }
.tab:hover { border-color: var(--line-2); color: var(--gold-bright); }
.tab.active { border-color: var(--gold-deep); background: linear-gradient(180deg, #e8c987, #c69648); color: #241604; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-end { margin-left: auto; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 20px; }
.page-btn { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid var(--line); background: rgba(26, 18, 10, .45); color: var(--muted); font-family: var(--rs); font-size: 13px; cursor: pointer; }
.page-btn:hover { border-color: var(--line-2); color: var(--parch); }
.page-btn.active { border-color: var(--gold-deep); color: var(--gold); }
.page-btn[disabled] { opacity: .3; cursor: default; }

/* ---------------------------------------------------------------- hiscores */
.hiscore-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.hiscore-mode {
  display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(31, 22, 12, .65), rgba(15, 10, 5, .72)); color: var(--muted); text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.hiscore-mode:hover { border-color: var(--line-2); background: linear-gradient(170deg, rgba(43, 30, 16, .8), rgba(21, 14, 7, .84)); }
.hiscore-mode.active { border-color: var(--gold-deep); background: rgba(207, 169, 99, .08); color: var(--parch); }
.hiscore-mode-icon { color: var(--gold); flex: none; }
.hiscore-mode-copy { display: grid; min-width: 0; flex: 1; }
.hiscore-mode-copy strong { font-family: var(--rs); font-size: 15px; font-weight: 400; white-space: nowrap; }
.hiscore-mode-copy small { color: var(--faint); font-family: var(--rs-small); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.hiscore-mode-count { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.hiscore-mode.active .hiscore-mode-count { color: var(--gold); }
.hiscore-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hiscore-controls-left, .hiscore-controls-right { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.skill-pick { display: flex; align-items: center; gap: 10px; }
.skill-pick .skill-icon { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(0, 0, 0, .6)); }
.skill-pick .field-label { display: block; margin-bottom: 1px; }
.skill-pick strong { font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--parch); }
.staff-toggle { white-space: nowrap; }
.hiscore-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; flex-wrap: wrap; }
.hiscore-summary-mode { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.hiscore-loading { display: grid; gap: 12px; padding: 30px; }
.hiscore-panel { overflow: hidden; }
.hiscore-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.podium-card { position: relative; padding: 17px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(30, 38, 24, .86), rgba(10, 14, 9, .9)); }
.podium-card.first { border-color: rgba(207, 169, 99, .5); box-shadow: inset 0 1px 0 rgba(255, 239, 199, .08); }
.podium-position { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.podium-position span { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.podium-position strong { color: var(--gold); font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .05em; }
.podium-player { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.podium-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 19px; color: var(--parch); }
.podium-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.podium-stats { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.podium-stats span { display: grid; gap: 2px; }
.podium-stats strong { color: var(--parch); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.podium-stats small { color: var(--faint); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.podium-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.podium-link:hover { color: var(--gold-bright); }
.hiscore-table .rank-cell { width: 64px; }
.table-rank { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.table-rank.first { color: var(--gold); }
.hiscore-note { padding: 16px 0 0; }
.hiscore-panel .panel-foot { margin: 0; }
.hiscore-panel .table td:first-child, .hiscore-panel .table th:first-child { padding-left: 20px; }
.hiscore-panel .table td:last-child, .hiscore-panel .table th:last-child { padding-right: 20px; }

/* ---------------------------------------------------------------- grand exchange */
.ge-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 17px; }
.ge-total { padding: 15px 16px; border: 1px solid var(--line); background: rgba(16, 21, 15, .6); }
.ge-total-label { display: block; color: var(--faint); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.ge-total strong { display: block; margin-top: 5px; color: var(--parch); font-family: var(--display); font-size: 22px; font-weight: 500; }
.ge-search-bar { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 17px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ge-search-note { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.ge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ge-market-panel .panel-body { overflow: hidden; }
.ge-table .ge-table-name { display: flex; align-items: center; gap: 10px; min-width: 195px; }
.ge-table-name strong { display: block; color: var(--parch); font-weight: 600; }
.ge-table tbody tr { cursor: pointer; }
.ge-table tbody tr:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ge-side { min-width: 0; }
.ge-detail { display: grid; gap: 18px; }
.ge-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 24px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(30, 39, 25, .82), rgba(10, 14, 9, .48)); }
.ge-item-title { display: flex; align-items: center; gap: 15px; min-width: 0; }
.ge-item-title h1 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(27px, 3.5vw, 39px); line-height: 1.06; color: var(--parch); }
.ge-item-title .inline { margin-top: 8px; }
.ge-price-tag { min-width: 180px; text-align: right; }
.ge-price-label { display: block; color: var(--faint); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.ge-price { margin-top: 4px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--gold-bright); }
.ge-subprice { margin-top: 7px; color: var(--faint); font-size: 11px; }
.ge-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.mini-stat { padding: 14px; border: 1px solid var(--line); background: rgba(12, 16, 11, .55); }
.mini-stat .label { font-size: 8px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.mini-stat .value { margin-top: 5px; font-family: var(--display); font-size: 18px; color: var(--parch); }
.chart-card { padding: 17px 18px 13px; border: 1px solid var(--line); background: rgba(9, 13, 9, .4); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 12px; }
.chart-title { color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.chart-caption { margin-bottom: 7px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; }
.chart-empty { display: grid; place-items: center; align-content: center; min-height: 235px; padding: 22px; text-align: center; color: var(--muted); }
.chart-empty-mark { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 15px; border: 1px solid var(--line-gold); color: var(--gold); }
.chart-empty p { max-width: 410px; margin: 8px 0 0; font-size: 12px; line-height: 1.7; }
.trade-list { display: grid; }
.trade-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(41, 48, 35, .62); font-size: 11px; }
.trade-row:last-child { border-bottom: 0; }
.trade-button { width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(41, 48, 35, .62); color: inherit; text-align: left; cursor: pointer; }
.trade-button:hover { color: var(--gold); }
.movers-grid { display: grid; gap: 7px; }
.movers-empty { padding: 8px 0; }
.mover-card { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); background: rgba(16, 21, 15, .55); color: var(--text); text-align: left; cursor: pointer; }
.mover-card:hover { border-color: var(--line-2); }
.mover-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.mover-change { flex: none; font-size: 9px; font-weight: 700; }
.ge-detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 19px 22px; border: 1px solid var(--line-gold); background: rgba(31, 39, 25, .6); }
.ge-detail-cta p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }

/* item glyphs */
.item-glyph {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border: 1px solid #6b4d28; border-radius: 2px;
  background: radial-gradient(circle at 35% 25%, rgba(240, 213, 154, .18), rgba(30, 20, 10, .94));
  color: var(--gold); font-family: var(--display); font-size: 11px; letter-spacing: -.04em;
}
.item-glyph.sm { width: 25px; height: 25px; font-size: 9px; }
.item-glyph.lg { width: 58px; height: 58px; font-size: 19px; }
.item-glyph.tone-1 { border-color: #5d4c2d; color: #e2c17e; }
.item-glyph.tone-2 { border-color: #425943; color: #a9ce93; background: radial-gradient(circle at 35% 25%, rgba(147, 192, 109, .16), rgba(16, 24, 14, .9)); }
.item-glyph.tone-3 { border-color: #3b5060; color: #a9c8e2; background: radial-gradient(circle at 35% 25%, rgba(143, 184, 217, .16), rgba(13, 20, 25, .9)); }
.item-glyph.tone-4 { border-color: #56456a; color: #cbb4e0; background: radial-gradient(circle at 35% 25%, rgba(179, 154, 214, .16), rgba(22, 16, 27, .9)); }
.item-glyph.tone-5 { border-color: #644136; color: #e7a18c; background: radial-gradient(circle at 35% 25%, rgba(224, 122, 95, .14), rgba(27, 17, 13, .9)); }

/* ---------------------------------------------------------------- store page */
.store-hero { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; padding: 31px 35px; border: 1px solid var(--line-gold); background: linear-gradient(135deg, rgba(35, 43, 27, .84), rgba(10, 14, 9, .9)); }
.store-hero-copy { max-width: 670px; }
.store-hero-copy h2 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(30px, 3.7vw, 43px); font-weight: 500; line-height: 1.06; color: var(--parch); }
.store-hero-copy p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.store-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 17px; color: var(--faint); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.store-trust span { display: inline-flex; align-items: center; gap: 6px; }
.store-trust svg { color: var(--green); }
.store-hero-mark { display: grid; place-items: center; gap: 12px; color: var(--faint); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.store-hero-ring { width: 100px; height: 100px; display: grid; place-items: center; border: 1px solid var(--line-gold); border-radius: 50%; color: var(--gold); background: radial-gradient(circle, rgba(207, 169, 99, .12), transparent 68%); box-shadow: 0 0 0 10px rgba(207, 169, 99, .025); }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.product-card { display: flex; flex-direction: column; border: 1px solid #a77d42; background: linear-gradient(180deg, #f2e4c4, #e0cba2); color: var(--parch-ink); box-shadow: 0 16px 38px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 249, 222, .38); transition: border-color .16s ease, transform .16s ease; }
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.product-card.featured { border-color: #c9953f; box-shadow: 0 18px 44px rgba(0, 0, 0, .36), 0 0 0 1px rgba(226, 181, 92, .35), inset 0 0 0 1px rgba(255, 249, 222, .45); }
.store-support-card { display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px dashed var(--line-2); background: rgba(16, 21, 15, .35); }
.store-support-card .section-eyebrow { margin-bottom: 8px; }
.store-support-card h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--parch); }
.store-support-card p { margin: 9px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; }
.product-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(102, 68, 28, .5); color: #7c4d18; background: rgba(255, 248, 226, .28); }
.product-tag { padding: 3px 7px; border: 1px solid rgba(102, 68, 28, .45); color: #75501f; font-family: var(--rs-small); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 17px 20px 19px; }
.product-kicker { color: #7b6345; font-family: var(--rs-small); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.product-name { margin: 5px 0 0; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.13; color: var(--parch-ink); }
.product-blurb { margin: 9px 0 0; color: #604a31; font-size: 11px; line-height: 1.7; }
.product-perks { display: grid; gap: 6px; margin: 16px 0 0; padding: 13px 0 0; border-top: 1px solid rgba(96, 65, 27, .25); list-style: none; }
.product-perks li { display: flex; align-items: flex-start; gap: 7px; color: #43311d; font-size: 10px; }
.product-perks svg { color: #46652f; margin-top: 2px; flex: none; }
.product-price { margin-top: auto; padding-top: 17px; color: #6f4612; font-family: var(--display); font-size: 27px; }
.product-price small { display: inline-block; margin-left: 6px; color: #7b6345; font-family: var(--sans); font-size: 9px; }
.product-foot { margin-top: 13px; }
.product-card .btn-ghost { color: #3b2814; border-color: rgba(102, 68, 28, .55); background: rgba(255, 248, 226, .35); }
.product-card .btn-ghost:hover { color: #241608; border-color: #7c4d18; background: rgba(255, 248, 226, .6); }
.product-card .badge { border-color: rgba(102, 68, 28, .4); background: rgba(112, 77, 32, .07); color: #75501f; }
.accent-jade .product-icon { color: #46652f; }
.accent-violet .product-icon { color: #6b4d88; }
.accent-crimson .product-icon { color: #933f2c; }
.accent-steel .product-icon { color: #3c6078; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step-card { position: relative; padding: 22px; border: 1px solid var(--line); background: rgba(16, 21, 15, .5); }
.step-num { color: var(--gold); font-family: var(--mono); font-size: 10px; }
.step-card .card-title { margin: 10px 0 0; font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--parch); }

/* ---------------------------------------------------------------- polls */
.poll-signin { max-width: 760px; margin: 40px auto; padding: 44px; border: 1px solid var(--line-gold); background: linear-gradient(160deg, rgba(33, 42, 26, .82), rgba(10, 14, 9, .92)); text-align: center; }
.poll-signin-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 17px; border: 1px solid var(--line-gold); color: var(--gold); }
.poll-signin h2 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(30px, 4vw, 43px); font-weight: 500; line-height: 1.05; color: var(--parch); }
.poll-signin p { max-width: 520px; margin: 13px auto 21px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.poll-card { margin-bottom: 18px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(20, 27, 18, .82), rgba(10, 14, 9, .72)); }
.poll-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 25px 20px; border-bottom: 1px solid var(--line); }
.poll-heading { min-width: 0; }
.poll-title { margin: 10px 0 0; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.12; color: var(--parch); }
.poll-meta { flex: none; color: var(--faint); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.poll-questions { display: grid; gap: 23px; padding: 22px 25px 25px; }
.poll-question h4 { margin: 0 0 10px; color: var(--parch); font-family: var(--display); font-size: 17px; font-weight: 500; }
.poll-options { display: grid; gap: 7px; }
.poll-option { position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden; padding: 11px 13px; border: 1px solid var(--line); background: rgba(8, 11, 8, .4); cursor: pointer; }
.poll-option:hover { border-color: var(--line-2); }
.poll-option.selected { border-color: var(--gold-deep); background: rgba(207, 169, 99, .07); }
.poll-option input { accent-color: var(--gold); }
.poll-option-dot { width: 8px; height: 8px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; }
.poll-option-label { position: relative; z-index: 1; flex: 1; color: var(--text); font-size: 12px; }
.poll-option-result { position: relative; z-index: 1; flex: none; text-align: right; }
.poll-option-result strong { display: block; color: var(--gold); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.poll-option-result small { display: block; color: var(--faint); font-size: 8px; }
.poll-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(207, 169, 99, .08); }
.poll-bar-fill { display: block; height: 100%; background: var(--gold-deep); }
.poll-option.has-results { padding-bottom: 14px; }
.poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 3px; }
.poll-foot .market-note { margin: 0; }
.poll-card > .notice, .poll-card > .mt-2 { margin-inline: 25px; }

/* ---------------------------------------------------------------- account login */
.auth-page { position: relative; overflow: hidden; padding: 70px 0 86px; border-bottom: 1px solid var(--line); }
.auth-atmosphere {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 6, .88), rgba(6, 9, 6, .58) 45%, rgba(6, 9, 6, .95)),
    url("./assets/hero-landscape.svg") center 46% / cover;
  opacity: .55; filter: saturate(.6);
}
.auth-page::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 22% 45%, transparent, rgba(5, 8, 5, .58) 78%); pointer-events: none; }
.auth-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 60px; align-items: center; }
.auth-intro { max-width: 640px; }
.auth-intro h1 { margin: 14px 0 0; font-family: var(--display); font-size: clamp(45px, 6vw, 72px); line-height: .98; font-weight: 500; color: var(--parch); }
.auth-intro h1 em { font-style: normal; color: var(--gold-bright); }
.auth-lede { max-width: 520px; margin: 20px 0 0; color: #b8b09c; font-size: 14px; line-height: 1.85; }
.auth-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 22px; margin-top: 29px; }
.auth-benefit { display: flex; align-items: flex-start; gap: 11px; }
.auth-benefit > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid var(--line-gold); color: var(--gold); }
.auth-benefit strong { display: block; color: var(--parch); font-size: 12px; font-weight: 600; }
.auth-benefit span:last-child { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.auth-play { display: flex; align-items: center; gap: 8px; margin-top: 29px; color: var(--faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.auth-play a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); }
.auth-play a:hover { color: var(--gold-bright); }
.auth-card-wrap { position: relative; }
.auth-card { position: relative; padding: 29px; border: 1px solid #a77d42; background: linear-gradient(180deg, #f4e6c6 0%, #e5d2aa 62%, #d8c094 100%); color: var(--parch-ink); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 249, 222, .45); }
.auth-card::before, .auth-card::after { content: ""; position: absolute; width: 19px; height: 19px; border-color: rgba(102, 68, 28, .55); border-style: solid; }
.auth-card::before { left: 7px; top: 7px; border-width: 1px 0 0 1px; }
.auth-card::after { right: 7px; bottom: 7px; border-width: 0 1px 1px 0; }
.auth-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid rgba(96, 65, 27, .28); }
.auth-card-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border: 1px solid rgba(102, 68, 28, .5); color: #7c4d18; background: rgba(255, 248, 226, .3); }
.auth-card-head h2 { margin: 3px 0 0; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--parch-ink); }
.auth-card-head .section-eyebrow { color: #815522; }
.auth-card-status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #406b32; font-family: var(--rs-small); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.auth-card-copy { margin: 18px 0 0; color: #604a31; font-size: 12px; }
.auth-card form { margin-top: 20px; }
.auth-card form .btn { margin-top: 2px; }
.auth-card .field-label { color: #4b351c; }
.auth-card .field-hint { color: #7b6345; }
.auth-card .input { background: rgba(255, 249, 232, .62); border-color: rgba(102, 68, 28, .42); color: var(--parch-ink); }
.auth-card .input::placeholder { color: #937a56; }
.auth-card .input:focus { border-color: #7c4d18; box-shadow: 0 0 0 2px rgba(124, 77, 24, .12); }
.auth-create-note { text-align: center; }
.auth-card-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 19px; padding-top: 15px; border-top: 1px solid rgba(96, 65, 27, .28); color: #7b6345; font-size: 9px; }
.auth-card .notice-error { color: #7a2818; border-color: rgba(122, 40, 24, .35); background: rgba(122, 40, 24, .07); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 44px; align-items: center; max-width: 1000px; margin: 32px auto 60px; }
.auth-aside h2 { margin: 8px 0 0; font-family: var(--display); font-size: 37px; font-weight: 500; line-height: 1.08; color: var(--parch); }
.auth-aside p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-list { display: grid; gap: 10px; padding: 0; list-style: none; margin: 18px 0; }
.auth-list li { padding-left: 18px; position: relative; color: var(--text); font-size: 12px; }
.auth-list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 7px; top: 5px; }

/* ---------------------------------------------------------------- dashboard */
.dashboard { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; align-items: start; margin: 34px 0 70px; }
.dash-side { position: sticky; top: 110px; padding: 17px; }
.dash-user { display: flex; align-items: center; gap: 11px; padding: 4px 3px 15px; border-bottom: 1px solid var(--line); }
.dash-user { color: var(--parch); }
.dash-user strong { display: block; font-size: 13px; font-weight: 600; }
.dash-user span:last-child { display: block; margin-top: 2px; color: var(--faint); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.dash-nav { display: grid; gap: 2px; padding: 12px 0; }
.dash-link { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0; background: none; color: var(--muted); font-size: 11px; text-align: left; cursor: pointer; }
.dash-link:hover { color: var(--parch); background: rgba(207, 169, 99, .05); }
.dash-link.active { color: var(--gold-bright); background: rgba(207, 169, 99, .08); box-shadow: inset 2px 0 0 var(--gold); }
.dash-link .count { margin-left: auto; min-width: 18px; padding: 1px 5px; border: 1px solid var(--line-gold); color: var(--gold); font-size: 8px; text-align: center; }
.dash-side .divider { margin: 0; }
.dash-side > .stack { padding-top: 7px; }
.dash-main { min-width: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 4px 0 21px; border-bottom: 1px solid var(--line); }
.dash-head h1 { margin: 5px 0 0; font-family: var(--display); font-size: clamp(30px, 3.5vw, 43px); font-weight: 500; color: var(--parch); line-height: 1.05; }
.dash-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card { padding: 16px 17px; border: 1px solid var(--line); background: rgba(16, 21, 15, .62); }
.stat-label { color: var(--faint); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.stat-value { margin-top: 5px; color: var(--parch); font-family: var(--display); font-size: 27px; line-height: 1; }
.stat-value.gold { color: var(--gold); }
.stat-note { margin-top: 6px; color: var(--faint); font-size: 9px; }
.dash-main .stack { margin-top: 18px; }
.dash-main .grid-2 { margin-top: 18px; }
.dash-main > .notice, .dash-main > .loading { margin-top: 16px; }
.message-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.message-row:first-child { padding-top: 0; }
.message-row:last-child { border-bottom: 0; padding-bottom: 0; }
.message-dot { width: 6px; height: 6px; flex: none; margin-top: 7px; border-radius: 50%; background: var(--line-2); }
.message-row.unread .message-dot { background: var(--gold); box-shadow: 0 0 8px rgba(207, 169, 99, .4); }
.message-body { min-width: 0; flex: 1; }
.message-subject { color: var(--parch); font-size: 12px; font-weight: 600; }
.message-text { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.message-meta { margin-top: 5px; color: var(--faint); font-size: 9px; }
.offence-row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.offence-row:last-child { border-bottom: 0; }
.offence-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.offence-reason { margin: 7px 0; color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.appeal-box { padding: 12px 0 0; border-top: 1px solid var(--line); }
.dashboard .panel-head { padding: 15px 17px; }
.dashboard .panel-body { padding: 17px; }
.dashboard .panel-title { font-size: 18px; }

/* ---------------------------------------------------------------- admin */
.restricted { max-width: 590px; margin: 80px auto; padding: 42px; border: 1px solid var(--line-gold); background: rgba(15, 20, 14, .82); text-align: center; }
.restricted-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--line-gold); color: var(--gold); }
.restricted h1 { margin: 10px 0 0; font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--parch); }
.restricted p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-shell { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 26px; align-items: start; margin: 27px 0 55px; }
.admin-side { position: sticky; top: 105px; min-height: 570px; padding: 18px 15px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15, 21, 14, .9), rgba(8, 12, 8, .8)); }
.admin-side .brand { display: flex; padding: 2px 5px 17px; border-bottom: 1px solid var(--line); }
.admin-side .brand .crest { width: 35px; height: 42px; }
.admin-side .brand-name { font-size: 19px; }
.admin-side .brand-sub { font-size: 7px; letter-spacing: .2em; }
.admin-operator { display: flex; align-items: center; gap: 10px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.admin-operator strong { display: block; color: var(--parch); font-size: 12px; }
.admin-operator span { display: block; margin-top: 2px; color: var(--faint); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.admin-side .dash-nav { padding: 14px 0; }
.admin-side-foot { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 4px 0 21px; border-bottom: 1px solid var(--line); }
.admin-top h1 { margin: 5px 0 0; font-family: var(--display); font-size: clamp(31px, 3.5vw, 44px); font-weight: 500; color: var(--parch); line-height: 1.05; }
.admin-main > .stack { margin-top: 18px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-row strong.small { color: var(--parch); }
.admin-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shortcut { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 15px; border: 1px solid var(--line); background: rgba(8, 12, 8, .3); color: var(--muted); text-align: left; cursor: pointer; }
.shortcut:hover { border-color: var(--line-2); color: var(--parch); }
.shortcut svg { color: var(--gold); margin-bottom: 4px; }
.shortcut strong { color: var(--parch); font-size: 11px; font-weight: 600; }
.shortcut span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 16px; align-items: start; }
.editor-preview { position: sticky; top: 110px; }
.editor-grid .panel, .editor-preview { padding: 0; }
.editor-grid .panel > .section-head, .editor-preview > .section-eyebrow { padding: 17px 20px 0; }
.editor-grid .panel > .form-grid { padding: 15px 20px 20px; }
.editor-grid .panel > p { padding: 0 20px; }
.editor-preview .article-body { padding: 9px 20px 22px; }
.editor-preview .article-body h1 { margin-top: 0; font-size: 32px; }
.article-meta { color: var(--faint); font-size: 10px; }
.admin-main .table-wrap { margin: 0; }
.admin-main .table td, .admin-main .table th { padding: 10px 9px; }
.admin-main .form-grid { display: grid; }
.admin-main .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ---------------------------------------------------------------- feedback */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 100px; padding: 25px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.spinner { width: 13px; height: 13px; display: inline-block; flex: none; border: 1px solid rgba(207, 169, 99, .24); border-top-color: var(--gold); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 33px 18px; text-align: center; }
.empty h3 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--parch); }
.empty p { max-width: 430px; margin: 8px auto 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-action { display: flex; justify-content: center; margin-top: 16px; }
.notice { padding: 12px 14px; border: 1px solid var(--line-gold); background: rgba(207, 169, 99, .06); color: var(--text); font-size: 11px; line-height: 1.65; }
.notice-error { border-color: rgba(217, 124, 95, .35); background: rgba(217, 124, 95, .06); color: #ebb29e; }
.notice-warn { border-color: rgba(207, 169, 99, .35); background: rgba(207, 169, 99, .05); }
.notice-info { border-color: rgba(130, 168, 200, .28); background: rgba(130, 168, 200, .05); }
.notice-success { border-color: rgba(148, 182, 115, .3); background: rgba(148, 182, 115, .06); color: #c5daad; }
.divider { height: 1px; margin: 18px 0; background: var(--line); }
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 2, .78); backdrop-filter: blur(8px); }
.modal { width: min(540px, 100%); max-height: min(800px, calc(100vh - 40px)); overflow: auto; border: 1px solid var(--line-gold); background: var(--panel-2); box-shadow: var(--shadow); }
.modal.wide { width: min(800px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--parch); }
.close-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }
.close-btn:hover { color: var(--parch); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 20px; border-top: 1px solid var(--line); }
.skeleton { overflow: hidden; padding: 18px; border: 1px solid var(--line); background: rgba(16, 21, 15, .45); }
.skeleton-line { height: 9px; margin: 8px 0; background: linear-gradient(90deg, var(--line), var(--panel-3), var(--line)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- runescape details */
.skill-icon-sm { width: 18px; height: 18px; object-fit: contain; image-rendering: auto; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.skill-row { padding: 5px 0; border-bottom: 1px solid rgba(91, 66, 40, .35); }
.skill-row:last-child { border-bottom: 0; }
.skill-rail { display: flex; align-items: center; gap: 3px; overflow-x: auto; padding: 9px 10px; margin-bottom: 9px; border-top: 1px solid rgba(91, 66, 40, .55); border-bottom: 1px solid rgba(91, 66, 40, .55); background: rgba(9, 6, 3, .3); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.skill-chip { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 3px; border: 1px solid transparent; background: rgba(12, 8, 4, .42); cursor: pointer; opacity: .8; transition: opacity .14s ease, border-color .14s ease, background .14s ease, transform .14s ease; }
.skill-chip img { width: 30px; height: 30px; object-fit: contain; }
.skill-chip:hover { opacity: 1; border-color: var(--line-2); transform: translateY(-1px); }
.skill-chip.active { opacity: 1; border-color: var(--gold-deep); background: rgba(215, 170, 88, .1); box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .08); }
.skill-chip.active::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -4px; height: 1px; background: var(--gold); }
.skill-rail-label { flex: none; margin-right: 5px; color: var(--faint); font-family: var(--rs-small); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.editor-preview .article-body { margin: 8px 16px 18px; padding: 20px; border: 1px solid #a77d42; background: linear-gradient(180deg, #f4e6c6, #e3d0a7); color: #43311d; }
.editor-preview .article-body h1, .editor-preview .article-body h2, .editor-preview .article-body h3 { color: var(--parch-ink); }
.editor-preview .article-body strong { color: var(--parch-ink); }
.editor-preview .article-body p, .editor-preview .article-body li { color: #43311d; }
.editor-preview .article-body a { color: #7c4d18; }
.editor-preview .article-meta { color: #7b6345; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1160px) {
  .wrap { width: calc(100% - 48px); }
  .nav-link { padding-inline: 11px; font-size: 11px; }
  .hero-inner { gap: 28px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .mode-card { min-height: 220px; }
  .hero-title { font-size: clamp(48px, 6.3vw, 78px); }
  .footer-grid { grid-template-columns: 1.45fr repeat(3, .85fr); gap: 25px; }
  .hiscore-mode-copy small { display: none; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { min-height: 74px; gap: 15px; }
  .header-actions { margin-left: auto; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav.open { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; overflow-y: auto; background: #080c08; }
  .mobile-nav > .wrap { width: calc(100% - 34px); max-width: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; padding-bottom: 45px; gap: 35px; }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 8, 5, .96), rgba(5, 8, 5, .63) 50%, rgba(5, 8, 5, .4)); }
  .realm-panel { justify-self: start; width: min(100%, 430px); }
  .realm-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .realm-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .realm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .news-layout { grid-template-columns: 1fr; }
  .news-rail { position: static; grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .realm-grid { grid-template-columns: 1fr; }
  .store-banner { grid-template-columns: 1fr; padding: 32px; }
  .store-feature-card { max-width: 420px; }
  .store-banner-art { right: -15%; width: 65%; }
  .community-inner { grid-template-columns: 1fr; gap: 27px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .ge-layout { grid-template-columns: 1fr; }
  .ge-side { display: grid; grid-template-columns: 1fr 1fr; }
  .ge-stats { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; gap: 36px; }
  .auth-intro { max-width: 580px; }
  .auth-card-wrap { max-width: 460px; }
  .dashboard { grid-template-columns: 1fr; margin-top: 24px; }
  .dash-side { position: static; }
  .dash-nav { grid-template-columns: repeat(3, 1fr); }
  .dash-side > .stack { display: flex; flex-wrap: wrap; }
  .admin-shell { grid-template-columns: 1fr; margin-top: 20px; }
  .admin-side { position: static; min-height: 0; }
  .admin-side .dash-nav { grid-template-columns: repeat(4, 1fr); }
  .admin-side-foot { display: flex; flex-wrap: wrap; }
  .admin-side-foot .dash-link { margin-right: 8px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 14px; }
  .top-strip { font-size: 8px; }
  .top-strip-inner { min-height: 31px; }
  .strip-left .strip-sep, .strip-left > span:last-child, .strip-right .strip-muted { display: none; }
  .header-inner { min-height: 68px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 7px; }
  .header-actions .header-signin, .header-actions .admin-shortcut { display: none; }
  .header-actions .btn-sm:not(.btn-icon) { display: none; }
  .account-meta { display: none; }
  .account-chip { padding: 4px; }
  .page-head { padding: 43px 0 28px; }
  .page-title { font-size: 40px; }
  .page-lede { font-size: 12px; }
  .hero-inner { padding-top: 52px; }
  .hero-title { font-size: clamp(42px, 12vw, 62px); }
  .hero-lede { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { gap: 10px 15px; font-size: 8px; }
  .hero-latest-title { max-width: 210px; }
  .realm-panel { padding: 20px; }
  .realm-online { font-size: 44px; }
  .realm-bar-inner { grid-template-columns: 1fr 1fr; }
  .realm-stat { padding: 16px 10px; }
  .realm-stat:nth-child(2n) { padding-left: 15px; }
  .realm-stat-label { font-size: 8px; }
  .realm-stat-value { font-size: 21px; }
  .realm-stat-note { font-size: 8px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 30px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 21px; }
  .section-title { font-size: 30px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-feature { min-height: 0; }
  .news-cover.is-featured { min-height: 175px; }
  .news-list { grid-template-columns: 1fr; }
  .news-secondary { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 78px minmax(0, 1fr); }
  .news-rail { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card { min-height: 205px; padding: 16px 14px; }
  .mode-name { font-size: 17px; }
  .mode-copy { font-size: 10px; }
  .mode-watermark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { padding: 30px 0; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-actions .btn { flex: 1; }
  .footer-legal, .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .store-banner { padding: 24px 20px; }
  .store-banner-meta { gap: 9px 13px; }
  .store-feature-card { padding: 18px; }
  .store-hero { padding: 23px 20px; }
  .store-hero-mark { display: none; }
  .store-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hiscore-mode-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .hiscore-mode { flex-direction: column; align-items: flex-start; gap: 5px; padding: 9px 8px; }
  .hiscore-mode-copy small { display: none; }
  .hiscore-mode-copy strong { font-size: 11px; }
  .hiscore-mode-count { font-size: 8px; }
  .hiscore-controls { align-items: flex-start; flex-direction: column; }
  .hiscore-controls-right { width: 100%; }
  .hiscore-controls-right .select { flex: 1; min-width: 0; }
  .hiscore-controls-right .search-box { flex: 1; }
  .search-input { width: 100%; min-width: 150px; }
  .hiscore-podium { grid-template-columns: 1fr; padding: 12px 12px 0; }
  .podium-card { padding: 14px; }
  .hiscore-table th:nth-child(3), .hiscore-table td:nth-child(3) { display: none; }
  .hiscore-panel .table td:first-child, .hiscore-panel .table th:first-child { padding-left: 12px; }
  .hiscore-panel .table td:last-child, .hiscore-panel .table th:last-child { padding-right: 12px; }
  .ge-totals { grid-template-columns: 1fr 1fr; }
  .ge-total { padding: 12px; }
  .ge-total strong { font-size: 19px; }
  .ge-search-bar { gap: 9px; }
  .ge-search-note { margin-left: 0; }
  .ge-detail-head { padding: 17px; }
  .ge-detail-head .ge-price-tag { text-align: left; }
  .ge-stats { grid-template-columns: 1fr 1fr; }
  .ge-side { grid-template-columns: 1fr; }
  .article-content { padding: 24px 19px 30px; }
  .article-banner .news-cover { height: 185px; }
  .article-title { font-size: 34px; }
  .article-byline { gap: 7px; font-size: 9px; }
  .article-copy { margin-left: 0; }
  .article-rail { grid-template-columns: 1fr; }
  .article-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .auth-page { padding: 42px 0 55px; }
  .auth-layout { gap: 27px; }
  .auth-intro h1 { font-size: 45px; }
  .auth-benefits { grid-template-columns: 1fr; gap: 13px; }
  .auth-card, .poll-signin { padding: 22px 18px; }
  .poll-signin { margin: 15px 0; }
  .poll-top { flex-direction: column; gap: 9px; padding: 19px 18px 16px; }
  .poll-questions { padding: 17px 18px 19px; }
  .poll-card > .notice, .poll-card > .mt-2 { margin-inline: 18px; }
  .poll-foot { align-items: flex-start; flex-direction: column; }
  .dashboard { gap: 14px; }
  .dash-side { padding: 13px; }
  .dash-nav, .admin-side .dash-nav { display: flex; overflow-x: auto; gap: 2px; padding: 8px 0; scrollbar-width: thin; }
  .dash-link { flex: 0 0 auto; white-space: nowrap; }
  .dash-link.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .dash-side .divider { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-side .dash-nav { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-shortcuts { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .admin-main .grid-2, .dashboard .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .editor-grid .panel > .section-head, .editor-grid .panel > .form-grid, .editor-grid .panel > p { padding-inline: 14px; }
  .editor-preview .article-body { padding-inline: 14px; }
  .modal { max-height: calc(100vh - 24px); }
  .modal-overlay { padding: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .header-inner { gap: 9px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; }
  .crest { width: 36px; height: 42px; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card { min-height: 190px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { display: block; }
  .realm-bar-inner { grid-template-columns: 1fr; }
  .realm-stat { border-left: 0; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .hiscore-mode-grid { grid-template-columns: repeat(3, 1fr); }
  .hiscore-mode:nth-child(4), .hiscore-mode:nth-child(5) { grid-column: span 1; }
  .dash-nav { grid-template-columns: 1fr; }
  .poll-option { align-items: flex-start; flex-wrap: wrap; }
  .poll-option-result { margin-left: auto; }
}

/* Admin map editor */
.map-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.map-editor canvas { display: block; border-radius: 6px; margin: 10px 0; }
.map-editor .picks { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.map-editor .inline .field { flex: 1 1 70px; min-width: 0; }
.map-editor .inline .select, .map-editor .inline .input { width: 100%; min-width: 0; }
@media (max-width: 900px) { .map-editor { grid-template-columns: 1fr; } }

/* Tracker */
.progress-board .progress-row { grid-template-columns: minmax(120px, 280px) 1fr 120px; }
.progress-board .progress-score { white-space: nowrap; }
.progress-bar { position: relative; }
.progress-bar span { position: absolute; left: 0; top: 0; }
.progress-bar .progress-built { background: rgba(184, 137, 59, .55); }
.progress-bar .progress-verified { background: #6fbf73; }
.tracker-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.tracker-totals strong { display: block; font-size: 2.4rem; line-height: 1; }
.tracker-totals span { font-weight: 600; }
.tracker-totals p { margin: 4px 0 0; }
.tracker-area { padding: 8px 0 14px 12px; display: grid; gap: 10px; }
.tracker-how ul { margin: 6px 0 0; padding-left: 20px; }
.tracker-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.tracker-filters select, .tracker-filters input, .tracker-fail input { background: rgba(255, 255, 255, .06); color: inherit; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: 6px 8px; min-width: 0; }
.tracker-filters input { flex: 1; min-width: 160px; }
.tracker-group { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }
.tracker-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tracker-group-name { display: flex; gap: 10px; align-items: baseline; background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 0; text-align: left; }
.tracker-rows { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.tracker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.tracker-row-main { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.tracker-row.is-verified { background: rgba(111, 191, 115, .12); }
.tracker-row.is-failed { background: rgba(214, 90, 90, .14); }
.tracker-row.is-missing .tracker-row-main > :first-child { opacity: .65; }
.tracker-actions { display: flex; gap: 6px; }
.tracker-note, .tracker-fail { grid-column: 1 / -1; margin: 0; }
.tracker-fail { display: flex; gap: 6px; }
.tracker-fail input { flex: 1; }
.btn-small { padding: 3px 9px; font-size: .8rem; }
@media (max-width: 640px) { .tracker-totals, .tracker-row { grid-template-columns: minmax(0, 1fr); } .progress-board .progress-row { grid-template-columns: minmax(0, 1fr) 120px; } .progress-row .progress-bar { grid-row: 2; grid-column: 1 / -1; } }

/* Admin progress board */
.progress-board { display: grid; gap: 16px; }
.progress-headline { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.progress-headline strong { font-size: 2.4rem; line-height: 1; }
.progress-headline > div { flex: 1; }
.progress-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #b8893b, #e6c56f); }
.progress-plan { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.progress-plan li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.progress-plan .is-done { opacity: .6; text-decoration: line-through; }
.progress-plan .is-current { font-weight: 700; }
.progress-row { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 60px; gap: 12px; align-items: center; width: 100%; padding: 6px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
button.progress-row { cursor: pointer; }
.progress-score { text-align: right; font-variant-numeric: tabular-nums; }
.progress-items { list-style: none; margin: 4px 0 10px; padding: 0 0 0 12px; display: grid; gap: 3px; }
.progress-items li { display: flex; justify-content: space-between; gap: 12px; }
.progress-items .is-done span:first-child { color: #9fd18a; }
.progress-items .is-todo span:first-child { opacity: .65; }

/* ---------------- admin: accounts, characters (drawn as the game draws them) ---------------- */
.accounts-shell { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .accounts-shell { grid-template-columns: 1fr; } }
.accounts-list .panel-head { flex-wrap: wrap; gap: 8px; }
.account-rows { display: flex; flex-direction: column; max-height: 72vh; overflow-y: auto; margin: 0 -6px; }
.account-pick { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.account-pick:hover { background: var(--panel-2); }
.account-pick.active { background: var(--panel-3); box-shadow: inset 2px 0 0 var(--gold); }
.account-pick .account-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-pick .dot { width: 8px; height: 8px; border-radius: 50%; background: #4a3a28; flex: none; }
.account-pick .dot.on { background: #4fd16a; box-shadow: 0 0 6px #4fd16a; }
.account-head { display: flex; gap: 14px; align-items: center; }
.account-head .panel-title { margin: 0 0 4px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-3); }
.btn-danger { background: #6b1d16 !important; border-color: #a83a2c !important; color: #ffd9d2 !important; }
.btn-danger:hover:not(:disabled) { background: #8a2a20 !important; }
.char-facts { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-3); width: fit-content; }
.seg button { border: 0; border-radius: 6px; padding: 6px 12px; background: none; color: var(--muted, #b9a88a); font: inherit; font-size: 13px; cursor: pointer; }
.seg button.active { background: var(--panel-3); color: var(--gold-bright); }

/* OSRS item slots: 36×32 icons, stack numbers in the game's small font */
.osrs-slot { position: relative; width: 36px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; image-rendering: pixelated; }
.osrs-slot.empty { cursor: default; }
.osrs-slot img { display: block; width: 36px; height: 32px; image-rendering: pixelated; }
.osrs-slot:not(.empty):hover { filter: brightness(1.25); }
.osrs-qty { position: absolute; left: 0; top: -3px; font-family: "RuneScape Small", monospace; font-size: 16px; line-height: 1; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.osrs-inventory { display: grid; grid-template-columns: repeat(4, 42px); grid-auto-rows: 36px; gap: 0; justify-content: center; align-content: start; padding: 12px 18px; width: fit-content; min-height: 276px; border: 0; background-color: #3e3529; background-size: 100% 100%; background-repeat: no-repeat; border-radius: 2px; }
.osrs-inventory .osrs-slot { margin: 2px 3px; }
.osrs-bank { width: 100%; max-width: 520px; border: 3px solid #2d261c; outline: 1px solid #5d5341; border-radius: 4px; background: #494034; color: #ff981f; font-family: "RuneScape", serif; }
.osrs-bank-head { display: flex; justify-content: space-between; padding: 6px 10px; background: #3e3529; border-bottom: 2px solid #2d261c; font-size: 16px; }
.osrs-bank-head strong { color: #ffffff; font-weight: 400; }
.osrs-bank-count { color: #ff981f; }
.osrs-bank-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 6px 0; background: #3e3529; border-bottom: 2px solid #2d261c; }
.osrs-bank-tabs button { display: grid; place-items: center; width: 44px; height: 38px; border: 1px solid #2d261c; border-bottom: 0; border-radius: 4px 4px 0 0; background: #494034; color: #ff981f; cursor: pointer; }
.osrs-bank-tabs button.active { background: #5d5341; }
.osrs-bank-tabs img { width: 36px; height: 32px; image-rendering: pixelated; }
.osrs-bank-grid { display: grid; grid-template-columns: repeat(auto-fill, 48px); grid-auto-rows: 36px; gap: 0; padding: 10px; max-height: 460px; overflow-y: auto; }
.osrs-bank-grid .osrs-slot { margin: 2px 6px; }
.osrs-equipment { display: grid; grid-template-columns: repeat(3, 90px); gap: 8px; padding: 14px; width: fit-content; border: 3px solid #2d261c; outline: 1px solid #5d5341; border-radius: 4px; background: #3e3529; }
.osrs-equip-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border-radius: 4px; background: #2d261c; color: #ff981f; font-family: "RuneScape", serif; font-size: 14px; }
.osrs-menu-backdrop { position: fixed; inset: 0; z-index: 90; }
.osrs-menu { position: fixed; min-width: 190px; border: 1px solid #000; background: #5d5447; font-family: "RuneScape", serif; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.osrs-menu-title { padding: 2px 4px; background: #000; color: #5d5447; }
.osrs-menu button { display: block; width: 100%; padding: 1px 4px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.osrs-menu button:hover { background: #4a4235; }
.osrs-menu-op { color: #fff; }
.osrs-menu-target { color: #ff9040; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.skill-cell { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-3); }
.skill-cell strong { color: var(--gold-bright); margin-left: auto; }
.item-search { position: relative; }
.item-hits { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.item-hits button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.item-hits button:hover { background: var(--panel-3); }
.item-hits img, .item-picked img { width: 36px; height: 32px; image-rendering: pixelated; }
.item-hits span:nth-child(2) { flex: 1; }
.item-picked { display: flex; align-items: center; gap: 8px; }

/* ---------------- admin: chat logs, live map ---------------- */
.chat-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chat-filters .input, .chat-filters .select { max-width: 240px; }
.chat-table td.chat-text { font-family: "RuneScape", serif; font-size: 16px; color: #ffff00; text-shadow: 1px 1px 0 #000; word-break: break-word; }
.nowrap { white-space: nowrap; }
.live-map { max-height: 72vh; overflow: auto; border: 3px solid #2d261c; outline: 1px solid #5d5341; border-radius: 4px; background: #3f6f9f; }
.live-map canvas { display: block; image-rendering: pixelated; }
.admin-main { min-width: 0; }
.live-map { max-width: 100%; }

/* ---------------- admin console + account dashboard on phones and tablets ---------------- */
.admin-side, .dash-side, .admin-main, .dashboard > *, .admin-main .stack > *, .admin-main .panel { min-width: 0; }
@media (max-width: 960px) {
  .admin-shell, .dashboard { grid-template-columns: minmax(0, 1fr); }
  .admin-side .dash-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 2px; scrollbar-width: thin; }
  .admin-side .dash-link { flex: 0 0 auto; white-space: nowrap; }
  .admin-side .dash-link.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .admin-side { padding: 12px; }
  .admin-side .brand { padding-bottom: 10px; }
  .admin-operator { padding: 10px 4px; }
}
@media (max-width: 720px) {
  .admin-shell { gap: 14px; margin: 12px 0 40px; }
  .admin-side .brand, .admin-operator { display: none; }
  .admin-side .dash-nav { padding: 2px 0 6px; }
  .admin-side-foot { padding-top: 8px; gap: 4px 10px; }
  .admin-top { align-items: flex-start; gap: 10px; padding-bottom: 14px; }
  .admin-top h1 { font-size: 30px; }
  .admin-stats { gap: 8px; }
  .admin-stats .stat-card { padding: 12px; }
  .admin-row { flex-wrap: wrap; }
  .admin-main .panel { padding-inline: 14px; }
  .admin-main .table td, .admin-main .table th { padding: 8px 7px; font-size: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-rows { max-height: 260px; }
  .account-head { flex-wrap: wrap; }
  .account-actions { padding: 10px; gap: 8px; }
  .account-actions > * { flex: 1 1 auto; }
  .account-actions .select { flex: 1 1 100%; }
  .char-facts { gap: 8px 12px; font-size: 12px; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; padding: 6px 8px; }
  .osrs-inventory { margin-inline: auto; }
  .osrs-bank-grid { grid-template-columns: repeat(auto-fill, 44px); padding: 6px; max-height: 60vh; }
  .osrs-bank-grid .osrs-slot { margin: 2px 4px; }
  .osrs-equipment { grid-template-columns: repeat(3, minmax(0, 84px)); padding: 10px; gap: 6px; max-width: 100%; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-filters { flex-direction: column; align-items: stretch; }
  .chat-filters .input, .chat-filters .select { max-width: none; width: 100%; }
  .chat-table thead { display: none; }
  .chat-table, .chat-table tbody, .chat-table tr { display: block; }
  .chat-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .chat-table td { display: block; padding: 0 !important; border: 0; }
  .chat-table td:nth-child(4)::before { content: "→ "; color: var(--faint); }
  .chat-table td.chat-text { flex: 1 1 100%; }
  .chat-table td:nth-child(4):has(> span.muted) { display: none; }
  .admin-main .panel-head { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .admin-main .panel-head > div:first-child { flex: 1 1 160px; }
  .admin-main .panel-title { font-size: 18px; }
  .live-map { max-height: 60vh; }
  .modal { width: calc(100vw - 24px); }
}
