:root {
  color-scheme: light;
  --paper: #f5efe2;
  --paper-deep: #eadfc9;
  --card: #fffaf0;
  --ink: #20251f;
  --muted: #65665d;
  --red: #9d3427;
  --red-dark: #76251d;
  --green: #315c46;
  --gold: #aa772c;
  --line: #cbbd9f;
  --focus: #155e75;
  --radius: 20px;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(130, 103, 66, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 103, 66, .025) 1px, transparent 1px);
  background-size: 26px 26px;
}

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

#app {
  width: min(100%, 760px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

#app.cover-mode {
  width: min(100%, 1086px);
  max-width: 1086px;
  padding: 0;
}

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

.screen { animation: enter .28s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 9vw, 64px); line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 7vw, 44px); line-height: 1.22; }
h3 { font-size: 23px; line-height: 1.35; }
p { font-size: 20px; line-height: 1.75; }

.home {
  display: grid;
  align-content: center;
  min-height: calc(100dvh - 52px);
}
.home-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1086 / 1448;
  overflow: hidden;
  background: #eee1c8;
}
.home-cover-image {
  display: block;
  width: 100%;
  height: auto;
}
.home-cover-button {
  position: absolute;
  top: 57.2%;
  left: 18.5%;
  width: 63%;
  height: 14%;
  padding: 0;
  border: 0;
  border-radius: 22%;
  background: transparent;
  cursor: pointer;
}
.home-cover-button:hover { background: rgba(255, 255, 255, .07); }
.home-cover-button:active { background: rgba(92, 20, 12, .12); }
.home-title span { display: block; color: var(--red); }
.home-lead { max-width: 30em; font-size: 23px; }
.home-note { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.seal-row { display: flex; gap: 10px; margin-bottom: 24px; }
.seal {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--red);
  color: var(--red);
  font-size: 18px;
  font-weight: 800;
  transform: rotate(-4deg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.text-button {
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-family: system-ui, sans-serif;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
}
.progress-label { color: var(--muted); font-family: system-ui, sans-serif; font-size: 16px; font-weight: 700; }
.progress { height: 9px; margin-bottom: 24px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--red); transition: width .25s ease; }

.media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #e8ddc8;
}
.media img { width: 100%; height: 100%; object-fit: contain; display: block; background: #f4efe6; }
.media-placeholder {
  display: grid;
  min-height: 150px;
  margin-bottom: 26px;
  place-items: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 17px;
  background: rgba(255, 250, 240, .55);
}

.question-title { margin-bottom: 20px; font-size: clamp(26px, 6vw, 34px); }
.options { display: grid; gap: 13px; }
.option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
  cursor: pointer;
}
.option:hover { border-color: var(--red); }
.option.selected { border-color: var(--green); background: #eef3ea; }
.option-mark { color: var(--red); font-family: system-ui, sans-serif; font-weight: 850; }

.button {
  display: inline-flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--red-dark);
  border-radius: 14px;
  background: var(--red);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); }
.button.secondary { background: transparent; color: var(--red-dark); }
.button.secondary:hover { background: #f0e2cf; }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.actions { display: grid; gap: 12px; margin-top: 26px; }

.result { min-height: calc(100dvh - 52px); display: grid; align-content: center; }
.result-badge { margin-bottom: 12px; color: var(--green); font-size: clamp(38px, 9vw, 62px); font-weight: 900; line-height: 1.15; }
.result-badge.gentle { color: var(--gold); }
.answer-name { margin-bottom: 24px; color: var(--red-dark); font-size: clamp(30px, 7vw, 46px); }
.experience {
  margin: 0 0 22px;
  padding: 20px 22px;
  border-left: 6px solid var(--green);
  background: var(--card);
  font-size: 23px;
  line-height: 1.75;
}
.stats {
  display: grid;
  gap: 13px;
  padding-top: 6px;
}
.stat-line { margin: 0; font-family: system-ui, sans-serif; font-size: 17px; line-height: 1.55; color: var(--muted); }
.stat-line strong { color: var(--red-dark); font-size: 25px; }
.funny {
  position: relative;
  margin: 0;
  padding: 17px 19px;
  border: 2px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  background: #fff7dd;
  font-size: 19px;
  line-height: 1.65;
}
.demo-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; vertical-align: 2px; }

