/* Hearthvale — site styles. Pixel art is scaled with image-rendering: pixelated (nearest neighbour). */

@font-face {
  font-family: "Hearth Pixel";
  src: url("fonts/RunehavenPixel-Regular.woff") format("woff"), url("fonts/RunehavenPixel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Hearth Pixel";
  src: url("fonts/RunehavenPixel-Bold.woff") format("woff"), url("fonts/RunehavenPixel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #120e10;
  --stone-0: #17131a;
  --stone-1: #211d22;
  --stone-2: #2e292d;
  --stone-3: #3d363a;
  --bronze: #a8692f;
  --bronze-hi: #d49a4a;
  --gold: #ffd25c;
  --gold-deep: #e0a526;
  --gold-shadow: #4a2a0e;
  --cream: #f1e6cc;
  --muted: #bcae94;
  --dim: #8d8170;
  --parchment: #ead9b0;
  --ink: #3b2716;
  --ember: #ff9a3c;
  --rune: #5fe3e8;
  --leaf: #7cc35a;
  --danger: #e2553e;
  --pixel: "Hearth Pixel", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 170, 70, .07), transparent 60%),
    linear-gradient(rgba(14, 10, 12, .86), rgba(14, 10, 12, .86)),
    url("img/stone-tile.png");
  background-size: auto, auto, 48px 48px;
  image-rendering: pixelated;
  color: var(--cream);
  font-family: var(--pixel);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.px, .px img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff1b8; }
:focus-visible { outline: 3px solid var(--rune); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; line-height: 1.25; margin: 0; }
.gold {
  color: var(--gold);
  text-shadow: 0 2px 0 var(--gold-shadow), 2px 2px 0 var(--gold-shadow), 0 0 18px rgba(255, 190, 80, .18);
}
.eyebrow { font-size: 16px; color: var(--bronze-hi); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.section { padding: 64px 0; position: relative; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }
@media (min-width: 760px) { .section-head h2 { font-size: 40px; } .section { padding: 80px 0; } }

/* ornamental divider made of pixel diamonds */
.rule { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 14px auto 0; }
.rule::before, .rule::after { content: ""; height: 4px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--bronze) 30%, var(--bronze-hi)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--gold-shadow); }

/* ---------- 9-slice frames from the game's UI kit ---------- */
.frame-stone {
  border: 24px solid transparent; border-image: url("ui/panel_stone.png") 12 / 24px round; image-rendering: pixelated;
  background: linear-gradient(rgba(26, 22, 26, .9), rgba(20, 17, 20, .94)), url("img/stone-tile.png") 0 0 / 48px 48px;
}
.frame-scroll { border: 32px solid transparent; border-image: url("ui/dialogue_frame.png") 16 fill / 32px round; image-rendering: pixelated; }
.frame-login { border: 48px solid transparent; border-image: url("ui/login_frame.png") 24 fill / 48px round; image-rendering: pixelated; }
@media (max-width: 559px) {
  .frame-login { border-width: 24px; border-image-width: 24px; }
  .frame-scroll { border-width: 16px; border-image-width: 16px; }
}
.frame-stone > *, .frame-scroll > *, .frame-login > * { image-rendering: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 14px;
  border: 12px solid transparent; border-image: url("ui/button.png") 6 fill / 12px stretch;
  image-rendering: pixelated;
  font-family: var(--pixel); font-weight: 700; font-size: 16px; line-height: 1;
  color: var(--gold); text-decoration: none; text-shadow: 0 2px 0 #1d1208;
  cursor: pointer; background: none; white-space: nowrap;
  transition: filter .15s ease, transform .1s ease;
}
.btn:hover { filter: brightness(1.18); color: #fff0b0; }
.btn:active { border-image-source: url("ui/button_pressed.png"); transform: translateY(1px); }
.btn-lg { min-height: 68px; font-size: 24px; padding: 0 18px; }
.btn img { width: 24px; height: 24px; image-rendering: pixelated; }
@media (max-width: 559px) { .btn-lg { font-size: 16px; min-height: 60px; } }
@media (max-width: 479px) { .hide-xs { display: none; } }
@media (min-width: 760px) { .btn-lg { font-size: 24px; min-height: 76px; padding: 0 26px; } }

.badge-store {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px;
  border: 2px solid #6d6157; border-radius: 12px; background: rgba(10, 8, 9, .72);
  color: var(--cream); text-decoration: none; line-height: 1.15;
  box-shadow: inset 0 0 0 2px #1a1517;
}
.badge-store svg { width: 26px; height: 26px; flex: none; }
.badge-store small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.badge-store strong { font-size: 16px; font-weight: 700; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 16, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 4px solid #0b0809;
  box-shadow: 0 2px 0 var(--bronze), 0 6px 18px rgba(0, 0, 0, .45);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px #0b0809, 0 0 0 3px var(--bronze); }
.nav { display: none; gap: 26px; }
.nav a { color: var(--cream); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--gold); }
.topbar .btn { min-height: 44px; font-size: 16px; border-width: 10px; border-image-width: 10px; padding: 0 8px; }
@media (min-width: 860px) { .nav { display: flex; } }
@media (max-width: 399px) { .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(860px, 100svh); display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(12, 8, 6, .35), rgba(12, 8, 6, .78) 75%),
    linear-gradient(180deg, rgba(12, 8, 10, .65) 0%, rgba(12, 8, 10, .1) 30%, rgba(12, 8, 10, .25) 70%, rgba(12, 8, 10, .9) 100%);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px var(--gutter) 150px; }
