/* Story finish · 2026-10-24
 * Keep the tested stage, dialogue and touch-target geometry. Original character,
 * food and location illustrations stay intact; only the interface finish changes. */
.st-sheet {
  --st-ink: #173e50; --st-paper: #fffdf7;
  --cp-ink: #173e50; --cp-deep: #173e50; --cp-gold: #ffd568;
  --adv-ink: #173e50; --adv-paper: #fffdf7; --adv-line: #d4e4e6;
}
.cg-game { --cg-ink: #173e50; --cg-blue: #147d92; --cg-yellow: #ffd568; }
.st-sheet .c-sheet__head { border-bottom: 1px solid #d4e4e6; background: #fffdf7; }
.st-sheet .c-sheet__title, .st-sheet .st-hbtn { color: #173e50; }
.st-sheet .st-hbtn:not(:disabled):hover { background: #eaf5f5; }
.st-sheet .st-hbtn:active { background: #dceff0; }

/* One action language across the four chapters. Target sizes remain 44–56 px. */
.adv-btn, .cp-button, .cg-btn {
  border: 1px solid #cbdfe3; border-radius: 16px;
  background: #fffdf7; color: #173e50;
  box-shadow: 0 4px 12px #173e5010, inset 0 1px 0 #fff;
}
.adv-btn--primary, .cp-button--primary, .cg-btn--primary, .cp-objective--go {
  border: 1px solid #dfbc60;
  background: linear-gradient(180deg, #ffe5a1 0%, #ffd568 100%); color: #173e50;
  box-shadow: 0 5px 14px #9b731b20, inset 0 1px 0 #fff4ce;
}
.adv-btn--quiet, .cp-button--quiet, .cg-btn--quiet {
  border-color: #d4e4e6; background: #f2f8f8; color: #315b69;
  box-shadow: 0 3px 10px #173e5009;
}
.adv-btn:active, .cp-button:active, .cg-btn:active, .cp-objective:active {
  transform: translateY(1px); box-shadow: 0 2px 5px #173e5016;
}
.adv-btn:disabled, .adv-btn[aria-disabled="true"] {
  border-color: #d5e1df; background: #edf2ef; color: #62756f; box-shadow: none;
}
.adv-next, .cp-next {
  border: 1px solid #dfbc60;
  background: linear-gradient(180deg, #ffe9b0, #ffd568);
  color: #173e50; box-shadow: 0 4px 10px #88652024, inset 0 1px 0 #fff5d6;
}
.adv-next:active, .cp-next:active { transform: translateY(1px); box-shadow: 0 2px 5px #88652024; }

/* Chapter library: illustrations, a clear title, and a quieter progress badge. */
.cp-hub { background: linear-gradient(180deg, #e8f4f4, #f7faf7 55%, #fffdf7); }
.cp-hub__head {
  min-height: 72px; padding: 8px; border: 1px solid #d4e4e6; border-radius: 18px;
  background: linear-gradient(90deg, #fffdf71a, #fffdf733 45%, #fffdf71a), url('../ui/expedition-banner-20261024.webp') center 58% / cover;
  box-shadow: 0 6px 18px #173e5010;
}
.cp-medal {
  border: 1px solid #c6dce0; background: #ffffffd9; color: #65848d;
  box-shadow: 0 3px 9px #173e5010, inset 0 1px 0 #fff;
}
.cp-medal.is-earned {
  border-color: #ddbd65; background: linear-gradient(145deg, #ffedb1, #ffd568);
  color: #173e50; box-shadow: 0 3px 10px #95701d1c, inset 0 1px 0 #fff7dc;
}
.cp-hub__count { color: #315b69; }
.cp-chapter {
  border: 1px solid #d4e4e6; border-radius: 18px;
  background: linear-gradient(110deg, #fffdf7 65%, #f3f9f8);
  color: #173e50; box-shadow: 0 6px 18px #173e5010;
}
.cp-chapter__pic { border-radius: 13px; background: #daedf0; }
.cp-chapter__copy small { color: #147d92; letter-spacing: .06em; }
.cp-chapter__copy strong { color: #173e50; letter-spacing: .02em; }
.cp-chapter__status { background: #fff0bf; color: #67521d; box-shadow: none; }
.cp-chapter.is-complete { border-color: #d5dfc4; }
.cp-chapter.is-complete .cp-chapter__status { background: #e8f3e7; color: #2a6944; }
.cp-chapter.is-locked { border-color: #dce6e7; background: #f1f6f5; color: #66818a; box-shadow: 0 3px 9px #173e5008; }
.cp-chapter.is-locked .cp-chapter__copy strong, .cp-chapter.is-locked .cp-chapter__copy small { color: #617c86; }
.cp-chapter.is-locked .cp-chapter__status { background: #e3eeef; color: #536d78; }
.cp-chapter:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 2px 7px #173e5016; }
.cp-hub__foot { background: linear-gradient(#fffdf700, #fffdf7 24%); }
.cp-objective { border-radius: 18px; }
.cp-objective--all { color: #315b69; }
.cp-eyebrow { border: 1px solid #dfbc60; background: #ffe6a3; color: #173e50; }

/* Characters continue to stand on the same dialogue box. */
.adv-dialogue, .cp-dialogue, .adv-panel {
  border: 1px solid #cbdfe3; border-radius: 20px;
  background: #fffdf7; color: #173e50; box-shadow: 0 8px 24px #173e501c;
}
.adv-dialogue__name, .cp-dialogue__name {
  border: 1px solid #ffffffb3; border-radius: 10px; box-shadow: 0 3px 8px #173e5020;
}
.st-sheet .pl-face { border: 2px solid #fffdf7; box-shadow: 0 3px 9px #173e5026; }
.adv-choice {
  border: 1px solid #cbdfe3; border-radius: 16px;
  background: linear-gradient(160deg, #fff, #f4f9f6); color: #173e50;
  box-shadow: 0 4px 12px #173e5010;
}
.adv-choice.is-correct { border-color: #70aa87; background: #edf7e9; box-shadow: 0 4px 12px #39774e18; }
.adv-choice:active { transform: translateY(1px); box-shadow: 0 2px 5px #173e5012; }
.adv-reference { border: 1px solid #e0d09c; background: #fff9e9; }
.adv-hint summary { border: 1px solid #cbded1; background: #edf5e9; color: #45664e; }
.adv-hint[open] summary { border-color: #dfc880; background: #fff2cf; }
.adv-node {
  border: 1px solid #bed5dc; border-radius: 20px;
  background: #fffdf7f5; color: #173e50; box-shadow: 0 6px 18px #173e501c;
}
.adv-node.is-complete { border-color: #dfc880; background: linear-gradient(145deg, #fffdf7, #fff1c5); box-shadow: 0 6px 18px #896a1e16; }
.adv-node.is-locked { border-color: #cbdad0; background: #eaf1e7ed; color: #5c7466; box-shadow: 0 4px 12px #173e5010; }
.adv-node__number { border-width: 1px; box-shadow: 0 2px 6px #173e501c; }
.adv-map__status { background: #fffdf7eb; color: #315b69; }
.adv-story-band, .adv-story-summary { border: 1px solid #dfd5b2; background: #fff9e8f5; border-radius: 16px; box-shadow: 0 4px 12px #173e500a; }
.adv-story-band__label { background: #ffe7a7; color: #67521d; }
.adv-story-band[data-story-stage="ready"], .adv-story-band[data-story-stage="complete"] { background: #fff5d8f5; }
.adv-story-band b, .adv-story-copy h4 { color: #173e50; }

/* Quiet boards let the original food illustrations and the selected item lead. */
.cp-game { background: linear-gradient(#eff7f6, #fffdf7); }
.cg-top { border-bottom: 1px solid #d4e4e6; background: #fffdf7; }
.cg-top h3 { color: #173e50; }
.cg-help { color: #147d92; }
.cg-help::before { border-width: 1px; }
.cg-stamp.is-earned { color: #e7ac34; text-shadow: none; }
.cg-bar, .cg-complete__bar { border-top: 1px solid #d4e4e6; background: #fffdf7; }
.cg-status { border: 1px solid #d4e4e6; border-radius: 14px; background: #edf6f5; color: #315b69; }
.cg-food, .cg-plant, .cg-pantry .cg-food, .cg-delivery .cg-food {
  border: 1px solid #cbdfe3; border-radius: 16px; background: #fffdf7;
  color: #173e50; box-shadow: 0 4px 11px #173e5010;
}
.cg-food[aria-pressed="true"] { border-color: #147d92; background: #e6f5f5; box-shadow: 0 0 0 2px #68b3bc, 0 4px 12px #173e5018; }
.cg-food.is-used { border-color: #c8dfcc; background: #eef5eb; box-shadow: 0 2px 6px #173e5009; }
.cg-food:not(:disabled):active { box-shadow: 0 2px 5px #173e5016; }
.cg-target { border: 1px solid #c9e0e4; background: #e8f3f4; }
.cg-target__picture { border: 1px solid #cbdfe3; background: #fffdf7; }
.cg-target small { color: #3f6a76; }
.cg-garden {
  border: 1px solid #c1d4aa;
  background: radial-gradient(ellipse at 10% 100%, #d6e8ba 0 16%, transparent 16.5%), radial-gradient(ellipse at 95% 0%, #e0edcb 0 18%, transparent 18.5%), #eaf2df;
  box-shadow: inset 0 1px 0 #ffffffa6, 0 6px 18px #173e500b;
}
.cg-plant.is-harvested { border-color: #8fb075; background: #fff6cf; box-shadow: 0 4px 12px #486a3218; }
.cg-plant.is-harvested::after { border: 1px solid #d5ba6e; background: #ffe6a3; color: #3e593a; box-shadow: 0 2px 7px #173e5018; }
.cg-tray { border: 1px solid #d8c69f; background: #efe0bd; box-shadow: inset 0 1px 0 #fff5d9, 0 6px 18px #735c2510; }
.cg-slot { border: 1px solid #bfcfd8; background: #fffdf7; color: #315b69; box-shadow: 0 3px 8px #6e552822, inset 0 0 0 2px #edf4f4; }
.cg-slot[data-slot="soup"] { border-color: #d3ae91; box-shadow: 0 3px 8px #6e552822, inset 0 0 0 2px #fbecda; }
.cg-slot.is-filled { border-color: #72a987; }
.cg-slot.is-drop-target { box-shadow: 0 0 0 3px #68b3bc, 0 4px 12px #173e5020; }
.cg-slot.is-awaiting, .cg-game.is-dragging .cg-slot:not(:disabled) { outline-color: #147d92; }
.cg-request { border: 1px solid #e1d09e; background: #fff6db; box-shadow: 0 6px 18px #7b61200f; }
.cg-customer small { color: #74643d; }
.cg-order li { border: 1px solid #d4e4e6; border-radius: 14px; background: #fffdf7; }
.cg-order b { background: #147d92; }
.cg-order .is-delivered { border-color: #8cbb99; background: #edf7eb; }
.cg-complete__card {
  border: 1px solid #e1d09e; border-radius: 20px;
  background: linear-gradient(145deg, #fffdf7, #fff0bd); box-shadow: 0 8px 24px #84682016;
}
.cg-complete__ribbon { background: #147d92; }
.cg-complete__star { color: #d79c2d; }
.cp-reward { background: #fff8df; }
.cp-reward::after { background: radial-gradient(circle at 50% 30%, #fff2c7, #f7fbf4e8 65%); }
.cp-reward__title { border-color: #c3d6d5; }
.cp-reward__kicker { color: #587780; }

/* Rounded, readable headings replace embossed outlines. */
.cg-top h3, .cg-complete h4, .cp-reward h3, .adv-map__heading,
.adv-panel h3, .adv-screen__main h3, .st-sheet .pl-banner strong, .st-sheet .pl-pop {
  font-family: var(--font-body); font-weight: 700; text-shadow: none;
}
.adv-map__heading { text-shadow: 0 1px 8px #fffdf7, 0 0 3px #fffdf7; }
.st-sheet .pl-pop { border: 1px solid #c6dce0; background: #fffdf7; color: #173e50; box-shadow: 0 4px 12px #173e5018; }
.st-sheet .pl-pop--combo { border-color: #dfbc60; background: #ffe6a3; }
.st-sheet .pl-banner__band { border-block: 1px solid #e1bd63; background: linear-gradient(90deg, #ffe5a100, #ffe5a1 14%, #ffe5a1 86%, #ffe5a100); }

/* Chapter cut-ins keep their original animated artwork and timing. */
.an-scene:not(.an-record) { --an-blue: #147d92; --an-deep: #173e50; --an-gold: #ffd568; }
.an-scene:not(.an-record)[data-theme="farm"] { --an-blue: #418e71; --an-deep: #245d50; }
.an-scene:not(.an-record)[data-theme="kitchen"] { --an-blue: #bc873d; --an-deep: #6b5031; }
.an-scene:not(.an-record)[data-theme="festival"] { --an-blue: #526f98; --an-deep: #284b68; }
.an-scene:not(.an-record) .an-slice {
  border-top: 1px solid #ffe7a8; border-bottom: 1px solid #ffffffa6;
  background: linear-gradient(110deg, var(--an-blue), var(--an-deep)); box-shadow: 0 12px 28px #102f4a3d;
}
.an-scene:not(.an-record) .an-kicker {
  border: 1px solid #f7df9c; border-radius: 99px; background: #ffe3a0;
  color: #173e50; box-shadow: 0 4px 12px #0e2d4226; transform: none;
}
.an-scene:not(.an-record) .an-title {
  font-family: var(--font-body); font-weight: 700; letter-spacing: .03em;
  text-shadow: 0 2px 14px #0b2d46b3; transform: none;
}
.an-scene:not(.an-record) .an-subtitle {
  border: 1px solid #d4e4e6; border-radius: 14px; background: #fffdf7;
  color: #173e50; box-shadow: 0 5px 16px #0e2d4229;
  word-break: keep-all; line-break: strict; overflow-wrap: anywhere; text-wrap: balance;
}
.an-scene:not(.an-record) .an-skip { border-color: #c3dfe0; background: #173e50; }
.an-clear:not(.an-record) .an-slice { background: linear-gradient(110deg, #e8bc53, #fff0bf 48%, #e8bc53); }
.an-clear:not(.an-record) .an-title, .an-clear:not(.an-record) .an-title rt { color: #173e50; text-shadow: 0 1px 10px #fff8dd80; }

@media (hover: hover) and (pointer: fine) {
  .adv-btn:not(:disabled):hover, .cp-button:not(:disabled):hover, .cg-btn:not(:disabled):hover { background: #eaf5f5; }
  .adv-btn--primary:not(:disabled):hover, .cp-button--primary:not(:disabled):hover,
  .cg-btn--primary:not(:disabled):hover, .cp-objective--go:hover { background: linear-gradient(#ffedba, #ffdc83); }
  .cp-chapter:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px #173e501b; }
}
@media (orientation: landscape) and (max-height: 499px) {
  .cp-hub__head { margin: 8px 4px 0 12px; padding: 8px; }
  .cp-hub__foot { background: none; }
}
@media (min-width: 600px) and (min-height: 500px) {
  .cp-hub__head { width: 100%; max-width: 980px; margin-inline: auto; padding: 12px; }
  .cp-chapter { border-width: 1px; border-radius: 20px; }
  .cp-chapter__pic { border-radius: 0; }
  .cp-chapter__copy { border-top: 1px solid #d4e4e6; background: #fffdf7f5; }
  .cp-chapter.is-locked .cp-chapter__copy { background: #f1f6f5f5; }
}
