/* The Second Bell: The Tower — page styles.
   Palette is the game's own (tools/palette.json): INK, S1-S6 stone, V violets, A ambers, T embers. */

@font-face {
  font-family: 'KenPixel';
  src: url('../fonts/KenPixel.ttf') format('truetype');
  font-display: swap;
}

:root {
  --ink: #0B0A12;
  --s1: #1A1726;
  --s2: #2B2638;
  --s3: #433C54;
  --s4: #6A6178;
  --s5: #A39BAE;
  --s6: #E6DFD0;
  --v0: #4B2A7B;
  --v1: #8F5BD6;
  --v2: #C9A4FF;
  --a0: #7A4410;
  --a1: #D98A1E;
  --a2: #F2C14E;
  --a3: #FFF0A8;
  --t0: #E8631A;
  --t1: #FF9A3D;
  --r1: #8E1B2C;
  --c1: #2FC4B2;

  --bg: var(--ink);
  --text: var(--s6);
  --muted: var(--s5);
  --dim: var(--s4);
  --accent: var(--a1);
  --lamp: var(--a3);

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --pixel: 'KenPixel', 'Courier New', monospace;

  --fs-1: clamp(2.6rem, 2rem + 4.5vw, 5.4rem);
  --fs-2: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.2rem);
  --fs-small: 0.9375rem;

  --measure: 62ch;
  --gutter: 16px;
  --px: 2;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img, canvas { display: block; }
.pixel, .spr, .px-img { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -0.012em; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--a2); text-decoration-color: rgba(242,193,78,.4); text-underline-offset: 3px; }
a:hover { color: var(--a3); }

:focus-visible { outline: 3px solid var(--a2); outline-offset: 4px; }

.lang-es { display: none; }
html[lang="es"] .lang-en { display: none; }
html[lang="es"] .lang-es { display: revert; }
html[lang="es"] span.lang-es, html[lang="es"] em.lang-es { display: inline; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sprites: a strip of frames, played with steps() */
.spr {
  display: inline-block;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(var(--w) * var(--n, 1) * var(--s) * 1px) calc(var(--h) * var(--s) * 1px);
  background-position: 0 0;
  --s: 2;
  animation: strip calc(var(--n, 1) / var(--fps, 6) * 1s) steps(var(--n, 1)) infinite;
  animation-play-state: var(--play, running);
  flex: none;
}
.spr[data-n="1"], .spr.static { animation: none; }
@keyframes strip { to { background-position-x: calc(var(--w) * var(--n, 1) * var(--s) * -1px); } }

/* Fixed controls */
.controls {
  position: fixed; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right));
  z-index: 50; display: flex; gap: 6px;
}
.controls button {
  font: 500 0.8125rem/1 var(--serif);
  letter-spacing: 0.02em;
  color: var(--s6);
  background: rgba(11,10,18,.72);
  border: 1px solid var(--s3);
  border-radius: 2px;
  padding: 9px 11px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.controls button:hover { border-color: var(--s4); }
.controls button[aria-pressed="true"] { color: var(--a2); border-color: var(--a0); }
.controls .lang span { opacity: .45; }
.controls .lang span[aria-current="true"] { opacity: 1; color: var(--a2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #090812;
  isolation: isolate;
}
.hero .layer {
  position: absolute; left: 50%; top: 50%;
  width: calc(960px * var(--px)); height: calc(540px * var(--px));
  margin-left: calc(-480px * var(--px)); margin-top: calc(-270px * var(--px));
  background-repeat: no-repeat; background-size: 100% 100%;
  will-change: transform;
}
.hero .sky { background-image: url('../img/title_sky.png'); }
.hero .far { background-image: url('../img/title_forest_far.png'); }
.hero .near { background-image: url('../img/title_forest_near.png'); }
.hero .ground { background-image: url('../img/title_ground.png'); }
.hero .dusk {
  position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 68%, rgba(217,138,30,.22), rgba(217,138,30,0) 70%);
  pointer-events: none;
}
.hero { --tx: 50%; }
.hero .tower {
  position: absolute; left: var(--tx); bottom: 0;
  width: calc(143px * var(--tpx)); height: calc(222px * var(--tpx));
  transform: translateX(-50%) translateY(var(--tower-y, 0));
  background: url('../img/title_tower.png') no-repeat 0 0 / 100% 100%;
  will-change: transform;
}
.hero .tower .glow {
  position: absolute; left: calc(70px * var(--tpx)); top: calc(66px * var(--tpx));
  width: calc(90px * var(--tpx)); height: calc(90px * var(--tpx));
  margin: calc(-45px * var(--tpx)) 0 0 calc(-45px * var(--tpx));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,168,.55), rgba(255,154,61,.18) 45%, rgba(255,154,61,0) 70%);
  animation: breathe 4.2s ease-in-out infinite;
  mix-blend-mode: screen;
}
.hero .tower .window {
  position: absolute; left: calc(61px * var(--tpx)); top: calc(52px * var(--tpx));
  --s: var(--tpx); opacity: .85; mix-blend-mode: screen;
}
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }

