@font-face {
  font-family: Barlow Condensed;
  src: url("Font/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Space Grotesk;
  src: url("Font/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #090a11;
  --paper: #faf2df;
  --gold: #fec700;
  --mono: ui-monospace, Consolas, monospace;
  --display: "Barlow Condensed", Impact, sans-serif;
  --gutter: clamp(21px, 6vw, 100px);
  --frame-top: 70px;
  --frame-side: clamp(11px, 2vw, 30px);
  --hud-bottom: calc(var(--frame-top) + 46px);
}

* { box-sizing: border-box; }
html.story-page { scrollbar-width: none; overscroll-behavior-y: none; }
html.story-page::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.55 "Space Grotesk", system-ui, sans-serif; }
body { -webkit-user-select: none; user-select: none; caret-color: transparent; }
:where(input:not([readonly]), textarea:not([readonly]), [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]) { -webkit-user-select: text; user-select: text; caret-color: auto; }
body:has(.intro[open], .contact-dialog[open], .restart-fade:not([hidden])) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }

.masthead { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 0 clamp(15px, 4vw, 62px); }
.masthead { position: fixed; inset: 0 0 auto; z-index: 4; min-height: 68px; background: linear-gradient(#090a11dc, #090a1100); }
.brand { width: fit-content; }
.mast-legal { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 23px); white-space: nowrap; }
.mast-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; }
.mast-legal a span { margin-inline-start: .24em; }
.mast-legal a:hover { color: var(--gold); }
.mast-legal .mast-contact { padding-inline: clamp(6px, 1.2vw, 12px); color: #f5d48a; border: 1px solid #e3bc704b; border-radius: 5px; }
.mast-legal .mast-contact:hover { color: #fff2ce; border-color: #e3bc70b3; }
.contact-dialog { width: min(90vw, 380px); padding: 24px; color: var(--paper); text-align: center; border: 1px solid #dfbb7484; border-radius: 8px; background: #131722; }
.contact-dialog::backdrop { background: #080a12c7; }
.contact-dialog h2 { font-size: 2rem; line-height: 1; }
.contact-dialog p { margin-block: 8px 18px; color: #edce92; overflow-wrap: anywhere; }
.contact-options { display: grid; gap: 8px; }
.contact-options a { padding: 10px; border: 1px solid #e0b9744d; border-radius: 4px; }
.contact-options a:hover, .contact-options a:focus-visible { border-color: #e0b974; background: #e0b97417; }
.contact-dialog form { margin-top: 8px; }
.journey-progress, .kicker, .text-button, .scroll-cue { font: 600 .68rem/1.45 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.story-hud { position: fixed; z-index: 4; inset: calc(var(--frame-top) + 2px) calc(var(--frame-side) + 8px) auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 44px; pointer-events: none; text-shadow: 0 1px 5px #090a11; }
.journey-progress { grid-column: 2; display: flex; gap: 9px; align-items: center; color: #f7e9c9; }
.journey-progress, .story-hud .tilt { opacity: calc(1 - var(--brand-scene, 0)); }
.story-hud .tilt { grid-column: 1; justify-self: start; min-width: 44px; padding-inline: 4px; color: var(--gold); pointer-events: auto; }
.story-hud .sound { grid-column: 3; justify-self: end; min-width: 44px; padding-inline: 4px; white-space: nowrap; pointer-events: auto; }
.progress-number { color: var(--gold); }
.progress-track { position: relative; width: clamp(24px, 7vw, 102px); height: 1px; background: #f7e9c954; }
.progress-track::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--progress, .1)); transform-origin: left; transition: transform .35s ease; }
.text-button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; touch-action: manipulation; }
.text-button span { color: var(--gold); margin-left: 4px; }
.alignment { --alignment-ink: #e5d9bb; position: fixed; z-index: 4; left: 50%; bottom: max(30px, calc(env(safe-area-inset-bottom) + 12px)); translate: -50% 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(60vw, 282px); gap: 6px 12px; padding: 7px 13px 10px;
  border: 1px solid #d3b78642; border-radius: 6px; background: linear-gradient(180deg, #191d25d9, #0b0d14f2); box-shadow: 0 8px 28px #05060a8c, inset 0 1px #f4dca512;
  font: 600 .61rem/1 var(--mono); text-transform: uppercase; letter-spacing: .15em; pointer-events: none; }
.alignment:not([hidden]) { animation: consequence-in .32s ease both; }
.alignment[data-tone="good"] { --alignment-ink: #bce6c9; }
.alignment[data-tone="evil"] { --alignment-ink: #f89c7f; }
.alignment-evil { grid-area: 1 / 1; color: #f1a48a; }
.alignment-good { grid-area: 1 / 3; justify-self: end; color: #bce6c9; }
.alignment-score { grid-area: 1 / 2; min-width: 2.5em; padding: 2px 5px; text-align: center; color: var(--alignment-ink); font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.alignment-track { grid-area: 2 / 1 / 3 / 4; position: relative; height: 10px; border: 1px solid #cfb98a8c; border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #11141b7a calc(10% - 1px) 10%), linear-gradient(90deg, #a45042, #b0a077 50%, #559171);
  box-shadow: inset 0 1px 2px #090b12bb, 0 1px 0 #fff2d22e; }
.alignment-track::before { content: ""; position: absolute; inset: -3px auto -3px 50%; width: 1px; background: #fff2d2bd; }
.alignment-marker { position: absolute; top: 50%; left: var(--alignment-position, 50%); width: 12px; aspect-ratio: 1; border: 1px solid #fff0ce;
  background: linear-gradient(135deg, #fff0ce, var(--alignment-ink) 52%, #333747); box-shadow: 0 0 8px var(--alignment-ink), 0 0 0 2px #12151d;
  transform: translate(-50%, -50%) rotate(45deg); transition: left .45s cubic-bezier(.2,.7,.24,1) var(--alignment-delay, 0ms); }
.alignment-sparks { position: fixed; z-index: 5; inset: 0; pointer-events: none; overflow: hidden; }
.alignment-sparks i { position: absolute; width: var(--spark-size, 5px); aspect-ratio: 1; border-radius: 25%; background: #fff6d9;
  box-shadow: 0 0 4px 1px currentColor, 0 0 14px 3px currentColor; opacity: 0; }
.alignment-sparks i.lead { border-radius: 50%; box-shadow: 0 0 6px 2px currentColor, 0 0 22px 7px currentColor; }
.alignment-sparks i.good { color: #b4f6bf; }
.alignment-sparks i.evil { color: #ff9571; }

.beat { --plate: none; --terrain: none; min-height: 100vh; min-height: 100svh; }
.journey-scroll { display: none; }
.story-ready .journey-scroll { display: block; height: calc(212svh * var(--unlocked-scenes, 1)); }
.story-ready .journey { position: fixed; z-index: 1; inset: 0; overflow: hidden; isolation: isolate; touch-action: pan-y pinch-zoom; }
.story-ready .journey[data-dragging] { user-select: none; }
@media (pointer: fine) {
  .story-ready .stage.stage-active { cursor: grab; }
  .story-ready .journey[data-dragging] .stage.stage-active { cursor: grabbing; }
}
.story-ready .beat { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
.stage {
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #10141f;
}
.story-ready .stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  contain: paint;
  opacity: var(--stage-opacity, 0);
  visibility: var(--stage-visibility, hidden);
  pointer-events: none;
}
.story-ready .stage.stage-active { pointer-events: auto; touch-action: pinch-zoom; }
.story-ready .beat.on-screen .stage { will-change: opacity; }
.depth, .scrim, .frame { position: absolute; pointer-events: none; }
.depth {
  inset: -6%;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(calc((var(--x, 0px) + var(--walk-x, 0px)) * var(--speed)), calc(var(--y, 0px) * var(--speed)));
}
.beat-first, .beat[data-scene="1"] { --plate: url("../images/scroll/scene-1.webp"); }
.depth-sky { --speed: .28; inset: -3%; background-image: var(--plate), radial-gradient(ellipse at 58% 36%, #5e3a29, #111421 67%); background-size: cover; }
.depth-sky, .depth-middle {
  transform: translate(calc((var(--x, 0px) + var(--walk-x, 0px)) * var(--speed)), calc(var(--y, 0px) * var(--speed))) scale(var(--zoom, 1));
}
.depth-middle {
  --speed: .75;
  background-image: var(--plate);
  background-size: cover;
  inset: -3%;
  mask-image: linear-gradient(180deg, transparent 19%, #000 44%, #000 55%, transparent 79%);
}
.depth-arena { --speed: .48; background-image: var(--arena-image, none); background-size: cover; opacity: var(--arena-opacity, 0); }
.beat[data-scene="9"] :is(.depth-arena, .depth-ending) {
  transform-origin: 50% 45%;
  transform: translate(calc((var(--x, 0px) + var(--walk-x, 0px)) * var(--speed)), calc(var(--y, 0px) * var(--speed))) scale(var(--zoom, 1));
}
.beat[data-scene="9"] .depth-ground { --terrain-alpha: calc(.92 - var(--arena-opacity, 0) * .57); }
.depth-ground {
  --speed: 1.55;
  inset: 10% -7% -12%;
  background-image: var(--terrain);
  background-size: var(--terrain-size, min(80vw, 1180px)) auto;
  background-position: var(--terrain-position, 82% 105%);
  opacity: calc(var(--terrain-alpha, .93) * var(--terrain-visibility, 1));
}
.depth-ending {
  --speed: .55;
  background-image: var(--ending-plate, none);
  background-size: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.beat[data-ending] .depth-ending { opacity: var(--ending-opacity, 0); }
.beat[data-scene="9"][data-result="true"] .depth-ending { opacity: 1; }
.depth-mist {
  --speed: 2.3;
  inset: -20%;
  opacity: .59;
  filter: saturate(.65);
}
.depth-mist::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/scroll/mist.webp") 50% 74% / max(100%, 850px) auto no-repeat;
}
.beat.on-screen .depth-mist::before { animation: mist-roll 12s ease-in-out infinite alternate; }
@keyframes mist-roll { to { transform: translate(7%, -5%) scale(1.08); opacity: .55; } }
.depth-mist::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 19px 28px, #ffbb54ad 0 1px, transparent 2px) 0 0/171px 151px,
    radial-gradient(circle at 82px 54px, #eedfaa82 0 1px, transparent 2px) 0 0/233px 183px;
  mask-image: linear-gradient(0deg, transparent 10%, #000 44%, transparent 78%);
}
.beat.on-screen .depth-mist::after { animation: drift 9s linear infinite; }
@keyframes drift { to { transform: translate(171px, -151px); } }
.weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .96; }
.depth-enemy {
  --speed: 1.9;
  inset: 4% 24% 24%;
  opacity: var(--enemy-opacity, 0);
  filter: drop-shadow(0 13px 28px #010207a0);
  transform-origin: 50% 96%;
  transform: translate(calc(var(--x, 0px) * .95), calc(var(--y, 0px) * .95)) scale(var(--enemy-scale, 1));
}
.depth-enemy::before, .boss-half { position: absolute; inset: 0; background: var(--enemy-image, none) center bottom / contain no-repeat; }
.depth-enemy::before { content: ""; }
.boss-half { visibility: hidden; }
.boss-half:first-child { mask-image: linear-gradient(135deg, #000 50%, transparent 50%); }
.boss-half:last-child { mask-image: linear-gradient(135deg, transparent 50%, #000 50%); }
.beat[data-split="true"] .depth-enemy::before { visibility: hidden; }
.beat[data-split="true"] .boss-half { visibility: visible; opacity: 0; }
.beat[data-split="true"] .boss-half:first-child { animation: split-up .67s cubic-bezier(.22,.7,.3,1) both; }
.beat[data-split="true"] .boss-half:last-child { animation: split-down .67s cubic-bezier(.22,.7,.3,1) both; }
@keyframes split-up { 0% { opacity: 1; } 32% { opacity: .97; } 100% { opacity: 0; transform: translate(-12%, -15%) rotate(-7deg); } }
@keyframes split-down { 0% { opacity: 1; } 32% { opacity: .97; } 100% { opacity: 0; transform: translate(13%, 19%) rotate(8deg); } }
.beat.on-screen[data-battle="true"]:not([data-combat]) .depth-enemy { animation: enemy-idle 5.3s ease-in-out infinite; }
@keyframes enemy-idle { 50% { translate: 0 -5px; scale: 1.018; } }
.beat[data-boss-down="true"] .depth-enemy { opacity: 0; transition: opacity .85s ease; }
.boss-hud { display: flex; align-items: center; justify-content: center; gap: 9px; color: #ffe0a0; font: 600 .66rem/1.3 var(--mono); text-transform: uppercase; }
.boss-hud progress { appearance: none; width: min(30vw, 115px); height: 4px; border: 0; background: #58414b; color: #f9c45c; }
.boss-hud progress::-webkit-progress-bar { background: #58414b; }
.boss-hud progress::-webkit-progress-value { background: #f9c45c; }
.boss-hud progress::-moz-progress-bar { background: #f9c45c; }
.player-overlay { position: fixed; z-index: 2; inset: 0; overflow: hidden; overflow: clip; transform: translateY(var(--ending-hand-exit, 0px)); pointer-events: none; }
.story-ready .player-overlay { position: absolute; }
.restart-fade { position: fixed; z-index: 5; inset: 0; background: #000; touch-action: none; }
body.intro-pending .player-overlay { visibility: hidden; }
.depth-player {
  --speed: 3.6;
  --rig-span: clamp(1600px, 148svh, 2440px);
  --rig-inset: max(0px, calc((100% - var(--rig-span)) / 2));
  --palm-size: min(13vw, 15svh, calc(var(--rig-span) * .115));
  --pose-unit: min(1px, calc(var(--palm-size) * .007));
  --hand-rest: 2.8;
  inset: 0 var(--rig-inset);
  transform: translate3d(calc(var(--x, 0px) * var(--speed)), 0, 0);
}
.hand, .sword {
  --sprite-width: calc(var(--art-width) * var(--palm-size) * var(--sprite-scale, 1));
  --sprite-height: calc(var(--art-height) * var(--palm-size) * var(--sprite-scale, 1));
  --grip-rise: calc((min(var(--rest-rise), var(--cuff-rise)) - .22) * var(--palm-size));
  --lift-limit: calc(var(--grip-rise) - (var(--cuff-rise) - .1) * var(--palm-size));
  position: absolute;
  bottom: calc(var(--grip-rise) + var(--portrait-lift, 0px) - var(--sprite-height) * (1 - var(--grip-y)));
  width: var(--sprite-width);
  height: var(--sprite-height);
  background: var(--sprite-image) center / 100% 100% no-repeat;
  transform-origin: calc(var(--grip-x) * 100%) calc(var(--grip-y) * 100%);
}
.hand-mount { position: absolute; inset: 0; }
.hand-inertia { position: absolute; inset: 0; transform: translate(var(--inertia-x, 0px), var(--inertia-y, 0px)); }
.epilogue-hand-mount { position: absolute; inset: 0; transform: translateY(calc((1 - var(--epilogue-hand-presence, 0)) * 85svh)); opacity: var(--epilogue-hand-presence, 0); }
.hand {
  --rest-rise: var(--hand-rest);
  left: calc(20% - var(--sprite-width) * var(--grip-x));
  transform: translate3d(calc(var(--x, 0px) * 1.15 + (var(--hand-shift, 0) + var(--step-x, 0)) * var(--pose-unit)),
    max(var(--lift-limit), var(--y, 0px) * .55 + (var(--hand-lift, 0) + var(--action-lift, 0) + var(--step-y, 0)) * var(--pose-unit)), 0)
    rotate(calc(var(--rest-angle) + clamp(-6deg, var(--hand-angle, 0deg) + var(--action-hand, 0deg), 4deg)));
}
.sword {
  --rest-rise: 1.28;
  right: calc(17% - var(--sprite-width) * (1 - var(--grip-x)));
  transform: translate3d(calc(var(--x, 0px) * -.7 + (var(--blade-shift, 0) - var(--step-x, 0)) * var(--pose-unit)),
    max(var(--lift-limit), var(--y, 0px) * .75 + (var(--blade-drop, 0) + var(--action-drop, 0) - var(--step-y, 0)) * var(--pose-unit)), 0)
    rotate(calc(var(--rest-angle) + clamp(-5deg, var(--blade-angle, 0deg) + var(--action-blade, 0deg), 6deg)));
}
.player-overlay[data-corrupted="true"] .sword { filter: sepia(.28) saturate(1.22) hue-rotate(-24deg); }
.sword.sword-aligned { background: none; }
.sword-aligned::before, .sword-aligned::after { content: ""; position: absolute; inset: 0; background: var(--sprite-image) center / 100% 100% no-repeat; }
.sword-aligned::before { clip-path: polygon(26% 0, 72% 0, 54% 57%, 33% 57%); transform-origin: 43.6% 52.35%; transform: rotate(-3.8deg); }
.sword-aligned::after { clip-path: polygon(0 57%, 35% 55%, 43.6% 52.35%, 50% 55%, 100% 58%, 100% 100%, 0 100%); }
.player-overlay[data-pose="reach"] { --action-hand: 5deg; --action-lift: -24; --action-drop: 24; --action-blade: 5deg; }
.player-overlay[data-pose="strike"] { --action-lift: 32; --action-drop: -37; --action-blade: -5deg; }
.player-overlay .hand { animation: idle-hand 4.8s ease-in-out infinite; }
.player-overlay .sword { animation: idle-sword 5.6s ease-in-out infinite; }
@keyframes idle-hand {
  0%, 100% { translate: 0 0; rotate: -1.8deg; }
  50% { translate: clamp(5px, calc(var(--palm-size) * .09), 17px) clamp(11px, calc(var(--palm-size) * .15), 25px); rotate: 2.7deg; }
}
@keyframes idle-sword {
  0%, 100% { translate: 0 0; rotate: 1.6deg; }
  50% { translate: clamp(-15px, calc(var(--palm-size) * -.075), -4px) clamp(10px, calc(var(--palm-size) * .13), 22px); rotate: -2.4deg; }
}
.player-overlay[data-combat$="strike"] .sword { animation: swing .62s cubic-bezier(.18,.67,.25,1) both; }
.player-overlay[data-combat$="guard"] .hand { animation: guard .62s ease both; }
.beat[data-combat="strike"] .depth-enemy, .beat[data-combat="guard"] .depth-enemy { animation: recoil .55s ease both; }
.beat[data-combat^="miss"] .depth-enemy { animation: lunge .51s ease both; }
.beat.on-screen[data-split="true"] .depth-enemy { animation: none; }
@keyframes swing { 16% { translate: calc(var(--palm-size) * .48) calc(var(--palm-size) * .3); rotate: 12deg; } 47% { translate: calc(var(--palm-size) * -3.2) calc(var(--palm-size) * .32); rotate: -12deg; } }
@keyframes guard { 32%, 61% { translate: calc(var(--palm-size) * 1.25) calc(var(--palm-size) * -.36); rotate: -9deg; } }
@keyframes recoil { 47% { translate: 5% -4%; scale: .94; } }
@keyframes lunge { 43% { translate: -7% 1%; scale: 1.12; } }
.beat[data-scene="3"] { --terrain-position: 107% 109%; --terrain-size: min(29vw, 380px); --terrain-mobile-height: 31%; }
.beat[data-scene="5"] { --terrain-position: 113% 110%; --terrain-size: min(34vw, 450px); --terrain-mobile-height: 35%; }
.beat[data-scene="6"] { --terrain-position: 110% 107%; --terrain-size: min(58vw, 930px); }
.beat[data-scene="7"] { --terrain-position: 111% 109%; --terrain-size: min(31vw, 420px); --terrain-mobile-height: 32%; }
.beat:is([data-scene="3"], [data-scene="5"], [data-scene="7"]) { --terrain-alpha: .84; }
.beat[data-scene="8"] { --terrain-position: 108% 93%; --terrain-size: min(53vw, 850px); }
.beat[data-scene="9"] { --terrain-position: 73% 82%; --terrain-size: min(64vw, 990px); }
.beat[data-scene="10"] { --terrain-position: 58% 106%; }
.beat[data-scene="5"] .depth-mist { opacity: .75; }
.beat[data-scene="9"] .depth-mist { opacity: .38; }
.beat[data-pose="reach"] .depth-mist { filter: sepia(.18) hue-rotate(161deg) saturate(1.3); }
.beat[data-pose="strike"] .depth-mist { filter: sepia(.65) hue-rotate(335deg) saturate(1.2); }
.scrim {
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, transparent 24%, #08091145 74%, #0809117a);
}
.scrim::before, .scrim::after { content: ""; position: absolute; inset: 0; }
.scrim::before { background: linear-gradient(#080a13dc, #080a1378 27%, transparent 58%); opacity: var(--narrative, 1); }
.scrim::after { background: linear-gradient(0deg, #060710f7 2%, #080a13a8 40%, transparent 71%); opacity: var(--decision-opacity, 0); }
.beat[data-ending="good"] { --ending-accent: #ffe5a0; --ending-glow: #e5a84452; --ending-shadow: #102218; }
.beat[data-ending="neutral"] { --ending-accent: #c7e4f0; --ending-glow: #7ab4d248; --ending-shadow: #111e2d; }
.beat[data-ending="evil"] { --ending-accent: #ffb097; --ending-glow: #cc513e69; --ending-shadow: #290f17; }
.beat[data-ending] .scrim::after { background: radial-gradient(ellipse at center, #080a13ed, var(--ending-shadow) 49%, transparent 79%); opacity: calc(var(--ending-opacity, 0) * .86 * var(--ending-solid, 1)); }
.frame { inset: var(--frame-top) var(--frame-side) 22px; border: 1px solid #ffe4a842; }
.frame::before, .frame::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: #efc45e; border-style: solid; }
.frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.story-ready .beat > .copy {
  position: absolute;
  z-index: 3;
  opacity: var(--stage-opacity, 0);
  visibility: var(--stage-visibility, hidden);
}
.chapter-copy {
  position: absolute;
  top: max(var(--hud-bottom), 16%);
  left: 50%;
  width: min(86%, 730px);
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
  opacity: var(--narrative, 1);
  transform: translate3d(-50%, var(--title-y, 0px), 0);
}
.kicker { color: #f9d887; }
h1, h2 { font: 800 clamp(4rem, 8.8vw, 9.5rem)/.78 var(--display); letter-spacing: -.026em; text-transform: uppercase; text-wrap: balance; }
h1 em, h2 em { color: #ffd15b; font-style: normal; }
h2 { font-size: clamp(3.65rem, 7.5vw, 8rem); }
.passage, .reply, .ending > p:not(.kicker) { max-width: 42ch; font-size: clamp(.96rem, 1.3vw, 1.12rem); color: #f7ecdb; text-wrap: pretty; text-shadow: 0 1px 12px #000; }
.response { position: absolute; top: 72%; left: 50%; width: min(88%, 430px); opacity: var(--decision-opacity, 0); transform: translateX(-50%); color: #ffe098; font-size: .87rem; text-align: center; }
.result-hint { display: none; }
.beat[data-result="true"] .response { top: 53%; width: min(86%, 620px); opacity: var(--result-opacity, 1); transform: translate(-50%, -50%); }
.beat[data-result="true"] .response:not([hidden]) { animation: consequence-in .58s .15s ease both; }
.beat[data-result="true"] .reply { max-width: none; font-size: clamp(1.12rem, 2.2vw, 1.8rem); }
.beat[data-result="true"] .result-hint, .beat .ending .result-hint {
  display: block;
  margin-top: 24px;
  color: #ffe4aa;
  font: 600 .65rem/1.45 var(--mono);
  letter-spacing: .19em;
  text-transform: uppercase;
  animation: hint-pulse 2.6s ease-in-out infinite;
}
@keyframes consequence-in { from { opacity: 0; filter: blur(7px); scale: .97; } to { opacity: var(--result-opacity, 1); } }
.decision {
  position: absolute;
  top: 51%;
  left: 50%;
  opacity: var(--decision-opacity, 0);
  transform: translate3d(-50%, calc(-50% + var(--decision-y, 0px)), 0);
  pointer-events: auto;
  touch-action: pinch-zoom;
  display: grid;
  gap: clamp(13px, 2vw, 21px);
  width: min(calc(100% - 32px), 620px);
  padding: clamp(19px, 3.5vw, 38px);
  border: 1px solid #e0b97459;
  border-top-color: #e0b97499;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, #e5b76a13, transparent 68%), linear-gradient(148deg, #1b222dfb, #10131cfb 58%, #191716fc);
  box-shadow: 0 20px 60px #0203089c, inset 0 1px #ffe6ac10;
  text-align: center;
}
.beat[data-battle="true"] .decision {
  top: auto;
  bottom: max(26px, 4%);
  width: min(84%, 480px);
  gap: 9px;
  padding: 12px 16px 14px;
  transform: translate3d(-50%, var(--decision-y, 0px), 0);
}
.beat[data-battle="true"] .decision-label { display: none; }
.beat[data-battle="true"] .question { font-size: clamp(1.08rem, 5vw, 1.8rem); }
.beat[data-battle="true"] .choice { min-height: 44px; padding-block: 7px; }
.beat[data-battle="true"] .response { top: 18%; }
.fight-result { justify-self: center; max-width: 38ch; padding-bottom: 10px; border-bottom: 1px solid #e0b97439; color: #e7dbc3; font-size: clamp(.8rem, 1.4vw, .97rem); text-wrap: balance; }
.combat-fx, .impact-note { position: absolute; z-index: 1; pointer-events: none; opacity: 0; }
.combat-fx { inset: 9% 17% 24%; display: grid; place-items: center; }
.combat-fx svg { width: min(100%, 660px); max-height: 100%; overflow: visible; }
.split-sparks { position: absolute; inset: 0; }
.split-sparks i {
  position: absolute;
  top: calc(50% - var(--origin));
  left: calc(50% + var(--origin));
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 50%;
  background: #ffe9a6;
  box-shadow: 0 0 8px 2px #ff973c;
  opacity: 0;
}
.split-sparks i:nth-child(3n) { background: #e3f8ff; box-shadow: 0 0 8px 2px #68c4ff; }
.split-sparks i:nth-child(4n) { width: calc(var(--spark-size) * 3); height: 2px; rotate: 45deg; }
.beat[data-split="true"] .split-sparks i { animation: split-spark var(--spark-time) cubic-bezier(.14,.65,.32,1) both; }
@keyframes split-spark {
  from { opacity: 1; transform: scale(1.25); }
  to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(.25); }
}
.combat-fx path, .combat-fx circle { opacity: 0; transform-origin: center; }
.slash { fill: #ffe7b2; stroke: #f9ad3f; stroke-width: 1.1; filter: drop-shadow(0 0 12px #ff9d45); }
.shock { fill: #ffe9a7; filter: drop-shadow(0 0 16px #ffbc46); }
.ward { fill: #9edbff24; stroke: #b7eaff; stroke-width: 2; filter: drop-shadow(0 0 13px #7cc5ff); }
.beat[data-impact] .combat-fx, .beat[data-impact] .impact-note { opacity: 1; }
.beat[data-impact="strike"] .slash, .beat[data-impact="ash"] .slash { animation: slash-flare .47s ease-out both; }
.beat[data-impact="ash"] .slash { fill: #ffbd91; stroke: #ea6845; filter: drop-shadow(0 0 15px #f17b51); }
.beat[data-impact="strike"] .shock, .beat[data-impact="ash"] .shock { animation: strike-spark .45s ease-out both; }
.beat[data-impact="guard"] .ward { animation: ward-flare .48s ease-out both; }
.beat[data-impact="miss"] .shock { fill: #caa8ad; filter: none; animation: strike-spark .32s ease-out both; }
.beat[data-finisher="true"] .combat-fx { scale: 1.18; }
.beat[data-finisher="true"][data-impact] .slash { animation-duration: .64s; }
.beat[data-finisher="true"][data-impact] .shock { animation-duration: .58s; }
.impact-note { top: 23%; left: 50%; translate: -50% 0; color: #ffdda0; font: 800 clamp(1.4rem, 3vw, 2.7rem)/1 var(--display); text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.beat[data-impact] .impact-note { animation: impact-rise .54s ease-out both; }
.beat[data-finisher="true"][data-impact] .impact-note { animation-duration: .68s; }
@keyframes slash-flare { 0% { opacity: .95; transform: scale(.8) rotate(7deg); } 100% { opacity: 0; transform: scale(1.14) rotate(-7deg); } }
@keyframes strike-spark { 0% { opacity: .92; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.42); } }
@keyframes ward-flare { 0% { opacity: .8; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.32); } }
@keyframes impact-rise { from { opacity: 1; } to { opacity: 0; transform: translateY(-25px); } }
.beat[data-result="true"] .decision { opacity: 0; transform: translate3d(-50%, -43%, 0); transition: opacity .36s ease, transform .36s ease; pointer-events: none; }
.decision-label { display: flex; align-items: center; justify-content: center; gap: 10px; color: #e9c788; font: 600 .64rem/1.4 var(--mono); letter-spacing: .21em; text-transform: uppercase; }
.decision-label::before, .decision-label::after { content: ""; width: 18px; height: 1px; background: #e0b97466; }
.question { max-width: 26ch; margin-inline: auto; color: #fff2d4; font: 800 clamp(1.45rem, 4.6vw, 2.55rem)/1.03 var(--display); text-wrap: balance; text-transform: uppercase; }
.choice-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(24px, 5vw, 44px) minmax(0, 1fr); align-items: stretch; gap: clamp(5px, 1.25vw, 12px); }
.choice {
  min-height: 58px;
  padding: 10px clamp(6px, 1.5vw, 14px);
  border: 1px solid #e5c38b4d;
  border-radius: 5px;
  background: #e9d7b80a;
  color: #fbecd2;
  font-size: clamp(.8rem, 1.55vw, .98rem);
  font-weight: 650;
  line-height: 1.28;
  text-wrap: balance;
  overflow-wrap: break-word;
  touch-action: manipulation;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, opacity .22s ease;
}
.choice:is(:active, :focus-visible, [aria-pressed="true"]) { border-color: #e6bd6b; background-color: #e8b35726; color: #fff6de; }
@media (hover: hover) { .choice:hover:not(:disabled) { border-color: #e6bd6b; background-color: #e8b35726; color: #fff6de; } }
.choice:disabled { opacity: .48; cursor: default; }
.choice-pointer {
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-pointer svg { width: clamp(22px, 4vw, 32px); height: auto; overflow: visible; fill: none; stroke: #dfb975; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.beat.on-screen .choice-pointer svg { animation: point 3.5s ease-in-out infinite; }
.decision[data-picked="left"] .choice-pointer svg { animation: none; transform: rotate(-46deg); }
.decision[data-picked="right"] .choice-pointer svg { animation: none; transform: rotate(46deg); }
@keyframes point { 0%, 100% { transform: rotate(-27deg); } 50% { transform: rotate(27deg); } }
.ending {
  position: absolute;
  top: 53%;
  left: 50%;
  width: min(86%, 620px);
  display: grid;
  justify-items: center;
  gap: 12px;
  opacity: var(--ending-opacity, 0);
  transform: translate(-50%, calc(-50% + (1 - var(--ending-opacity, 0)) * 20px));
  pointer-events: auto;
  text-align: center;
  text-shadow: 0 1px 12px #000;
}
.ending h3 { font: 800 clamp(1.85rem, 4.2vw, 3.5rem)/.95 var(--display); color: var(--ending-accent, #ffda78); text-transform: uppercase; text-shadow: 0 0 22px var(--ending-glow), 0 2px 12px #000; }
.ending .kicker { color: var(--ending-accent, #ffda78); }
.ending .kicker { display: flex; align-items: center; gap: 12px; }
.ending .kicker::before, .ending .kicker::after { content: ""; width: 24px; height: 1px; background: var(--ending-glow); }
.ending > p:not(.kicker) { font-size: clamp(1.02rem, 2.2vw, 1.45rem); }
.scroll-cue {
  position: absolute;
  z-index: 2;
  top: 54%;
  left: 50%;
  display: flex;
  align-items: center;
  min-height: 44px;
  width: max-content;
  padding: 4px 8px;
  color: #fff0c7;
  text-shadow: 0 2px 12px #000, 0 0 24px #000;
  letter-spacing: .23em;
  opacity: var(--hint-opacity, 1);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stage[data-guide="read"] .scroll-cue span { animation: hint-pulse 2.3s ease-in-out infinite; }
@keyframes hint-pulse { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }
.text-button:hover { color: white; }
.no-script { padding: 0 var(--gutter) 40px; }
.intro {
  position: fixed;
  inset: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: #000;
  overflow: hidden;
}
.intro[open] { display: grid; place-items: center; }
.intro::backdrop { background: #000; }
.intro::before {
  content: ""; position: absolute; inset: -18%; pointer-events: none; opacity: var(--intro-pattern, 0); transform: scale(var(--intro-pattern-scale, 1)) rotate(-8deg);
  background: radial-gradient(ellipse at 50% 53%, #6d4b171f, transparent 67%), repeating-radial-gradient(ellipse at center, transparent 0 40px, #efbb4e19 41px 42px, transparent 43px 63px),
    repeating-conic-gradient(from 18deg at center, #e8b45318 0deg .4deg, transparent .65deg 12deg);
  mask-image: radial-gradient(ellipse at center, #000 20%, #0009 59%, transparent 85%);
}
.intro-stage { position: relative; z-index: 1; width: min(95vw, 800px); }
.intro-stage:focus { outline: none; }
.intro-stage canvas { display: block; width: 100%; height: auto; }
.intro-logo, .intro-logo-sheen { position: absolute; width: 54%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.intro-logo { opacity: var(--logo-opacity, 0); }
.intro-logo-sheen {
  aspect-ratio: 1000 / 353; opacity: var(--logo-sheen-opacity, 0); pointer-events: none;
  mask: url("../images/logo.svg") center / contain no-repeat;
  background: linear-gradient(112deg, transparent 28%, #fff2 37%, #fffa 45%, #fff 50%, #fffa 55%, #fff2 63%, transparent 72%) var(--logo-sheen, 100%) center / 230% 100%;
}
.intro.leaving { animation: curtain .42s ease both; }
.intro.leaving::backdrop { animation: curtain .42s ease both; }
@keyframes curtain { to { opacity: 0; } }

.beat[data-finale] .ending { opacity: calc(var(--ending-opacity, 0) * var(--ending-solid, 1)); }
.ending-transfer { position: fixed; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.beat[data-epilogue] .stage { opacity: 1; background: none; }
.beat[data-epilogue] .stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 64%, #211b123d, transparent 58%), #05060a; opacity: var(--epilogue-presence, 0); }
.beat[data-epilogue] .frame { opacity: var(--epilogue-presence, 0); }
.beat[data-epilogue] :is(.depth, .weather, .combat-fx, .scrim, .scroll-cue, .chapter-copy, .decision, .response, .ending) { display: none; }
.epilogue-offering {
  --offering-height: min(106svh, 1080px); --offering-palm: calc(113svh - var(--offering-height) * .51);
  --brand-logo-lift: max(0px, calc(var(--offering-height) * .21 + clamp(24px, 3svh, 42px) - min(94vw, 640px) * .0375));
  position: absolute; inset: 10svh 0 -10svh; pointer-events: none;
}
.epilogue-hand {
  --palm-size: min(13vw, 15svh); position: absolute; left: 50%; bottom: -13svh; height: var(--offering-height); aspect-ratio: 2 / 3;
  transform: translateX(-50%); background: url('../images/scroll/hand-epilogue.webp') center / contain no-repeat; animation: idle-hand 4.8s ease-in-out infinite;
}
.brand-vortex { position: absolute; left: 50%; top: calc(var(--offering-palm) - min(94vw, 640px) * .1675); width: min(94vw, 640px); aspect-ratio: 800 / 520; transform: translate(-50%, -50%); }
.brand-vortex canvas { position: absolute; top: calc(-100% * 800 / 520); display: block; width: 100%; height: calc(100% * 1320 / 520); }
.epilogue-logo, .epilogue-logo-sheen { position: absolute; width: 54%; left: 50%; top: calc(50% - var(--brand-logo-lift)); transform: translate(-50%, -50%); }
.epilogue-logo { opacity: var(--brand-reveal, 0); }
.epilogue-logo-sheen {
  aspect-ratio: 1000 / 353; opacity: var(--brand-sheen-opacity, 0); mask: url('../images/logo.svg') center / contain no-repeat;
  background: linear-gradient(112deg, transparent 28%, #fff2 37%, #fffa 45%, #fff 50%, #fffa 55%, #fff2 63%, transparent 72%) var(--brand-sheen, 100%) center / 230% 100%;
}
.brand-tagline {
  position: absolute; top: calc(70% - var(--brand-logo-lift)); left: 50%; width: max-content; max-width: 94%; margin: 0; transform: translateX(-50%); color: #f6e5c4;
  font: 500 clamp(.56rem, 1.5vw, .8rem)/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; opacity: var(--brand-reveal, 0);
  clip-path: inset(0 calc(100% - var(--tagline-reveal, 0%)) 0 0); text-shadow: 0 2px 8px #000;
}
.epilogue-start {
  position: absolute; left: 50%; bottom: max(30px, calc(env(safe-area-inset-bottom) + 24px)); transform: translateX(-50%); padding: 12px 22px;
  color: #fae5b7; background: #080a11d6; border: 1px solid #edc46c4d; border-radius: 5px; white-space: nowrap;
  opacity: var(--epilogue-presence, 0);
}


@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  :root { --frame-top: 58px; --frame-side: 11px; }
  .masthead { min-height: 56px; gap: 6px; padding-inline: 10px; }
  .masthead .brand img { width: 76px; }
  .journey-progress { justify-self: center; gap: 4px; }
  .mast-legal { gap: 7px; }
  .mast-legal a { font-size: .67rem; }
  .mast-legal a span { display: none; }
  .journey-progress, .text-button, .scroll-cue { font-size: .6rem; letter-spacing: .1em; }
  .frame { inset-block-end: 16px; }
  .chapter-copy { top: max(calc(var(--hud-bottom) + 10px), 15%); gap: 9px; }
  .decision { padding: 18px clamp(12px, 4vw, 22px); }
  .alignment { width: min(68vw, 238px); bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px)); gap: 5px 10px; font-size: .56rem; }
  .choice { min-height: 52px; }
  .depth-ground { background-size: auto min(var(--terrain-mobile-height, 55%), 94vw); }
  .depth-enemy, .combat-fx { inset: max(13%, var(--hud-bottom)) 5% clamp(192px, 34%, 290px); }
  .impact-note { top: max(calc(var(--hud-bottom) + 34px), 23%); width: max-content; max-width: 86%; text-align: center; }
  .beat[data-battle="true"] .decision { bottom: clamp(80px, 15%, 126px); width: min(calc(100% - 42px), 420px); }
  .beat[data-battle="true"] .question { font-size: clamp(1.08rem, 5.4vw, 1.35rem); }
  .beat[data-battle="true"] .response { top: max(calc(var(--hud-bottom) + 8px), 18%); }
  .beat[data-result="true"] .result-hint, .beat .ending .result-hint { margin-top: 14px; }
  .depth-player { --hand-rest: 2.6; }
  .player-overlay[data-framing="combat"] .depth-player { --hand-rest: 1.72; }
  .intro-logo, .intro-logo-sheen { width: 72%; }
}

@media (max-width: 700px) {
  .beat-first, .beat[data-scene="1"] { --plate: url("../images/scroll/scene-1-mobile.webp"); }
}

@media (orientation: portrait) and (pointer: coarse) {
  .depth-player { --sprite-scale: 1.5; }
  .hand, .sword {
    --midpoint-lift: calc(50svh - var(--sprite-height) * var(--grip-y) - var(--grip-rise));
    --sleeve-lift: calc((var(--cuff-rise) - .22) * var(--palm-size) * var(--sprite-scale) - var(--grip-rise));
    --portrait-lift: clamp(0px, var(--midpoint-lift), var(--sleeve-lift));
    --lift-limit: calc(var(--grip-rise) + var(--portrait-lift) - (var(--cuff-rise) - .1) * var(--palm-size) * var(--sprite-scale));
  }
}

@media (min-width: 701px) {
  .beat:is([data-scene="3"], [data-scene="5"]) .depth-sky { filter: blur(20px) brightness(.52); }
  .beat:is([data-scene="3"], [data-scene="5"]) .depth-middle {
    inset: 0; width: min(100%, 156svh); margin-inline: auto; background-position: center top;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    transform-origin: 50% 10%;
    transform: translate(calc(var(--x, 0px) * .38 + var(--walk-x, 0px) * .78), calc(var(--y, 0px) * .3)) scale(var(--zoom, 1));
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .depth-sky, .depth-middle { background-position: 58% center; }
  .beat[data-scene="1"] .depth-sky, .beat[data-scene="1"] .depth-middle, .beat-first .depth-sky { background-position-x: 92%; }
  h1 { font-size: clamp(2.85rem, 14.5vw, 6.2rem); }
  h2 { font-size: clamp(2.65rem, 12vw, 5.4rem); }
}

@media (max-width: 365px) and (orientation: portrait) {
  .beat[data-battle="true"] .decision { bottom: clamp(98px, 16%, 126px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .chapter-copy { gap: 7px; }
  .chapter-copy :is(h1, h2) { font-size: clamp(2rem, 13vh, 4rem); }
  .decision, .beat[data-result="true"] .response { top: calc((100% + var(--hud-bottom)) / 2); }
  .depth-player { --palm-size: min(13vw, 14svh); }
  .depth-enemy, .combat-fx { inset: var(--frame-top) 5% 9% 55%; }
  .impact-note { left: 75%; }
  .beat[data-battle="true"] .decision, .beat[data-battle="true"] .response { left: 28%; width: min(46%, 420px); }
  .beat[data-battle="true"] .decision { top: calc((100% + var(--hud-bottom)) / 2); bottom: auto; transform: translate3d(-50%, calc(-50% + var(--decision-y, 0px)), 0); }
  .beat[data-battle="true"] .response { top: auto; bottom: max(24px, 5%); }
}

@media (max-height: 500px) {
  .ending { top: calc((100% + var(--hud-bottom)) / 2); max-height: calc(100% - var(--hud-bottom) - 26px); overflow: auto; }
}

@media (max-width: 365px) {
  .progress-track { width: 12px; }
  .mast-legal { gap: 5px; }
  .masthead .brand img { width: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-hud .tilt { display: none; }
  .epilogue-offering { transform: none; }
  .epilogue-hand-mount { transform: none; }
  .story-ready .journey { position: relative; inset: auto; overflow: visible; }
  .story-ready .journey-scroll { display: none; }
  .story-ready .beat { position: relative; inset: auto; display: grid; height: auto; pointer-events: auto; }
  .story-ready .player-overlay { position: fixed; }
  .story-ready .stage, .story-ready .beat > .copy { grid-area: 1 / 1; position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
  .story-ready .stage { min-height: 100svh; }
  .story-ready .stage.stage-active { touch-action: auto; }
  .copy { position: relative; display: grid; justify-items: center; gap: 16px; padding: calc(var(--hud-bottom) + 12px) 15px 55px; pointer-events: auto; }
  .chapter-copy, .decision, .ending, .response { position: relative; inset: auto; opacity: 1; transform: none; }
  .beat[data-result="true"] .response { inset: auto; opacity: 1; transform: none; }
  .beat[data-result="true"] .decision { display: none; }
  .beat[data-battle="true"] .decision, .beat[data-battle="true"] .response { inset: auto; transform: none; }
  .ending { max-height: none; }
  .scroll-cue { top: auto; bottom: 8px; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .depth, .beat[data-scene="9"] :is(.depth-arena, .depth-ending), .beat:is([data-scene="3"], [data-scene="5"]) .depth-middle { transform: none; }
  .hand, .sword { transform: rotate(var(--rest-angle)); }
}

.legal-page { background: radial-gradient(ellipse at 80% 0%, #292135, #0b0c14 42%); }
.legal-header, .legal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(18px, 6vw, 100px); }
.legal-header { border-bottom: 1px solid #eacb724a; }
.legal-header img { width: clamp(90px, 20vw, 132px); }
.legal-return { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #f8d98c; font: 600 .69rem/1.45 var(--mono); text-transform: uppercase; }
.legal-page .terms-privacy-container { max-width: 860px; margin: 0 auto; padding: clamp(32px, 8vw, 90px) clamp(20px, 5vw, 52px); }
.legal-page h1 { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #eacb7254; color: #ffcf5a; font-size: clamp(3.5rem, 10vw, 7rem); }
.legal-page h3 { margin: 2em 0 .65em; color: #ffdb8b; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.25; }
.legal-page main p, .legal-page main li { margin: .75em 0; color: #ece5d6; overflow-wrap: anywhere; }
.legal-page main ul, .legal-page main ol { padding-inline-start: 1.4em; }
.legal-page main a { color: #ffdb8b; text-decoration: underline; text-underline-offset: .2em; }
.legal-footer { justify-content: center; flex-wrap: wrap; gap: 12px 26px; border-top: 1px solid #eacb7240; font-size: .84rem; }
.legal-footer a, .legal-return { padding-block: 10px; }
.legal-footer [aria-current="page"], .legal-footer a:hover, .legal-return:hover { color: var(--gold); }
