/* =========================================================
   $GOBLIN · Everyone's first kill
   ========================================================= */

@font-face {
  font-family: "RuneScape Bold 12";
  src: url("../assets/fonts/RuneScape-Bold-12.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "RuneScape Plain 12";
  src: url("../assets/fonts/RuneScape-Plain-12.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "RuneScape Quill 8";
  src: url("../assets/fonts/RuneScape-Quill-8.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #0f0c08;
  --ink-2: #17120c;
  --line: #2b241a;
  --text: #efe6d2;
  --mute: #a89e88;

  --gob-hi: #c3e27c;
  --gob: #7fb33c;
  --gob-mid: #5f8f2a;
  --gob-lo: #2f4c16;

  --stone-hi: #6b5c43;
  --stone-lo: #15110c;

  --paper-ink: #2b1d0e;

  --rs-yellow: #ffff00;
  --rs-orange: #ff981f;
  --rs-item: #ff9040;
  --rs-green: #00ff80;
  --rs-lvl: #40ff00;
  --rs-cyan: #00ffff;
  --rs-red: #ff3030;
  --rs-darkred: #7f0000;
  --rs-navy: #000080;

  /* Goblin mail. Brown is the original; Goblin Diplomacy can change it. */
  --mail: #7b5433;
  --mail-hi: #a67c4a;
  --mail-lo: #4f341d;

  /* The RuneScape fonts are pixel perfect at multiples of 16px */
  --rs-b: "RuneScape Bold 12", monospace;
  --rs-p: "RuneScape Plain 12", monospace;
  --rs-q: "RuneScape Quill 8", "RuneScape Bold 12", serif;
 --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --max: 1180px;
  --gutter: clamp(16px, 5vw, 64px);
  --px-shadow: .0625em .0625em 0 #000; /* one font pixel */

  --noise-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --parchment: radial-gradient(130% 100% at 50% 35%, #f6eedb 0%, #ebe0c3 55%, #dbc9a0 100%);

  color-scheme: dark;
}
:root[data-mail="red"], .mail-red { --mail: #b3261b; --mail-hi: #e25a45; --mail-lo: #6e1109; }
:root[data-mail="green"], .mail-green { --mail: #3f7f2a; --mail-hi: #6fb04a; --mail-lo: #22491a; }
:root[data-mail="orange"], .mail-orange { --mail: #d9731a; --mail-hi: #f7a64a; --mail-lo: #8a430a; }
:root[data-mail="blue"], .mail-blue { --mail: #2b54b8; --mail-hi: #5b86e8; --mail-lo: #16306e; }
.mail-brown { --mail: #7b5433; --mail-hi: #a67c4a; --mail-lo: #4f341d; }
.mail-bandos { --mail: #6e5a2e; --mail-hi: #9c8448; --mail-lo: #3f3318; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--rs-p);
  font-size: 24px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
main, footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code {
  font-family: var(--rs-p);
  font-size: 1em;
  color: #efe6d2;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  padding: 0 6px;
  border-radius: 3px;
  white-space: nowrap;
}
b, strong { font-family: var(--rs-b); font-weight: 400; }
i, em { font-style: normal; }
:focus-visible { outline: 2px solid var(--rs-yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--rs-yellow); color: #000; padding: 8px 12px; font-weight: 600;
}
.skip:focus { left: 8px; }

.o { color: var(--rs-item); }
.y { color: var(--rs-yellow); }

/* pixel sprites */
.px { display: block; width: 100%; height: auto; image-rendering: pixelated; }
[data-px] { display: inline-block; line-height: 0; }

.gob-text {
  background: linear-gradient(180deg, #e3f7a8 8%, #a8d65a 45%, #6c9e2c 62%, #9fcd52 84%, #d6f28e 100%);
  background-size: 100% 1em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(.0625em .0625em 0 #000);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--rs-b);
  font-size: 24px;
  line-height: 1;
  color: var(--rs-orange);
  text-shadow: var(--px-shadow);
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--rs-b);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: #fff8e6;
  text-shadow: var(--px-shadow);
  margin: 0 0 18px;
}
.h2 .gob-text { background-size: 100% 100%; }
.sub { font-size: 24px; line-height: 1.3; color: #bdb29c; margin: 0; }
.sub a { color: var(--gob-hi); }
.big { font-size: 32px; line-height: 1.2; color: #e6dcc6; max-width: 620px; margin: 0 0 34px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  border-radius: 3px;
  text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: filter .15s ease, transform .06s ease, box-shadow .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 58px; padding: 0 26px; font-size: 32px; }
.btn-lg svg { width: 22px; height: 22px; }
.btn-sm { min-height: 38px; padding: 0 12px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-icon { width: 46px; padding: 0; }

.btn-gob {
  color: #0d1406;
  background: linear-gradient(180deg, #c9ec86 0%, #8fc446 46%, #5c8f25 100%);
  border: 2px solid #142208;
  box-shadow: inset 0 0 0 2px rgba(236, 255, 190, .55), inset 0 -4px 0 rgba(20, 40, 5, .3), 0 3px 0 #000, 0 0 26px rgba(150, 210, 80, .16);
}
.btn-gob:hover { filter: brightness(1.07); box-shadow: inset 0 0 0 2px rgba(236, 255, 190, .55), inset 0 -4px 0 rgba(20, 40, 5, .3), 0 3px 0 #000, 0 0 34px rgba(150, 210, 80, .36); }
.btn-gob:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px rgba(236, 255, 190, .55), inset 0 -2px 0 rgba(20, 40, 5, .3), 0 1px 0 #000; }

.btn-stone {
  color: var(--rs-orange);
  text-shadow: var(--px-shadow);
  background: var(--noise-stone), linear-gradient(180deg, #56493a, #3a3127);
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px #77674c, 0 3px 0 #000;
}
.btn-stone:hover { color: var(--rs-yellow); }
.btn-stone:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px #77674c, 0 1px 0 #000; }
.btn-stone svg { filter: drop-shadow(1px 1px 0 #000); }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: default; }

.btn .soon {
  font-family: var(--rs-p); font-size: 16px; line-height: 1;
  color: #fff; text-shadow: 1px 1px 0 #000;
  background: #8c1111; border: 1px solid #000;
  padding: 3px 5px 2px; border-radius: 2px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .35s ease, visibility .35s ease;
  animation: loader-failsafe .01s linear 5s forwards;
}
html:not(.js) .loader, html.no-loader .loader { display: none; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 16px; }
.loader-token { width: 96px; height: auto; image-rendering: pixelated; animation: bob 1.6s ease-in-out infinite; }
.loader-title { margin: 0; font-family: var(--rs-b); font-size: 24px; color: #fff; text-align: center; }
.loader-bar {
  position: relative;
  width: min(608px, 86vw); height: 68px;
  border: 2px solid #8c1111; background: #000;
}
.loader-fill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 0; max-width: calc(100% - 8px); background: #8c1111; }
.loader-text {
  position: relative; z-index: 1;
  display: grid; place-items: center; height: 100%;
  font-family: var(--rs-b); font-size: 24px; color: #fff;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(15, 12, 8, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #231d15;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rs-b); font-size: 32px; line-height: 1;
  color: #fff8e6; text-shadow: var(--px-shadow);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: var(--rs-orange); text-shadow: var(--px-shadow);
  text-decoration: none; padding: 6px 0;
}
.nav-links a:hover { color: var(--rs-yellow); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 40px;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  right: -8%; top: -4%; width: 72%; height: 112%;
  background: radial-gradient(closest-side, rgba(140, 200, 70, .13), rgba(140, 200, 70, 0) 72%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--rs-b); font-weight: 400;
  font-size: 96px; line-height: .92;
  text-transform: uppercase;
  color: #fff8e6; text-shadow: var(--px-shadow);
  margin: 4px 0 26px;
}
.hero-title .gob-text { background-size: 100% .92em; }
.hero-title span { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.lede { font-size: 24px; line-height: 1.3; color: #cfc4ae; max-width: 560px; margin: 0 0 26px; }

.rate {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 8px 18px 8px 10px; margin: 0 0 28px;
  background: var(--noise-stone), linear-gradient(180deg, #4a3f31, #372e24);
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px var(--stone-hi), 0 3px 0 #000;
  border-radius: 3px;
}
.rate-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rs-b); line-height: 1;
  text-shadow: var(--px-shadow); white-space: nowrap;
}
.rate-gob { font-size: 32px; color: #fff; }
.rate-gp { font-size: 32px; color: var(--rs-yellow); }
.rate-px { width: 40px; }
.rate-coins { width: 48px; }
.rate-px .px { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6)); }
.rate-eq { font-family: var(--rs-b); font-size: 32px; line-height: 1; color: var(--rs-orange); text-shadow: var(--px-shadow); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

.ca-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; }
.ca-tag {
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: #0d1406; background: var(--gob);
  padding: 4px 6px 3px; border-radius: 2px;
}
.ca-value { font-family: var(--rs-p); font-size: 24px; line-height: 1; color: var(--rs-cyan); text-shadow: var(--px-shadow); }
.ca-line.live .ca-value { font-family: var(--mono); font-size: 13.5px; color: #ddd3bd; text-shadow: none; word-break: break-all; }
.ca-copy {
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: var(--rs-orange); text-shadow: 1px 1px 0 #000;
  background: linear-gradient(180deg, #56493a, #3a3127);
  border: 1px solid var(--stone-lo); box-shadow: inset 0 0 0 1px #77674c;
  padding: 5px 8px 4px; border-radius: 2px;
}
.ca-copy:hover { color: var(--rs-yellow); }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hint { margin: 12px 0 0; font-family: var(--rs-p); font-size: 24px; line-height: 1; color: #8f866f; text-shadow: var(--px-shadow); text-align: center; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}

/* the game viewport */
.viewport {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  background: #4b6a2a;
  border: 3px solid var(--stone-lo);
  box-shadow: inset 0 0 0 2px var(--stone-hi), 0 0 0 5px #2e271e, 0 0 0 7px var(--stone-lo), 0 28px 50px rgba(0, 0, 0, .6);
  border-radius: 3px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.vp-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.vp-stage { position: absolute; inset: 0; }
.vp-hover {
  position: absolute; z-index: 6; left: 8px; top: 6px; margin: 0;
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: #fff; text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
.vp-hover:empty { display: none; }
.vp-hud {
  position: absolute; z-index: 6; left: 8px; bottom: 8px;
  padding: 5px 8px 4px;
  background: rgba(18, 14, 9, .78);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px #5a4d39;
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: var(--rs-orange); text-shadow: 1px 1px 0 #000;
}
.vp-hud b { font-weight: 400; color: var(--rs-yellow); }
.vp-vignette { position: absolute; inset: 0; z-index: 5; pointer-events: none; box-shadow: inset 0 0 50px rgba(0, 0, 0, .5); }

/* ---------- NPCs ---------- */
.npc {
  --scale: 2;
  position: absolute; left: 0; top: 0;
  width: calc(24px * var(--scale)); height: calc(30px * var(--scale));
  padding: 0; border: 0; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform var(--walk, 0s) linear;
}
.npc:focus-visible { outline-offset: 2px; }
.npc-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.npc.face-left .npc-body { transform: scaleX(-1); }
.npc-body .px { width: 100%; height: 100%; }
.npc-body .f2 { display: none; }
.npc.step .npc-body .f1 { display: none; }
.npc.step .npc-body .f2 { display: block; }
.npc-shadow {
  position: absolute; left: 12%; right: 12%; bottom: calc(var(--scale) * -1px);
  height: calc(var(--scale) * 3px);
  background: rgba(0, 0, 0, .32); border-radius: 50%;
}
.npc.idle .npc-body { animation: npc-idle 1.2s steps(2) infinite; }
.npc.hit .npc-body { animation: npc-hit .24s steps(2); }
.npc.dead { pointer-events: none; }
.npc.dead .npc-body { animation: npc-die .7s steps(4) forwards; }
.npc.dead .npc-shadow, .npc.dead .npc-hp { opacity: 0; transition: opacity .3s .3s; }
.npc.gone { visibility: hidden; }
.npc.spawn .npc-body { animation: npc-spawn .45s steps(3); }
.npc.face-left.hit .npc-body, .npc.face-left.idle .npc-body { animation-name: npc-hit-l; }
.npc.face-left.idle .npc-body { animation-name: npc-idle-l; }
.npc.face-left.dead .npc-body { animation-name: npc-die-l; }
@keyframes npc-idle { 50% { transform: translateY(calc(var(--scale) * 1px)); } }
@keyframes npc-idle-l { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(calc(var(--scale) * 1px)); } }
@keyframes npc-hit { 0% { transform: translateX(calc(var(--scale) * 1px)); filter: brightness(1.5); } 100% { transform: translateX(calc(var(--scale) * -1px)); } }
@keyframes npc-hit-l { 0% { transform: scaleX(-1) translateX(calc(var(--scale) * 1px)); filter: brightness(1.5); } 100% { transform: scaleX(-1) translateX(calc(var(--scale) * -1px)); } }
@keyframes npc-die { 0% { transform: none; opacity: 1; } 60% { transform: rotate(-80deg) translateY(10%); opacity: 1; } 100% { transform: rotate(-90deg) translateY(10%); opacity: 0; } }
@keyframes npc-die-l { 0% { transform: scaleX(-1); opacity: 1; } 60% { transform: scaleX(-1) rotate(-80deg) translateY(10%); opacity: 1; } 100% { transform: scaleX(-1) rotate(-90deg) translateY(10%); opacity: 0; } }
@keyframes npc-spawn { from { opacity: 0; transform: translateY(8%); } to { opacity: 1; transform: none; } }

.npc-hp {
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  width: clamp(30px, calc(var(--scale) * 7px), 60px); height: clamp(5px, calc(var(--scale) * 1px), 8px);
  transform: translateX(-50%);
  background: #c00000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7);
}
.npc-hp i { display: block; height: 100%; width: 100%; background: #00c800; transition: width .15s steps(3); }
.npc-say {
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  transform: translateX(-50%);
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: var(--rs-yellow); text-shadow: 1px 1px 0 #000;
  white-space: nowrap; pointer-events: none;
}
.npc-say:empty { display: none; }
.npc-lg .npc-say { font-size: 32px; text-shadow: 2px 2px 0 #000; }

.splat {
  position: absolute; z-index: 4; left: 50%; top: 42%;
  width: 48px; height: 44px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: splat 1.1s steps(1) forwards;
}
.splat .px { position: absolute; inset: 0; width: 100%; height: 100%; }
.splat b {
  position: relative; font-weight: 400;
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: #fff; text-shadow: 1px 1px 0 #000;
  padding-top: 2px;
}
.npc-lg .splat { width: 72px; height: 66px; }
.npc-lg .splat b { font-size: 32px; text-shadow: 2px 2px 0 #000; padding-top: 4px; }
@keyframes splat { 0% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

.xcross {
  position: fixed; z-index: 190; width: 22px; height: 22px;
  margin: -11px 0 0 -11px; pointer-events: none;
  animation: xcross .4s steps(4) forwards;
}
@keyframes xcross { from { transform: scale(1.2); } to { transform: scale(.4); opacity: .5; } }

.ground {
  position: absolute; z-index: 3;
  width: 48px; height: 48px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  animation: ground-in .35s steps(3);
}
.ground .px { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.ground.fly { transition: transform .5s cubic-bezier(.5, -.4, .7, .4), opacity .5s ease; opacity: 0; pointer-events: none; }
@keyframes ground-in { from { transform: translateY(-18px); } to { transform: none; } }

.float-txt {
  position: absolute; z-index: 7;
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: var(--rs-yellow); text-shadow: 1px 1px 0 #000;
  white-space: nowrap; pointer-events: none;
  animation: float-up 1.1s ease-out forwards;
}
.float-txt.lg { font-size: 32px; text-shadow: 2px 2px 0 #000; }
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, 0) scale(.8); }
  14% { opacity: 1; transform: translate(-50%, -14px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80px); }
}

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden;
  background: var(--noise-stone), linear-gradient(180deg, #3f3629, #2b241c);
  border-block: 2px solid #0f0c09;
  box-shadow: inset 0 1px 0 var(--stone-hi), inset 0 -1px 0 var(--stone-hi);
}
.ticker-track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.ticker-set { display: flex; align-items: center; gap: 24px; padding: 14px 12px; }
.ticker-set span {
  font-family: var(--rs-b); font-size: 32px; line-height: 1;
  color: #fff; text-shadow: var(--px-shadow); white-space: nowrap;
}
.ticker-set sup { font-family: var(--rs-p); font-size: 16px; color: #8fb5ff; vertical-align: 12px; margin-left: 2px; }
.ticker-set img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }
.ticker-set .t-y { color: var(--rs-yellow); }
.ticker-set .t-g { color: var(--rs-lvl); }
.ticker-set .t-c { color: var(--rs-cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { margin-bottom: 44px; }
.section-head .sub { max-width: 720px; }

/* ---------- Inventory slots ---------- */
.slot {
  position: relative; flex: none;
  width: 76px; height: 68px;
  display: grid; place-items: center;
  background: var(--noise-stone), linear-gradient(180deg, #3c342a, #2c261e);
  border: 1px solid #0f0c09;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 3px 8px rgba(0, 0, 0, .45);
  border-radius: 2px;
}
.slot-px { width: 48px; }
.slot-px .px { filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, .6)); }
.slot-px[data-px="goblin"], .slot-px[data-px="token"] { width: 48px; }
.slot-glow::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  box-shadow: 0 0 20px rgba(170, 230, 90, .35), inset 0 0 14px rgba(170, 230, 90, .2);
}
.stack {
  position: absolute; top: 3px; left: 5px; z-index: 1;
  font-family: var(--rs-p); font-size: 16px; line-height: 1;
  text-shadow: 1px 1px 0 #000; pointer-events: none;
}
.stack.y { color: var(--rs-yellow); }
.stack.w { color: #fff; }
.stack.g { color: var(--rs-green); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 20px 16px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fact .slot { width: 84px; height: 76px; }
.fact h3 {
  font-family: var(--rs-b); font-weight: 400; font-size: 32px; line-height: 1.05;
  color: #fff; text-shadow: var(--px-shadow);
  margin: 0 0 6px;
}
.fact p { margin: 0; color: #b3a992; font-size: 24px; line-height: 1.25; }
.fact p b { color: var(--rs-yellow); }
.fact-gob {
  border-color: #4d6a2a;
  background: linear-gradient(90deg, rgba(140, 200, 70, .12), rgba(140, 200, 70, .02) 70%), var(--ink-2);
  box-shadow: 0 0 30px rgba(140, 200, 70, .06);
}

.infobox {
  position: sticky; top: 96px;
  background: #e2dbc8; color: #2a2419;
  border: 1px solid #94866d; border-radius: 3px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  font-size: 16px; line-height: 1.3;
  overflow: hidden;
}
.ib-head {
  padding: 9px 12px;
  background: #c0a886; border-bottom: 1px solid #94866d;
  text-align: center; font-family: var(--rs-b); font-size: 24px; line-height: 1;
}
.ib-img {
  display: grid; place-items: center;
  padding: 18px;
  background: radial-gradient(closest-side, #f4efe2, #d8ccb4);
  border-bottom: 1px solid #94866d;
}
.ib-px { width: 96px; }
.ib-px .px { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .25)); }
.ib-sub { padding: 6px 10px 5px; background: #cbb997; border-bottom: 1px solid #94866d; text-align: center; font-family: var(--rs-b); font-size: 16px; line-height: 1; }
.ib-rows { margin: 0; }
.ib-rows > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); border-bottom: 1px solid #c2b598; }
.ib-rows dt { padding: 6px 10px; background: #d4c7aa; font-family: var(--rs-b); }
.ib-rows dd { margin: 0; padding: 6px 10px; overflow-wrap: anywhere; }
.ib-rows dd.mono { font-family: var(--mono); font-size: 12px; }
.ib-examine { padding: 10px 12px 12px; }
.ib-examine span { display: block; font-family: var(--rs-b); }

/* ---------- World map / trail ---------- */
.trail-section { padding-bottom: 120px; }
.worldmap {
  max-width: calc(var(--max) + 20px);
  margin: 0 auto;
  padding: 0 10px 10px;
  background: var(--noise-stone), linear-gradient(180deg, #4a3f31, #3a3126);
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px var(--stone-hi), 0 30px 60px rgba(0, 0, 0, .55);
  border-radius: 4px;
}
.wm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 50px; padding: 0 4px; }
.wm-title { font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-orange); text-shadow: var(--px-shadow); }
.wm-select {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rs-p); font-size: 16px; line-height: 1;
  color: #fff; text-shadow: 1px 1px 0 #000;
  background: #2a231b; border: 1px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px #5a4d39;
  padding: 7px 10px 6px 12px;
}
.wm-select::after {
  content: ""; width: 0; height: 0;
  border: 6px solid transparent; border-top-color: var(--rs-orange);
  transform: translateY(3px);
}

.trail {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 230px 3% 100px;
  background: #4b5e2c;
  border: 2px solid var(--stone-lo);
}
.trail::after {
  content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55);
}
.map-px { position: absolute; left: 0; top: 0; z-index: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.map-lit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.map-lit text { font-family: var(--rs-b); }
.map-npcs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.map-npcs .npc, .map-npcs .ground { pointer-events: auto; }
.map-npcs .ground { width: 32px; height: 32px; }

.cartouche {
  position: absolute; z-index: 3; top: 34px; left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 36px 12px;
  background: var(--noise-paper), linear-gradient(180deg, #f3ead2, #dccb9f);
  border: 2px solid #3d2f1a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(61, 47, 26, .14);
}
.c-title { font-family: var(--rs-q); font-size: 48px; line-height: 1; color: var(--paper-ink); letter-spacing: .02em; }
.c-sub { margin-top: 6px; font-family: var(--rs-p); font-size: 16px; line-height: 1; color: var(--rs-darkred); white-space: nowrap; }

.compass { position: absolute; z-index: 3; top: 22px; right: 3%; width: 128px; height: 128px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.compass-n { font-family: var(--rs-b); font-size: 16px; fill: #fff; stroke: #000; stroke-width: 3px; paint-order: stroke; }

.hud-wrap { position: sticky; top: 88px; height: 0; z-index: 9; }
.hud {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 8px;
  background: rgba(24, 20, 15, .9);
  border: 1px solid #0a0806;
  box-shadow: inset 0 0 0 1px var(--stone-hi), 0 6px 14px rgba(0, 0, 0, .45);
  border-radius: 3px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: var(--rs-orange); text-shadow: var(--px-shadow);
}
.hud-px { width: 40px; }
.hud b { font-weight: 400; color: var(--rs-yellow); }
.hud-bar { position: relative; width: 92px; height: 14px; background: #7a0000; border: 1px solid #000; }
.hud-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(180deg, #2fe02f, #0b8a0b); transition: width .3s ease; }

.stops {
  position: relative; z-index: 2;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 140px;
}
.stop { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 48px; }
.spot { display: flex; align-items: center; justify-content: center; gap: 22px; }
.stop[data-lane="left"] .spot { grid-column: 1; grid-row: 1; flex-direction: row-reverse; }
.stop[data-lane="left"] .scroll { grid-column: 2; grid-row: 1; justify-self: start; }
.stop[data-lane="right"] .spot { grid-column: 2; grid-row: 1; }
.stop[data-lane="right"] .scroll { grid-column: 1; grid-row: 1; justify-self: end; }

.site { display: flex; flex-direction: column; align-items: center; }
.landmark {
  width: 168px; height: auto; aspect-ratio: 140 / 110;
  image-rendering: pixelated;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.stop.reached .landmark { transform: scale(1.07); }
.place {
  margin-top: 2px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  white-space: nowrap;
  transition: color .3s ease;
}
.stop.reached .place { color: var(--rs-yellow); }
.place-new { color: var(--rs-cyan); }

.marker {
  position: relative; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  padding-top: 2px;
  font-family: var(--rs-b); font-size: 32px; line-height: 1;
  color: #dfe8c8; text-shadow: var(--px-shadow);
  background: radial-gradient(circle at 35% 30%, #56643a, #1f2814 72%);
  border: 3px solid #0e1109;
  box-shadow: 0 0 0 3px #8fa060, 0 0 0 5px #0e1109, 0 6px 10px rgba(0, 0, 0, .45);
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
}
.stop.reached .marker {
  color: #0d1406; text-shadow: none;
  background: radial-gradient(circle at 35% 30%, #efffc8, #a8d65a 58%, #5c8f25);
  box-shadow: 0 0 0 3px #e9ffc0, 0 0 0 5px #0e1109, 0 0 28px 8px rgba(170, 230, 90, .5);
}
.marker-x {
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #e0473f, #7d0d09 72%);
  box-shadow: 0 0 0 3px #f1c9c3, 0 0 0 5px #0e1011, 0 6px 10px rgba(0, 0, 0, .45);
}
.stop.reached .marker-x {
  color: #fff; text-shadow: var(--px-shadow);
  background: radial-gradient(circle at 35% 30%, #ff6a5f, #b3120b 70%);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0e1011, 0 0 30px 10px rgba(200, 255, 120, .55);
}

/* parchment scroll cards */
.scroll, .journal, .qc-scroll {
  position: relative;
  color: var(--paper-ink);
  background: var(--noise-paper), var(--parchment);
  border-left: 3px solid #b39a6b;
  border-right: 3px solid #b39a6b;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .45), inset 0 0 34px rgba(120, 90, 40, .2);
}
.scroll::before, .scroll::after,
.journal::before, .journal::after,
.qc-scroll::before, .qc-scroll::after {
  content: ""; position: absolute; left: -15px; right: -15px; height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg, #7a633e 0%, #d6c398 22%, #f7efdb 45%, #d5c296 70%, #6c5735 100%);
  border: 2px solid #3d2f1a;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
}
.scroll::before, .journal::before, .qc-scroll::before { top: -15px; }
.scroll::after, .journal::after, .qc-scroll::after { bottom: -15px; }

.scroll { width: 100%; max-width: 480px; margin: 16px 0; padding: 32px 32px 28px; }
.scroll p { margin: 0 0 12px; font-size: 24px; line-height: 1.25; color: #3d2c17; }
.scroll p:last-child { margin-bottom: 0; }
.scroll .clue {
  margin-bottom: 14px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: var(--rs-darkred);
}
.s-title {
  font-family: var(--rs-q); font-weight: 400;
  font-size: 32px; line-height: 1.1;
  color: #1c1209;
  margin: 0 0 12px;
}
.scroll .shout {
  font-family: var(--rs-q); font-size: 32px; line-height: 1.1;
  color: #2f4c16;
}
.scroll .exact { margin: 0; font-size: 16px; line-height: 1.3; color: #5d4628; }

.inv-line { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; }
.inv-line .exact { margin-left: 8px; }
.convert { display: flex; align-items: center; gap: 16px; margin: 4px 0 16px; }
.convert-arrow { width: 40px; height: 30px; color: var(--rs-darkred); shape-rendering: crispEdges; }

/* the last stop */
.stop-final { grid-template-columns: 1fr; justify-items: center; row-gap: 30px; }
.stop-final .spot { grid-column: 1; grid-row: 1; flex-direction: column; gap: 8px; }
.stop-final .reward { grid-column: 1; grid-row: 2; }
.stop-final .landmark { width: 210px; }
.stop-final .place { font-size: 32px; }

.rs-panel {
  position: relative;
  background: var(--noise-stone), linear-gradient(180deg, #4b4032 0%, #3c3328 55%, #322a20 100%);
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px var(--stone-hi), inset 0 0 0 3px #2a231a, 0 22px 44px rgba(0, 0, 0, .55);
  border-radius: 4px;
}
.rs-panel::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    radial-gradient(circle at 4px 4px, #9a8763 0 1.6px, #15110c 2.2px, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) 4px, #9a8763 0 1.6px, #15110c 2.2px, transparent 3px),
    radial-gradient(circle at 4px calc(100% - 4px), #9a8763 0 1.6px, #15110c 2.2px, transparent 3px),
    radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), #9a8763 0 1.6px, #15110c 2.2px, transparent 3px);
}

.reward { width: 100%; max-width: 620px; padding: 28px 34px 32px; text-align: center; }
.reward-close, .bank-x {
  display: grid; place-items: center;
  width: 32px; height: 30px; padding: 0;
  color: var(--rs-orange);
  background: linear-gradient(180deg, #5b4e3d, #3a3126);
  border: 1px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px #77674c;
}
.reward-close { position: absolute; top: 12px; right: 12px; }
.reward-close:hover { color: var(--rs-yellow); }
.reward-close svg { width: 14px; height: 14px; shape-rendering: crispEdges; filter: drop-shadow(1px 1px 0 #000); }
.reward-kicker { margin: 0 0 12px; font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-orange); text-shadow: var(--px-shadow); }
.reward-title { margin: 0 0 12px; font-family: var(--rs-b); font-weight: 400; font-size: 48px; line-height: 1; color: var(--rs-yellow); text-shadow: var(--px-shadow); }
.reward-sub { margin: 0 auto 8px; max-width: 500px; color: #e0d7c3; font-size: 24px; line-height: 1.25; }
.reward-loot {
  display: flex; align-items: center; gap: 16px;
  width: fit-content; max-width: 100%;
  margin: 18px auto 22px; padding: 10px 18px 10px 10px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid #0f0c09;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.reward-loot .slot { width: 92px; height: 82px; }
.reward-loot .slot-px { width: 48px; }
.loot-name { margin: 0; font-family: var(--rs-p); font-size: 24px; line-height: 1.1; color: #fff; text-shadow: var(--px-shadow); text-align: left; }
.reward-name { margin: 0 0 8px; font-family: var(--rs-b); font-size: 48px; line-height: 1; }
.reward-coming { margin: 0; font-family: var(--rs-b); font-size: 32px; line-height: 1; color: var(--rs-cyan); text-shadow: var(--px-shadow); }
.reward-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.traveler {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: 48px; height: 60px;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 8px rgba(200, 255, 120, .55));
  transition: opacity .3s ease;
}
.traveler .px { width: 100%; height: 100%; }
.traveler .f2 { display: none; }
.traveler.step .f1 { display: none; }
.traveler.step .f2 { display: block; }
.traveler.left .px { transform: scaleX(-1); }
.traveler.on { opacity: 1; }
.traveler.on.done { opacity: 0; }

.scroll, .reward { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.stop.reached .scroll, .stop.reached .reward { transform: translateY(-4px); }

/* ---------- Drop table ---------- */
.drops-grid { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 48px; align-items: start; }
.dt {
  background: #e2dbc8; color: #2a2419;
  border: 1px solid #94866d; border-radius: 3px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.dt-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.2; }
.dt-cap { caption-side: top; padding: 9px 12px; background: #c0a886; border-bottom: 1px solid #94866d; font-family: var(--rs-b); font-size: 24px; line-height: 1; text-align: center; }
.dt-table th { padding: 7px 10px 6px; background: #cbb997; border-bottom: 1px solid #94866d; text-align: left; font-family: var(--rs-b); font-weight: 400; font-size: 16px; }
.dt-table td { padding: 5px 10px; border-bottom: 1px solid #c9bc9f; vertical-align: middle; }
.dt-table tr.dt-sec td { padding: 6px 10px 5px; background: #d4c7aa; font-family: var(--rs-b); font-size: 16px; }
.dt-item { display: flex; align-items: center; gap: 10px; }
.dt-item [data-px] { width: 32px; flex: none; }
.dt-item .none { display: inline-block; width: 32px; height: 32px; }
.dt-rare { width: 116px; text-align: center; font-family: var(--rs-b); }
.r-always { background: #afeeee; }
.r-common { background: #56e156; }
.r-uncommon { background: #ffed4c; }
.r-rare { background: #ff863c; }
.r-veryrare { background: #ff6262; }
.dt-table tr.hit td { animation: dt-hit 1s ease-out; }
@keyframes dt-hit { from { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .6); } to { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0); } }
.dt .fine { margin: 0; padding: 12px 14px 14px; text-align: left; color: #5d5140; font-size: 16px; }

.bag { position: sticky; top: 96px; }
.bag-panel { padding: 0 14px 16px; }
.bag-bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 2px; }
.bag-title { font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-orange); text-shadow: var(--px-shadow); }
.bag-count { font-family: var(--rs-p); font-size: 16px; line-height: 1; color: #fff; text-shadow: 1px 1px 0 #000; }
.inv {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  padding: 8px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid #0f0c09;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.inv-slot {
  position: relative;
  aspect-ratio: 9 / 8;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none;
  border-radius: 2px;
}
.inv-slot:empty { cursor: default; }
.inv-slot:not(:empty):hover { background: rgba(255, 255, 255, .06); }
.inv-slot [data-px] { width: 48px; }
.inv-slot .stack { top: 1px; left: 3px; }
.inv-slot.new [data-px] { animation: ground-in .3s steps(3); }
.bag-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.bag-stats div {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 7px 4px 6px;
  background: rgba(0, 0, 0, .25); border: 1px solid #0f0c09;
}
.bag-stats span { font-family: var(--rs-p); font-size: 16px; line-height: 1; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; }
.bag-stats b { font-family: var(--rs-b); font-weight: 400; font-size: 24px; line-height: 1; color: var(--rs-yellow); text-shadow: var(--px-shadow); }
.bag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bag-actions .btn { flex: 1 1 auto; }
.bag-hint { margin: 12px 2px 0; font-size: 16px; line-height: 1.3; color: #8f866f; }

/* ---------- Goblin Diplomacy ---------- */
.diplo-stage { max-width: 900px; margin: 0 auto; padding: 14px; }
.diplo-scene {
  position: relative; overflow: hidden;
  height: 300px;
  background: #4b6a2a;
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px var(--stone-hi);
}
.diplo-npc { position: absolute; bottom: 26px; width: 120px; height: 150px; }
.diplo-npc .npc { --scale: 5; }
.diplo-bent { left: 12%; }
.diplo-grub { left: 50%; margin-left: -60px; bottom: 20px; }
.diplo-wart { right: 12%; }
.diplo-grub .npc { --scale: 4; left: 12px; top: 30px; }
.diplo-npc .npc-say { font-size: 16px; text-shadow: 1px 1px 0 #000; }
.diplo-bent .npc-say { left: 0; transform: none; }
.diplo-wart .npc-say { left: auto; right: 0; transform: none; }

.dialogue {
  display: flex; align-items: center; gap: 18px;
  min-height: 150px;
  margin-top: 12px; padding: 14px 18px;
  background: var(--noise-paper), linear-gradient(180deg, #e0d4b0, #cbbd93);
  border: 3px solid #2b241b;
  box-shadow: inset 0 0 0 1px #a39572;
}
.dlg-head { width: 80px; flex: none; }
.dlg-head.right { order: 2; }
.dlg-body { flex: 1; min-width: 0; text-align: center; }
.dlg-name { margin: 0 0 8px; font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-darkred); }
.dlg-text { margin: 0 auto 10px; max-width: 560px; font-family: var(--rs-p); font-size: 24px; line-height: 1.2; color: #000; min-height: 2.4em; }
.dlg-next {
  padding: 4px 8px 3px; border: 0; background: none;
  font-family: var(--rs-p); font-size: 24px; line-height: 1; color: #0000ff;
}
.dlg-next:hover { color: #fff; background: #0000ff; }
.dyes {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 12px;
  background: rgba(0, 0, 0, .25); border: 1px solid #0f0c09;
}
.dyes-label { width: 100%; margin: 0 0 4px; text-align: center; font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-darkred); text-shadow: none; filter: drop-shadow(1px 1px 0 rgba(255, 255, 255, .15)); }
.dyes-label { color: var(--rs-orange); text-shadow: var(--px-shadow); filter: none; }
.dye {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 6px 8px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: #fff; text-shadow: var(--px-shadow);
  background: linear-gradient(180deg, #56493a, #3a3127);
  border: 1px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px #77674c;
  border-radius: 2px;
}
.dye:hover { color: var(--rs-yellow); }
.dye[aria-pressed="true"] { color: var(--rs-yellow); box-shadow: inset 0 0 0 1px var(--rs-yellow); }
.dye-pot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #000;
  background: var(--mail);
  box-shadow: inset 3px 3px 0 var(--mail-hi), inset -3px -3px 0 var(--mail-lo);
}
.dye-red { --mail: #b3261b; --mail-hi: #e25a45; --mail-lo: #6e1109; }
.dye-green { --mail: #3f7f2a; --mail-hi: #6fb04a; --mail-lo: #22491a; }
.dye-orange { --mail: #d9731a; --mail-hi: #f7a64a; --mail-lo: #8a430a; }
.dye-blue { --mail: #2b54b8; --mail-hi: #5b86e8; --mail-lo: #16306e; }
.dye-brown { --mail: #7b5433; --mail-hi: #a67c4a; --mail-lo: #4f341d; }
.share-link { color: var(--gob-hi); }
.diplo .fine { margin-top: 16px; text-align: center; font-size: 24px; }

/* ---------- Quest ---------- */
.quest-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 60px; align-items: start; }
.quest-meta { margin: 30px 0 0; border-top: 1px solid var(--line); }
.quest-meta > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.quest-meta dt { font-family: var(--rs-b); font-size: 24px; line-height: 1.05; color: var(--rs-orange); text-shadow: var(--px-shadow); }
.quest-meta dd { margin: 0; font-size: 24px; line-height: 1.25; color: #d2c8b2; }
.quest-meta a { color: var(--gob-hi); }

.journal { padding: 42px 40px 36px; margin: 16px 0; }
.journal-title { margin: 0 0 20px; text-align: center; font-family: var(--rs-q); font-weight: 400; font-size: 32px; line-height: 1; color: var(--rs-darkred); }
.journal-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.journal-steps button {
  position: relative; display: block; width: 100%;
  padding: 9px 10px 9px 46px;
  text-align: left;
  font-family: var(--rs-p); font-size: 24px; line-height: 1.25;
  color: var(--rs-navy);
  background: none; border: 0; border-radius: 3px;
  transition: background .15s ease;
}
.journal-steps button:hover { background: rgba(127, 0, 0, .07); }
.journal-steps button::before {
  content: ""; position: absolute; left: 8px; top: 9px;
  width: 24px; height: 24px;
  background: #f7f0de;
  border: 2px solid #3d2f1a;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .12);
}
.journal-steps button[aria-pressed="true"] {
  text-decoration: line-through;
  text-decoration-thickness: .0625em;
}
.journal-steps button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 16px; top: 10px;
  width: 9px; height: 17px;
  border: solid #0b7d0b; border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}
.journal-steps em { font-style: normal; color: var(--rs-darkred); }
.journal-reward { margin: 20px 0 0; text-align: center; font-family: var(--rs-p); font-size: 24px; line-height: 1.2; color: var(--paper-ink); }

.qc { padding: 0; border: 0; background: transparent; color: var(--paper-ink); max-width: min(540px, calc(100vw - 40px)); overflow: visible; }
.qc::backdrop { background: rgba(0, 0, 0, .65); }
.qc[open] .qc-scroll { animation: qc-in .4s cubic-bezier(.2, 1.4, .5, 1); }
.qc-scroll { padding: 36px 34px 28px; text-align: center; }
.qc-kicker { margin: 0; font-family: var(--rs-q); font-size: 32px; line-height: 1; color: var(--rs-darkred); }
.qc-title { margin: 10px 0 18px; font-family: var(--rs-b); font-weight: 400; font-size: 32px; line-height: 1.05; color: #1c1209; }
.qc-body { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: left; }
.qc-px { width: 144px; flex: none; }
.qc-label { margin: 0 0 8px; font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-darkred); }
.qc-list { margin: 0; padding: 0; list-style: none; font-family: var(--rs-p); font-size: 24px; line-height: 1.25; color: var(--rs-navy); }
.qc-qp { margin: 18px 0 16px; font-family: var(--rs-b); font-size: 24px; line-height: 1; }
@keyframes qc-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ---------- Clan chat ---------- */
.chat-stage { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.scene {
  position: relative; overflow: hidden;
  height: 290px;
  background: linear-gradient(180deg, #06080b 0%, #121a22 45%, #1c2716 62%);
  border: 2px solid var(--stone-lo); border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.scene::before {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: 0; height: 150%;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 56px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 56px),
    linear-gradient(180deg, #4a6628, #62832f);
  transform: perspective(360px) rotateX(62deg);
  transform-origin: 50% 100%;
}
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #06080b 0%, rgba(6, 8, 11, .8) 22%, rgba(6, 8, 11, 0) 46%);
}
.player { position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.player-px { width: 96px; animation: npc-idle 1.2s steps(2) infinite; --scale: 4; }
.player-px .px { filter: drop-shadow(0 8px 4px rgba(0, 0, 0, .45)); }
.player-name { margin-top: 6px; font-family: var(--rs-p); font-size: 24px; line-height: 1; color: #fff; text-shadow: var(--px-shadow); }
.overhead {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  margin: 0; white-space: pre;
  font-family: var(--rs-b); font-size: 32px; line-height: 1;
  color: var(--rs-yellow); text-shadow: var(--px-shadow);
}
.overhead .ch { display: inline-block; white-space: pre; }

.fx-red { color: #ff0000; }
.fx-green { color: #00ff00; }
.fx-cyan { color: #00ffff; }
.fx-purple { color: #ff00ff; }
.fx-white { color: #ffffff; }
.fx-glow1 { animation: glow1 1.5s linear infinite; }
.fx-glow2 { animation: glow2 1.5s linear infinite; }
.fx-glow3 { animation: glow3 1.5s linear infinite; }
.fx-flash1 { animation: flash1 .6s steps(1) infinite; }
.fx-flash2 { animation: flash2 .6s steps(1) infinite; }
.fx-flash3 { animation: flash3 .6s steps(1) infinite; }
.fx-wave .ch { animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s); }
.fx-wave2 .ch { animation: wave2 1.1s linear infinite; animation-delay: calc(var(--i) * -.09s); }
.fx-shake .ch { animation: shake .45s steps(2) infinite; animation-delay: calc(var(--i) * -.07s); }
.fx-scroll { width: 12em; overflow: hidden; }
.fx-scroll .line { display: inline-block; padding-left: 100%; animation: scroll-x 4.5s linear infinite; }
.fx-slide .line { display: inline-block; animation: slide 3s ease-in-out infinite; }

@keyframes glow1 { 0% { color: #ff0000; } 33% { color: #ffff00; } 66% { color: #00ff00; } 100% { color: #ff0000; } }
@keyframes glow2 { 0% { color: #ff0000; } 33% { color: #ff00ff; } 66% { color: #0000ff; } 100% { color: #ff0000; } }
@keyframes glow3 { 0% { color: #ffffff; } 33% { color: #00ff00; } 66% { color: #00ffff; } 100% { color: #ffffff; } }
@keyframes flash1 { 0% { color: #ff0000; } 50% { color: #ffff00; } }
@keyframes flash2 { 0% { color: #00ffff; } 50% { color: #0000ff; } }
@keyframes flash3 { 0% { color: #00b000; } 50% { color: #80ff80; } }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.3em); } }
@keyframes wave2 {
  0% { transform: translate(0, 0); } 25% { transform: translate(.12em, -.25em); }
  50% { transform: translate(0, 0); } 75% { transform: translate(-.12em, .25em); } 100% { transform: translate(0, 0); }
}
@keyframes shake { 0% { transform: translate(.06em, -.12em); } 50% { transform: translate(-.06em, .1em); } }
@keyframes scroll-x { to { transform: translateX(-100%); } }
@keyframes slide { 0% { transform: translateY(-.8em); opacity: 0; } 15%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(.8em); opacity: 0; } }

.chatbox {
  background: var(--noise-paper), linear-gradient(180deg, #e0d4b0, #cbbd93);
  border: 3px solid #2b241b;
  box-shadow: inset 0 0 0 1px #a39572, 0 24px 48px rgba(0, 0, 0, .5);
  border-radius: 0 0 4px 4px;
}
.chat-log {
  height: 230px; overflow-y: auto;
  padding: 10px 14px 6px;
  font-family: var(--rs-p); font-size: 24px; line-height: 1.15;
  color: #000;
  scrollbar-width: thin;
  scrollbar-color: #5d5447 #bfb08a;
}
.msg { margin: 0 0 3px; overflow-wrap: anywhere; }
.msg .cc { color: #0000ff; }
.msg .t { color: #7f0000; }
.msg-you .t { color: #0000ff; }
.chat-form {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 8px 14px;
  border-top: 1px solid #9c8d68;
}
.chat-me { flex: none; font-family: var(--rs-p); font-size: 24px; line-height: 1; color: #000; }
#chatText {
  flex: 1; min-width: 0;
  padding: 8px 0 6px;
  font-family: var(--rs-p); font-size: 24px; line-height: 1;
  color: #0000ff;
  background: transparent; border: 0;
}
#chatText::placeholder { color: #6b604c; }
#chatText:focus { outline: none; }
.chat-form:focus-within { box-shadow: inset 0 0 0 2px rgba(0, 0, 255, .3); }
.chat-tabs { display: flex; background: linear-gradient(180deg, #4a3f31, #2e271e); border-top: 2px solid var(--stone-lo); }
.chat-tabs span {
  flex: 1; text-align: center;
  padding: 9px 2px 7px;
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
  color: #fff; text-shadow: 1px 1px 0 #000;
  border-right: 1px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px #5d503c;
}
.chat-tabs span:last-child { border-right: 0; }
.chat-tabs .on { color: var(--rs-yellow); background: #5c4f3c; }
.effects-help { margin: 16px 0 0; font-size: 16px; line-height: 2; color: #968c76; }

/* ---------- Buy ---------- */
.buy { padding-top: 40px; }
.buy-card {
  max-width: 1060px;
  margin: 0 var(--gutter);
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  align-items: center; gap: 36px;
  padding: 42px 46px;
}
@media (min-width: 1188px) { .buy-card { margin: 0 auto; } }
.buy-token { width: 288px; max-width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .55)); animation: bob 6s ease-in-out infinite; }
.buy-copy .sub { color: #ddd2bc; }
.ca-box {
  display: flex; align-items: center; gap: 12px;
  margin: 26px 0 24px; padding: 10px 10px 10px 12px;
  background: #0f0c09;
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px #5a4d39;
}
.ca-code {
  flex: 1; min-width: 0;
  font-family: var(--rs-b); font-size: 24px; line-height: 1.1;
  color: var(--rs-cyan); text-shadow: var(--px-shadow);
  background: none; border: 0; padding: 0; white-space: normal;
}
.ca-box.live .ca-code { font-family: var(--mono); font-size: 15px; color: var(--rs-yellow); text-shadow: none; overflow-wrap: anywhere; }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 46px 0 60px; background: #0a0806; border-top: 1px solid var(--line); }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { font-family: var(--rs-b); font-size: 24px; line-height: 1; color: var(--rs-orange); text-shadow: var(--px-shadow); text-decoration: none; }
.foot-links a:hover { color: var(--rs-yellow); }
.disclaimer { max-width: 920px; margin: 0 0 12px; font-size: 16px; line-height: 1.35; color: #867c68; }
.credits { margin: 0; font-size: 16px; line-height: 1.35; color: #655c4c; }

/* ---------- Toast (game message) ---------- */
.toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  max-width: min(580px, calc(100vw - 32px));
  padding: 10px 16px 8px;
  font-family: var(--rs-p); font-size: 24px; line-height: 1.15;
  color: #000;
  background: var(--noise-paper), linear-gradient(180deg, #e0d4b0, #cbbd93);
  border: 3px solid #2b241b;
  box-shadow: inset 0 0 0 1px #a39572, 0 12px 30px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(16px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.on { opacity: 1; transform: none; }
.toast .t { color: #0000ff; }
.toast .r { color: #ef1020; }
.toast .n { color: #7f0000; }

/* ---------- XP drops, pouch, level up ---------- */
.xp-drops { position: fixed; z-index: 140; top: 84px; right: 18px; width: 120px; height: 0; pointer-events: none; }
.xp-drop {
  position: absolute; right: 0; top: 70px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--rs-b); font-size: 24px; line-height: 1;
  color: #fff; text-shadow: var(--px-shadow);
  white-space: nowrap;
  animation: xp-rise 1.4s linear forwards;
}
.xp-drop [data-px] { width: 26px; }
@keyframes xp-rise { from { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } to { transform: translateY(-70px); opacity: 0; } }

.pouch {
  position: fixed; z-index: 140; right: 16px; bottom: 16px;
  width: 76px; height: 68px;
  display: grid; place-items: center;
  padding: 0;
  background: var(--noise-stone), linear-gradient(180deg, #4a3f31, #2c261e);
  border: 2px solid var(--stone-lo);
  box-shadow: inset 0 0 0 1px var(--stone-hi), 0 10px 24px rgba(0, 0, 0, .55);
  border-radius: 3px;
  animation: ground-in .3s steps(3);
}
.pouch-px { width: 48px; }
.pouch-n { position: absolute; left: 5px; top: 4px; font-family: var(--rs-p); font-size: 16px; line-height: 1; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; }
.pouch-n.w { color: #fff; }
.pouch-n.g { color: var(--rs-green); }
.pouch.bump { animation: pouch-bump .25s steps(2); }
@keyframes pouch-bump { 50% { transform: translateY(-4px); } }

.lvl {
  position: fixed; z-index: 160; left: 50%; bottom: 18px;
  display: flex; align-items: center; gap: 14px;
  width: min(560px, calc(100vw - 32px));
  padding: 12px 18px 10px 14px;
  transform: translateX(-50%);
  background: var(--noise-paper), linear-gradient(180deg, #e0d4b0, #cbbd93);
  border: 3px solid #2b241b;
  box-shadow: inset 0 0 0 1px #a39572, 0 0 0 4px rgba(255, 240, 120, .0), 0 14px 34px rgba(0, 0, 0, .6);
  animation: lvl-in 3.6s ease forwards;
}
.lvl-px { width: 52px; flex: none; }
.lvl-title { margin: 0 0 4px; font-family: var(--rs-b); font-size: 24px; line-height: 1.1; color: var(--rs-navy); }
.lvl-text { margin: 0; font-family: var(--rs-p); font-size: 24px; line-height: 1.1; color: #000; }
@keyframes lvl-in {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  8%, 88% { opacity: 1; transform: translate(-50%, 0); box-shadow: inset 0 0 0 1px #a39572, 0 0 30px 6px rgba(255, 230, 90, .5), 0 14px 34px rgba(0, 0, 0, .6); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* ---------- Right-click menu ---------- */
.rs-menu {
  position: fixed; z-index: 200;
  min-width: 180px;
  padding: 0 0 3px;
  background: #5d5447;
  border: 1px solid #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
  font-family: var(--rs-b); font-size: 16px; line-height: 1;
}
.rs-menu-head { margin: 1px 1px 3px; padding: 4px 6px 3px; background: #000; color: #5d5447; }
.rs-menu button {
  display: block; width: 100%;
  padding: 4px 8px 3px;
  text-align: left; white-space: nowrap;
  color: #fff; text-shadow: 1px 1px 0 #000;
  background: none; border: 0;
}
.rs-menu button:hover, .rs-menu button:focus-visible { color: var(--rs-yellow); outline: none; background: rgba(0, 0, 0, .12); }
.rs-menu .lv { color: var(--rs-lvl); }
.rs-menu .lr { color: #ff0000; }
@media (pointer: coarse) { .rs-menu { font-size: 32px; } .rs-menu button { padding: 8px 12px 6px; } }

.mouse-tip {
  position: fixed; z-index: 180; left: 0; top: 0; margin: 0;
  font-family: var(--rs-b); font-size: 16px; line-height: 1.15;
  color: #fff; text-shadow: 1px 1px 0 #000;
  white-space: nowrap; pointer-events: none;
}
.mouse-tip:empty { display: none; }
.mouse-tip small { font-family: var(--rs-p); font-size: 16px; color: #fff; }
.mouse-tip .n { color: var(--rs-yellow); }
.mouse-tip .lv { color: var(--rs-lvl); }
.mouse-tip .lr { color: #ff0000; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hero-title { font-size: 80px; }
  .nav-links { gap: 18px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 72px; gap: 28px; }
  .hero-title { font-size: 96px; }
  .hero-art { order: -1; }
  .viewport { width: min(100%, 420px); }
  .about-grid, .quest-grid, .drops-grid { grid-template-columns: 1fr; gap: 44px; }
  .infobox { position: static; width: 100%; max-width: 440px; }
  .bag { position: static; max-width: 420px; }
  .stop { column-gap: 24px; }
  .landmark { width: 140px; }
}
@media (max-width: 860px) {
  .buy-card { grid-template-columns: 1fr; padding: 34px 26px; }
  .buy-token { width: 192px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .trail-section { padding-bottom: 90px; }
  .hero-title { font-size: 64px; }
  .h2 { font-size: 48px; }
  .big { font-size: 24px; line-height: 1.25; }
  .btn-lg { min-height: 52px; padding: 0 20px; font-size: 24px; }
  .btn-lg svg { width: 18px; height: 18px; }
  .rate { gap: 12px; padding-right: 14px; }
  .rate-gob, .rate-gp, .rate-eq { font-size: 24px; }
  .rate-px { width: 44px; }
  .rate-coins { width: 36px; }
  .fact { align-items: flex-start; }
  .fact h3 { font-size: 24px; }
  .fact .slot { width: 72px; height: 64px; }
  .quest-meta > div { grid-template-columns: 1fr; gap: 4px; }
  .journal { padding: 38px 18px 30px; }
  .journal-steps button { font-size: 24px; padding-left: 42px; }
  .dt-rare { width: 92px; }

  .diplo-stage { padding: 8px; }
  .diplo-scene { height: 220px; }
  .diplo-npc { width: 72px; height: 90px; bottom: 20px; }
  .diplo-npc .npc { --scale: 3; }
  .diplo-grub { margin-left: -36px; }
  .diplo-grub .npc { --scale: 2; left: 12px; top: 30px; }
  .diplo-bent { left: 6%; }
  .diplo-wart { right: 6%; }
  .dialogue { gap: 10px; padding: 12px 10px; min-height: 0; }
  .dlg-head { width: 40px; }
  .dlg-text, .dlg-next { font-size: 16px; }
  .dlg-name { font-size: 16px; }
  .dye { font-size: 16px; padding: 7px 10px 6px 7px; }
  .dye-pot { width: 14px; height: 14px; }

  /* map: a trail rail down the left edge */
  .worldmap { margin: 0 10px; padding: 0 6px 6px; }
  .wm-select { font-size: 16px; }
  .trail { padding: 196px 12px 110px 62px; }
  .cartouche { top: 22px; padding: 10px 22px 9px; }
  .c-title { font-size: 32px; }
  .compass { top: 108px; right: 10px; width: 78px; height: 78px; }
  .hud-wrap { display: none; }
  .stops { gap: 96px; }
  .stop[data-lane] { grid-template-columns: minmax(0, 1fr); row-gap: 14px; justify-items: stretch; }
  .stop[data-lane] .spot { grid-column: 1; grid-row: 1; position: relative; flex-direction: row; justify-content: flex-start; gap: 0; }
  .stop[data-lane] .scroll, .stop[data-lane] .reward { grid-column: 1; grid-row: 2; justify-self: stretch; max-width: none; }
  .spot .marker { position: absolute; left: -49px; top: 50%; margin-top: -19px; width: 38px; height: 38px; font-size: 24px; border-width: 2px; }
  .site { flex-direction: row; gap: 10px; }
  .landmark, .stop-final .landmark { width: 112px; }
  .place, .stop-final .place { font-size: 24px; white-space: normal; }
  .scroll { padding: 28px 20px 24px; margin: 14px 4px; width: auto; }
  .scroll::before, .scroll::after { left: -10px; right: -10px; }
  .s-title, .scroll .shout { font-size: 24px; line-height: 1.15; }
  .reward { padding: 26px 16px 24px; }
  .reward-kicker { padding: 0 34px; line-height: 1.1; }
  .reward-actions .btn { max-width: 100%; white-space: normal; line-height: 1.1; text-align: center; padding: 8px 14px; }
  .reward-title, .reward-name { font-size: 32px; }
  .reward-coming { font-size: 24px; }
  .reward-loot { padding-right: 12px; }
  .loot-name { font-size: 16px; }
  .inv-line { flex-wrap: wrap; }
  .inv-line .exact { margin-left: 0; }
}
@media (max-width: 479px) {
  .hero-title { font-size: 48px; }
}
@media (max-width: 359px) {
  .hero-title span { white-space: normal; width: auto; }
}
@media (max-width: 440px) {
  .nav { gap: 10px; }
  .nav .soon { display: none; }
  .brand { font-size: 24px; }
  .brand img { width: 36px; height: 36px; }
  .nav .btn-gob { padding: 0 12px; }
  .ticker-set span { font-size: 24px; }
  .h2 { font-size: 32px; }
  .chat-form { flex-wrap: wrap; }
  #chatText { flex-basis: calc(100% - 60px); }
  .chat-tabs span { font-size: 16px; }
  .chat-tabs span:nth-child(n+6):not(.on) { display: none; }
  .qc-body { flex-direction: column; text-align: center; }
  .bag-stats b { font-size: 16px; }
  .xp-drops { top: 74px; }
  .pouch { right: 10px; bottom: 10px; width: 56px; height: 50px; }
  .pouch-px { width: 32px; }
  .pouch-n { left: 4px; top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .ticker-track, .buy-token, .player-px, .loader-token, .npc.idle .npc-body { animation: none !important; }
}