.hero .prop { position: absolute; bottom: 0; }
.hero .crow { --s: var(--tpx); left: calc(var(--tx) + 92px * var(--tpx)); bottom: calc(6px * var(--tpx)); animation: crow-bob 6s steps(1) infinite; }
@keyframes crow-bob { 0%, 92% { transform: translateY(0); } 93%, 97% { transform: translateY(calc(-1px * var(--tpx))); } }
.hero .banner { --s: var(--tpx); left: calc(var(--tx) - 120px * var(--tpx)); bottom: calc(4px * var(--tpx)); }
.hero .arch { --s: var(--tpx); left: calc(var(--tx) + 86px * var(--tpx)); bottom: calc(2px * var(--tpx)); }
.hero .grass1 { --s: var(--tpx); left: calc(var(--tx) - 150px * var(--tpx)); bottom: calc(3px * var(--tpx)); }
.hero .grass2 { --s: var(--tpx); left: calc(var(--tx) + 150px * var(--tpx)); bottom: calc(2px * var(--tpx)); }

.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero .copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 3;
  background: linear-gradient(to top, rgba(11,10,18,.92) 0%, rgba(11,10,18,.6) 45%, rgba(11,10,18,0) 100%);
  padding-top: 18vh;
}
.hero .title {
  font-size: var(--fs-1);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--s6);
  text-shadow: 0 2px 24px rgba(11,10,18,.8);
}
.hero .title em { font-style: italic; font-weight: 300; }
.hero .subtitle {
  margin: 10px 0 0;
  font-size: var(--fs-3);
  color: var(--a2);
  font-style: italic;
}
.hero .motto {
  margin: 18px auto 0;
  font-family: var(--pixel);
  font-size: calc(var(--fs-small) + 2px);
  letter-spacing: 0.08em;
  color: var(--s5);
}
.hero .cue {
  margin: 28px auto 0;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--s5); font-size: var(--fs-small); font-style: italic;
  text-decoration: none;
}
.hero .cue::before { content: ''; width: 1px; height: 28px; background: linear-gradient(to bottom, var(--a2), transparent); animation: drip 2.6s ease-in-out infinite; }
@keyframes drip { 0%,100% { transform: scaleY(.6); opacity: .5; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }
@media (min-width: 1000px) {
  .hero { --tx: 64%; }
  .hero .copy { text-align: left; padding-top: 10vh; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .hero .copy > * { max-width: 620px; margin-left: 0; }
  .hero .copy .cue { margin-left: 0; }
  .hero .title { font-size: clamp(4rem, 6.5vw, 7rem); }
}

/* Load sequence: one orchestrated moment */
.hero .layer, .hero .tower, .hero .prop, .hero .copy > * { opacity: 0; }
.hero.ready .layer { animation: fade-in 1.4s ease-out forwards; }
.hero.ready .tower { animation: tower-rise 2.2s cubic-bezier(.2,.7,.2,1) .3s forwards; }
.hero.ready .prop { animation: fade-in 1s ease-out 1.6s forwards; }
.hero.ready .copy > * { animation: fade-in 1.2s ease-out forwards; }
.hero.ready .copy > :nth-child(1) { animation-delay: 1.6s; }
.hero.ready .copy > :nth-child(2) { animation-delay: 2.0s; }
.hero.ready .copy > :nth-child(3) { animation-delay: 2.4s; }
.hero.ready .copy > :nth-child(4) { animation-delay: 3.0s; }
@keyframes fade-in { to { opacity: 1; } }
@keyframes tower-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(calc(var(--tower-y, 0px) + 60px * var(--tpx) / 3)); }
  to { opacity: 1; transform: translateX(-50%) translateY(var(--tower-y, 0px)); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 12vh, 140px) var(--gutter); }
