.course-catalog, .finance-main {
  --gutter: var(--bank-pad);
  --muted: #626267;
  --line: #e9e9ed;
  --money-surface: #f3f3f5;
  --money-selected: #fff0ed;
  --money-red-text: #79241e;
  min-height: 100%;
  background: #fcfcfc;
}
.course-catalog h1, .course-catalog h2, .finance-main h1, .finance-main h2 { font-family: inherit; letter-spacing: -.025em; }
.course-catalog .catalog-card, .course-catalog .catalog-achievements { border: 1px solid var(--line); }
.course-catalog .resume-card { border-color: var(--line); background: var(--money-surface); }
.course-catalog .resume-card p { color: var(--muted); }
.finance-catalog-card .catalog-cover { height: 131px; background: #ffdfad; }
.finance-catalog-card .catalog-cover-art { width: 68%; left: 16%; height: 148%; bottom: -40px; }

.route-main { padding-top: 14px; padding-bottom: 0; }
.route-intro { padding-bottom: 12px; }
.route-intro h1 { font-size: clamp(25px, 8vw, 33px); line-height: 1.08; }
.route-intro p { max-width: 36ch; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.34; }
.route-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.route-map-heading h2 { font-size: 19px; }
.route-board { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 2 / 3; border-radius: 23px; background: #b3e6cf; }
@supports (width: 1cqh) {
  .course-bank .phone-scroll:has(.route-main) { container-type: size; }
  .route-board { width: min(100%, max(185px, calc((100cqh - 205px) * 2 / 3))); margin-inline: auto; }
}
.route-art, .route-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-art { z-index: -1; object-fit: cover; }
.route-trail { overflow: visible; }
.route-shadow, .route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-shadow { stroke: #772a344a; stroke-width: 2.75; }
.route-line { stroke: #fff5e8; stroke-width: 1.55; stroke-dasharray: 1.05 2.28; transition: stroke .24s; }
.route-line.is-travelled { stroke: #cc3528; }
.route-count { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 8px; color: var(--money-red-text); background: var(--money-selected); font-size: 12px; font-weight: 700; }
.route-stops { margin: 0; padding: 0; list-style: none; }
.route-stop { position: absolute; z-index: 2; left: var(--stop-x); top: var(--stop-y); transform: translate(-50%, -50%); }
.stop-body { position: relative; display: grid; justify-items: center; place-items: center; width: 50px; height: 50px; border-radius: 50%; }
.stop-pin { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid #fff; border-radius: 50%; color: #242429; background: #fff; font-size: 20px; font-weight: 700; }
.stop-body strong { position: absolute; top: 96%; left: 50%; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; color: var(--ink); background: #fff; font-size: 13px; line-height: 1; white-space: nowrap; }
.is-current .stop-pin { color: #fff; background: var(--red); }
.is-passed .stop-pin { color: #204938; background: #c6f0c8; }
.is-locked .stop-pin { color: #45454b; background: #eeeef0; }
a.stop-body:hover .stop-pin { filter: brightness(.94); }
.route-pawn { position: absolute; z-index: 3; left: var(--pawn-x); top: var(--pawn-y); width: 62px; height: 62px; transform: translate(-50%, calc(-100% - 9px)); pointer-events: none; }
.route-pawn::before { content: ''; position: absolute; z-index: -1; inset: auto 10px 3px; height: 9px; border-radius: 50%; background: #50272b53; filter: blur(3px); }
.route-pawn img { width: 100%; height: 100%; object-fit: contain; }
.is-walking .route-pawn img { animation: pawn-stride .21s ease-in-out infinite alternate; }
@keyframes pawn-stride { from { transform: translateY(2px) rotate(-6deg); } to { transform: translateY(-8px) rotate(7deg); } }
.route-footer { position: sticky; z-index: 4; bottom: 0; margin: 0 calc(0px - var(--gutter)); padding: 10px var(--gutter) 11px; background: #fcfcfc; }
.route-footer .button { min-height: 48px; }

.payday-game { --payday-text: #352724; color: var(--payday-text); }
.payday-game h1 { font-size: clamp(25px, 7.8vw, 32px); line-height: 1.1; text-wrap: balance; }
.payday-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0 0 17px; padding: 4px; border-radius: 12px; background: #ece6e0; }
.payday-scenes li { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 29px; border-radius: 8px; color: #685c58; font-size: 12px; font-weight: 700; }
.payday-scenes [aria-current="step"] { color: #7a301f; background: #fff9f2; }
.payday-scenes .scene-complete { color: #285942; }
.payday-rehearsal { margin: -5px 0 11px; color: #5b5050; font-size: 13px; }
.payday-lede, .payday-intro > p { margin-top: 9px; color: #5d4c47; font-size: 15px; line-height: 1.43; }
.payday-intro > .button { margin-top: 17px; }
.payday-hero { position: relative; isolation: isolate; min-height: 213px; margin-top: 13px; overflow: hidden; border-radius: 19px; background: radial-gradient(ellipse at 69% 65%, #ffe5a0, #ffc18d 74%); }
.payday-hero > img { position: absolute; z-index: -1; inset: auto -7% -10% auto; width: 83%; height: 115%; object-fit: contain; object-position: right bottom; }
.salary-notice { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 13px 0 0 13px; padding: 8px 11px 8px 9px; border-radius: 12px; color: #713514; background: #fff7ec; box-shadow: 0 5px 17px #65342b1a; }
.salary-notice span { display: grid; gap: 2px; color: #654a43; font-size: 12px; }
.salary-notice strong { color: #276147; font-size: 18px; line-height: 1.15; white-space: nowrap; }
.payday-hero blockquote { position: absolute; bottom: 13px; left: 13px; max-width: 134px; padding: 9px 11px; border-radius: 12px 12px 3px 12px; color: #472f33; background: #fff7ec; font-size: 13px; font-weight: 700; line-height: 1.28; }

.sort-meter { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; margin: 19px 0 8px; color: #68564d; font-size: 12px; }
.sort-meter strong { font-size: 12px; text-align: end; }
.bill-ticket { display: grid; justify-items: start; gap: 7px; min-height: 174px; padding: 15px; border: 1px solid #efddd2; border-radius: 17px; background: #fffaf5; animation: ticket-in .24s cubic-bezier(.14,.75,.24,1) both; }
@keyframes ticket-in { from { opacity: .65; transform: translateY(6px); } }
.bill-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; color: #842d20; background: #ffdcd0; }
.bill-ticket h2 { font-size: 21px; line-height: 1.18; }
.bill-ticket strong { color: #7c3128; font-size: 27px; line-height: 1.04; }
.bill-ticket p { color: #69534d; font-size: 14px; }
.sort-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.sort-targets button { display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 80px; padding: 8px 4px; border: 1px solid #cbded1; border-radius: 14px; color: #27523e; background: #e7f3e6; font-size: 14px; }
.sort-targets button:last-child { border-color: #e4cddb; color: #6d3f64; background: #f5e5ef; }
.sort-targets button:hover, .subscription-actions button:hover { filter: brightness(.96); }
.payday-feedback { margin-top: 10px; padding: 12px; border-radius: 12px; color: #6a381f; background: #fff0db; font-size: 14px; line-height: 1.36; }

.subscription-ticket { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 16px; padding: 15px 11px; border-radius: 15px; background: #efe5fc; }
.subscription-ticket > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #51316c; background: #fff9fc; }
.subscription-ticket h2 { font-family: inherit; font-size: 16px; line-height: 1.16; }
.subscription-ticket p { margin-top: 4px; color: #644b77; font-size: 13px; }
.subscription-ticket > strong { color: #51316c; font-size: 16px; white-space: nowrap; }
.payday-quote { margin: 13px 0; padding: 11px 13px; border-radius: 11px; color: #594158; background: #f6e6ef; font-size: 14px; line-height: 1.38; }
.subscription-actions { display: grid; gap: 8px; margin-top: 15px; }
.subscription-actions button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 66px; padding: 10px 13px; border: 1px solid #e8d7de; border-radius: 14px; color: #4c2c3b; background: #fff7fa; text-align: left; }
.subscription-actions button > span { display: grid; gap: 3px; }
.subscription-actions small { color: #69505a; font-size: 13px; }

.envelope-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 10px 13px; border-radius: 12px; color: #632831; background: #f9dfdc; font-size: 14px; }
.envelope-total strong { font-size: 19px; white-space: nowrap; }
.purchase-picker { min-width: 0; margin: 14px 0 12px; padding: 0; border: 0; }
.purchase-picker legend { margin-bottom: 7px; padding: 0; font-size: 15px; font-weight: 700; }
.purchase-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.purchase-options button { display: grid; align-content: center; gap: 5px; min-height: 66px; padding: 6px 4px; border: 1px solid #e4d8ec; border-radius: 11px; color: #533764; background: #fffafd; font-size: 12px; line-height: 1.16; }
.purchase-options button span { color: #695175; white-space: nowrap; }
.purchase-options [aria-pressed="true"] { border-color: #84519f; background: #efdbf7; }
.purchase-options button:disabled { color: #77727b; border-color: #e9e4ea; background: #ebe7ed; }
.purchase-options button:disabled span { color: inherit; }
.envelope-card { margin-bottom: 9px; padding: 11px 12px; border-radius: 13px; }
.envelope-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.envelope-card label, .envelope-card > div > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.envelope-card output, .envelope-card strong { font-size: 17px; font-weight: 700; white-space: nowrap; }
.envelope-reserve { color: #2d563f; background: #e2f0e3; }
.envelope-reserve input { appearance: none; display: block; width: 100%; height: 30px; margin: 4px 0 0; border-radius: 7px; cursor: pointer; background: transparent; }
.envelope-reserve input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3e8c60 var(--range-fill), #b9dbc2 var(--range-fill)); }
.envelope-reserve input::-webkit-slider-thumb { appearance: none; width: 23px; height: 23px; margin-top: -7.5px; border: 2px solid #fafff8; border-radius: 50%; background: #397050; box-shadow: 0 2px 7px #24593842; }
.envelope-reserve input::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3e8c60 var(--range-fill), #b9dbc2 var(--range-fill)); }
.envelope-reserve input::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid #fafff8; border-radius: 50%; background: #397050; }
.envelope-reserve input:disabled { opacity: .58; cursor: default; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; }
.range-labels > span:first-child { font-size: inherit; font-weight: 400; }
.envelope-living { color: #674524; background: #fbedd4; }
.payday-envelopes > .button { margin-top: 3px; }

.recap-mascot { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 106px; margin: 12px 0; overflow: hidden; padding: 10px; border-radius: 14px; background: #ffdf98; }
.recap-mascot img { position: absolute; z-index: -1; right: 5%; bottom: -31%; width: 68%; height: 152%; object-fit: contain; object-position: center bottom; }
.recap-mascot span { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; color: #593214; background: #fff7da; font-size: 12px; font-weight: 700; }
.budget-ledger { display: grid; gap: 7px; margin: 12px 0; padding: 12px; border-radius: 13px; background: #fffdfa; }
.budget-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.budget-ledger dt { color: #675451; }
.budget-ledger dd { margin: 0; font-weight: 700; white-space: nowrap; }
.budget-ledger > div:last-child { margin-top: 1px; padding-top: 7px; border-top: 1px solid #e9e1da; color: #254b37; }
.budget-ledger > div:last-child dt { color: inherit; font-weight: 700; }

@media (max-width: 350px) {
  .payday-scenes li { gap: 0; font-size: 11px; }
  .payday-scenes li svg { display: none; }
  .payday-hero { min-height: 182px; }
  .salary-notice { margin: 9px 0 0 9px; }
  .payday-hero blockquote { bottom: 8px; left: 8px; max-width: 111px; font-size: 12px; }
  .route-pawn { width: 53px; height: 53px; }
}

.finance-main .payday-game { color: var(--ink); }
.finance-main :is(.payday-scenes, .chapter-steps, .bill-ticket, .subscription-ticket, .payday-quote, .envelope-living, .budget-ledger, .hint, .result-stats > div, .progress-panel) { background: var(--money-surface); }
.finance-main :is(.payday-lede, .payday-intro > p, .sort-meter, .bill-ticket p, .subscription-ticket p, .subscription-actions small, .purchase-options button span, .budget-ledger dt, .result-stats dt) { color: var(--muted); }
.finance-main :is(.payday-scenes, .chapter-steps) li { color: #49494f; }
.finance-main :is(.payday-scenes, .chapter-steps) [aria-current="step"] { color: var(--money-red-text); background: #fff; }
.finance-main :is(.payday-scenes .scene-complete, .chapter-steps .step-done, .budget-ledger > div:last-child dt) { color: var(--green); }
.finance-main .bill-ticket { border: 0; }
.finance-main .bill-ticket strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.finance-main :is(.option-icon, .subscription-ticket > span, .practice-answer > span:last-child) { color: #3d3d43; background: #eeeef0; }
.finance-main :is(.sort-targets button, .subscription-actions button, .purchase-options button, .practice-answer) { border-color: var(--line); color: var(--ink); background: #fff; }
.finance-main :is(.sort-targets button, .subscription-actions button, .practice-answer):hover { border-color: #a7a7ac; background: #f5f5f6; }
.finance-main :is(.purchase-options [aria-pressed="true"], .option:has(:checked), .practice-answer.is-missed) { border-color: #e09085; color: var(--money-red-text); background: var(--money-selected); }
.finance-main .purchase-options button:disabled { border-color: var(--line); color: var(--muted); background: #f3f3f5; }
.finance-main .option:hover { border-color: #a7a7ac; }
.finance-main .option:has(:focus-visible) { outline-color: var(--red-hover); }
.finance-main .option:has(:checked) .radio-indicator { border-color: var(--red); }
.finance-main .option:has(:checked) .radio-indicator::before { background: var(--red); }
.finance-main :is(.subscription-ticket > strong, .payday-quote, .envelope-living, .hint) { color: var(--ink); }
.finance-main :is(.decision-panel, .award-list li) { border: 1px solid var(--line); }
.finance-main .result-icon { color: var(--money-red-text); background: var(--money-selected); }
.finance-main .practice-success-icon { color: var(--green); background: var(--mint); }
.finance-main :is(.progress-segments .filled, .episode-progress .complete),
.finance-main .goal-track progress::-webkit-progress-value { background: var(--red); }
.finance-main .goal-track progress::-moz-progress-bar { background: var(--red); }
.finance-main .route-footer .button, .finance-main .button-primary { border-radius: 14px; }
.finance-main .finish-hero { min-height: 219px; background: #ffe3dd; color: var(--ink); }
.finance-main .finish-copy { width: 68%; }
.finance-main .finish-copy h1 { font-size: clamp(27px, 8vw, 34px); }
.finance-main .finish-copy p { color: #554243; }
.finance-main .finish-flag { background: #fff2ee; color: var(--money-red-text); }
.finance-main .finish-art { right: -25px; }
.finance-main .bonus { background: var(--money-surface); }
.finance-main .bonus p { color: var(--muted); }
.finance-main .locked-award .award-icon { color: #55555b; background: #eeeef0; }
