@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('./assets/fonts/ma-shan-zheng.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('./assets/fonts/noto-serif-sc-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('./assets/fonts/noto-serif-sc-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #171713;
  --paper: #eee5d2;
  --paper-deep: #d8c9ad;
  --vermilion: #a53e2d;
  --vermilion-bright: #c5583f;
  --mist: #aeb7b3;
  --gold: #bb9b62;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: 'Noto Serif SC', 'Songti SC', serif;
  background: var(--ink);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-width: 320px; min-height: 100%; background: var(--ink); color: #f4eedf; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #e5c987; outline-offset: 4px; }
::selection { background: var(--vermilion); color: #fff9ec; }

.life-scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-image: var(--scene-image);
  background-size: cover;
  background-position: center;
}

.life-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--scene-image) center / cover no-repeat;
  animation: scene-breathe 16s ease-in-out infinite alternate;
}

.life-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 11, .8) 0%, rgba(10, 12, 11, .38) 45%, rgba(8, 10, 9, .18) 100%), linear-gradient(0deg, rgba(9, 10, 9, .88) 0%, transparent 58%);
}

.scene-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 75% 30%, transparent 0 18%, rgba(6, 8, 7, .2) 66%);
  mix-blend-mode: multiply;
}

.topbar {
  position: relative;
  z-index: 20;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(238, 229, 210, .18);
  background: rgba(12, 13, 12, .34);
  backdrop-filter: blur(16px);
}

.wordmark, .journey-button {
  border: 0;
  color: #f5eddb;
  background: transparent;
  cursor: pointer;
}

.wordmark { justify-self: start; display: flex; gap: 10px; align-items: baseline; padding: 8px 0; }
.wordmark span { font-size: 12px; letter-spacing: .24em; }
.wordmark b { font-family: 'Ma Shan Zheng', serif; font-size: 28px; font-weight: 400; color: #e2c78f; }

.place-mark { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; color: rgba(246, 239, 222, .82); }
.place-mark i { width: 3px; height: 3px; border-radius: 50%; background: var(--vermilion-bright); }

.journey-button { justify-self: end; padding: 10px 0; font-size: 12px; letter-spacing: .1em; }
.journey-button span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 8px; border: 1px solid rgba(238, 229, 210, .35); border-radius: 50%; font-variant-numeric: tabular-nums; }

.fold-spine {
  position: absolute;
  top: 88px;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: .35;
  background: linear-gradient(transparent, rgba(238,229,210,.4) 10%, rgba(238,229,210,.12) 85%, transparent);
  box-shadow: -12px 0 34px rgba(0,0,0,.42), 12px 0 34px rgba(255,255,255,.04);
}

.opening-layout, .chapter-layout, .ending-layout, .outcome-layout, .attribute-layout, .story-layout {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 88px);
  padding: clamp(42px, 7vh, 90px) clamp(24px, 6vw, 96px) clamp(36px, 6vh, 72px);
}

.opening-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr); gap: clamp(48px, 8vw, 130px); align-items: center; }