.wrap { max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: var(--fs-2); max-width: 20ch; }
.section h2 + p, .section .lede { margin-top: 1.1em; }
.lede { font-size: var(--fs-3); line-height: 1.4; color: var(--s6); }
.note { color: var(--muted); font-size: var(--fs-small); }
.caption {
  font-family: var(--pixel); font-size: 13px; letter-spacing: .06em;
  color: var(--s4); margin: 10px 0 0;
}

/* ---------- Bell stage ---------- */
.bell-stage {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: #0d0b17;
  padding: 72px var(--gutter) 64px;
  isolation: isolate;
}
.bell-stage .backdrop {
  position: absolute; left: 50%; top: 50%;
  width: calc(304px * var(--bs)); height: calc(540px * var(--bs));
  transform: translate(-50%, -50%);
  background: url('../img/shelter_backdrop.png') no-repeat 0 0 / 100% 100%;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 100%);
}
.bell-stage .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 60%, rgba(13,11,23,0) 40%, #0d0b17 100%);
}
.bell-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bell-stage.shake { animation: none; }
.bell-stage .stage-inner { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 760px; }

.bell-frame {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  margin: 0 auto;
}
.altar {
  position: relative; display: grid; grid-template-columns: auto auto auto; align-items: end; gap: calc(6px * var(--bs));
}
.altar .banner { --s: var(--bs); opacity: .55; transition: opacity .6s ease, filter .6s ease; filter: brightness(.8); }
.altar .banner.lit { opacity: 1; filter: brightness(1.15) drop-shadow(0 0 calc(6px * var(--bs)) rgba(242,193,78,.35)); }
.altar .lantern { --s: var(--bs); position: absolute; top: calc(6px * var(--bs)); }
.altar .lantern.l { left: calc(-20px * var(--bs)); } .altar .lantern.r { right: calc(-20px * var(--bs)); }
.lantern-glow { position: absolute; width: calc(60px * var(--bs)); height: calc(60px * var(--bs)); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,168,.28), rgba(255,154,61,0) 70%); pointer-events: none; animation: breathe 3.1s ease-in-out infinite; }
.lantern-glow.l { left: calc(-43px * var(--bs)); top: calc(-12px * var(--bs)); }
.lantern-glow.r { right: calc(-43px * var(--bs)); top: calc(-12px * var(--bs)); animation-delay: -1.4s; }

