/* Daily journey system: one question, one lesson, one reward. */
.journey-screen { --journey-space: 24px; display: flex; flex-direction: column; gap: 24px; min-height: 100svh; padding: calc(18px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom)); background: #fff; color: #293442; }
.journey-screen h1 { margin: 0; font-size: clamp(27px, 7.5vw, 34px); line-height: 1.16; letter-spacing: -.7px; text-wrap: balance; font-weight: 900; }
.journey-screen p { font-size: 17px; line-height: 1.5; color: #616d7a; }
.journey-header { display: flex; align-items: center; gap: 14px; min-height: 44px; flex: 0 0 auto; }
.journey-header .task-back-button { margin: 0; flex: 0 0 38px; width: 38px; height: 44px; color: #83909b; background: transparent; box-shadow: none; font-size: 30px; }
.journey-track { flex: 1; height: 13px; border-radius: 20px; background: #e9edf1; overflow: hidden; }
.journey-track i { display: block; width: var(--step-progress); height: 100%; border-radius: inherit; background: #31b76d; box-shadow: inset 0 3px 0 #71d79d; transition: width 280ms ease; }
.journey-step-count { font-size: 13px; font-weight: 800; color: #7b8793; }
.journey-question { display: grid; gap: 22px; align-content: start; }
.journey-question h1 + p { margin: -10px 0 0; }
.journey-question-art { width: 80px; height: 80px; margin-bottom: 0; }
.goal-art { display: block; width: 100%; height: 100%; overflow: visible; }
.journey-choices { display: grid; gap: 12px; width: 100%; margin: 0; }
.journey-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 65px; padding: 16px 18px; border: 2px solid #dce2e8; border-radius: 18px; box-shadow: 0 3px 0 #dce2e8; background: #fff; color: #354354; font: inherit; font-size: 17px; line-height: 1.35; font-weight: 800; text-align: left; cursor: pointer; transition: background 120ms, border-color 120ms, transform 120ms; }
.journey-choice i { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #dce2e8; border-radius: 50%; flex: 0 0 23px; font-size: 14px; font-style: normal; }
.journey-choice.is-selected { background: #eaf5ff; border-color: #62b6f2; box-shadow: 0 3px 0 #62b6f2; color: #1261a9; }
.journey-choice.is-selected i { background: #258fee; border-color: #258fee; color: #fff; animation: choice-tick 180ms ease-out; }
.journey-choice:active { transform: translateY(2px); box-shadow: 0 1px 0 #bfcddd; }
.journey-footer { display: grid; gap: 16px; width: 100%; margin-top: auto; padding-top: 14px; }
.journey-screen .journey-footer > .primary-button { margin: 0; min-height: 58px; }
.journey-footer > .text-button { margin: 0; padding: 8px; min-height: 44px; }
.journey-details { margin: 8px 0; color: #626f7d; font-size: 15px; line-height: 1.5; }
.journey-details summary { min-height: 44px; padding: 12px 0; color: #1669b5; font-weight: 800; cursor: pointer; }
.journey-details label { display: block; margin: 8px 0; font-weight: 700; }
.journey-details textarea { width: 100%; padding: 14px; border: 2px solid #dce2e8; border-radius: 16px; background: #fff; font: inherit; font-size: 16px; color: #293442; resize: vertical; }
.journey-instruction { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 24px; text-align: center; padding: 12px 0; }
.journey-instruction > p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 36ch; }
.journey-instruction > h2 { margin: 0; font-size: 23px; }
.journey-lesson-art { width: 142px; height: 142px; margin: 0 auto 12px; animation: lesson-arrive 380ms cubic-bezier(.16,1,.3,1); }
.journey-instruction-caption { color: #7e8995; font-size: 14px; line-height: 1.45; }
.journey-instruction .journey-details { width: 100%; text-align: left; }
.journey-instruction .practice-instructions { margin: 12px 0; font-size: 16px; line-height: 1.5; }
.journey-reassurance { padding: 14px 0; text-align: center; }
.journey-counters { display: grid; gap: 22px; margin-top: 12px; }
.journey-counter { border: 2px solid #e0e6eb; border-radius: 22px; padding: 20px; background: #fff; text-align: center; }
.journey-counter > span { display: block; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.journey-counter > div { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.journey-counter button { width: 52px; min-height: 52px; border: 2px solid #c7e3fa; border-radius: 16px; box-shadow: 0 3px 0 #c7e3fa; color: #1684e7; background: #eff8ff; font: inherit; font-size: 30px; font-weight: 800; }
.journey-counter button:disabled { opacity: .4; }
.journey-counter output { font-size: 42px; font-weight: 900; font-variant-numeric: tabular-nums; }
.journey-options-button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 60px; margin: 18px 0; padding: 16px; border: 2px solid #e0e6ed; border-radius: 18px; background: #fff; color: #4d647b; text-align: left; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.journey-options-button > span:last-child { font-size: 26px; color: #7f93a6; }
.journey-options-list { display: grid; gap: 0; margin: 24px 0 0; }
.journey-options-list button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding: 18px 0; border: 0; border-bottom: 1px solid #e4e9ef; color: #34495d; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.journey-options-list button:last-child { border-bottom: 0; }
.journey-options-list strong { display: block; font-size: 17px; }
.journey-options-list small { display: block; color: #7c8793; font-size: 14px; margin-top: 3px; }
.sheet .journey-choices { margin: 24px 0; }
.sheet > .primary-button { margin-top: 22px; }
.practice-goal-line { display: flex; align-items: center; gap: 10px; color: #657589; font-size: 15px; font-weight: 800; margin: 18px 0; }
.practice-goal-line > svg { width: 32px; height: 32px; flex: 0 0 32px; }
.practice-mission { display: flex; flex-direction: column; gap: 18px; border: 2px solid #d7e7f5; border-radius: 30px; box-shadow: 0 5px 0 #d7e7f5; padding: 22px; background: #fff; }
.practice-mission-top { display: flex; justify-content: space-between; gap: 12px; color: #64829c; font-size: 13px; font-weight: 800; }
.practice-mission-art { width: 190px; height: 154px; margin: 0 auto; position: relative; }
.practice-mission-art > img { width: 100%; height: 100%; object-fit: contain; }
.practice-mission-art > span { position: absolute; width: 50px; height: 50px; right: -2px; bottom: 4px; transform: rotate(8deg); }
.practice-mission h2 { font-size: 28px; line-height: 1.15; text-align: center; margin: 0; letter-spacing: -.4px; }
.practice-mission > p { color: #657589; font-size: 16px; line-height: 1.5; text-align: center; margin: 0 0 4px; }
.practice-mission > .primary-button { margin: 0; }
.practice-complete-strip { background: #e4f8eb; color: #247b47; }
.today-streak-stat { display: flex; flex-direction: row; align-items: center; gap: 5px; }
.today-streak-stat > .streak-flame { width: 23px; height: 29px; }
.today-streak-stat > strong { color: #eb8c00; }
.today-streak-stat > small { text-transform: none; font-size: 12px; color: #7c8793; letter-spacing: 0; }
.goal-catalog-list { gap: 16px; }
.goal-catalog-row { grid-template-columns: 66px minmax(0,1fr) auto; gap: 16px; min-height: 100px; padding: 15px; border-radius: 24px; }
.goal-catalog-row > .goal-catalog-art { width: 66px; height: 66px; }
.goal-catalog-row .goal-catalog-copy { min-width: 0; }
.goal-catalog-row strong { font-size: 17px; line-height: 1.3; }
.goal-catalog-row .course-status { font-size: 10px; padding: 6px 9px; letter-spacing: .3px; }
.goal-catalog-group > h2 { margin: 24px 0 16px; font-size: 23px; color: #52687d; }
.goal-overview-screen { display: flex; flex-direction: column; gap: 24px; }
.goal-overview-screen > h1, .goal-overview-screen > p, .goal-overview-screen > .primary-button, .goal-overview-screen > .paused-course-file, .goal-overview-screen > .goal-path-preview { margin: 0; }
.goal-overview-screen > h1 { text-align: center; }
.goal-overview-screen > .lead { text-align: center; }
.goal-overview-art { width: 116px; height: 116px; margin: 0 auto; }
.goal-overview-screen .goal-overview-action { margin: 4px 0 8px; }
.paused-course-position { font-size: 13px; color: #647b91; font-weight: 700; margin: 0 0 5px; }
.paused-course-file-heading h2 { font-size: 19px; }
.paused-course-file > p { font-size: 15px; line-height: 1.45; }
.goal-path-preview > h2 { font-size: 22px; margin: 10px 0 20px; }
.goal-path-preview li { padding: 16px 12px; }
.goal-path-preview li.current { background: #e5f3ff; border-radius: 20px; }
.goal-path-preview li > span { background: #f0eaff; color: #8162c9; }
.goal-path-preview li.current > span { background: #268fee; color: #fff; }
.journey-course-banner { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--goal-soft); border-radius: 24px; margin-top: 20px; }
.journey-course-banner > svg { width: 62px; height: 62px; flex: 0 0 62px; }
.journey-course-banner strong { font-size: 19px; }
.journey-course-banner small { display: block; margin-top: 4px; font-size: 14px; color: #536b80; }
.journey-path { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 24px; }
.journey-path li { position: relative; display: flex; justify-content: center; min-height: 136px; }
.journey-path li:nth-child(4n+2) { padding-left: 96px; }
.journey-path li:nth-child(4n) { padding-right: 96px; }
.journey-path li:not(:last-child)::after { content: ''; position: absolute; width: 7px; height: 26px; border-radius: 6px; background: #dbe5ee; bottom: -25px; left: 50%; }
.journey-path-stop { display: flex; flex-direction: column; align-items: center; gap: 12px; border: 0; background: transparent; color: #8494a2; font: inherit; cursor: pointer; max-width: 225px; position: relative; z-index: 1; }
.journey-path-node { display: grid; place-items: center; width: 72px; height: 68px; background: #e5eaf0; border-radius: 50%; box-shadow: 0 7px 0 #ced8e1; color: #9aaab8; font-size: 28px; font-weight: 900; }
.journey-path-stop > strong { max-width: 190px; font-size: 16px; line-height: 1.3; text-align: center; }
.journey-path-stop > small { font-size: 11px; font-weight: 900; color: #247cc4; letter-spacing: .4px; }
.journey-path .is-current { padding: 0; min-height: 175px; }
.journey-path .is-current .journey-path-stop { color: #24425d; }
.journey-path .is-current .journey-path-node { width: 92px; height: 92px; background: transparent; box-shadow: none; outline: 5px solid #d2ebff; outline-offset: 7px; border-radius: 30px; margin: 12px; }
.journey-path .is-practiced:not(.is-current) .journey-path-node { background: #bcebd0; color: #238357; box-shadow: 0 7px 0 #8fd7af; }
.journey-path-buddy { position: absolute; right: -12px; top: 12px; width: 95px; height: 100px; transform: rotate(6deg); }
.journey-path-buddy img { width: 100%; height: 100%; object-fit: contain; animation: buddy-breathe 3s ease-in-out infinite; }
.journey-result { gap: 20px; text-align: center; justify-content: flex-start; overflow: hidden; }
.journey-reward-scene { position: relative; display: grid; place-items: center; width: 100%; height: clamp(180px,30svh,270px); margin: 12px auto 0; flex: 0 0 auto; }
.journey-reward-mascot { width: 230px; height: 100%; position: relative; z-index: 1; }
.journey-reward-mascot > *, .journey-reward-mascot img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.journey-reward-copy { position: relative; z-index: 1; }
.journey-reward-copy h1 { color: #259654; margin: 0; }
.journey-reward-copy p { margin: 12px auto 0; max-width: 30ch; font-size: 17px; }
.journey-rewards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 10px; width: 100%; margin: 8px 0 0; }
.journey-reward { --reward-color: #228bea; --reward-soft: #edf7ff; display: flex; flex-direction: column; border: 2px solid var(--reward-color); border-radius: 18px; background: var(--reward-soft); overflow: hidden; }
.journey-reward > span { padding: 8px 3px; font-size: 11px; line-height: 1.25; font-weight: 900; color: #fff; background: var(--reward-color); }
.journey-reward > strong { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 63px; padding: 9px 3px; font-size: 27px; font-weight: 900; color: var(--reward-color); font-variant-numeric: tabular-nums; }
.journey-reward.reward-green { --reward-color: #2dab69; --reward-soft: #eafaf1; }
.journey-reward.reward-orange { --reward-color: #e99008; --reward-soft: #fff6df; }
.streak-flame { display: inline-block; width: 26px; height: 33px; flex: 0 0 auto; }
.journey-week { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 14px 6px; }
.journey-week > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.journey-week span { color: #82909d; font-weight: 800; font-size: 13px; }
.journey-week i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf0f4; font-style: normal; color: #98a7b5; font-weight: 900; }
.journey-week .is-done i { background: #ffac26; color: #fff; }
.journey-week .is-today i { outline: 2px solid #ffcf7f; outline-offset: 3px; }
.journey-result-next { font-size: 16px; line-height: 1.5; color: #657589; margin: 0; }
.journey-confetti { position: absolute; inset: 0; pointer-events: none; }
.journey-confetti i { --angle: calc(var(--piece) * 30deg); position: absolute; left: 50%; top: 55%; width: 9px; height: 15px; border-radius: 3px; background: #ffc94d; transform: rotate(var(--angle)) translateY(-115px); }
.journey-confetti i:nth-child(3n) { background: #7cd9a4; width: 11px; height: 11px; border-radius: 50%; }
.journey-confetti i:nth-child(3n+1) { background: #7fc9ff; }
.journey-comparison { display: grid; gap: 18px; padding: 24px; margin: 20px 0; border-radius: 26px; border: 2px solid #dce8f2; background: #fff; text-align: center; }
.journey-comparison h2 { font-size: 25px; margin: 0; }
.journey-comparison p { margin: 0; color: #687c8e; line-height: 1.5; font-size: 16px; }
.journey-comparison > svg { width: 100px; height: 100px; margin: 0 auto; }
.journey-comparison > div { display: flex; align-items: center; justify-content: center; gap: 28px; }
.journey-comparison small { display: block; font-size: 13px; color: #7b8fa1; margin-bottom: 8px; }
.journey-comparison strong { font-size: 36px; color: #298bdc; }
.practice-progress > .primary-button { margin-top: 24px; }
.journey-screen :focus-visible, .journey-options-button:focus-visible, .journey-path-stop:focus-visible { outline: 3px solid #1679c8; outline-offset: 5px; }
@keyframes choice-tick { from { transform: scale(.5); } to { transform: scale(1); } }
@keyframes lesson-arrive { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes reward-leap { 0% { transform: translateY(48px) scale(.75) rotate(-12deg); opacity: 0; } 40% { transform: translateY(-14px) scale(1.06) rotate(5deg); opacity: 1; } 70% { transform: translateY(4px) scale(.98) rotate(-2deg); } 100% { transform: none; opacity: 1; } }
@keyframes reward-tile { from { transform: translateY(20px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes reward-confetti { 0% { transform: rotate(var(--angle)) translateY(-15px) scale(0); opacity: 0; } 30% { opacity: 1; } 75% { opacity: 1; } 100% { transform: rotate(var(--angle)) translateY(-130px) rotate(80deg) scale(.7); opacity: .5; } }
@keyframes buddy-breathe { 50% { transform: translateY(-4px) rotate(-3deg); } }
@media (max-width: 374px) { .journey-screen { padding-left: 18px; padding-right: 18px; gap: 18px; } .journey-choice { padding: 14px; font-size: 16px; } .goal-catalog-row { grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; padding: 13px; } .goal-catalog-row > .goal-catalog-art { width: 54px; height: 54px; } .goal-catalog-row strong { font-size: 15px; } .journey-path-buddy { right: -16px; width: 75px; } }
@media (max-height: 740px) { .journey-screen { gap: 18px; } .journey-question-art { width: 60px; height: 60px; } .journey-lesson-art { width: 104px; height: 104px; margin-bottom: 0; } .journey-reward-scene { height: 180px; margin-top: 0; } .journey-reward-mascot { width: 190px; } }
@media (prefers-reduced-motion: reduce) { .journey-screen *, .journey-path-buddy img, .journey-reward { animation: none !important; transition: none !important; } .journey-confetti { display: none; } }
/* The existing lesson composition uses the same choice and spacing language. */
.focus-composition .button-stack { gap: 14px; }
.focus-composition .button-stack > .secondary-button, .focus-composition .goal-choice { min-height: 64px; border-radius: 18px; background: #fff; border: 2px solid #dce2e8; box-shadow: 0 3px 0 #dce2e8; color: #354354; font-size: 17px; }
.focus-composition .flow-progress { height: 12px; border-radius: 20px; background: #e9edf1; }
.focus-composition .flow-progress > span { background: #31b76d; box-shadow: inset 0 3px 0 #71d79d; }
.focus-composition-copy h1 { text-wrap: balance; }
.journey-quick-picks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.journey-quick-picks button { min-height: 64px; padding: 14px; border: 2px solid #dce2e8; border-radius: 18px; background: #fff; color: #354354; box-shadow: 0 3px 0 #dce2e8; font: inherit; font-weight: 800; font-size: 17px; }
.journey-quick-picks button.is-selected { color: #1261a9; border-color: #62b6f2; background: #eaf5ff; box-shadow: 0 3px 0 #62b6f2; }
@media (max-height:740px) { .journey-counters { gap: 16px; margin-top: 0; } .journey-counter { padding: 16px; } .journey-counter > span { margin-bottom: 12px; } .journey-counter output { font-size: 34px; } .journey-counter button { min-height: 46px; width: 46px; } }
.journey-reward > span { background: #166fb9; }
.journey-reward.reward-green > span { background: #23824d; }
.journey-reward.reward-orange > span { background: #a85f00; }

#app.result-entering .journey-reward-mascot { animation: reward-leap 800ms cubic-bezier(.2,.8,.2,1) both; }
#app.state-entering .journey-reward { animation: reward-tile 430ms cubic-bezier(.17,.89,.32,1.3) both; animation-delay: calc(360ms + var(--reward-index) * 140ms); }
#app.result-entering .journey-confetti i { animation: reward-confetti 1s cubic-bezier(.2,.8,.3,1) both; }
@media (prefers-reduced-motion: reduce) { #app .journey-reward-mascot, #app .journey-reward, #app .journey-confetti i { animation: none !important; } }
.focus-composition-top.has-setup-exit { display: flex; align-items: center; gap: 16px; }
.has-setup-exit > .task-back-button { flex: 0 0 32px; min-height: 40px; background: none; box-shadow: none; color: #8794a0; font-size: 30px; }
.has-setup-exit > .flow-progress { flex: 1; margin: 0; }
.people-quick-picks .journey-quick-picks { grid-template-columns: repeat(4,minmax(0,1fr)); }
.calm-rest-choices > p { margin: 14px 0; font-weight: 800; font-size: 16px; }
#app .journey-result .journey-reward-mascot > .result-mascot { width: 100%; height: 100%; margin: 0; order: 0; animation: none; }
.journey-lesson-character { width: 170px; height: 150px; margin: 0 auto 16px; }
.journey-lesson-character img { width: 100%; height: 100%; object-fit: contain; }
@media (max-height: 740px) { .journey-lesson-character { width: 130px; height: 110px; margin-bottom: 8px; } }