.logo { width: min(768px, 92vw); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .65)); image-rendering: pixelated; }
.tagline { font-size: 24px; margin: 22px 0 0; max-width: 18ch; }
.lede { max-width: 640px; color: #f3ead6; margin: 18px auto 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .7); font-size: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--cream); font-size: 16px; text-shadow: 0 2px 0 rgba(0, 0, 0, .8); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--gold-shadow); }
@media (min-width: 760px) { .tagline { font-size: 32px; max-width: none; } .hero-inner { padding-top: 72px; } }

/* fireflies */
.fireflies span {
  position: absolute; width: 6px; height: 6px; background: #fff3a0; border-radius: 1px;
  box-shadow: 0 0 10px 3px rgba(255, 220, 110, .65); opacity: 0; z-index: -1;
  animation: drift 9s ease-in-out infinite;
}
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .95; }
  50% { transform: translate(28px, -46px); opacity: .5; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translate(-16px, -90px); }
}

/* the dirt road along the bottom of the hero, with walking sprites */
.road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 128px;
  background: url("img/ground.png") 0 0 / 512px 128px repeat-x; image-rendering: pixelated;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .45);
}
.walker { position: absolute; left: 0; bottom: 34px; will-change: transform; animation: cross 26s linear infinite; }
.sprite { display: block; image-rendering: pixelated; background-repeat: no-repeat; animation: walk4 .6s steps(4) infinite; }
.s-knight { width: 96px; height: 96px; background-image: url("sprites/knight-walk.png"); background-size: 384px 96px; }
.s-monk { width: 96px; height: 96px; background-image: url("sprites/monk-walk.png"); background-size: 384px 96px; }
.s-chef { width: 96px; height: 96px; background-image: url("sprites/chef-walk.png"); background-size: 384px 96px; }
.s-goblin { width: 96px; height: 96px; background-image: url("sprites/goblin-walk.png"); background-size: 384px 96px; }
.s-chicken { width: 64px; height: 64px; background-image: url("sprites/chicken-walk.png"); background-size: 256px 64px; animation-duration: .45s; }
.s-cow { width: 128px; height: 96px; background-image: url("sprites/cow-walk.png"); background-size: 512px 96px; animation-duration: .8s; }
.s-tiger { width: 160px; height: 112px; background-image: url("sprites/tiger-walk.png"); background-size: 640px 112px; }
.s-knight, .s-monk, .s-chef, .s-goblin { animation-name: walk4; }
.s-chicken { animation-name: walk4c; }
.s-cow { animation-name: walk4w; }
.s-tiger { animation-name: walk4t; }
@keyframes walk4 { to { background-position: -384px 0; } }
@keyframes walk4c { to { background-position: -256px 0; } }
@keyframes walk4w { to { background-position: -512px 0; } }
@keyframes walk4t { to { background-position: -640px 0; } }
@keyframes cross { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
.w1 { animation-duration: 26s; animation-delay: -4s; }
.w2 { animation-duration: 26s; animation-delay: -6s; }
.w3 { animation-duration: 26s; animation-delay: -15s; }
.w4 { animation-duration: 18s; animation-delay: -11s; bottom: 42px; }
.w5 { animation-duration: 34s; animation-delay: -22s; bottom: 30px; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.swipe-hint { display: none; text-align: center; color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 0; }
@media (max-width: 699px) {
  /* phones: a swipeable strip of screenshots instead of a long stack */
  .gallery {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 86%; scroll-snap-align: center; }
  .swipe-hint { display: block; }
}
@media (min-width: 1100px) { .gallery { grid-template-columns: 1fr 1fr 1fr; gap: 32px 28px; } }
.shot { margin: 0; }
.shot button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 26px; }
.shot button:focus-visible { outline: 3px solid var(--rune); outline-offset: 4px; }
.phone {
  position: relative; display: block; padding: 9px 9px 9px 18px; border-radius: 26px;
  background: linear-gradient(145deg, #4b4249, #1b171a 40%, #0c0a0b);
  box-shadow: 0 0 0 2px #5c4a3a, 0 0 0 4px #0b0809, 0 18px 34px rgba(0, 0, 0, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.phone::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 34px; margin-top: -17px; border-radius: 3px; background: #050405; }
.phone img { display: block; width: 100%; aspect-ratio: 1600 / 787; object-fit: cover; border-radius: 17px; background: #1a1517; }
.shot button:hover .phone { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--bronze-hi), 0 0 0 4px #0b0809, 0 26px 40px rgba(0, 0, 0, .6); }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; }
.shot figcaption b { color: var(--cream); font-weight: 700; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 6, 7, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; width: min(1500px, 94vw); text-align: center; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 0 0 3px var(--bronze), 0 0 0 6px #0b0809; background: #111; }
.lightbox figcaption { margin-top: 14px; color: var(--cream); }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(20, 16, 18, .85); border: 2px solid var(--bronze); color: var(--gold); font: 700 24px/1 var(--pixel); cursor: pointer; border-radius: 8px; }
.lb-btn:hover { background: #2a2226; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lb-close img { width: 32px; height: 32px; image-rendering: pixelated; }

/* ---------- features ---------- */
.features { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { position: relative; padding: 8px 6px 10px; }
.feature .icon { width: 72px; height: 72px; image-rendering: pixelated; margin: -4px 0 10px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)); }
.feature h3 { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
.feature p { margin: 0; color: #ddd0b4; }
.skills { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 16px; }
.skills img { width: 100%; max-width: 40px; aspect-ratio: 1; image-rendering: pixelated; padding: 3px; background: rgba(0, 0, 0, .35); border: 2px solid #4c4136; justify-self: center; }

/* touch-native band */
.touch { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; margin-top: 64px; }
@media (min-width: 900px) { .touch { grid-template-columns: 300px 1fr; gap: 64px; } }
.phone-portrait { width: 240px; margin: 0 auto; padding: 16px 9px 9px; border-radius: 34px; }
.phone-portrait::before { left: 50%; top: 6px; width: 46px; height: 6px; margin: 0 0 0 -23px; }
.phone-portrait img { aspect-ratio: 600 / 1220; border-radius: 24px; }
.touch h3 { font-size: 32px; margin-bottom: 14px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: #e3d7bc; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--gold-shadow); }
.ticks b { color: var(--cream); }

/* ---------- world ---------- */
#screens { padding-bottom: 40px; }
.world-section { padding-bottom: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28) 12%, rgba(0, 0, 0, .28) 88%, transparent); }
.regions { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .regions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .regions { grid-template-columns: 1fr 1fr 1fr; } }
.region { display: flex; flex-direction: column; }
.region-img { position: relative; display: block; border: 4px solid #0b0809; box-shadow: 0 0 0 2px var(--bronze), 0 14px 28px rgba(0, 0, 0, .5); overflow: hidden; background: #1a1517; }
.region-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.region:hover .region-img img { transform: scale(1.04); }
.tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(12, 9, 10, .85); border: 2px solid var(--bronze); color: var(--gold); }
.tag.danger { border-color: var(--danger); color: #ffb39f; }
.region h3 { font-size: 24px; line-height: 1.3; margin: 18px 0 6px; }
.region p { margin: 0; color: #d9ccb0; }
.road-divider { position: relative; margin-top: 72px; overflow: hidden; overflow: clip visible; }
.w6 { animation-duration: 20s; animation-delay: -7s; bottom: 18px; }
.w7 { animation-duration: 30s; animation-delay: -21s; }
.stage .walker { animation-name: crossbox; }
.stage .walker { bottom: 4px; animation-duration: 8s; }
@keyframes crossbox { from { left: -170px; } to { left: 100%; } }

/* ---------- beta ---------- */
.beta-card { max-width: 1000px; margin: 0 auto; text-align: center; }
.beta-card h2 { font-size: 32px; }
.beta-card p { color: #e1d5ba; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 30px; display: grid; gap: 14px; text-align: left; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .beta-card h2 { font-size: 40px; } }
.steps li { counter-increment: step; position: relative; padding: 14px 14px 14px 58px; background: rgba(0, 0, 0, .3); border: 2px solid #4a3e33; min-height: 72px; }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; color: var(--ink); background: var(--gold); box-shadow: inset -3px -3px 0 var(--gold-deep), 0 0 0 2px var(--gold-shadow); }
.beta-note { font-size: 16px; color: var(--muted); margin: 18px 0 0; }
.beta-note[hidden] { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 4px solid #0b0809; box-shadow: 0 -2px 0 var(--bronze); background: rgba(10, 8, 9, .85); padding: 44px 0 36px; text-align: center; }
.footer .flogo { width: 256px; image-rendering: pixelated; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 22px 0 18px; }
.footer nav a { color: var(--cream); text-decoration: none; }
.footer nav a:hover { color: var(--gold); text-decoration: underline; }
.footer small { display: block; color: var(--dim); font-size: 12px; line-height: 1.8; }

/* ---------- document pages (privacy, support, 404) ---------- */
.doc-hero { padding: 56px 0 24px; text-align: center; }
.doc-hero h1 { font-size: 32px; }
@media (min-width: 760px) { .doc-hero h1 { font-size: 48px; } }
.doc-hero p { color: var(--muted); margin: 10px 0 0; }
.doc { max-width: 860px; margin: 0 auto 72px; }
.doc .frame-scroll { padding: 6px 4px; }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: #ecdfc4; -webkit-font-smoothing: antialiased; }
.prose h2 { font-size: 24px; color: var(--gold); text-shadow: 0 2px 0 var(--gold-shadow); margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 6px; }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--cream); margin: 20px 0 6px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--bronze-hi); }
.prose strong { color: #fff4dc; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1px solid #4a3e33; }
.prose th { font-family: var(--pixel); font-weight: 700; color: var(--gold); font-size: 16px; -webkit-font-smoothing: none; }
.table-scroll { overflow-x: auto; }
.callout { background: rgba(0, 0, 0, .3); border-left: 4px solid var(--gold); padding: 12px 16px; margin: 0 0 16px; }

/* parchment scroll: dark ink on the game's parchment panel */
.frame-scroll .prose { color: var(--ink); background: rgba(240, 226, 190, .55); box-shadow: 0 0 0 8px rgba(240, 226, 190, .55); }
.frame-scroll .prose h2 { color: #7a2a12; text-shadow: none; }
.frame-scroll .prose h3, .frame-scroll .prose strong { color: #24160a; }
.frame-scroll .prose a { color: #8c3510; font-weight: 600; }
.frame-scroll .prose a:hover { color: #b04a14; }
.frame-scroll .prose li::marker { color: #9a5a22; }
.frame-scroll .callout { background: rgba(120, 72, 24, .1); border-left-color: #b0702a; }
.frame-scroll .faq details, .frame-scroll.faq details { border-bottom-color: rgba(110, 70, 30, .3); }
.frame-scroll .faq summary { color: #6b260e; }
.frame-scroll .faq summary::after { color: #a0612a; }
.faq details { border-bottom: 2px solid #3d332b; padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--pixel); font-weight: 700; font-size: 16px; color: var(--gold); padding: 14px 34px 14px 0; position: relative; -webkit-font-smoothing: none; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--bronze-hi); }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 12px; }
.contact-card { text-align: center; margin-top: 30px; }
.contact-card p { font-family: var(--pixel); -webkit-font-smoothing: none; color: var(--muted); }
.contact-card .email { font-size: 24px; font-weight: 700; word-break: break-all; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 56px 0; }
.lost h1 { font-size: 64px; }
.lost p { color: var(--muted); max-width: 480px; margin: 12px auto 26px; }
.lost .stage { position: relative; height: 112px; width: min(420px, 90vw); margin: 0 auto 18px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sprite, .walker, .fireflies span { animation: none !important; }
  .walker { transform: none; }
  .w1 { left: 8%; } .w2 { left: 24%; } .w3 { left: 46%; } .w4 { left: 66%; } .w5 { left: 80%; } .w6 { left: 30%; } .w7 { left: 62%; }
  .fireflies { display: none; }
}