.bell-btn {
  appearance: none; border: 0; padding: 0; margin: 0;
  background: transparent; cursor: pointer;
  position: relative; display: block;
  width: calc(48px * var(--bs)); height: calc(64px * var(--bs));
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bell-btn .spr { --s: var(--bs); position: absolute; inset: 0; }
.bell-btn .toll { display: none; }
.bell-btn.tolling .idle { display: none; }
.bell-btn.tolling .toll { display: block; animation: toll .72s steps(6) 1 forwards; }
@keyframes toll { to { background-position-x: calc(48px * 6 * var(--bs) * -1); } }
.bell-btn:hover .idle { filter: brightness(1.12); }
.bell-btn::after {
  content: ''; position: absolute; left: 50%; bottom: calc(-8px * var(--bs));
  width: calc(44px * var(--bs)); height: calc(10px * var(--bs)); margin-left: calc(-22px * var(--bs));
  border-radius: 50%; background: radial-gradient(ellipse, rgba(242,193,78,.35), rgba(242,193,78,0) 70%);
  animation: breathe 2.6s ease-in-out infinite;
}
.bell-btn.tolled::after { animation: none; opacity: 0; }

.summon {
  position: relative; height: calc(12px * var(--bs)); width: calc(48px * var(--bs)); margin-top: calc(-3px * var(--bs));
  pointer-events: none;
}
.summon .light {
  position: absolute; left: 50%; bottom: 0; width: calc(26px * var(--bs)); height: calc(70px * var(--bs));
  margin-left: calc(-13px * var(--bs));
  background: linear-gradient(to top, rgba(255,240,168,.85), rgba(255,240,168,0));
  transform-origin: bottom; transform: scaleX(.1); opacity: 0;
}
.summon.active .light { animation: light-col .9s ease-out forwards; }
@keyframes light-col { 0% { transform: scaleX(.1); opacity: 0; } 25% { transform: scaleX(1.1); opacity: 1; } 100% { transform: scaleX(.3); opacity: 0; } }
.summon .figure {
  --s: var(--bs); position: absolute; left: 50%; bottom: 0; margin-left: calc(-16px * var(--bs));
  clip-path: inset(100% 0 0 0); opacity: 0;
  --fps: 2;
}
.summon.active .figure { animation: figure-rise .9s steps(8) .2s forwards; }
.summon.stay .figure { clip-path: inset(0 0 0 0); opacity: 1; }
@keyframes figure-rise { from { clip-path: inset(100% 0 0 0); opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.summon .dust { position: absolute; left: 50%; bottom: 0; width: calc(4px * var(--bs)); height: calc(2px * var(--bs));
  background: url('../img/shelter_bell_dust.png') no-repeat 0 0 / 100% 100%; opacity: 0; }
.summon.active .dust { animation: dust-puff .8s ease-out .15s forwards; }
.summon .dust:nth-child(3) { --dx: -1; } .summon .dust:nth-child(4) { --dx: 1; } .summon .dust:nth-child(5) { --dx: -2; --dy: .6; } .summon .dust:nth-child(6) { --dx: 2; --dy: .6; }
@keyframes dust-puff { 0% { opacity: 1; transform: translate(0,0); } 100% { opacity: 0; transform: translate(calc(var(--dx, 0) * 9px * var(--bs)), calc(var(--dy, 1) * -10px * var(--bs))); } }

.bell-copy { margin-top: 28px; min-height: 7.5em; }
.bell-copy h2 { font-size: var(--fs-2); }
.bell-copy p { margin: .6em auto 0; max-width: 46ch; }
.bell-copy .prompt { font-family: var(--pixel); color: var(--a2); font-size: 15px; letter-spacing: .08em; margin-top: 1.2em; }
.bell-copy .answer { font-family: var(--pixel); font-size: 17px; letter-spacing: .06em; color: var(--a3); min-height: 1.4em; margin: 1em 0 0; }
.bell-copy .after { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .9s ease .2s, max-height .9s ease; }
.bell-stage.tolled .bell-copy .after { opacity: 1; max-height: 30em; }
.bell-stage.tolled .bell-copy .before { display: none; }

/* ---------- Ascent (sticky scene + steps) ---------- */
.ascent { background: linear-gradient(to bottom, #0d0b17, var(--ink) 20%); }
.ascent .intro { margin-bottom: clamp(32px, 6vh, 72px); }
.ascent-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.ascent-scene {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 10px 0 14px;
  background: linear-gradient(to bottom, var(--ink) 80%, rgba(11,10,18,0));
}
.scene-frame {
  position: relative; overflow: hidden;
  width: calc(304px * var(--as)); height: calc(var(--ah) * var(--as) * 1px);
  box-shadow: 0 0 0 1px var(--s2), 0 20px 60px rgba(0,0,0,.6);
  background: #15121f;
}
.scene-map {
  position: absolute; left: 0; top: 0; width: calc(304px * var(--as)); height: calc(1080px * var(--as));
  background: url('../img/refuge_town_backdrop.png') no-repeat 0 0 / 100% 100%;
  transform: translateY(calc(var(--cam, 0) * var(--as) * -1px));
  transition: transform .9s cubic-bezier(.22,.8,.2,1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .scene-map { transition: none; } }
.scene-map .place {
  position: absolute; --s: var(--as);
  left: calc(var(--x) * var(--as) * 1px); top: calc(var(--y) * var(--as) * 1px);
}
.scene-map .place.ruin { filter: saturate(.6) brightness(.8); }
.scene-map .place.built { opacity: 0; }
.scene-map .place.built.on { animation: build .7s steps(6) forwards; }
.scene-map .place.ruin.off { animation: unbuild .4s steps(4) forwards; }
@keyframes build { from { opacity: 0; transform: translateY(calc(-6px * var(--as))); } to { opacity: 1; transform: none; } }
@keyframes unbuild { to { opacity: 0; } }
.scene-map .life { opacity: 0; transition: opacity .6s ease; }
.scene-map .life.on { opacity: 1; }
.scene-map .walker { position: absolute; --s: var(--as); left: 0; top: 0; opacity: 0; transition: opacity .6s ease; }
.scene-map .walker.on { animation: var(--walk) linear infinite; opacity: 1; }
.scene-map .mirror .spr { transform: scaleX(-1); }
.scene-frame .frame-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px;
  font-family: var(--pixel); font-size: 12px; letter-spacing: .06em; color: var(--s5);
  background: linear-gradient(to top, rgba(11,10,18,.85), rgba(11,10,18,0)); pointer-events: none;
}
.scene-frame .dusk-film { position: absolute; inset: 0; background: #0B0A12; opacity: .55; transition: opacity 1.2s ease; pointer-events: none; mix-blend-mode: multiply; }
.scene-frame[data-stage="1"] .dusk-film { opacity: .42; }
.scene-frame[data-stage="2"] .dusk-film { opacity: .3; }
.scene-frame[data-stage="3"] .dusk-film { opacity: .18; }
.scene-frame[data-stage="4"] .dusk-film { opacity: .06; }

.steps { position: relative; z-index: 1; }
.step {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--ah, 300) * var(--as, 1) * 1px + 40px) 0 24px;
  opacity: .32; transition: opacity .5s ease;
}
.step.active { opacity: 1; }
.step .floor {
  font-family: var(--pixel); font-size: 15px; letter-spacing: .1em; color: var(--a1); margin-bottom: 10px;
}
.step h3 { font-size: var(--fs-2); }
.step p { margin-top: .7em; max-width: 46ch; }

@media (min-width: 900px) {
  .ascent-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: start; }
  .ascent-scene { order: 2; top: 0; height: 100svh; align-items: center; padding: 0; background: none; }
  .steps { order: 1; }
  .step { min-height: 92svh; justify-content: center; padding: 24px 0; }
}

/* ---------- Pillars ---------- */
.pillars .wrap { display: grid; gap: 56px; }
.pillar { display: grid; gap: 20px; align-content: start; }
.pillar .art {
  position: relative; height: 200px; display: flex; align-items: flex-end; justify-content: center; gap: 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(217,138,30,.12), rgba(217,138,30,0) 70%);
  border-bottom: 1px solid var(--s2);
  overflow: hidden;
}
.pillar .art .spr { --s: 2; }
.pillar .art .forge-wrap { position: relative; }
.pillar .art .forge-wrap .smoke { position: absolute; left: 16px; bottom: 108px; --fps: 4; }
.pillar .art .forge-wrap .glint { position: absolute; left: 104px; bottom: 20px; --fps: 5; }
.pillar .art .floor-wrap { position: relative; display: flex; align-items: flex-end; gap: 12px; }
.pillar .art .floor-wrap .enemy { --fps: 3; }
.pillar .art .floor-wrap .candles { --fps: 5; margin: 0 0 10px; }
.pillar h3 { font-size: var(--fs-3); }
.pillar p { color: var(--s5); margin-top: .5em; }
@media (min-width: 900px) { .pillars .wrap { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- Concept art ---------- */
.concept .pair { display: grid; gap: 28px; margin-top: 40px; }
.concept figure { margin: 0; }
.concept .shot {
  position: relative; overflow: hidden; background: var(--s1);
  aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--s2);
}
.concept .shot.tall { aspect-ratio: 3 / 4; }
.concept .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--pan, 50%); transition: object-position .3s linear; }
.concept figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; color: var(--s5); font-size: var(--fs-small); }
.concept figcaption .tag { font-family: var(--pixel); font-size: 12px; letter-spacing: .06em; color: var(--v2); white-space: nowrap; }
@media (min-width: 720px) { .concept .pair { grid-template-columns: 3fr 2fr; align-items: start; } .concept .shot.tall { aspect-ratio: 7 / 10; } }

