:root {
  --bg: #FBF5E9;
  --card: #FFFFFF;
  --card-edge: #E7DCC6;
  --soft: #F4EBDA;
  --line: #ECE2CF;
  --ink: #2D2A24;
  --ink-soft: #6F6555;
  --ink-faint: #A99E8A;
  --gold: #F2B544;
  --gold-edge: #CF8E1F;
  --gold-soft: #FFF1D2;
  --gold-ink: #8A5A00;
  --green: #2F8350;
  --green-edge: #1F5E39;
  --green-soft: #E2F2E5;
  --green-ink: #21613A;
  --ember: #D9662A;
  --ember-edge: #A94A18;
  --ember-soft: #FDE8DA;
  --sky: #4A74BF;
  --sky-edge: #33548F;
  --sky-soft: #E4ECF9;
  --berry: #A84F8D;
  --berry-edge: #7E3568;
  --berry-soft: #F6E3F0;
  --danger: #C2483D;
  --part-0: #2F8350;
  --part-0-edge: #1F5E39;
  --part-0-soft: #E2F2E5;
  --part-1: #4A74BF;
  --part-1-edge: #33548F;
  --part-1-soft: #E4ECF9;
  --part-2: #D9662A;
  --part-2-edge: #A94A18;
  --part-2-soft: #FDE8DA;
  --part-3: #A84F8D;
  --part-3-edge: #7E3568;
  --part-3-soft: #F6E3F0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

/* The app's day identity (D-043): cream, chunky 3D buttons, gold rewards, one color per part.
   One idea per screen, huge title, little text, big living art. Night only in the Modo leitura. */

@font-face { font-family: 'Baloo 2'; font-weight: 500; font-display: swap; src: url('/fonts/baloo2-500.woff') format('woff'); }
@font-face { font-family: 'Baloo 2'; font-weight: 600; font-display: swap; src: url('/fonts/baloo2-600.woff') format('woff'); }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('/fonts/baloo2-700.woff') format('woff'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('/fonts/baloo2-800.woff') format('woff'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 1rem/1.45 'Baloo 2', system-ui, sans-serif;
  overflow-wrap: break-word;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--green-ink); font-weight: 700; }
a:hover { color: var(--green-edge); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--gold); }

h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.015em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.c-green { color: var(--green); }
.c-ember { color: var(--ember-edge); }
.c-berry { color: var(--berry); }
.c-sky { color: var(--sky); }

/* Top bar: fixed like the app's, and it keeps score as the page goes by. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 1.6875rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.hud { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.hud-item { display: flex; align-items: center; gap: 4px; }
.hud-item img { width: 30px; height: 30px; }
.hud-lantern { color: var(--ember-edge); }
.hud.is-bumped .hud-item { animation: bump 420ms cubic-bezier(.3, 1.6, .5, 1); }

/* Buttons: a chunky face over a darker edge that sinks on press, like the app's. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 8px 24px;
  border: 2px solid transparent; border-radius: var(--radius-lg);
  font: 800 1.0625rem/1.25 'Baloo 2', system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 transparent; }
.btn-big { min-height: 60px; padding-inline: 40px; font-size: 1.25rem; }
.btn-small { min-height: 40px; padding: 4px 14px; font-size: 0.9375rem; }
.btn-primary { background: var(--green); color: var(--card); box-shadow: 0 5px 0 var(--green-edge); }
.btn-primary:hover { color: var(--card); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 5px 0 var(--card-edge); }
.btn-secondary:hover { color: var(--ink); }
.btn-night { background: #1C2E33; color: #F6F2E9; border-color: #2C4248; box-shadow: 0 5px 0 #0E1A1D; }
.btn-night .icon { width: 16px; height: 16px; }

/* Hero */
.hero { display: grid; gap: 8px; padding-block: 16px 0; }
.hero-copy { display: grid; gap: 14px; justify-items: center; text-align: center; }
.lead { font-size: 1.1875rem; line-height: 1.4; color: var(--ink-soft); max-width: 30rem; }
.hero-copy .btn { margin-top: 6px; }
.note { font-size: 0.9375rem; color: var(--ink-soft); margin-top: 6px; }