.opening-voice { max-width: 610px; text-shadow: 0 3px 24px #0b0d0c; }
.hand-note { margin: 0 0 22px; font-family: 'Ma Shan Zheng', serif; font-size: 23px; color: #e4c58e; letter-spacing: .08em; }
.opening-voice h1, .narrative-paper h1, .ending-copy h1, .attribute-intro h1, .story-paper h1 { margin: 0; text-wrap: balance; font-size: clamp(42px, 5vw, 76px); line-height: 1.16; letter-spacing: -.025em; font-weight: 700; }
.opening-body { max-width: 33em; margin: 32px 0 18px; font-size: 17px; line-height: 2; color: rgba(246, 239, 222, .85); }
.opening-instruction { margin: 0; font-size: 15px; color: #f2dcae; }
.wish-count { margin-top: 28px; width: fit-content; font-size: 13px; letter-spacing: .12em; color: rgba(246,239,222,.65); }
.wish-count span { font-family: 'Ma Shan Zheng', serif; font-size: 32px; color: #f0d39a; }

.wish-field { display: grid; align-content: center; gap: 10px; max-width: 720px; }
.wish {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 17px 20px;
  border: 0;
  border-bottom: 1px solid rgba(238, 229, 210, .25);
  color: #f5eddb;
  text-align: left;
  background: rgba(15, 17, 15, .46);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background .35s var(--ease-out), transform .35s var(--ease-out);
}
.wish:first-child { border-top: 1px solid rgba(238, 229, 210, .25); }
.wish:hover { background: rgba(43, 41, 34, .68); transform: translateX(-8px); }
.wish.is-selected { background: rgba(110, 44, 34, .78); }
.wish-seal { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(219, 105, 78, .8); color: #f1b39f; font-family: 'Ma Shan Zheng', serif; font-size: 26px; transform: rotate(-2deg); }
.wish-copy { display: grid; gap: 5px; }
.wish-copy b { font-size: 17px; line-height: 1.45; }
.wish-copy small { font-size: 12px; line-height: 1.65; color: rgba(246,239,222,.65); }
.wish-check { width: 14px; height: 14px; border: 1px solid rgba(246,239,222,.45); border-radius: 50%; }
.wish.is-selected .wish-check { border: 4px solid #e4d5b8; background: var(--vermilion); }
.first-person-mark { position: absolute; z-index: 3; right: 18px; bottom: 22px; writing-mode: vertical-rl; font-size: 11px; line-height: 2; letter-spacing: .18em; color: rgba(246,239,222,.55); }

.attribute-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(560px, 1.1fr); gap: clamp(48px, 8vw, 130px); align-items: center; }
.attribute-intro { max-width: 660px; text-shadow: 0 3px 24px #080a09; }
.attribute-intro > p:not(.hand-note) { max-width: 38em; margin: 28px 0 0; font-size: 16px; line-height: 1.9; color: rgba(246,239,222,.82); }
.intro-action { max-width: 360px; }
.attribute-grid { display: grid; gap: 9px; max-width: 760px; }
.attribute-card { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; min-height: 86px; padding: 14px 20px; border-top: 1px solid rgba(238,229,210,.24); color: #f5eddb; background: rgba(13,15,14,.58); backdrop-filter: blur(14px); }
.attribute-card:last-child { border-bottom: 1px solid rgba(238,229,210,.24); }
.attribute-card > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(219,105,78,.8); color: #f1b39f; font-family: 'Ma Shan Zheng', serif; font-size: 24px; transform: rotate(-2deg); }
.attribute-card h2 { margin: 0 0 4px; font-size: 18px; }
.attribute-card p { margin: 0; font-size: 12px; line-height: 1.65; color: rgba(246,239,222,.68); }

.story-layout { display: grid; place-items: center; }
.story-paper { width: min(760px, 100%); padding: clamp(28px, 3.5vw, 48px); text-align: center; background: rgba(12,14,13,.68); border-top: 1px solid rgba(238,229,210,.2); border-bottom: 1px solid rgba(238,229,210,.2); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.story-paper h1 { margin-inline: auto; max-width: 13ch; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.2; }
.story-paper .narrative-body { max-width: 34em; margin: 22px auto 0; font-size: 15px; line-height: 1.8; }
.story-note { width: fit-content; margin: 18px auto 0; padding: 6px 11px; border: 1px solid rgba(224,202,161,.32); color: #e9d3aa; font-size: 11px; letter-spacing: .04em; }
.story-paper .truth-button { margin-top: 18px; }
.story-action { max-width: 320px; margin-top: 18px; }

.chapter-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); gap: clamp(50px, 8vw, 150px); align-items: end; }
.narrative-paper { align-self: center; max-width: 680px; text-shadow: 0 3px 24px #080a09; }
.narrative-paper h1 { font-size: clamp(34px, 4.2vw, 64px); }
.narrative-body { max-width: 43em; margin: 28px 0 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 2; color: rgba(250,245,232,.88); }
.inner-voice, .single-echo { margin: 24px 0 0; padding: 0 0 0 20px; border-left: 1px solid var(--gold); font-family: 'Ma Shan Zheng', serif; font-size: 21px; line-height: 1.8; color: #efd49d; }
.truth-button { margin-top: 28px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(238,229,210,.38); color: rgba(246,239,222,.74); background: transparent; cursor: pointer; font-size: 12px; letter-spacing: .06em; }
.truth-button span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 8px; border: 1px solid var(--vermilion-bright); color: #f0a48d; }

.outcome-strip { display: grid; grid-template-columns: 34px 1fr; gap: 15px; margin-bottom: 28px; padding: 14px 16px; border-top: 1px solid rgba(224,202,161,.36); border-bottom: 1px solid rgba(224,202,161,.36); background: rgba(20,19,15,.45); animation: outcome-in .65s var(--ease-out) both; }
.outcome-seal { padding: 4px 0; border: 1px solid var(--vermilion-bright); color: #ed9c86; text-align: center; font-family: 'Ma Shan Zheng', serif; font-size: 12px; line-height: 1.15; }
.outcome-strip p { margin: 0 0 6px; font-size: 13px; line-height: 1.65; color: #f3e9d6; }
.outcome-strip small { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; color: #cdbb98; }

.outcome-layout { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(430px, .95fr); gap: clamp(52px, 9vw, 150px); align-items: center; }
.outcome-story { max-width: 720px; text-shadow: 0 3px 24px #080a09; }
.outcome-story h1 { margin: 0; max-width: 14ch; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.outcome-result-label { margin: 42px 0 12px; font-family: 'Ma Shan Zheng', serif; font-size: 19px; color: #e4c58e; }
.outcome-result { margin: 0; max-width: 38em; font-size: clamp(16px, 1.3vw, 19px); line-height: 2; color: #f6efde; }
.outcome-ledger { padding: clamp(28px, 4vw, 52px); color: #2f2920; background: rgba(238,229,210,.94); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.outcome-ledger h2 { margin: 0 0 26px; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; }
.outcome-changes { display: grid; }
.outcome-change { display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; padding: 14px 0; border-top: 1px solid rgba(51,43,31,.18); }
.outcome-change span { font-size: 14px; }
.outcome-change b { font-size: 15px; font-variant-numeric: tabular-nums; }
.outcome-change b i { margin: 0 5px; color: #8e7c65; font-style: normal; font-weight: 400; }
.outcome-change small { grid-column: 1 / -1; font-size: 12px; }
.outcome-change.is-gain small { color: #7b352a; }
.outcome-change.is-cost small { color: #715f4b; }
.outcome-no-change { margin: 0; padding: 18px 0; border-top: 1px solid rgba(51,43,31,.18); font-size: 13px; line-height: 1.8; color: #675b4c; }
.outcome-continue { margin-top: 30px; }

.choices-panel { align-self: end; max-width: 760px; }
.choices-heading { margin: 0 0 14px; font-family: 'Ma Shan Zheng', serif; font-size: 21px; color: #ead3a7; }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 30px;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 17px 18px;
  border: 0;
  border-top: 1px solid rgba(238,229,210,.26);
  color: #f7efdf;
  background: rgba(13,15,14,.54);
  backdrop-filter: blur(14px);
  text-align: left;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out);
}
.choice:last-child { border-bottom: 1px solid rgba(238,229,210,.26); }
.choice:hover { transform: translateX(8px); background: rgba(85,43,34,.75); }
.choice-index { font-size: 11px; font-variant-numeric: tabular-nums; color: #c7a877; }
.choice-copy { display: grid; gap: 5px; }
.choice-copy b { font-size: 16px; line-height: 1.5; }
.choice-copy em { font-size: 11px; line-height: 1.6; font-style: normal; color: rgba(246,239,222,.62); }
.personal-choice { width: fit-content; padding: 2px 6px; color: #ffd8aa; background: rgba(165,62,45,.42); letter-spacing: .05em; }
.choice-arrow { font-size: 19px; color: #d5b781; transition: transform .35s var(--ease-out); }
.choice:hover .choice-arrow { transform: translateX(6px); }

.echoes { margin-top: 26px; max-height: 250px; overflow: auto; padding-right: 10px; scrollbar-color: var(--vermilion) rgba(255,255,255,.1); }
.echo-title { margin: 0 0 12px; font-size: 12px; color: #e3c78f; letter-spacing: .08em; }
.echoes blockquote { margin: 0; padding: 11px 14px; border-top: 1px solid rgba(238,229,210,.17); background: rgba(18,17,14,.34); font-size: 12px; line-height: 1.7; color: rgba(246,239,222,.78); }
.echoes blockquote small { display: block; margin-bottom: 3px; color: #b79867; }

.journey-drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(430px, 100vw); height: 100%; padding: 32px; color: #29251e; background: #e8ddc7; box-shadow: -28px 0 80px rgba(0,0,0,.42); transform: translateX(105%); transition: transform .5s var(--ease-out); overflow: auto; }
.journey-drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 22px; border-bottom: 1px solid rgba(46,39,28,.28); }
.drawer-head small { font-size: 10px; letter-spacing: .15em; color: #7e3a2e; }
.drawer-head h2 { margin: 5px 0 0; font-size: 26px; }
.drawer-head button, .sheet-close { border: 0; border-bottom: 1px solid currentColor; padding: 6px 0; color: #573d30; background: transparent; cursor: pointer; }
.stats { display: grid; gap: 15px; margin: 30px 0 40px; }
.stat-line { display: grid; grid-template-columns: 38px 1fr 20px; gap: 12px; align-items: center; font-size: 11px; }
.stat-line i { position: relative; height: 2px; background: rgba(52,44,32,.18); }
.stat-line i::after { content: ''; display: block; width: var(--value); height: 100%; background: var(--vermilion); }
.stat-line b { color: var(--vermilion); font-variant-numeric: tabular-nums; text-align: right; }
.journey-entry { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(46,39,28,.16); }
.journey-entry span { font-size: 10px; color: var(--vermilion); }
.journey-entry p { margin: 0; font-size: 13px; line-height: 1.6; }
.journey-empty { color: #6e6557; }

.truth-sheet { visibility: hidden; position: fixed; z-index: 60; inset: 0; }
.truth-sheet.is-open { visibility: visible; }
.sheet-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,8,7,.64); opacity: 0; transition: opacity .3s; }
.truth-sheet.is-open .sheet-scrim { opacity: 1; }
.sheet-paper { position: absolute; left: 50%; bottom: 0; width: min(680px, calc(100% - 24px)); padding: 34px clamp(24px, 5vw, 58px) max(34px, env(safe-area-inset-bottom)); color: #2e2921; background: #ede3ce; box-shadow: 0 -25px 80px rgba(0,0,0,.35); transform: translate(-50%, 105%); transition: transform .5s var(--ease-out); }
.truth-sheet.is-open .sheet-paper { transform: translate(-50%, 0); }
.sheet-handle { width: 44px; height: 2px; margin: -16px auto 24px; background: rgba(58,49,36,.28); }
.sheet-paper small { color: var(--vermilion); font-size: 11px; letter-spacing: .14em; }
.sheet-paper p { margin: 14px 0 24px; font-size: 15px; line-height: 1.9; }

.ending-layout { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(60px,10vw,160px); }
.ending-copy { max-width: 740px; text-shadow: 0 3px 24px #080a09; }
.ending-copy h1 { font-size: clamp(44px, 5.6vw, 82px); }
.ending-copy > p { max-width: 37em; margin: 30px 0; font-size: 17px; line-height: 2; color: rgba(246,239,222,.84); }
.ending-copy blockquote { margin: 0; padding-left: 20px; border-left: 1px solid var(--gold); font-family: 'Ma Shan Zheng', serif; font-size: 22px; line-height: 1.8; color: #ecd19b; }
.ending-ledger { align-self: center; padding: clamp(28px, 4vw, 52px); color: #2f2920; background: rgba(238,229,210,.92); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.ending-ledger > p { margin: 0 0 26px; font-size: 13px; color: #72513f; }
.ending-ledger > div { display: grid; grid-template-columns: 48px 26px 1fr; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(51,43,31,.16); }
.ending-ledger > div b { font-variant-numeric: tabular-nums; color: var(--vermilion); }
.ending-ledger > div i { height: 3px; background: rgba(51,43,31,.15); }
.ending-ledger > div i::after { content: ''; display: block; width: var(--value); height: 100%; background: var(--vermilion); }
.wealth-verdict { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(51,43,31,.3); }
.wealth-verdict span { color: #7b352a; font-size: 11px; letter-spacing: .06em; }
.wealth-verdict h2 { margin: 8px 0 10px; font-size: 25px; }
.wealth-verdict p { margin: 0; font-size: 12px; line-height: 1.75; color: #655748; }
.primary-action, .quiet-action { width: 100%; min-height: 52px; margin-top: 24px; border: 0; cursor: pointer; }
.primary-action { color: #f7ecda; background: #6c2f26; }
.quiet-action { margin-top: 8px; color: #4c3e31; background: transparent; border-bottom: 1px solid rgba(52,44,32,.25); }

@keyframes scene-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes outcome-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }

@media (max-width: 900px) {
  .life-scene { min-height: 100svh; }
  .topbar { height: 58px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .place-mark { position: absolute; top: 58px; left: 0; width: 100%; min-height: 34px; justify-content: center; padding: 7px 12px; background: rgba(10,11,10,.45); backdrop-filter: blur(10px); }
  .wordmark span { display: none; }
  .wordmark b { font-size: 24px; }
  .fold-spine { display: none; }
  .opening-layout, .chapter-layout, .ending-layout, .outcome-layout, .attribute-layout, .story-layout { min-height: calc(100svh - 58px); padding: 54px 16px max(16px, env(safe-area-inset-bottom)); }
  .opening-layout { display: block; }
  .opening-voice { padding: clamp(24px, 5vh, 48px) 4px 14px; }
  .opening-voice h1, .narrative-paper h1, .ending-copy h1, .attribute-intro h1, .story-paper h1 { font-size: clamp(30px, 8.6vw, 42px); }
  .opening-body { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .opening-instruction { font-size: 13px; }
  .wish-count { margin-top: 10px; }
  .wish { min-height: 64px; grid-template-columns: 42px 1fr 18px; gap: 10px; padding: 10px 12px; background: rgba(13,15,14,.72); }
  .wish:hover { transform: none; }
  .wish-seal { width: 40px; height: 40px; font-size: 22px; }
  .wish-copy b { font-size: 15px; }
  .wish-copy small { font-size: 11px; line-height: 1.5; }
  .first-person-mark { display: none; }
  .attribute-layout { display: block; overflow: auto; padding-top: 54px; }
  .attribute-intro { padding: 28px 4px 16px; }
  .attribute-intro > p:not(.hand-note) { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .intro-action { margin-top: 16px; }
  .attribute-grid { gap: 6px; }
  .attribute-card { min-height: 66px; grid-template-columns: 42px 1fr; gap: 10px; padding: 9px 12px; background: rgba(13,15,14,.76); }
  .attribute-card > span { width: 38px; height: 38px; font-size: 20px; }
  .attribute-card h2 { font-size: 15px; }
  .attribute-card p { font-size: 10px; line-height: 1.45; }
  .story-layout { align-items: end; padding-top: 48px; }
  .story-paper { padding: 22px 16px; text-align: left; background: rgba(12,14,13,.8); }
  .story-paper h1 { margin-inline: 0; }
  .story-paper .narrative-body { margin: 12px 0 0; }
  .story-note { margin: 14px 0 0; }
  .story-action { margin-top: 16px; }
  .chapter-layout { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-top: 48px; }
  .narrative-paper { align-self: stretch; }
  .hand-note { margin-bottom: 9px; font-size: 17px; }
  .narrative-paper h1 { font-size: clamp(27px, 7.8vw, 38px); line-height: 1.15; }
  .narrative-body { margin-top: 10px; font-size: 13px; line-height: 1.62; }
  .outcome-strip { margin-bottom: 18px; }
  .outcome-layout { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; align-content: center; padding-top: 48px; }
  .outcome-story { width: 100%; }
  .outcome-story h1 { font-size: clamp(27px, 7.8vw, 38px); }
  .outcome-result-label { margin: 14px 0 6px; font-size: 16px; }
  .outcome-result { font-size: 13px; line-height: 1.62; }
  .outcome-ledger { width: 100%; padding: 18px; }
  .outcome-ledger h2 { margin-bottom: 12px; font-size: 21px; }
  .outcome-change { gap: 3px 12px; padding: 8px 0; }
  .outcome-change small { font-size: 10px; }
  .outcome-continue { min-height: 46px; margin-top: 14px; }
  .choices-panel { align-self: stretch; }
  .choices-heading { margin-bottom: 7px; font-size: 18px; }
  .choice { min-height: 58px; padding: 9px 11px; grid-template-columns: 24px 1fr 18px; gap: 8px; background: rgba(12,14,13,.78); }
  .choice-copy b { font-size: 14px; }
  .choice-copy em { font-size: 10px; }
  .truth-button { margin-top: 10px; padding: 6px 0; }
  .truth-button span { width: 22px; height: 22px; }
  .echoes { max-height: 120px; margin-top: 12px; }
  .single-echo, .inner-voice { margin-top: 12px; font-size: 17px; line-height: 1.55; }
  .ending-layout { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding-top: 48px; }
  .ending-copy > p { font-size: 14px; line-height: 1.85; }
  .ending-copy blockquote { font-size: 18px; }
  .ending-ledger { width: 100%; padding: 18px; }
  .life-scene::after { background: linear-gradient(0deg, rgba(8,10,9,.96) 0%, rgba(8,10,9,.64) 58%, rgba(8,10,9,.12) 100%); }
}

@media (max-width: 430px) {
  .opening-layout { padding-top: 48px; }
  .wish-field { gap: 6px; }
  .wish { min-height: 58px; }
  .wish-copy small { display: none; }
  .chapter-layout { padding-left: 12px; padding-right: 12px; gap: 12px; }
  .choice { min-height: 56px; }
  .choice-copy em { display: none; }
  .journey-drawer { padding: 24px 20px; }
  .outcome-layout { padding-left: 12px; padding-right: 12px; }
  .outcome-ledger { padding: 16px; }
  .attribute-card p { display: block; }
}

@media (max-width: 430px) and (max-height: 760px) {
  .chapter-layout, .outcome-layout, .ending-layout { padding-top: 42px; }
  .hand-note { font-size: 15px; }
  .narrative-paper h1, .outcome-story h1 { font-size: 25px; }
  .narrative-body, .outcome-result { font-size: 12px; line-height: 1.5; }
  .choice { min-height: 50px; }
  .outcome-change { padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