.result-v2 { display: block; min-height: auto; padding-bottom: 20px; }
.result-celebration {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 22px;
}
.result-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 5px solid currentColor;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
  animation: medal-pop .38s cubic-bezier(.2, .85, .3, 1.25) both;
}
.result-symbol.is-correct { color: var(--green); }
.result-symbol.is-unlocked { color: var(--gold); }
.result-step {
  margin: 0 0 3px;
  color: var(--red);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .12em;
}
.result-celebration h1 { margin: 0; font-size: clamp(37px, 9vw, 58px); }

.wisdom-stage {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  padding: 24px 22px;
  overflow: hidden;
  border: 2px solid #b99c63;
  border-radius: 22px;
  background: #fff7df;
}
.wisdom-stage::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(157, 52, 39, .28);
  border-radius: 14px;
}
.wisdom-stage.is-revealed {
  border-color: #b9ab8c;
  background: #f7f1e5;
}
.wisdom-stage.is-revealed::after { border-style: dashed; border-color: rgba(101, 102, 93, .3); }
.wisdom-stage.is-revealed .wisdom-kicker { color: var(--muted); }
.wisdom-stage.is-revealed .wisdom-medal {
  border-color: var(--gold);
  color: #74541f;
  transform: none;
}
.wisdom-kicker {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red-dark);
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}
.wisdom-medal {
  position: relative;
  z-index: 1;
  display: grid;
  width: 126px;
  height: 126px;
  align-self: center;
  place-content: center;
  border: 4px double var(--red);
  border-radius: 50%;
  color: var(--red-dark);
  text-align: center;
  transform: rotate(-3deg);
}
.wisdom-medal span {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
}
.wisdom-medal strong { display: block; margin-top: 6px; font-size: 24px; }
.wisdom-copy { position: relative; z-index: 1; }
.wisdom-answer {
  margin: 0 0 8px;
  color: var(--green);
  font-family: system-ui, sans-serif;
  font-size: 17px;
  font-weight: 850;
}
.wisdom-copy h2 { margin-bottom: 10px; font-size: clamp(23px, 5.5vw, 31px); line-height: 1.5; }
.wisdom-copy > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.youth-stage {
  margin-top: 24px;
  padding: 22px;
  border: 2px dashed #c6a977;
  border-radius: 22px;
  background: #fffaf0;
  animation: youth-rise .45s .12s ease-out both;
}
.youth-stage.is-shared-miss { border-style: solid; border-color: #d2c5a9; }
.youth-lead {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 18px;
  font-weight: 850;
}
.youth-lead span { color: var(--red); font-size: 24px; }
.youth-bubble {
  position: relative;
  padding: 18px 20px;
  border: 3px solid var(--ink);
  border-radius: 22px 22px 22px 5px;
  background: #fff3c9;
}
.youth-bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -12px;
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: #fff3c9;
  transform: skewY(35deg) rotate(18deg);
}
.youth-label {
  color: var(--red);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}