.hero-scene { position: relative; width: min(100%, 480px); aspect-ratio: 1; justify-self: center; }
.road { position: absolute; inset: 0; width: 100%; height: 100%; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-ground { stroke: var(--green-soft); stroke-width: 56; }
.road-dots { stroke: var(--card-edge); stroke-width: 8; stroke-dasharray: 0.1 15; }
.road-lit { stroke: var(--gold); }
.hero-done { position: absolute; left: 84%; top: 8%; width: 18%; transform: translate(-50%, -50%); }
.hero-locked { position: absolute; left: 35%; top: 90%; width: 18%; transform: translate(-50%, -50%); opacity: 0.45; }
.today { position: absolute; left: 67.5%; top: 47.5%; width: 41%; transform: translate(-50%, -50%); display: block; text-decoration: none; }
.today-stone { position: relative; width: 100%; transition: transform 120ms ease; }
.today:hover .today-stone { transform: translateY(2px) scale(0.98); }
.today:active .today-stone { transform: translateY(3px) scale(0.96); }
.halo {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgb(242 203 126 / 0.5) 35%, rgb(225 182 109 / 0) 70%);
  animation: breathe 1.8s ease-in-out infinite alternate;
}
.bubble {
  position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%);
  padding: 7px 14px; border-radius: var(--radius-lg);
  background: var(--green); border-bottom: 5px solid var(--green-edge);
  color: var(--card); font-weight: 700; white-space: nowrap; font-size: 0.9375rem;
}
.bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  margin-top: 5px;
  border: 8px solid transparent; border-top-color: var(--green-edge); border-bottom: 0;
}
.live-folu { padding: 0; background: none; border: 0; cursor: pointer; animation: float 1.8s ease-in-out infinite alternate; }
.live-folu img { width: 100%; }
.live-folu.is-jumping { animation: jump 500ms cubic-bezier(.3, 1.6, .5, 1); }
.hero-folu { position: absolute; left: -2%; top: 30%; width: 56%; }
.folu-says {
  position: absolute; z-index: 2; left: 2%; top: 22%; max-width: 62%;
  padding: 8px 12px; border-radius: var(--radius-lg);
  background: var(--card); border: 2px solid var(--line); border-bottom: 5px solid var(--card-edge);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.25;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.folu-says.is-on { opacity: 1; transform: none; }

/* The stops that join the sections: the page itself is the trail. */
.trail-stop { display: grid; justify-items: center; gap: 6px; padding-block: 8px; }
.trail-dots { width: 8px; height: 56px; background: radial-gradient(circle, var(--card-edge) 4px, transparent 4.5px) center top / 8px 15px repeat-y; }
.is-lit .trail-dots { background-image: radial-gradient(circle, var(--gold) 4px, transparent 4.5px); }
.trail-stone { position: relative; width: 92px; }
.trail-stone > img { width: 100%; }
.js .trail-stop:not(.is-lit) .trail-stone > img { opacity: 0.55; }
.is-lit .trail-stone > img { animation: pop 520ms cubic-bezier(.3, 1.7, .5, 1); }
.trail-xp {
  position: absolute; left: 100%; top: 18%; margin-left: 8px;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  color: var(--gold-ink); font-weight: 800;
  opacity: 0; pointer-events: none;
}
.trail-xp img { width: 22px; height: 22px; }
.is-lit .trail-xp { animation: xp-rise 1400ms ease-out; }

/* A beat: one idea, huge title, two lines of text and big art. */
.beat { display: grid; gap: 28px; align-items: center; padding-block: 28px; }
.beat-copy { display: grid; gap: 14px; align-content: center; }
.beat-copy > p { font-size: 1.1875rem; line-height: 1.42; color: var(--ink-soft); }
.beat-copy .fine { font-size: 0.875rem; line-height: 1.4; }
.fact { justify-self: start; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--green-soft); color: var(--green-ink) !important; font-size: 1rem !important; font-weight: 700; }
.aside { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem !important; }
.aside .icon { color: var(--gold-edge); margin-top: 2px; }