/* ---------- Status ---------- */
.status { border-top: 1px solid var(--s2); }
.status .wrap { display: grid; gap: 40px; }
.status dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; align-content: start; }
.status dt { color: var(--s4); font-style: italic; }
.status dd { margin: 0; }
.status .parade { display: flex; align-items: flex-end; gap: 18px; height: 80px; }
.status .parade .spr { --s: 2; --fps: 2; }
@media (min-width: 900px) { .status .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; } }

footer {
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  color: var(--s4); font-size: var(--fs-small);
}
footer .wrap { display: grid; gap: 8px; }
footer .motto { font-family: var(--pixel); letter-spacing: .08em; color: var(--s4); }

/* ---------- Reduced motion: a calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  .spr { animation: none !important; }
  .hero .layer, .hero .tower, .hero .prop, .hero .copy > * { opacity: 1; animation: none !important; }
  .hero .tower .glow, .lantern-glow, .bell-btn::after, .hero .crow { animation: none !important; }
  .bell-btn.tolling .toll { animation: none; background-position-x: calc(48px * 5 * var(--bs) * -1); }
  .summon.active .light, .summon.active .dust { animation: none; opacity: 0; }
  .summon.active .figure { animation: none; clip-path: inset(0 0 0 0); opacity: 1; }
  .scene-map .place.built.on { animation: none; opacity: 1; }
  .scene-map .place.ruin.off { animation: none; opacity: 0; }
  .scene-map .walker.on { animation: none !important; }
  .step { transition: none; }
}