.youth-bubble p { margin: 8px 0 0; font-size: clamp(21px, 5.5vw, 28px); font-weight: 700; line-height: 1.55; }
.youth-punchline {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.error-seal {
  display: grid;
  width: 88px;
  height: 88px;
  place-content: center;
  border: 3px solid var(--red);
  border-radius: 50%;
  color: var(--red-dark);
  text-align: center;
  transform: rotate(4deg);
}
.error-seal strong { font-family: system-ui, sans-serif; font-size: 26px; line-height: 1; }
.error-seal span { margin-top: 4px; font-size: 14px; font-weight: 800; }
.youth-punchline p { margin: 0; font-size: 18px; line-height: 1.65; }
.youth-punchline p strong { color: var(--red-dark); }
.demo-note { margin: 10px 0 0; color: var(--muted); text-align: right; font-family: system-ui, sans-serif; font-size: 13px; }

@keyframes medal-pop {
  from { opacity: 0; transform: scale(.6) rotate(-12deg); }
}
@keyframes youth-rise {
  from { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 520px) {
  .result-symbol { width: 74px; height: 74px; font-size: 48px; }
  .wisdom-stage { grid-template-columns: 1fr; gap: 14px; }
  .wisdom-medal { width: 112px; height: 112px; margin: 0 auto; }
  .wisdom-copy { text-align: center; }
}

.certificate {
  position: relative;
  margin-top: 18px;
  padding: clamp(30px, 7vw, 58px) clamp(22px, 6vw, 48px);
  border: 8px double var(--gold);
  outline: 2px solid var(--red-dark);
  outline-offset: -15px;
  background: #fff6dc;
  text-align: center;
}
.certificate::before, .certificate::after { content: "◆"; position: absolute; color: var(--red); font-size: 20px; }
.certificate::before { left: 22px; top: 18px; }
.certificate::after { right: 22px; bottom: 18px; }
.certificate-kicker { color: var(--red-dark); font-family: system-ui, sans-serif; font-weight: 850; letter-spacing: .25em; }
.score { margin: 20px 0 4px; font-family: system-ui, sans-serif; font-size: clamp(60px, 18vw, 104px); font-weight: 900; line-height: 1; color: var(--red); }
.score small { font-size: .26em; color: var(--ink); }
.certificate-award { margin: 22px 0 7px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .18em; }
.title-name { margin: 0 0 18px; font-size: clamp(37px, 9vw, 58px); color: var(--green); }
.certificate-score { display: inline-block; margin: 0 0 24px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.4; }
.certificate-score strong { color: var(--red-dark); font-size: 19px; }
.certificate-message { padding-top: 20px; border-top: 1px solid var(--line); }
.certificate-message p { margin-bottom: 14px; font-size: 19px; line-height: 1.75; }
.certificate-message p:last-child { margin-bottom: 0; color: var(--red-dark); }
.certificate-copy { margin-bottom: 0; font-size: 20px; }
.certificate-foot { margin-top: 22px; color: var(--muted); font-size: 15px; font-family: system-ui, sans-serif; }
.strongest-theme {
  display: inline-grid;
  min-width: min(100%, 280px);
  padding: 14px 20px;
  border: 2px solid var(--green);
  border-radius: 14px;
  color: var(--green);
}
.strongest-theme span { font-family: system-ui, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .12em; }
.strongest-theme strong { margin-top: 4px; font-size: 28px; }

.story-bridge {
  position: relative;
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 7px solid var(--green);
  background: var(--card);
}
.story-bridge-kicker {
  margin-bottom: 7px;
  color: var(--red);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
}
.memory-objects {
  margin-bottom: 8px;
  color: var(--red-dark);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
}
.story-bridge h2 { margin-bottom: 8px; color: var(--green); font-size: clamp(25px, 6vw, 34px); line-height: 1.45; }
.story-bridge > p:not(.story-bridge-kicker):not(.story-bridge-note):not(.memory-objects):not(.story-bridge-copy) { margin-bottom: 12px; font-size: 20px; line-height: 1.7; }
.story-bridge-note { margin-bottom: 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.story-bridge .story-bridge-copy { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.story-bridge-copy strong { color: var(--red-dark); }
.story-cta { min-height: 68px; font-size: 22px; }
.story-cta span { margin-left: 12px; font-size: 28px; transition: transform .18s ease; }
.story-cta:hover span { transform: translateX(5px); }

.intro-copy { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.story-card {
  min-height: 96px;
  padding: 16px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}
.story-card.correct { border-color: #86a28f; }
.story-card.theme-match { border-color: var(--green); background: #f0f3e8; }
.story-card.theme-match::before { content: "最熟悉"; display: block; margin-bottom: 6px; color: var(--green); font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: .08em; }
.story-card small { display: block; margin-top: 7px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; font-weight: 600; }
.story-card.selected { border-color: var(--red); background: #fae8d5; }
.story-grid.story-shortlist { grid-template-columns: 1fr; gap: 14px; }
.story-card-large {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 14px;
}
.story-card-large img {
  width: 104px;
  height: 98px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--paper-deep);
}
.story-card-large .story-card-copy > strong { display: block; font-size: 22px; }
.story-card-large .story-card-copy small { font-size: 16px; line-height: 1.55; }
.story-card-large.theme-match::before {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green);
  color: white;
}
.refresh-stories span { margin-right: 8px; font-size: 25px; line-height: 1; }

.story-select-screen {
  position: relative;
  isolation: isolate;
  padding-top: 6px;
}
.story-select-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -20px;
  width: 48%;
  height: 250px;
  border-radius: 0 0 0 80px;
  background: url("./assets/story-memory-photo.jpg") center / cover no-repeat;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom left, #000 36%, transparent 92%);
  mask-image: linear-gradient(to bottom left, #000 36%, transparent 92%);
}
.story-select-screen > .text-button { position: relative; z-index: 1; margin-bottom: 26px; }
.memory-route {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  padding: 8px 15px;
  border: 1px solid #cdbd91;
  border-radius: 999px;
  background: rgba(255, 250, 240, .78);
  color: var(--green);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  font-weight: 750;
}
.memory-route span { color: var(--gold); }
.story-select-screen > h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1.35;
}
.story-select-intro {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.story-select-screen .story-shortlist { gap: 18px; }
.story-select-screen .story-card-large {
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 26px;
  min-height: 190px;
  padding: 14px;
  border: 2px solid #dfd3bc;
  border-radius: 24px;
  background: rgba(255, 252, 245, .92);
  box-shadow: 0 8px 20px rgba(62, 49, 28, .08);
}
.story-select-screen .story-card-large.selected {
  border: 3px solid var(--red);
  background: #fff6e8;
  box-shadow: 0 9px 22px rgba(116, 37, 29, .12);
}
.story-select-screen .story-card-large img {
  width: 100%;
  height: 164px;
  border-radius: 18px;
  object-fit: cover;
}
.story-card-copy { min-width: 0; }
.story-select-screen .story-card-copy > strong { font-size: clamp(25px, 5vw, 34px); line-height: 1.25; }
.story-card-copy > i { display: block; width: 32px; height: 3px; margin: 14px 0; border-radius: 3px; background: var(--gold); }
.story-select-screen .story-card-copy small { margin: 0; font-size: 18px; line-height: 1.65; }
.story-recommended {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 850;
}
.story-select-actions { display: grid; gap: 12px; margin-top: 30px; padding: 0 10px; }
.story-start {
  min-height: 72px;
  border-radius: 999px;
  font-size: 23px;
  box-shadow: 0 8px 18px rgba(118, 37, 29, .18);
}
.story-start span { margin-right: 10px; font-size: 30px; }
.story-select-actions .refresh-stories { min-height: 58px; border-radius: 999px; }
.story-select-actions .button.ghost { min-height: 46px; }

@media (max-width: 420px) {
  .story-card-large { grid-template-columns: 88px 1fr; gap: 12px; }
  .story-card-large img { width: 88px; height: 88px; }
  .story-select-screen::before { width: 52%; height: 190px; opacity: .38; }
  .story-select-screen > .text-button { margin-bottom: 18px; }
  .memory-route { font-size: 14px; }
  .story-select-screen > h1 { font-size: 38px; }
  .story-select-screen .story-card-large { grid-template-columns: 112px 1fr; gap: 14px; min-height: 152px; }
  .story-select-screen .story-card-large img { width: 112px; height: 124px; }
  .story-select-screen .story-card-copy > strong { font-size: 23px; }
  .story-select-screen .story-card-copy small { font-size: 15px; }
  .story-recommended { top: 7px; right: 8px; font-size: 11px; }
}

.story-label { display: block; margin: 24px 0 10px; font-size: 21px; font-weight: 800; }
.story-prompt {
  margin-top: 22px;
  padding: 20px 22px 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff7dd;
}
.story-prompt > span { color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; font-weight: 750; }
.story-prompt > p { margin: 8px 0 12px; color: var(--green); font-size: clamp(21px, 5vw, 27px); font-weight: 750; line-height: 1.55; }
.story-prompt.is-free > p { margin-bottom: 2px; }
.prompt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.prompt-actions .text-button { color: var(--red-dark); font-size: 15px; }
.prompt-note { margin: 9px 0 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; line-height: 1.55; }
.story-input {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.7;
}
.privacy-note { margin-top: 10px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.6; }

.finish-mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 16px 0 28px;
  place-items: center;
  border: 4px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 46px;
  font-weight: 900;
}
.saved-story { margin-top: 24px; padding: 20px; border-left: 6px solid var(--gold); background: var(--card); }
.saved-story p:last-child { margin-bottom: 0; }

.review-list { display: grid; gap: 12px; margin-top: 22px; }
.review-item { padding: 17px 18px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.review-item h3 { margin-bottom: 6px; }
.review-item p { margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.review-item .right { color: var(--green); }
.review-item .wrong { color: var(--red); }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 40px), 520px);
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 16px;
}

@media (min-width: 680px) {
  #app { padding-left: 32px; padding-right: 32px; }
  .story-grid { grid-template-columns: repeat(3, 1fr); }
  .actions.two { grid-template-columns: 1fr 1fr; }
}

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