/* Come alive on the way in. Only with JS on: otherwise everything is simply there. */
.js .reveal { opacity: 0; transform: translateY(28px) scale(0.94); transition: opacity 420ms ease, transform 620ms cubic-bezier(.3, 1.5, .5, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.d1 { transition-delay: 90ms !important; }
.d2 { transition-delay: 180ms !important; }
.d3 { transition-delay: 270ms !important; }
.d4 { transition-delay: 360ms !important; }
.d5 { transition-delay: 450ms !important; }
.d6 { transition-delay: 540ms !important; }
.d7 { transition-delay: 630ms !important; }

/* The whole book as a trail, drawn in a 400 by 640 box. */
.book-trail { position: relative; width: min(100%, 400px); aspect-ratio: 400 / 640; justify-self: center; }
.part-road { stroke-width: 46; }
.part-road-0 { stroke: var(--part-0-soft); }
.part-road-1 { stroke: var(--part-1-soft); }
.part-road-2 { stroke: var(--part-2-soft); }
.part-road-3 { stroke: var(--part-3-soft); }
.node { position: absolute; width: 21%; margin-left: -10.5%; margin-top: -10.5%; }
.n0 { left: 50%; top: 6.9%; }
.n1 { left: 75%; top: 19.4%; }
.n2 { left: 62.5%; top: 34.7%; }
.n3 { left: 30%; top: 45.3%; }
.n4 { left: 27.5%; top: 62.5%; width: 26%; margin-left: -13%; margin-top: -13%; }
.n5 { left: 57.5%; top: 73.4%; }
.n6 { left: 80%; top: 84.4%; }
.n7 { left: 55%; top: 94%; width: 24%; margin-left: -12%; margin-top: -12%; }
.node-dim { filter: saturate(0.7); }
.js .node-dim.is-in { opacity: 0.6; }
.halo-book { left: 27.5%; top: 62.5%; width: 44%; }

/* Modo leitura: the only night in the identity. Colors as in NightSky and the app's night button. */
.night { position: relative; overflow: hidden; padding-block: 48px; background: linear-gradient(#0E2A33, #0B1D1E 55%, #070F0D); color: #F6F2E9; }
.night .beat { position: relative; }
.night h2 { color: #F6F2E9; }
.night .beat-copy > p { color: #A3B2A8; }
.night-sky { position: absolute; inset: 0; pointer-events: none; transition: opacity 700ms ease; }
.is-paused .night-sky { opacity: 0.25; }
.firefly {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #FFE7A8; box-shadow: 0 0 10px 3px #F2CB7E;
  opacity: 0.6; animation: firefly 4s ease-in-out infinite alternate;
}
.firefly-0 { left: 12%; top: 18%; }
.firefly-1 { left: 84%; top: 12%; width: 4px; height: 4px; animation-delay: 900ms; }
.firefly-2 { left: 72%; top: 34%; width: 6px; height: 6px; animation-delay: 400ms; }
.firefly-3 { left: 20%; top: 46%; width: 4px; height: 4px; animation-delay: 1500ms; }
.firefly-4 { left: 90%; top: 55%; animation-delay: 700ms; }
.firefly-5 { left: 8%; top: 68%; width: 4px; height: 4px; animation-delay: 2100ms; }
.firefly-6 { left: 62%; top: 8%; width: 3px; height: 3px; animation-delay: 1200ms; }
.firefly-7 { left: 36%; top: 24%; width: 3px; height: 3px; animation-delay: 2600ms; }
.reading { display: grid; justify-items: center; gap: 6px; }
.reading-status { display: flex; align-items: center; gap: 8px; color: #E1B66D; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reading-dot { width: 8px; height: 8px; border-radius: 50%; background: #E1B66D; }
.is-paused .reading-status { color: #A3B2A8; }
.is-paused .reading-dot { background: #A3B2A8; }
.reading-folu { position: relative; width: min(100%, 290px); }
.reading-folu img { position: relative; width: 100%; }
.reading-glow {
  position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgb(242 203 126 / 0.3) 20%, rgb(225 182 109 / 0) 70%);
  animation: breathe 2.6s ease-in-out infinite alternate;
  transition: opacity 700ms ease;
}
.is-paused .reading-glow { opacity: 0; animation: none; }
.clock { font-size: clamp(4.5rem, 12vw, 6.5rem); line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.reading-hint { color: #A3B2A8; text-align: center; margin-bottom: 8px; }

/* Lanterna */
.lantern-scene { display: grid; gap: 20px; justify-items: center; }
.lantern-hero { position: relative; display: grid; grid-template-columns: auto auto; align-items: end; }
.lantern-hero > img:not(.lantern-folu) { position: relative; width: 190px; }
.lantern-folu { position: relative; width: 130px; margin-left: -18px; }
.lantern-glow {
  position: absolute; left: 95px; top: 50%; width: 320px; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgb(242 203 126 / 0.55) 25%, rgb(225 182 109 / 0) 70%);
  animation: breathe 2.2s ease-in-out infinite alternate;
}
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: min(100%, 420px); }
.week-day { display: grid; justify-items: center; gap: 4px; }
.week-letter { font-size: 0.9375rem; font-weight: 700; color: var(--ink-soft); }
.week-dot { display: grid; place-items: center; width: min(46px, 11.5vw); aspect-ratio: 1; border-radius: 50%; background: var(--soft); }
.week-dot img { width: 70%; }
.week-read { background: var(--gold-soft); border: 3px solid var(--gold); }
.week-rest { background: var(--sky-soft); color: var(--sky); }
.week-rest .icon { width: 22px; height: 22px; }

/* Missions */
.rewards { display: grid; gap: 8px; justify-items: center; }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 8px; justify-content: center; width: 100%; }
.prize { display: grid; justify-items: center; gap: 2px; }
.prize-art { position: relative; display: block; width: 100%; }
.prize-art img { width: 100%; }
.prize-opened { position: absolute; inset: 0; }
.js .prize-open .prize-closed { opacity: 1; transition: opacity 200ms ease 700ms; }
.js .prize-open .prize-opened { opacity: 0; transform: scale(0.9); transition: opacity 200ms ease 700ms, transform 400ms cubic-bezier(.3, 1.7, .5, 1) 700ms; }
.js .prize-open.is-in .prize-closed { opacity: 0; }
.js .prize-open.is-in .prize-opened { opacity: 1; transform: none; }
.prize-xp { display: flex; align-items: center; gap: 4px; color: var(--gold-ink); font-weight: 800; font-size: 1.0625rem; }
.prize-xp img { width: 22px; height: 22px; }
.medal-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.medal-row > img:first-child { width: 112px; }
.rewards-folu { width: 200px; }

/* Atlas: the lit regions float; the rest wait in the dark. Never called a map: today it is a list. */
.islands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 4px; justify-items: center; }
.island { grid-column: span 2; display: grid; justify-items: center; gap: 2px; text-align: center; font-size: 0.875rem; line-height: 1.2; font-weight: 700; animation: drift 3.4s ease-in-out infinite alternate; }
.island img { width: 100%; max-width: 160px; transition: filter 600ms ease, opacity 600ms ease; }
.isle-3 { grid-column: 2 / span 2; }
.isle-1 { animation-delay: 600ms; }
.isle-2 { animation-delay: 1200ms; }
.isle-3 { animation-delay: 300ms; }
.isle-4 { animation-delay: 900ms; }
.js .islands:not(.is-in) .island img { filter: grayscale(0.9); opacity: 0.5; }
.isle-1 img { transition-delay: 350ms; }
.isle-2 img { transition-delay: 700ms; }
.island-dark { color: var(--ink-soft); }
.island-dark img { filter: grayscale(0.9); opacity: 0.45; }

/* Shelf: generated covers, as in the app's BookCover. */
.cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  aspect-ratio: 2 / 3; padding: 8px;
  border-radius: var(--radius-sm); color: var(--card); text-align: center; overflow: hidden;
}
.cover-0 { background: var(--part-0); border-bottom: 5px solid var(--part-0-edge); }
.cover-1 { background: var(--part-1); border-bottom: 5px solid var(--part-1-edge); }
.cover-2 { background: var(--part-2); border-bottom: 5px solid var(--part-2-edge); }
.cover-3 { background: var(--part-3); border-bottom: 5px solid var(--part-3-edge); }
.cover-leaf { color: var(--gold-soft); line-height: 1; }
.cover-title { font-size: clamp(0.8125rem, 3vw, 1.0625rem); line-height: 1.15; font-weight: 800; }
.cover-author { font-size: clamp(0.625rem, 2.2vw, 0.75rem); line-height: 1.2; opacity: 0.9; }
.covers { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 0.84; justify-self: center; }
.cover-pos { position: absolute; width: 32%; }
.cover-pos-0 { left: 1%; top: 8%; rotate: -6deg; }
.cover-pos-1 { left: 34%; top: 2%; }
.cover-pos-2 { left: 67%; top: 8%; rotate: 6deg; }
.covers-folu { position: absolute; left: 34%; bottom: -3%; width: 32%; }

/* IA */
.ai-scene { display: grid; justify-items: center; gap: 10px; }
.say {
  position: relative; max-width: 300px; padding: 10px 16px;
  background: var(--card); border: 2px solid var(--line); border-bottom: 6px solid var(--card-edge); border-radius: var(--radius-lg);
  font-size: 1.0625rem; font-weight: 700; line-height: 1.25;
}
.say-0 { justify-self: start; }
.say-1 { justify-self: end; }
.ai-folu { width: 240px; }

/* Questions */
.questions { width: min(100% - 32px, 680px); padding-block: 56px 64px; }
.questions h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 12px; }
.question { background: var(--card); border: 2px solid var(--line); border-bottom: 5px solid var(--card-edge); border-radius: var(--radius-lg); margin-top: 10px; }
.question summary { padding: 12px 16px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style-position: inside; }
.question p { padding: 0 16px 14px; color: var(--ink-soft); }

/* The band at the end: the gold of the store art. */
.finale { background: var(--gold); border-bottom: 8px solid var(--gold-edge); padding-block: 40px; }
.finale-row { position: relative; display: grid; gap: 8px; justify-items: center; }
.finale-folu { width: min(70%, 300px); }
.finale .folu-says { left: 50%; top: 0; transform: translate(-50%, 4px); white-space: nowrap; max-width: none; }
.finale .folu-says.is-on { transform: translate(-50%, 0); }
.finale-copy { display: grid; gap: 10px; justify-items: center; text-align: center; }
.finale-copy > img { width: 84px; }
.finale-copy h2 { color: var(--ink); }
.finale-copy p { font-size: 1.1875rem; line-height: 1.4; color: var(--ink); max-width: 28rem; }
.finale-copy .btn { margin-top: 6px; }

/* 404 */
.not-found { display: grid; justify-items: center; gap: 12px; text-align: center; padding-block: 40px 80px; }
.not-found h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.not-found p { color: var(--ink-soft); font-size: 1.0625rem; }
.not-found img { width: 180px; }

/* Legal pages */
.card { background: var(--card); border: 2px solid var(--line); border-bottom: 6px solid var(--card-edge); border-radius: 22px; }
.legal { width: min(100% - 32px, 720px); padding-block: 24px 56px; }
.prose { padding: 24px 20px 28px; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.15; margin-bottom: 8px; }
.prose h2 { font-size: 1.3125rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; margin-top: 28px; margin-bottom: 6px; }
.prose p, .prose li { color: var(--ink); font-size: 1.0625rem; line-height: 1.5; }
.prose p + p { margin-top: 10px; }
.prose ul, .prose ol { margin-block: 8px; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 700; }

/* Footer */
.site-footer { background: var(--green-edge); color: var(--card); padding-block: 32px; }
.footer-grid { display: grid; gap: 22px; }
.footer-brand { font-size: 1.75rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.footer-title { font-size: 1rem; line-height: 1.3; font-weight: 800; letter-spacing: 0; margin-bottom: 2px; }
.site-footer p { font-size: 0.9375rem; }
.site-footer a { color: var(--card); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer :focus-visible { outline-color: var(--card); }

@keyframes breathe { from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-26px) scale(1.06); } 100% { transform: translateY(0) scale(1); } }
@keyframes firefly { from { opacity: 0.2; transform: translate(0, 0); } to { opacity: 1; transform: translate(10px, -14px); } }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes xp-rise { 0% { opacity: 0; transform: translateY(10px); } 18% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

@media (min-width: 820px) {
  html { scroll-padding-top: 80px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; min-height: calc(100svh - 240px); padding-block: 24px; }
  .hero-copy { justify-items: start; text-align: left; }
  .beat { grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 48px; }
  .beat-flip > :first-child { order: 2; }
  .night { padding-block: 72px; }
  .trail-dots { height: 80px; }
  .trail-stone { width: 104px; }
  .finale { padding-block: 56px; }
  .finale-row { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .finale-folu { width: min(100%, 360px); justify-self: center; }
  .finale .folu-says { left: 25%; }
  .finale-copy { justify-items: start; text-align: left; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .prose { padding: 32px 36px 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .firefly { opacity: 0.7; }
  .js .reveal { opacity: 1; transform: none; }
  .js .islands:not(.is-in) .island:not(.island-dark) img { filter: none; opacity: 1; }
  .trail-xp { display: none; }
}
