/* Old School Samoyed. Old School RuneScape website chrome + in-game interfaces.
   RuneScape pixel fonts: RuneStar/fonts (CC0). They are drawn on a 16px grid,
   so they stay crisp at 16px, 24px (retina) and 32px. */

@font-face { font-family: "RS Plain"; src: url(/assets/fonts/rs-plain-12.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "RS Small"; src: url(/assets/fonts/rs-plain-11.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "RS Bold"; src: url(/assets/fonts/rs-bold-12.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "RS Quill"; src: url(/assets/fonts/rs-quill-8.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "RS Quill Large"; src: url(/assets/fonts/rs-quill.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "RS Quill Caps"; src: url(/assets/fonts/rs-quill-caps.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #0f0d0b;
  --bg-2: #15110d;
  --text: #e6dcc3;
  --muted: #bfae86;
  --gold: #ffd45c;
  --gold-deep: #b7761a;
  --parch: #e4d9b8;
  --ink: #2f2618;
  --ink-head: #3a2a12;
  --chat: #d6c7a1;
  --panel: #3e3529;
  --rs-yellow: #ffff00;
  --rs-orange: #ff981f;
  --rs-red: #ff0000;
  --rs-green: #00ff00;
  --rs-cyan: #00ffff;
  --rs-item: #ff9040;
  --maroon: #800000;
  --navy: #000080;
  --rs-blue: #0000ff;
  --nav-h: 64px;

  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .78 .16 0 0 0 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  --tex-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='80'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .35' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .05 0 0 0 0 .02 1.1 0 0 0 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); scrollbar-color: #6b5e4b #1d1914; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--tex-grain), var(--tex-mottle);
  font: 15px/1.65 Verdana, Geneva, Tahoma, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
button { font: inherit; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #000; color: #ffff00; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rs-yellow); outline-offset: 2px; }

.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }

/* Pixel fonts: no smoothing */
.login-welcome, .login-btn small, .overhead, .panel-title, .sk-label, .sk-val, .skills-total,
.dlg-name, .dlg-page, .dlg-continue, .dlg-options, .journal-title, .j-line, .j-reqs, .j-steps, .j-list, .j-hint,
.diary-tabs button, .tasks, .diary-txt, .q, .ql-points, .ge-name, .ge-examine, .ge-stats, .ge-confirm, .ge-offer,
.ge-closed-title, .ge-closed-txt, .examine-name, .examine-txt, .chat-log, .chat-input, .fx-row button, .chat-tabs,
.presets button, .friend, .rs-btn, .ignore-note, .hovertext, .ctx, .xp-tracker, .xpdrop, .game-msgs, .lu-title,
.lu-sub, .qd-congrats, .qd-title, .qd-rewards, .qd-qp, .faq-item summary::after {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 900 16px/1 Cinzel, "Times New Roman", serif; text-transform: uppercase; letter-spacing: .6px;
  color: #fff; text-decoration: none; text-shadow: 1px 1px 0 #000, 0 0 2px #000;
  padding: 14px 24px; border: 2px solid #000; border-radius: 4px; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.4), 0 3px 0 #000;
  transition: filter .15s ease, transform .05s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.4), 0 1px 0 #000; }
.btn:disabled { filter: grayscale(.85) brightness(.65); cursor: not-allowed; transform: none; }
.btn-orange { background: linear-gradient(#ff9a3a, #e9651c 48%, #b2400e 52%, #d6581a); }
.btn-gold { background: linear-gradient(#ffd766, #e0a020 48%, #b7761a 52%, #d59a2c); }
.btn-stone { background: linear-gradient(#8a8071, #5a5245 48%, #3b342b 52%, #4a433a); }
.btn-sm { font-size: 14px; padding: 10px 16px; }
.btn-nav { font-size: 14px; padding: 10px 18px; white-space: nowrap; }
.btn-block { width: 100%; }

.rs-btn {
  display: block; text-align: center; cursor: pointer; text-decoration: none;
  font: 16px/1.2 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#4b4134, #332b22); border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #6b5e4b, inset -1px -1px 0 #1f1a14; padding: 8px 10px;
}
.rs-btn:hover { color: #fff; }
.rs-btn:active { box-shadow: inset -1px -1px 0 #6b5e4b, inset 1px 1px 0 #1f1a14; }

/* ================= top bar + nav ================= */
.topbar { background: #000; border-bottom: 1px solid #2a2016; color: #cbbf9f; font-size: 12px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.topbar b { color: #e6dcc3; font-weight: 700; }
.online { white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #41e04e; box-shadow: 0 0 6px #41e04e; margin-right: 6px; vertical-align: 0; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background-color: #3d2b18;
  background-image: var(--tex-wood), linear-gradient(#4d3822, #3a2917 55%, #2c1f11);
  box-shadow: inset 0 1px 0 #a67c3c, inset 0 -2px 0 #1f1509, 0 4px 10px rgba(0,0,0,.7);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.nav-logo { flex: none; display: block; }
.nav-logo img { width: 46px; height: 46px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.8)); transition: transform .2s ease; }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 20px; margin-right: auto; }
.nav-links a {
  font: 900 14px/1 Cinzel, serif; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); text-decoration: none; padding: 9px 1px 7px; border-bottom: 2px solid transparent;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.nav-links a:hover { color: #fff2c4; }
.nav-links a.active { border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.soc {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); border-radius: 4px;
  background: linear-gradient(#56412a, #2e2113); border: 1px solid #000;
  box-shadow: inset 0 1px 0 #8a6a3c, inset 0 -1px 0 #1b1208;
}
.soc svg { width: 18px; height: 18px; filter: drop-shadow(1px 1px 0 #000); }
.soc:hover { color: #fff2c4; }
.nav-toggle {
  display: none; width: 44px; height: 40px; padding: 9px 10px; flex-direction: column; justify-content: space-between;
  background: linear-gradient(#56412a, #2e2113); border: 1px solid #000; border-radius: 4px; cursor: pointer;
  box-shadow: inset 0 1px 0 #8a6a3c;
}
.nav-toggle span { display: block; height: 3px; background: var(--gold); box-shadow: 1px 1px 0 #000; transition: transform .2s ease, opacity .2s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ================= hero ================= */
.hero { position: relative; }
.banner {
  position: relative; overflow: hidden; background: #5a7fc2;
  height: clamp(540px, calc(100svh - 90px), 1000px);
}
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; user-select: none; -webkit-user-select: none; }
.banner-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(30px) saturate(1.1) brightness(.8); display: none; }
/* Wider than the art: show all of it, fill the sides with a blurred copy */
.banner.contain .banner-bg { display: block; }
.banner.contain .banner-img {
  object-fit: contain; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--ox, 0px), #000 calc(var(--ox, 0px) + 80px), #000 calc(100% - var(--ox, 0px) - 80px), transparent calc(100% - var(--ox, 0px)));
  mask-image: linear-gradient(90deg, transparent var(--ox, 0px), #000 calc(var(--ox, 0px) + 80px), #000 calc(100% - var(--ox, 0px) - 80px), transparent calc(100% - var(--ox, 0px)));
}
.banner.contain .logo { width: clamp(260px, calc(var(--art-w, 1000px) * .38), 600px); }
.banner-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,9,6,.30), rgba(12,9,6,0) 20%, rgba(12,9,6,0) 66%, rgba(15,13,11,.72) 92%, var(--bg)),
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.22), transparent 55%);
}
.banner-dog {
  position: absolute; z-index: 2; background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; border-radius: 40%; -webkit-tap-highlight-color: transparent;
}
.banner-dog:focus-visible { outline: 2px dashed var(--rs-yellow); outline-offset: 4px; }
.banner-dog .overhead { top: 0; }
.banner-top {
  position: absolute; z-index: 3; top: clamp(6px, 1.6vh, 20px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-start; justify-content: center; gap: 4px; pointer-events: none;
}
.logo { margin: 0; width: clamp(300px, 44vw, 600px); line-height: 0; }
.logo-svg { width: 100%; height: auto; overflow: visible; }
.logo-top { font: 900 50px Cinzel, serif; letter-spacing: 12px; fill: url(#gGold); stroke: #140c05; stroke-width: 7px; paint-order: stroke; }
.logo-main { font: 172px "Luckiest Guy", Impact, sans-serif; letter-spacing: 6px; fill: #cbc5b8; stroke: #cbc5b8; stroke-width: 10px; stroke-linejoin: round; paint-order: stroke; }
.tag-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 2vw, 28px); }
.fire { width: clamp(34px, 4.2vw, 60px); aspect-ratio: 32 / 80; image-rendering: pixelated; flex: none; margin-bottom: -.2em; }
.fire-r { transform: scaleX(-1); }

.login {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(10px, 2.2vh, 26px); transform: translateX(-50%);
  width: min(540px, calc(100% - 32px)); text-align: center;
  background: rgba(0,0,0,.86); border: 2px solid #4b4234;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 0 0 3px #2c261e, 0 16px 44px rgba(0,0,0,.65);
  padding: 16px 18px 16px;
}
.login-welcome { font: 32px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 2px 2px 0 #000; margin: 0 0 14px; }
.login-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.login-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 10px 13px; text-decoration: none; color: #fff;
  background: linear-gradient(#5d5346, #3a3229); border: 2px solid #000;
  box-shadow: inset 1px 1px 0 #8a7c66, inset -1px -1px 0 #221d16, 0 3px 0 #000;
  transition: filter .15s ease;
}
.login-btn:hover { filter: brightness(1.15); }
.login-btn:active { transform: translateY(2px); box-shadow: inset 1px 1px 0 #8a7c66, 0 1px 0 #000; }
.login-btn small { font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; }
.login-btn span { font: 900 18px/1.1 Cinzel, serif; text-transform: uppercase; letter-spacing: .4px; text-shadow: 1px 1px 0 #000, 0 0 2px #000; }
.login-btn-go { background: linear-gradient(#ff9a3a, #e9651c 48%, #b2400e 52%, #d6581a); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.4), 0 3px 0 #000; }
.login-btn-go small { color: #fff5c9; }

.hero-strip { position: relative; padding: 56px 0 72px; background: linear-gradient(var(--bg), var(--bg-2)); border-bottom: 1px solid #2a2016; }
.hero-strip-in { display: grid; justify-items: center; text-align: center; gap: 22px; }
.tagline { font: 900 clamp(30px, 4.6vw, 58px)/1.08 Cinzel, serif; color: #fff; text-shadow: 0 3px 0 #000, 0 0 22px rgba(0,0,0,.7); margin: 0; }
.tagline mark { white-space: nowrap; color: #2a1a05; text-shadow: none; padding: 0 .16em; border-radius: 4px; background: linear-gradient(#fff0b5, #f2c14e 50%, #d99a2b); box-shadow: 0 3px 0 #000, inset 0 -2px 0 rgba(0,0,0,.25); }
.hero-copy { max-width: 620px; margin: 0; color: #d8cdb3; font-size: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(780px, 100%);
  background: #120e0a; border: 1px solid #5b4a2e; box-shadow: inset 0 0 0 1px #000, 0 8px 24px rgba(0,0,0,.5);
}
.stat { display: grid; gap: 4px; padding: 14px 8px; border-right: 1px solid #3a2f1f; }
.stat:last-child { border-right: 0; }
.stat b { font: 900 22px/1.1 Cinzel, serif; color: var(--gold); text-shadow: 0 2px 0 #000; }
.stat span { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.stat b.up, .ge-stats dd.up { color: var(--rs-green); }
.stat b.down, .ge-stats dd.down { color: #ff4b4b; }
.ca-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.ca-label { font: 900 15px Cinzel, serif; color: var(--gold); text-shadow: 1px 1px 0 #000; }
.ca-box {
  font: 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text);
  background: #0b0907; border: 1px solid #6b5a3a; box-shadow: inset 0 0 0 1px #000;
  padding: 10px 12px; border-radius: 2px; word-break: break-all;
}
.ca-box.is-empty { color: #9f9275; font-style: italic; }
.ca-note { margin: -6px 0 0; font-size: 12px; color: var(--muted); max-width: 560px; }
.ca-box-block { display: block; width: 100%; text-align: center; }
.ca-box-inline { display: inline-block; }

/* ================= sections ================= */
.sec { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.sec-alt { background: linear-gradient(rgba(255,236,190,.025), rgba(255,236,190,.025)); }
.sec-alt::before, .sec-alt::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #6b5226 20%, #b38a3e 50%, #6b5226 80%, transparent); }
.sec-alt::before { top: 0; }
.sec-alt::after { bottom: 0; }
.sec-title {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); margin: 0 0 10px;
  font: 900 clamp(26px, 4vw, 44px)/1.15 Cinzel, serif; text-transform: uppercase; letter-spacing: 2px; text-align: center;
}
.sec-title span { color: var(--gold); background: linear-gradient(#fff3c9, #ffd45c 45%, #d9962a 62%, #ffe08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #000) drop-shadow(0 0 14px rgba(255,190,80,.18)); }
.sec-title::before, .sec-title::after { content: ""; flex: 1; height: 2px; min-width: 24px; }
.sec-title::before { background: linear-gradient(90deg, transparent, #7d5b1f 35%, #ffd97a); }
.sec-title::after { background: linear-gradient(90deg, #ffd97a, #7d5b1f 65%, transparent); }
.sec-kicker { text-align: center; color: #cdbf9c; max-width: 660px; margin: 0 auto 44px; }

/* parchment card (OSRS website) */
.card {
  position: relative; text-align: center; color: var(--ink); padding: 26px 24px 24px;
  background-color: var(--parch);
  background-image: var(--tex-grain), radial-gradient(ellipse at 50% 20%, #f3ead0, #e2d5ae 62%, #cdbb8c);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px #c9b98e, inset 0 0 0 3px #6b5a3a, inset 0 0 28px rgba(90,60,20,.35), 0 8px 22px rgba(0,0,0,.55);
}
.card h3 { font: 900 20px/1.2 Cinzel, serif; color: var(--ink-head); text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 10px; }
.card p { font-size: 14px; margin: 0 0 .8em; }
.card p:last-child { margin-bottom: 0; }
.card-num { display: block; font: 700 42px/1 "Cinzel Decorative", Cinzel, serif; color: var(--gold-deep); text-shadow: 1px 1px 0 #fff3d0; }
.card-left { text-align: left; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }

/* in-game interface panel */
.panel {
  position: relative; padding: 16px; color: var(--rs-orange);
  background-color: var(--panel);
  background-image: var(--tex-grain), linear-gradient(#42382c, #3a3126);
  border: 1px solid #000;
  box-shadow: inset 0 0 0 2px #6d604d, inset 0 0 0 4px #2b241b, inset 0 0 0 5px #564a3a, 0 12px 32px rgba(0,0,0,.6);
}
.panel-title { font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; text-align: center; margin: 2px 0 14px; }

/* ================= about: NPC dialogue ================= */
.dialogue {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center;
  max-width: 920px; min-height: 236px; margin: 0 auto; padding: 22px 30px 18px 24px;
  background-color: var(--chat);
  background-image: var(--tex-grain), radial-gradient(ellipse at 50% 40%, #e2d4b0, #cdbd93);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px #8f7f5f, inset 0 0 0 4px #bfae87, inset 0 0 30px rgba(80,55,20,.25), 0 12px 32px rgba(0,0,0,.6);
}
.chathead { width: 146px; height: 182px; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.25)); }
.dlg-body { text-align: center; }
.dlg-name { font: 24px/1 "RS Quill", Georgia, serif; color: var(--maroon); margin: 0 0 12px; }
.dlg-page { font: 24px/1.35 "RS Quill", Georgia, serif; color: #000; margin: 0; }
.js .dlg-page { display: none; }
.js .dlg-page.on { display: block; animation: dlgIn .18s ease-out; }
@keyframes dlgIn { from { opacity: .2; } }
.dlg-continue { background: none; border: 0; padding: 4px 8px; margin-top: 14px; cursor: pointer; font: 24px/1 "RS Quill", Georgia, serif; color: var(--rs-blue); }
.dlg-continue:hover, .dlg-continue:focus-visible { color: #fff; text-shadow: 1px 1px 0 #000; }
.dlg-options { display: grid; gap: 4px; margin-top: 10px; }
.dlg-select { font: 24px/1 "RS Quill", Georgia, serif; color: var(--maroon); margin: 0 0 6px; }
.dlg-options button { background: none; border: 0; cursor: pointer; font: 24px/1.25 "RS Quill", Georgia, serif; color: #000; padding: 2px 6px; }
.dlg-options button:hover, .dlg-options button:focus-visible { color: #fff; text-shadow: 1px 1px 0 #000; }

/* ================= buy: quest journal scroll ================= */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.scroll {
  position: relative; margin: 16px 12px; padding: 42px clamp(20px, 4vw, 48px) 38px; color: var(--navy);
  background-color: #e6d8b1;
  background-image: var(--tex-grain), radial-gradient(ellipse at 50% 30%, #f3e9ca, #e3d4aa 60%, #ccb684);
  border-left: 2px solid #7a6440; border-right: 2px solid #7a6440;
  box-shadow: inset 12px 0 18px -10px rgba(90,60,20,.35), inset -12px 0 18px -10px rgba(90,60,20,.35), 0 12px 30px rgba(0,0,0,.55);
}
.scroll::before, .scroll::after {
  content: ""; position: absolute; left: -14px; right: -14px; height: 26px; border-radius: 13px; border: 2px solid #3b2c16;
  background: linear-gradient(#8d7148, #f1e3bb 32%, #dcc592 58%, #8a6d44);
}
.scroll::before { top: -15px; }
.scroll::after { bottom: -15px; }
.journal-title { font: 32px/1.1 "RS Quill Large", "RS Quill", Georgia, serif; color: var(--maroon); text-align: center; margin: 4px 0 20px; font-weight: 400; }
.j-line, .j-reqs li, .j-steps p, .j-list li { font: 24px/1.35 "RS Quill", Georgia, serif; }
.j-line { margin: 0 0 10px; }
.scroll em { font-style: normal; color: var(--maroon); }
.j-reqs { margin: 0 0 18px; padding-left: 26px; }
.j-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.j-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; padding: 8px 10px; border-radius: 3px; transition: background .15s ease; }
.j-step:hover { background: rgba(122,100,64,.12); }
.j-step p { margin: 0; }
.j-step b { font-weight: 400; color: var(--maroon); }
.j-step a { color: var(--rs-blue); }
.j-step.done p { text-decoration: line-through; text-decoration-thickness: 2px; }
.j-check {
  width: 26px; height: 26px; margin-top: 1px; cursor: pointer; padding: 0;
  background: #d8c7a0; border: 2px solid #3b2c16; box-shadow: inset 1px 1px 0 #fff4d6, inset -1px -1px 0 #9a8156;
}
.j-step.done .j-check {
  background: #d8c7a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='square'/%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%2300c800' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.j-hint { font: 16px/1 "RS Quill", Georgia, serif; color: #6b5a3a; text-align: center; margin: 18px 0 0; }
.j-phase { color: var(--maroon); text-align: center; }
.j-list { margin: 0; padding-left: 26px; display: grid; gap: 6px; }
.j-list li.done { text-decoration: line-through; text-decoration-thickness: 2px; }

.examine { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 22px 20px 20px; }
.examine .panel-title { margin-bottom: 4px; }
.examine-slot {
  display: grid; place-items: center; width: 80px; height: 80px; flex: none;
  background: #1f1a14; border: 1px solid #000; box-shadow: inset 1px 1px 0 #5a4d3c, inset -1px -1px 0 #120f0b;
}
.examine-slot img { width: 64px; height: 64px; }
.examine-name { font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; margin: 0; }
.examine-txt { font: 16px/1.3 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; margin: 0; }
.examine-warn { font-size: 12px; line-height: 1.5; color: #e2d2ab; margin: 4px 0 0; }

/* ================= tokenomics: stats tab ================= */
.tok-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 14px; }
.skill {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  min-height: 66px; padding: 8px 10px;
  background: linear-gradient(#4d4336, #383026); border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #6f6250, inset -1px -1px 0 #262019;
}
.skill .ico { grid-row: span 2; width: 32px; height: 32px; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.6)); }
.sk-label { font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; align-self: end; }
.sk-val { font: 24px/1.1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; align-self: start; overflow-wrap: anywhere; }
.skill.ok .sk-val::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='square'/%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; }
.skill.bad .sk-val { color: #ff4b4b; }
.skills-total { grid-column: 1 / -1; margin: 4px 0 0; padding: 10px; text-align: center; font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; background: #2b251d; border: 1px solid #000; box-shadow: inset 1px 1px 0 #564a3a; }
.skills-total b { font-weight: 400; }
.details h3 { margin-top: 0; }
.verify { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px !important; padding: 12px; background: rgba(90,60,20,.1); border: 1px solid rgba(107,90,58,.45); font-size: 13px !important; }
.verify.live { background: rgba(0,120,0,.1); border-color: rgba(0,110,0,.45); }
.ico-sm { width: 20px; height: 20px; flex: none; }

/* ================= wins: achievement diary ================= */
.diary { max-width: 980px; margin: 0 auto; padding: 18px; }
.diary-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.diary-tabs button {
  display: grid; gap: 2px; justify-items: center; padding: 10px 6px 8px; cursor: pointer;
  font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-red); text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#4b4134, #332b22); border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b5e4b, inset -1px -1px 0 #1f1a14;
}
.diary-tabs button small { font: 16px/1 "RS Plain", Verdana, sans-serif; color: #fff; }
.diary-tabs button.t-started { color: var(--rs-yellow); }
.diary-tabs button.t-done { color: var(--rs-green); }
.diary-tabs button[aria-selected="true"] { background: linear-gradient(#665845, #4a3f31); box-shadow: inset 0 0 0 1px #b39868, inset 1px 1px 0 #8a7a61; }
.diary-tier { min-height: 150px; background: #2e271e; border: 1px solid #000; box-shadow: inset 1px 1px 0 #564a3a; padding: 14px 18px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.tasks li { position: relative; padding-left: 30px; font: 24px/1.25 "RS Plain", Verdana, sans-serif; color: var(--rs-red); text-shadow: 1px 1px 0 #000; }
.tasks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: #1b1712; border: 1px solid #000; box-shadow: inset 1px 1px 0 #5a4d3c; }
.tasks li.done { color: var(--rs-green); text-decoration: line-through; text-decoration-thickness: 2px; }
.tasks li.done::before { background: #1b1712 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='square'/%3E%3Cpath d='M2 8l4 4 8-9' fill='none' stroke='%2300ff00' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / 14px no-repeat; }
.diary-bar { position: relative; height: 26px; margin-top: 14px; background: #b30000; border: 1px solid #000; box-shadow: inset 0 0 0 1px #5a0000; overflow: hidden; }
.diary-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(#27c227, #0a8f0a); box-shadow: inset 0 1px 0 #7cf07c; transition: width .5s ease; }
.diary-txt { position: absolute; inset: 0; display: grid; place-items: center; font: 16px/1 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }

/* ================= roadmap: quest list ================= */
.road-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 34px; align-items: start; }
.questlist ul { list-style: none; margin: 0; padding: 6px; background: #2e271e; border: 1px solid #000; box-shadow: inset 1px 1px 0 #564a3a; }
.q { display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; padding: 7px 10px; font: 24px/1.15 "RS Plain", Verdana, sans-serif; color: var(--rs-red); text-shadow: 1px 1px 0 #000; }
.q.q-started { color: var(--rs-yellow); }
.q.q-done { color: var(--rs-green); }
.q:hover { background: rgba(255,255,255,.07); }
.q[aria-pressed="true"] { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,152,31,.55); }
.ql-points { font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; text-align: center; margin: 12px 0 2px; }
.ql-points b { font-weight: 400; color: var(--rs-yellow); }
.road-journal { min-height: 330px; margin-top: 16px; }

/* ================= grand exchange ================= */
.ge { padding: 18px; }
.ge-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; }
.ge-item { display: grid; gap: 12px; align-content: start; padding: 14px; background: #2e271e; border: 1px solid #000; box-shadow: inset 1px 1px 0 #564a3a; }
.ge-top { display: flex; gap: 12px; align-items: center; }
.ge-name { font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; margin: 0 0 6px; }
.ge-examine { font: 16px/1.25 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; margin: 0; }
.ge-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.ge-stats div { padding: 7px 9px; background: #1f1a14; border: 1px solid #000; box-shadow: inset 1px 1px 0 #3d342a; }
.ge-stats dt { font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; margin-bottom: 5px; }
.ge-stats dd { margin: 0; font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; overflow-wrap: anywhere; }
.ge-confirm {
  display: block; text-align: center; text-decoration: none; padding: 13px 10px;
  font: 24px/1 "RS Bold", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#46992f, #2c6d1c); border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #8be06a, inset -1px -1px 0 #174a0e, 0 3px 0 #000;
}
.ge-confirm:hover { filter: brightness(1.12); }
.ge-confirm:active { transform: translateY(2px); box-shadow: inset 1px 1px 0 #8be06a, 0 1px 0 #000; }
.ge-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ge-offer {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 10px; text-decoration: none;
  font: 16px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#4b4134, #332b22); border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b5e4b;
}
.ge-offer small { font: 16px/1 "RS Plain", Verdana, sans-serif; color: #fff; }
.ge-offer:hover { color: #fff; }
.ge-offer.off { opacity: .45; cursor: default; }
.ge-offer.off:hover { color: var(--rs-orange); }
.ge-chart { position: relative; min-height: 460px; background: #0b0a09; border: 1px solid #000; box-shadow: inset 0 0 0 1px #5a4d3c; overflow: hidden; }
.ge-chart iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ge-closed { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 45%, rgba(255,190,80,.08), transparent 60%); }
.ge-closed-ico { width: 84px; height: 84px; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }
.ge-closed-title { font: 24px/1.1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; margin: 0; }
.ge-closed-txt { font: 16px/1.3 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; margin: 0; max-width: 380px; }

/* ================= hall of memes ================= */
.meme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 18px; }
.meme-scene {
  position: relative; min-height: 400px; overflow: hidden; cursor: pointer; display: grid; place-items: end center;
  border: 1px solid #000; box-shadow: inset 0 0 0 1px #5a4d3c;
  background:
    linear-gradient(170deg, transparent 58%, #56813a 58.2%, #4a7431 72%, #3f6628),
    linear-gradient(8deg, transparent 52%, #6f9a4a 52.2%, #62893f 60%, transparent 60.2%),
    linear-gradient(#5f86c8, #86a8e0 62%, #a9c3ea);
}
.meme-pup { position: relative; z-index: 1; width: 64%; max-width: 310px; margin-bottom: 34px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s ease; }
.meme-scene .pup-shadow { position: absolute; bottom: 26px; left: 50%; width: 46%; height: 26px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,.45), transparent 70%); }
.meme-scene .overhead { top: 12%; }
.chatbox {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto; min-height: 400px;
  background-color: var(--chat);
  background-image: var(--tex-grain), linear-gradient(#dccfae, #cbbb95);
  border: 2px solid #000; box-shadow: inset 0 0 0 2px #8f7f5f;
}
.chat-log { height: 190px; overflow-y: auto; padding: 10px 12px 6px; font: 16px/1.35 "RS Plain", Verdana, sans-serif; color: #000; }
.chat-log p { margin: 0 0 2px; }
.c-name { color: #000; }
.c-msg { color: var(--rs-blue); }
.c-hl { color: var(--rs-blue); }
.c-npc { color: var(--maroon); }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid #8f7f5f; font: 24px/1 "RS Plain", Verdana, sans-serif; }
.chat-input label { color: #000; }
.chat-input input { flex: 1; width: 0; min-width: 0; background: transparent; border: 0; outline: 0; padding: 4px 0; font: 24px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-blue); caret-color: var(--rs-blue); -webkit-font-smoothing: none; }
.chat-input input::placeholder { color: rgba(0,0,128,.45); }
.chat-send { font: 16px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; background: linear-gradient(#4b4134, #332b22); border: 1px solid #000; box-shadow: inset 1px 1px 0 #6b5e4b; padding: 6px 12px; cursor: pointer; }
.chat-fx { display: grid; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid #8f7f5f; }
.fx-row { display: flex; flex-wrap: wrap; gap: 4px; }
.fx-row button { font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; background: #3e3529; border: 1px solid #000; padding: 4px 8px; cursor: pointer; }
.fx-row button:hover { color: #fff; }
.fx-row button[aria-checked="true"] { background: #5d5447; color: var(--rs-yellow); box-shadow: inset 0 0 0 1px var(--rs-yellow); }
.chat-tabs { display: flex; background: #3e3529; border-top: 2px solid #000; }
.chat-tabs span { flex: 1 1 0; min-width: 0; overflow: hidden; text-align: center; padding: 6px 0 5px; font: 16px/1 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; border-right: 1px solid #000; }
.chat-tabs span:last-child { border-right: 0; }
.chat-tabs .on { color: #fff; background: #5d5447; }
.presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.presets button { cursor: pointer; font: 24px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 1px 1px 0 #000; background: #2b251d; border: 1px solid #000; box-shadow: inset 1px 1px 0 #5a4d3c; padding: 8px 12px; }
.presets button:hover { background: #3b3228; }

/* overhead chat + effects */
.overhead {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap; pointer-events: none;
  font: 32px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); text-shadow: 2px 2px 0 #000;
  opacity: 0; transition: opacity .2s ease;
}
.overhead.show { opacity: 1; }
.overhead .ch { display: inline-block; white-space: pre; }
.fx-yellow { color: #ffff00; }
.fx-red { color: #ff0000; }
.fx-green { color: #00ff00; }
.fx-cyan { color: #00ffff; }
.fx-purple { color: #ff00ff; }
.fx-white { color: #ffffff; }
.fx-flash1 { animation: flash1 .5s steps(1) infinite; }
.fx-flash2 { animation: flash2 .5s steps(1) infinite; }
.fx-flash3 { animation: flash3 .5s steps(1) infinite; }
.fx-glow1 { animation: glow1 2.4s linear infinite; }
.fx-glow2 { animation: glow2 2.4s linear infinite; }
.fx-glow3 { animation: glow3 2.4s linear infinite; }
@keyframes flash1 { 0% { color: #ff0000; } 50% { color: #ffff00; } }
@keyframes flash2 { 0% { color: #0000ff; } 50% { color: #00ffff; } }
@keyframes flash3 { 0% { color: #00b000; } 50% { color: #80ff80; } }
@keyframes glow1 { 0% { color: #ff0000; } 33% { color: #ffff00; } 66% { color: #00ffff; } 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; } }
.mv-wave .ch { animation: wave 1s ease-in-out infinite; animation-delay: calc(var(--i) * -.1s); }
.mv-wave2 .ch { animation: wave2 1.2s linear infinite; animation-delay: calc(var(--i) * -.12s); }
.mv-shake .ch { animation: shake .3s steps(2) infinite; animation-delay: calc(var(--i) * -.07s); }
.mv-slide { animation: slide .5s ease-out both; }
.mv-scroll { display: block; width: min(300px, 70vw); overflow: hidden; }
.mv-scroll .run { display: inline-block; padding-left: 100%; animation: runx 4s linear infinite; }
@keyframes wave { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes wave2 { 0% { transform: translate(-3px, -5px); } 25% { transform: translate(3px, 0); } 50% { transform: translate(-3px, 5px); } 75% { transform: translate(3px, 0); } 100% { transform: translate(-3px, -5px); } }
@keyframes shake { 0% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes slide { from { transform: translate(-50%, -22px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes runx { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ================= faq ================= */
.faq { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq-item { background: var(--panel); border: 1px solid #000; box-shadow: inset 0 0 0 1px #6d604d, inset 0 0 0 3px #2b241b; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  padding: 15px 18px; font: 900 17px/1.3 Cinzel, serif; color: var(--gold); text-shadow: 1px 1px 0 #000;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 32px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 2px 2px 0 #000; }
.faq-item[open] summary::after { content: "-"; }
.faq-item summary:hover { color: #fff2c4; }
.faq-a {
  margin: 0 6px 6px; padding: 16px 18px; color: var(--ink); border: 1px solid #000;
  background-color: var(--parch); background-image: var(--tex-grain), linear-gradient(#efe4c6, #dfd0a6);
}
.faq-a p { margin: 0 0 .7em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: #7a3e00; }
.faq-a .ca-box { background: #f6efdb; color: var(--ink); border-color: #9a8156; box-shadow: none; }

/* ================= links: friends list ================= */
.links-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; max-width: 980px; margin: 0 auto; }
.flist { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; background: #2e271e; border: 1px solid #000; box-shadow: inset 1px 1px 0 #564a3a; }
.friend { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; text-decoration: none; font: 24px/1 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
a.friend:hover { background: rgba(255,255,255,.07); }
.f-world { white-space: nowrap; }
.friend.on .f-world { color: var(--rs-green); }
.friend.off { cursor: default; }
.friend.off .f-world { color: var(--rs-red); }
.panel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ignore-note { font: 16px/1.3 "RS Plain", Verdana, sans-serif; color: var(--rs-orange); text-shadow: 1px 1px 0 #000; text-align: center; margin: 12px 0 2px; }
.shake-x { animation: shakex .4s ease; }
@keyframes shakex { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ================= footer ================= */
.footer { background: #0a0806; border-top: 1px solid #2a2016; padding: 44px 0 64px; text-align: center; }
.footer-in { display: grid; justify-items: center; gap: 6px; }
.footer-pup { width: 56px; height: 56px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 14px 0 12px; }
.footer-nav a { font: 900 13px/1 Cinzel, serif; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); text-decoration: none; text-shadow: 1px 1px 0 #000; }
.footer-nav a:hover { color: #fff2c4; }
.footer-legal { max-width: 780px; margin: 4px auto 0; font-size: 12px; color: #8f8268; }

/* ================= game overlays ================= */
.hovertext { position: fixed; left: 14px; top: calc(var(--nav-h) + 10px); z-index: 60; pointer-events: none; font: 16px/1 "RS Bold", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.hovertext .y { color: var(--rs-yellow); }
.hovertext .o { color: var(--rs-item); }
.ctx { position: fixed; z-index: 90; min-width: 190px; background: #5d5447; border: 1px solid #000; box-shadow: 0 6px 16px rgba(0,0,0,.6); font: 16px/1 "RS Bold", Verdana, sans-serif; padding-bottom: 2px; }
.ctx-head { background: #000; color: #5d5447; padding: 4px 6px 3px; margin-bottom: 2px; }
.ctx button { display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; padding: 3px 6px; font: 16px/1 "RS Bold", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.ctx button:hover, .ctx button:focus-visible { color: var(--rs-yellow); outline: 0; }
.ctx .y { color: var(--rs-yellow); }
.ctx .o { color: var(--rs-item); }
.xp-tracker { position: fixed; right: 12px; top: calc(var(--nav-h) + 10px); z-index: 55; display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(0,0,0,.72); border: 1px solid #5a4d3c; box-shadow: 0 4px 12px rgba(0,0,0,.5); font: 16px/1 "RS Plain", Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.xp-tracker b { font: 16px/1 "RS Bold", Verdana, sans-serif; color: var(--rs-yellow); }
.xp-tracker i { font-style: normal; color: var(--rs-orange); }
.xp-tracker.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.08); } }
.xpdrop { position: fixed; z-index: 80; pointer-events: none; display: flex; align-items: center; gap: 6px; font: 24px/1 "RS Bold", Verdana, sans-serif; color: #fff; text-shadow: 2px 2px 0 #000; animation: xpdrop 1.5s ease-out forwards; }
.xpdrop svg { width: 22px; height: 22px; }
@keyframes xpdrop { from { transform: translate(-50%, 0); opacity: 1; } 75% { opacity: 1; } to { transform: translate(-50%, -80px); opacity: 0; } }
.game-msgs { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: grid; gap: 3px; max-width: min(460px, calc(100vw - 150px)); pointer-events: none; }
.game-msgs p { margin: 0; padding: 5px 9px; background: rgba(214,199,161,.96); border: 1px solid #000; box-shadow: 0 3px 8px rgba(0,0,0,.5); font: 16px/1.3 "RS Plain", Verdana, sans-serif; color: #000; animation: msgin .2s ease-out; transition: opacity .6s ease; }
.game-msgs p.out { opacity: 0; }
@keyframes msgin { from { transform: translateY(6px); opacity: 0; } }

.levelup {
  position: fixed; z-index: 95; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(580px, calc(100vw - 24px)); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 18px; background-color: var(--chat); background-image: var(--tex-grain), linear-gradient(#dccfae, #cbbb95);
  border: 2px solid #000; box-shadow: inset 0 0 0 2px #8f7f5f, 0 12px 32px rgba(0,0,0,.65);
  animation: msgin .25s ease-out;
}
.lu-ico { width: 60px; height: 60px; }
.lu-txt { text-align: center; }
.lu-title { font: 24px/1.25 "RS Quill", Georgia, serif; color: var(--navy); margin: 0; }
.lu-sub { font: 24px/1.25 "RS Quill", Georgia, serif; color: #000; margin: 6px 0 0; }
.levelup .dlg-continue { margin-top: 8px; }
.fw { position: fixed; z-index: 96; width: 0; height: 0; pointer-events: none; }
.fw i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; background: var(--c); box-shadow: 0 0 6px var(--c); animation: fw 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes fw { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px 16px; background: rgba(0,0,0,.66); overflow-y: auto; }
.qd { width: min(580px, 100%); text-align: center; animation: msgin .3s ease-out; }
.qd-congrats { font: 64px/1 "RS Quill Caps", "RS Quill Large", Georgia, serif; color: var(--maroon); margin: 0 0 4px; }
.qd-title { font: 32px/1.1 "RS Quill Large", "RS Quill", Georgia, serif; font-weight: 400; color: var(--navy); margin: 0 0 16px; }
.qd-body { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: left; }
.qd-body img { width: 140px; }
.qd-rewards { list-style: none; margin: 0; padding: 0; font: 24px/1.3 "RS Quill", Georgia, serif; color: var(--navy); }
.qd-qp { font: 24px/1 "RS Quill", Georgia, serif; color: var(--navy); margin: 16px 0 18px; }
.qd-qp b { font-weight: 400; color: var(--maroon); }

.follower { position: fixed; z-index: 65; right: 14px; bottom: 8px; width: 104px; padding: 0; border: 0; background: none; cursor: pointer; animation: bob 2.6s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.follower img { width: 100%; filter: drop-shadow(0 6px 4px rgba(0,0,0,.45)); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.follower .overhead { top: -22px; left: 40%; font-size: 16px; }
.follower.in { animation: followIn .5s ease-out, bob 2.6s ease-in-out .5s infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes followIn { from { transform: translateX(140px); } }
.hop { animation: hop .35s ease-out !important; }
@keyframes hop { 40% { transform: translateY(-14px); } }

/* ================= responsive ================= */
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 6px 16px 16px; background-color: #33230f; background-image: var(--tex-wood), linear-gradient(#3a2917, #281b0d);
    box-shadow: inset 0 1px 0 #1f1509, 0 10px 18px rgba(0,0,0,.6);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid rgba(255,212,92,.14); font-size: 15px; }
  .nav-links a.active { border-bottom-color: rgba(255,212,92,.14); color: #fff2c4; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 980px) {
  .buy-grid, .tok-grid, .road-grid, .ge-grid, .meme, .links-grid { grid-template-columns: minmax(0, 1fr); }
  .examine { max-width: 460px; width: 100%; margin: 0 auto; }
  .questlist { max-width: 460px; width: 100%; margin: 0 auto; }
  .ge-chart { min-height: 420px; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .banner { height: clamp(460px, 70svh, 640px); }
  .banner-img { object-position: 38% 0%; }
  .logo { width: min(86vw, 440px); }
  .fire { display: none; }
  .login { padding: 12px 12px 12px; }
  .login-welcome { font-size: 24px; margin-bottom: 12px; }
  .login-btn span { font-size: 14px; }
  .hero-strip { padding-top: 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #3a2f1f; }
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .dialogue { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 18px 16px 14px; }
  .chathead { width: 110px; height: 137px; }
  .tasks { grid-template-columns: minmax(0, 1fr); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll { margin-inline: 8px; }
  .diary-tabs button { font-size: 16px; }
  .btn-nav { padding: 9px 12px; font-size: 13px; }
  .soc { display: none; }
  .follower { width: 76px; right: 8px; }
  .game-msgs { max-width: calc(100vw - 100px); }
  .xp-tracker span { display: none; }
  .sec-title { font-size: 24px; letter-spacing: 1px; gap: 10px; }
  .sec-title::before, .sec-title::after { min-width: 14px; }
  .chat-tabs span:nth-child(n+5) { display: none; }
  .meme-scene { min-height: 320px; }
}
@media (max-width: 420px) {
  .login-btns { gap: 8px; }
  .login-btn { padding: 9px 6px 11px; }
  .login-btn small { font-size: 16px; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .qd-body { flex-direction: column; text-align: center; }
  .qd-congrats { font-size: 48px; }
}
@media (hover: none), (pointer: coarse) {
  .hovertext { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ================= 404 ================= */
.dead .nav-in { justify-content: space-between; }
.dead-main { min-height: calc(100svh - var(--nav-h)); display: grid; place-content: center; justify-items: center; gap: 28px; padding: 48px 16px 32px; background: radial-gradient(ellipse at 50% 45%, rgba(255,120,30,.10), transparent 60%); }
.dead-row { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 36px); }
.dead .fire { display: block; width: clamp(44px, 7vw, 84px); margin: 0; }
.dead-box { max-width: 520px; text-align: center; padding: 28px 26px 26px; background: rgba(0,0,0,.86); border: 2px solid #4b4234; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 0 0 3px #2c261e, 0 16px 44px rgba(0,0,0,.65); }
.dead-title { font: 32px/1.1 "RS Bold", Verdana, sans-serif; color: #ff0000; text-shadow: 2px 2px 0 #000; margin: 0 0 14px; -webkit-font-smoothing: none; }
.dead-sub { color: #d8cdb3; margin: 0 0 22px; }
.dead-pup { width: min(220px, 50vw); filter: grayscale(.35) drop-shadow(0 10px 8px rgba(0,0,0,.6)); transform: scaleX(-1); }
@media (max-width: 520px) {
  .dead-row { flex-direction: column; }
  .dead .fire { display: none; }
  .dead-title { font-size: 24px; }
}
