/* Pluto Youth styles.
   Designed for computers first; phones get the same pages in one column.
   Teen and parent pages use var(--brand), the credit union's color. Admin
   pages use Pluto navy. Fonts (Plus Jakarta Sans, Hanken Grotesk) are served from this site (public/fonts),
   so teen devices make no third-party requests. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/plus-jakarta-sans-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/static/fonts/hanken-grotesk-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #1A2330;
  --ink-2: #4A5566;
  --line: #DDE2E9;
  --gold: #F4B740;
  --gold-soft: #FDF1D6;
  --gold-ink: #5C3D00;
  --good: #17734B;
  --good-soft: #E2F4EA;
  --bad: #A8231A;
  --bad-soft: #FCE7E4;
  --navy: #14284B;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* Tints of the credit union's color. Declared on body because --brand is set there. */
body { --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff); --brand-line: color-mix(in srgb, var(--brand) 28%, #fff); }
body { margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: 40px; font-weight: 750; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
kbd { font-family: var(--text); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface); color: var(--ink-2); }

/* ---------- buttons, fields, alerts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn-brand kbd { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-onbrand { background: #fff; color: var(--ink); }
.btn-onbrand:hover { background: var(--gold-soft); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-wide { width: 100%; }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { min-height: 50px; padding: 11px 15px; border: 1.5px solid #B8C1CD; border-radius: var(--radius-sm); background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid var(--brand-line); outline-offset: 0; }
.hint { font-size: 14px; color: var(--ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.alert-bad { background: var(--bad-soft); color: var(--bad); }
.alert-good { background: var(--good-soft); color: var(--good); }
.fineprint { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.fineprint svg { flex: none; margin-top: 1px; }
.fineprint.plain { display: block; }
.aside-text { font-size: 15px; color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #EBEEF2; color: var(--ink-2); white-space: nowrap; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-brand { background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 70%, #000); }

/* ---------- sign-in screens: brand half + form half ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 48px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.brandmark { display: flex; align-items: center; gap: 12px; }
.brandmark span { display: flex; flex-direction: column; line-height: 1.2; }
.brandmark strong { font-family: var(--display); font-size: 18px; font-weight: 700; }
.side .brandmark strong { font-size: 17px; line-height: 1.15; }
.brandmark small { font-size: 13px; opacity: 0.8; }
.auth-brand .logo circle { fill: #fff; }
.auth-brand .logo path, .auth-brand .logo rect { fill: var(--brand); }
.auth-pitch { max-width: 560px; display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.auth-pitch h1 { font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.auth-pitch p { font-size: 20px; line-height: 1.45; max-width: 30em; opacity: 0.92; }
.route-art { width: min(100%, 520px); height: auto; color: rgba(255, 255, 255, 0.55); align-self: flex-end; }
.route-art .ra-done { fill: rgba(255, 255, 255, 0.55); }
.route-art .ra-next { fill: var(--gold); }
.route-art .ra-open { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.panel-title { font-size: 28px; }
.pick { display: flex; flex-direction: column; gap: 14px; }
.pick-option { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pick-option:hover { border-color: var(--brand); }
.pick-option strong { display: block; font-family: var(--display); font-size: 19px; margin-bottom: 2px; }
.pick-option span span { color: var(--ink-2); font-size: 15px; }
.pick-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.notfound { max-width: 560px; margin: 120px auto; padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- app shell: sidebar + main ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { min-width: 0; background: var(--surface); border-right: 1px solid var(--line); }
.side-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 28px 18px 22px; }
.side .brandmark { padding: 0 10px; }
.side .brandmark small { color: var(--ink-2); opacity: 1; }
.side-nav { position: relative; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-label { margin: 18px 12px 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; text-align: left; }
.side-link:hover { background: var(--paper); color: var(--ink); }
.side-link[aria-current="page"] { background: var(--brand-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--brand); }
.side-link[aria-current="page"] svg { color: var(--brand); }
.side-foot { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 12px 6px; min-width: 0; }
.me-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.main { min-width: 0; padding: 44px 56px 72px; max-width: 1240px; width: 100%; display: flex; flex-direction: column; gap: 36px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.page-head h1 { font-size: 44px; }
.lede { margin-top: 8px; font-size: 18px; color: var(--ink-2); max-width: 46em; }
.who { display: flex; align-items: center; gap: 18px; }
.stats { display: flex; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stats div { padding: 12px 24px; min-width: 120px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--ink-2); }
.stats dd { margin: 2px 0 0; font-family: var(--display); font-size: 30px; font-weight: 750; line-height: 1.1; }
.stats dd small { font-size: 16px; font-weight: 600; color: var(--ink-2); }

.block { display: flex; flex-direction: column; gap: 18px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.block-head a { font-weight: 700; font-size: 15px; }

/* ---------- teen home: next-up stage, route, shelf ---------- */
.nextup { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 32px; padding: 44px 48px; background: var(--brand); color: #fff; border-radius: var(--radius-lg); }
.nextup-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.nextup-label { font-weight: 700; font-size: 15px; display: inline-flex; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.nextup h2 { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; }
.nextup p { font-size: 18px; line-height: 1.5; opacity: 0.95; }
.nextup .btn { margin-top: 8px; min-height: 54px; padding: 0 28px; font-size: 17px; }
.nextup-art { justify-self: center; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.06); display: flex; align-items: center; justify-content: center; color: var(--gold); }

.route { list-style: none; margin: 0; padding: 26px 16px 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; }
.stop { position: relative; }
/* the track between stops */
.stop::before { content: ""; position: absolute; top: 33px; left: calc(-50% + 34px); right: calc(50% + 34px); border-top: 4px dotted var(--line); }
.stop:first-child::before { display: none; }
.stop.done::before, .stop.next::before { border-top: 4px solid var(--brand); }
.stop-link { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 10px 6px; border-radius: var(--radius); text-align: center; text-decoration: none; }
a.stop-link:hover .stop-title { text-decoration: underline; }
.stop-dot { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--ink-2); border: 3px solid var(--line); position: relative; z-index: 1; }
.stop.done .stop-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stop.next .stop-dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); width: 76px; height: 76px; margin-top: -5px; box-shadow: 0 0 0 7px var(--gold-soft); }
.stop.next::before { top: 33px; }
.stop-text { display: flex; flex-direction: column; gap: 2px; }
.stop-step { font-size: 13px; color: var(--ink-2); }
.stop-title { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.stop-meta { font-size: 14px; color: var(--ink-2); }
.stop.next .stop-meta { color: var(--ink); font-weight: 700; }
.stop.locked .stop-title { color: var(--ink-2); }

.shelf { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.shelf li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.medal { width: 52px; height: 52px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #8A94A3; border: 2px dashed #B8C1CD; font-size: 13px; font-weight: 700; }
.medal.earned { background: var(--gold); color: var(--gold-ink); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.medal.sm { width: 32px; height: 32px; border-width: 2px; }
.medal.sm.earned { border-width: 2px; }
.medal.lg { width: 96px; height: 96px; }
.medal.xl { width: 112px; height: 112px; }
.shelf li:not(:has(.earned)) { color: var(--ink-2); font-weight: 400; }

/* ---------- lessons and badges pages ---------- */
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.lesson-tile { display: flex; gap: 20px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.lesson-tile.next { border: 2px solid var(--brand); }
.lesson-tile.locked { background: transparent; border-style: dashed; }
.lesson-art { width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.lesson-tile.done .lesson-art { background: var(--gold-soft); color: var(--gold-ink); }
.lesson-tile.locked .lesson-art { background: #EBEEF2; color: #8A94A3; }
.lesson-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.lesson-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lesson-step { font-size: 14px; color: var(--ink-2); }
.lesson-body h2 { font-size: 22px; }
.lesson-body > p { color: var(--ink-2); }
.lesson-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; min-height: 58px; }
.lesson-foot .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.tile-locked { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); }

.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 22px 28px; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.badge-card.earned { background: var(--surface); border: 1px solid var(--line); }
.badge-card h2 { font-size: 20px; }
.badge-card p { font-size: 14px; color: var(--ink-2); }
.badge-card:not(.earned) h2 { color: var(--ink-2); }

/* ---------- the game stage ---------- */
.game-page { background: var(--surface); }
.stage { min-height: 100vh; display: flex; flex-direction: column; }
.stage-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 40px; border-bottom: 1px solid var(--line); }
.stage-exit { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; color: var(--ink-2); font-weight: 700; text-decoration: none; }
.stage-exit:hover { background: var(--paper); color: var(--ink); }
.stage-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.stage-title svg { color: var(--brand); }
.stage-score { justify-self: end; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 6px 16px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); }
.segments { list-style: none; margin: 0 auto; padding: 22px 40px 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 920px; }
.seg { height: 10px; border-radius: 999px; background: #E3E7ED; transition: background-color 0.2s ease; }
.seg.current { background: var(--brand-line); }
.seg.right { background: var(--good); }
.seg.wrong { background: var(--bad); }
.stage-body { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 32px 40px 56px; }
.play { display: flex; flex-direction: column; gap: 24px; }
.play-q { font-size: 18px; color: var(--ink-2); }
.playcard { min-height: 300px; display: flex; align-items: center; padding: 48px 56px; background: var(--brand-soft); border: 2px solid var(--brand-line); border-radius: 28px; }
.playcard p { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; max-width: 18em; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; border-radius: 18px; border: 2px solid var(--line); border-bottom-width: 5px; background: var(--surface); font-family: var(--display); font-size: 24px; font-weight: 700; cursor: pointer; }
.choice:hover:not(:disabled) { border-color: var(--brand); }
.choice:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 3px; }
.choice:disabled { opacity: 0.5; cursor: default; }
.feedback-wrap { display: flex; flex-direction: column; gap: 16px; }
.feedback { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: 18px; font-size: 18px; }
.feedback strong { font-family: var(--display); font-size: 22px; }
.feedback.right { background: var(--good-soft); color: #0F4D32; }
.feedback.wrong { background: var(--bad-soft); color: #7A1810; }
.feedback-wrap .btn { min-height: 60px; font-size: 18px; }
.keys-hint { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }

.results { display: flex; flex-direction: column; gap: 28px; }
.results-head { display: flex; align-items: center; gap: 28px; }
.results-head h1 { font-size: 40px; }
.results-head p { margin-top: 8px; font-size: 18px; color: var(--ink-2); }
.result-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.result-list li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; }
.result-list li + li { border-top: 1px solid var(--line); }
.result-mark { flex: none; width: 76px; padding: 3px 0; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 700; }
.result-list .right .result-mark { background: var(--good-soft); color: var(--good); }
.result-list .wrong .result-mark { background: var(--bad-soft); color: var(--bad); }
.result-list .okay .result-mark { background: var(--gold-soft); color: var(--gold-ink); }
.result-body { display: flex; flex-direction: column; gap: 2px; }
.result-body span { color: var(--ink-2); font-size: 15px; }
.results-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- parent dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.panel.flush { padding: 0; gap: 0; overflow: hidden; }
.panel-head { padding: 22px 28px 14px; }
.table-scroll { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 15px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.table th, .table .num, .table .end, .table td:nth-last-child(-n+3) { white-space: nowrap; }
.table thead th { border-top: 0; padding-top: 4px; padding-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.table th:first-child, .table td:first-child { padding-left: 28px; }
.table th:last-child, .table td:last-child { padding-right: 28px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .end { text-align: right; }
.table .end a { font-weight: 700; }
.table tbody th { font-weight: 700; }
.teen-cell { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 17px; }
.teen-cell:hover span:last-child { text-decoration: underline; }
.progress { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.progress .bar { width: 88px; height: 8px; border-radius: 999px; background: #E3E7ED; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.lesson-cell { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.table tr.locked .lesson-cell, .table tr.next .lesson-cell { color: var(--ink-2); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.feed li + li { border-top: 1px solid var(--line); }
.feed time { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.offers { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 28px; }
.offers h2 { font-size: 20px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.offer p { font-size: 15px; color: var(--ink-2); }
.offer .btn { min-height: 42px; padding: 0 18px; font-size: 15px; margin-top: 4px; }
.settings { display: flex; flex-direction: column; gap: 18px; }
.setting { gap: 12px; }
.setting h2 { font-size: 19px; }
.setting-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.setting .btn { align-self: flex-start; min-height: 44px; padding: 0 18px; font-size: 15px; }
.setting.danger { border-color: #EFC9C3; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; max-width: 1040px; }
.split .panel { padding: 32px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.explainer { display: flex; flex-direction: column; gap: 18px; padding: 8px 4px; }
.explainer h2 { font-size: 20px; }
.steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.steps strong { color: var(--ink); }

/* ---------- buddy, coins and outfit shop ---------- */
.buddy-svg { display: block; overflow: visible; }
.coin { flex: none; }
.wallet { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--gold-ink); text-decoration: none; font-size: 15px; }
.wallet strong { font-family: var(--display); font-size: 18px; color: var(--ink); }
.buddy-avatar { flex: none; display: inline-flex; border-radius: 50%; background: var(--brand-soft); overflow: hidden; }
.buddy-avatar.sm { width: 38px; height: 38px; }
.buddy-avatar.md { width: 40px; height: 40px; }
.buddy-avatar.lg { width: 72px; height: 72px; }
.buddy-avatar .buddy-svg { width: 100%; height: 100%; transform: translateY(4%); }
.buddy-line { margin-top: 2px; font-size: 16px; color: var(--ink-2); }

.meet { display: flex; align-items: center; gap: 24px; padding: 20px 26px; background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius-lg); text-decoration: none; }
.meet-art { display: flex; flex: none; }
.meet-art .buddy-svg + .buddy-svg { margin-left: -14px; }
.meet-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.meet-copy strong { font-family: var(--display); font-size: 22px; }
.meet-copy span { color: var(--ink-2); }
.nextup-art.has-buddy { background: rgba(255, 255, 255, 0.14); padding: 14px; box-sizing: border-box; }
.nextup-art.has-buddy .buddy-svg { width: 100%; height: 100%; }

.buddy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; }
.buddy-stage { position: sticky; top: 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 32px 32px; background: var(--brand-soft); border: 2px solid var(--brand-line); border-radius: 28px; }
.buddy-preview { width: min(100%, 400px); aspect-ratio: 1; }
.buddy-preview .buddy-svg { width: 100%; height: 100%; }
.buddy-name { margin-top: 8px; font-family: var(--display); font-size: 36px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.buddy-desc { font-size: 17px; color: var(--ink-2); text-align: center; }
.buddy-controls { gap: 24px; }
.group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.group legend { padding: 0; margin-bottom: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.animals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.animal-card { padding: 10px 6px; font-size: 14px; }
.animal-card svg { width: 60px; height: 60px; }
.animal-option { position: relative; cursor: pointer; }
.animal-option input, .swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.animal-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border: 2px solid var(--line); border-radius: 16px; font-weight: 700; }
.animal-option input:checked + .animal-card { border-color: var(--brand); background: var(--brand-soft); }
.animal-option input:focus-visible + .animal-card { outline: 3px solid var(--brand); outline-offset: 3px; }
.swatches { display: flex; gap: 14px; }
.swatch { position: relative; width: 48px; height: 48px; cursor: pointer; }
.swatch-dot { display: block; width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); box-sizing: border-box; }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--ink); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--brand); outline-offset: 4px; }
.outfits { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.outfit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 48px; }
.outfit + .outfit { border-top: 1px solid var(--line); }
.outfit-text { display: flex; flex-direction: column; gap: 1px; }
.outfit-text strong { font-size: 16px; }
.outfit-text span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.outfit-text .coin { width: 15px; height: 15px; }
.wear { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; }
.wear input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.wear:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.need { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0 6px; }
.btn-gold { min-height: 44px; padding: 0 18px; font-size: 15px; background: var(--gold); color: #3D2800; }
.btn-gold:hover { background: #E9A92A; }

/* ---------- smaller screens ---------- */
/* ---------- lesson article (read before the quiz) ---------- */
.choices.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.many .choice { justify-content: flex-start; text-align: left; font-size: 20px; padding: 14px 20px; }
.stage-score a { color: inherit; }
.lesson-size { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.tile-link { margin-left: 16px; font-weight: 600; font-size: 15px; color: color-mix(in srgb, var(--brand) 70%, #000); min-height: 44px; display: inline-flex; align-items: center; }
.reader { max-width: 700px; margin: 0 auto; font-size: 19px; line-height: 1.65; color: var(--ink); }
.reader-head { margin-bottom: 8px; }
.reader-kicker { color: var(--ink-2); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.reader-head h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; }
.read-intro { font-size: 22px; line-height: 1.5; color: var(--ink); padding-bottom: 24px; margin: 0 0 28px; border-bottom: 2px solid var(--line); }
.read-page h2 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 0 0 14px; outline: none; }
.read-page p { margin: 0 0 18px; max-width: 34em; }
.read-page + .read-page { margin-top: 40px; }
.read-page[hidden] + .read-page, .read-page + .read-page[hidden] { margin-top: 0; }
.read-example { margin: 26px 0 8px; padding: 20px 24px; border-radius: 18px; background: var(--gold-soft); color: var(--gold-ink); }
.read-example strong { font-family: var(--display); display: block; font-size: 15px; margin-bottom: 4px; }
.read-example p { margin: 0; color: var(--ink); }
.read-keys { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.read-keys li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; background: var(--brand-soft); border: 2px solid var(--brand-line); }
.read-keys svg { flex: none; margin-top: 5px; color: var(--good); }
.read-ready { padding: 24px 0 0; border-top: 2px solid var(--line); }
.read-ready .btn { min-height: 52px; padding: 0 26px; font-size: 18px; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--line); }
.reader-nav[hidden] { display: none; }
.reader-nav .btn { min-height: 48px; padding: 0 22px; }
.reader-nav .btn[hidden] { visibility: hidden; display: inline-flex; }
.reader-count { color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* ---------- games ---------- */
.seg.okay { background: var(--gold); }
.feedback.okay { background: var(--gold-soft); color: var(--gold-ink); }
.feedback .effect { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 2px 0 4px; }

/* Card pictures: a two-week calendar, or two shelf tags */
.scene { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 190px; padding: 26px; background: var(--brand-soft); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.cal { display: grid; grid-template-columns: repeat(7, 34px); gap: 6px; }
.cal-day { height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--brand-line); font: 700 13px/32px var(--display); text-align: center; color: var(--ink-2); }
.cal-day.event { box-shadow: inset 0 -4px 0 var(--gold); }
.cal-day.pay { background: var(--brand); border-color: var(--brand); color: #fff; }
.scene-jar { width: 46px; height: 74px; border: 3px solid var(--brand); border-top-width: 7px; border-radius: 8px 8px 14px 14px; background: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.scene-jar span { display: block; width: 100%; background: var(--gold); }
.ptag { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 150px; padding: 16px 20px 14px 30px; background: #fff; border: 2px solid var(--line); border-radius: 6px 16px 16px 6px; font-family: var(--text); color: var(--ink); text-align: left; }
.ptag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.ptag span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.ptag strong { font: 800 30px/1.1 var(--display); letter-spacing: -0.01em; }
.ptag small { font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 1em; }
.scene .ptag.win { border-color: var(--good); }
.scene .ptag.win small { color: var(--good); }

/* Games room */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }
.game-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.game-card.locked { background: transparent; border-style: dashed; }
.game-card.locked .scene { filter: grayscale(1); opacity: 0.55; }
.game-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 26px; }
.game-card-body h2 { font-size: 26px; margin: 8px 0 6px; }
.game-card-body p { color: var(--ink-2); }
.game-learn { margin-top: 10px; font-size: 15px; }
.game-learn strong { color: var(--ink); }
.cell-sub { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.game-plays { margin-left: 14px; font-size: 14px; color: var(--ink-2); }
.game-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game-mini { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.game-mini:hover { border-color: var(--brand); }
.game-mini.locked { background: transparent; border-style: dashed; color: var(--ink-2); }
.game-mini-art { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.game-mini.locked .game-mini-art { background: #EBEEF2; color: #8A94A3; }
.game-mini strong { display: block; font-family: var(--display); font-size: 17px; }
.game-mini strong + span { font-size: 14px; color: var(--ink-2); }

/* Game screen */
.play-payday .stage-body { max-width: 1180px; }
.play-payday .segments { max-width: 1180px; }
.teach { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.teach h1 { font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 22px; }
.teach .read-keys { font-size: 18px; line-height: 1.5; }
.teach .read-example { margin-top: 0; }
.teach-go { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.teach-go .btn { min-height: 56px; padding: 0 26px; font-size: 18px; }
.teach-side .scene { border-radius: var(--radius-lg); flex-direction: column; min-height: 320px; }
.plan-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.plan-table caption { text-align: left; font: 700 17px var(--display); padding: 0 0 10px; }
.plan-table th, .plan-table td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: left; font-weight: 500; }
.plan-table tr:first-child th, .plan-table tr:first-child td { border-top: 0; }
.plan-table td { text-align: right; font-family: var(--display); font-weight: 700; }
.plan-total th, .plan-total td { background: var(--paper); font-weight: 700; }

.game-play { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.play-payday .game-play { grid-template-columns: minmax(0, 1fr) 340px; }
.gp-main { display: flex; flex-direction: column; gap: 18px; }
.gp-title { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; outline: none; }
.gp-prompt { font-size: 22px; line-height: 1.45; max-width: 32em; }
.gp-note { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; }

.options { display: flex; flex-direction: column; gap: 12px; }
.option { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 20px; border-radius: 16px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--surface); font: 600 19px/1.35 var(--text); color: var(--ink); text-align: left; cursor: pointer; }
.option:hover:not(:disabled) { border-color: var(--brand); }
.option:disabled { cursor: default; color: var(--ink-2); }
.option.best { border-color: var(--good); color: var(--ink); background: var(--good-soft); }
.option.picked:not(.best) { border-color: var(--bad); color: var(--ink); }
.option-label { flex: 1; }

.tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ptag-btn { min-height: 190px; justify-content: center; padding: 26px 28px 22px 44px; border-bottom-width: 5px; cursor: pointer; }
.ptag-btn::before { left: 16px; width: 13px; height: 13px; margin-top: -6.5px; }
.ptag-btn:hover:not(:disabled) { border-color: var(--brand); }
.ptag-btn kbd { position: absolute; top: 14px; right: 14px; }
.ptag-btn .ptag-item { font-size: 20px; color: var(--ink); }
.ptag-btn .ptag-price { font-size: 52px; margin: 4px 0; }
.ptag-btn .ptag-deal { align-self: flex-start; padding: 3px 10px; border-radius: 6px; background: var(--bad); color: #fff; font-size: 14px; font-weight: 700; }
.ptag-btn .ptag-unit { font-size: 16px; margin-top: 6px; }
.ptag-btn:disabled { cursor: default; }
.ptag-btn.best { border-color: var(--good); background: var(--good-soft); }
.ptag-btn.best .ptag-unit { color: var(--good); }
.ptag-btn.picked:not(.best) { border-color: var(--bad); }

.wallet-panel { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.wp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; color: var(--ink-2); }
.wp-row strong { font: 800 26px var(--display); color: var(--ink); }
.wp-row strong.neg { color: var(--bad); }
.wp-goal { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wp-bar { height: 14px; margin-top: 10px; border-radius: 999px; background: #E3E7ED; overflow: hidden; }
.wp-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s ease; }
.wp-bar.met span { background: var(--good); }
.wp-small { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.wp-warn { font-size: 15px; }
.wp-warn strong { font-size: 18px; color: var(--bad); }
.wallet-panel .plan-table { font-size: 14px; }
.wallet-panel .plan-table caption { font-size: 15px; }
.wallet-panel .plan-table th, .wallet-panel .plan-table td { padding: 7px 12px; }

.outcome { padding: 20px 24px; border-radius: 18px; background: var(--brand-soft); border: 2px solid var(--brand-line); font-size: 19px; line-height: 1.5; }
.practiced h2 { font-size: 22px; margin-bottom: 10px; }
.practiced ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 17px; }
/* ---------- Buddy Run ---------- */
.play-runner .stage-body { max-width: 1240px; }
.runner-hero, .scene-run { position: relative; overflow: hidden; }
.runner-hero { height: 280px; border-radius: var(--radius-lg); background: linear-gradient(var(--brand-soft), #fff); border: 1px solid var(--line); }
.scene-run { display: block; height: 190px; padding: 0; background: linear-gradient(var(--brand-soft), #fff); }
.rh-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: color-mix(in srgb, var(--brand) 20%, #fff); border-top: 3px solid color-mix(in srgb, var(--brand) 40%, #fff); }
.rh-buddy { position: absolute; left: 14%; bottom: 20%; width: 34%; max-width: 130px; aspect-ratio: 1; z-index: 1; }
.scene-run .rh-buddy { left: 8%; width: 28%; max-width: 110px; }
.rh-buddy svg { width: 100%; height: 100%; display: block; }
.rh-coin { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #F5B83D; border: 3px solid #C98A12; box-shadow: inset 0 0 0 3px #F5B83D, inset 0 0 0 5px #C98A12; }
.rh-cone { position: absolute; left: 57%; bottom: 22%; width: 0; height: 0; border-left: 17px solid transparent; border-right: 17px solid transparent; border-bottom: 44px solid #F28C38; }
.rh-jar { position: absolute; right: 9%; bottom: 22%; width: 56px; height: 76px; border: 3px solid color-mix(in srgb, var(--brand) 80%, #000); border-top: 12px solid var(--brand); border-radius: 6px 6px 14px 14px; background: linear-gradient(transparent 45%, #F5B83D 45%); display: flex; align-items: center; justify-content: center; font: 700 11px var(--text); color: var(--ink); }
.runner-name { margin: 14px 0 22px; font: 700 18px var(--display); }
.keys-table td { font-family: var(--text); font-weight: 600; }
.speed-pick { border: 0; padding: 0; margin: 24px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.speed-pick legend { float: left; margin-right: 8px; font-weight: 700; }
.speed-pick label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; }
.speed-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.speed-pick input { accent-color: var(--brand); width: 18px; height: 18px; }

.run { display: flex; flex-direction: column; gap: 14px; }
.hud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hud-stat { display: flex; flex-direction: column; min-width: 96px; padding: 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hud-stat span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hud-stat strong { font: 800 24px/1.15 var(--display); }
.hud-track { position: relative; flex: 1; min-width: 160px; height: 12px; border-radius: 999px; background: #E3E7ED; }
.hud-track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); }
.hud-track i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; }
.hud-track .mk-jar { background: #F5B83D; }
.hud-track .mk-gate { background: var(--ink); border-radius: 3px; }
.hud-pause { min-height: 44px; }
.arena { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.arena canvas { display: block; width: 100%; height: auto; touch-action: manipulation; outline: none; }
.arena canvas:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.gate-card { position: absolute; inset: 16px; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 22px 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(26, 35, 48, 0.22); }
.gate-card[hidden] { display: none; }
.gate-ask, .gate-side { display: flex; flex-direction: column; gap: 12px; }
.gate-side { padding-top: 26px; }
.gate-wait { padding: 18px 20px; border-radius: 16px; border: 2px dashed var(--line); color: var(--ink-2); font-weight: 600; }
.gate-wait[hidden] { display: none; }
.result-body .result-chose { font-weight: 600; color: var(--ink); }
.hud-stat strong span { font: inherit; color: inherit; }
.gate-card h2 { font-size: 28px; line-height: 1.15; outline: none; }
.gate-prompt { font-size: 18px; line-height: 1.45; }
.gate-card .option { min-height: 54px; font-size: 17px; padding: 10px 16px; }
.gate-card .feedback { font-size: 16px; }
.paused-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(255, 255, 255, 0.82); }
.paused-card[hidden] { display: none; }
.toast { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; }

.run-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.run-totals div { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.run-totals dt { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.run-totals dd { margin: 2px 0 0; font: 800 22px var(--display); }
.milestones h2, .calls-head { font-size: 22px; margin-bottom: 10px; }
.milestones ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; }
.milestones li { display: flex; align-items: center; gap: 10px; }
.ms-chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #EEF1F4; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ms-chips li.earned { background: var(--good-soft); color: var(--good); }
.game-card-body .lesson-foot { margin-top: auto; padding-top: 18px; }

/* Buddy Run 2: money HUD, stands */
.hud-stat strong small { font: 600 13px var(--text); color: var(--ink-2); }
.hud-fund { position: relative; min-width: 150px; padding-bottom: 18px; }
.fund-bar { position: absolute; left: 12px; right: 12px; bottom: 7px; height: 5px; border-radius: 999px; background: #E3E7ED; overflow: hidden; }
.fund-bar b { display: block; height: 100%; width: 0; background: #E8A27C; transition: width 0.3s; }
.hud-warn { border-color: #F2C2BF; background: #FFF4F3; }
.hud-warn strong { color: #B4232A; }
.hud-track .mk-zone { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); opacity: 0.5; }
.hud-zone { flex-basis: 100%; margin: -2px 0 0; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.hud-power { padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 700; font-size: 14px; }
.hud-power[hidden] { display: none; }
.stand-card { position: absolute; top: 16px; right: 16px; width: min(420px, 46%); display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 14px 34px rgba(26, 35, 48, 0.2); border: 2px solid var(--brand); }
.stand-card[hidden] { display: none; }
.stand-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--brand); }
.stand-title { margin: 0; font: 700 17px/1.35 var(--display); }
.stand-card .option { min-height: 48px; font-size: 15px; padding: 8px 12px; }
.stand-hint { margin: 0; font-size: 13px; color: var(--ink-2); }
.run-totals .tot-note { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------- outfit shop ---------- */
.shop { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; }
.shop-head h2 { font-size: 24px; margin-bottom: 4px; }
.shop-group h3 { font-size: 17px; margin: 0 0 10px; }
.shop .outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; border: 0; border-radius: 0; }
.shop .outfit { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.shop .outfit + .outfit { border-top: 1px solid var(--line); }
.shop .outfit.owned { border-color: var(--good); background: color-mix(in srgb, var(--good-soft) 50%, #fff); }
.outfit-pic { display: flex; align-items: center; justify-content: center; height: 84px; border-radius: 12px; background: #F4F6F8; }
.shop .outfit .btn, .shop .outfit .wear, .shop .outfit .need { margin-top: auto; }
.shop .outfit .btn { width: 100%; justify-content: center; }
.shop .need { text-align: center; padding: 10px 0; }
.shop .wear { justify-content: center; }

/* ---------- route map ---------- */
.route-map { margin-top: 4px; }
.route-map-svg { display: block; width: 100%; height: auto; }
.route-map-narrow { display: none; }
.map-land { fill: color-mix(in srgb, var(--brand) 7%, #F6F3EA); }
.map-region { font: 800 22px var(--display); fill: color-mix(in srgb, var(--brand) 70%, #1A2330); letter-spacing: -0.01em; }
.map-road { fill: none; stroke: #E4D9C3; stroke-width: 30; stroke-linecap: round; }
.map-road-line { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 12 14; stroke-linecap: round; }
.map-walked { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; opacity: 0.85; }
.map-title { font: 700 15px var(--display); fill: #1A2330; }
.map-meta { font: 600 13px var(--text); fill: #5C6675; }
.map-meta.done { fill: #1F7A4D; }
.map-meta.next { fill: color-mix(in srgb, var(--brand) 85%, #000); font-weight: 800; }
.map-game { font: 700 12px var(--text); fill: #1A2330; }
.map-landmark.faded { opacity: 0.4; filter: grayscale(1); }
.map-stop, .map-gamespot { outline: none; }
a.map-stop:hover .map-title, a.map-gamespot:hover .map-game { text-decoration: underline; }
a.map-stop:focus-visible circle, a.map-gamespot:focus-visible rect:first-of-type { stroke: #1A2330; stroke-width: 5; }
.map-pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 1.8s ease-out infinite; }
@keyframes map-pulse { 0% { transform: scale(0.75); opacity: 0.35; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-pulse { animation: none; } }
.tiles-head { font-size: 22px; margin: 34px 0 14px; }

@media (prefers-reduced-motion: reduce) { .wp-bar span { transition: none; } }

@media (max-width: 1100px) {
  .buddy-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .main { padding: 36px 36px 64px; }
  .dash, .split { grid-template-columns: minmax(0, 1fr); }
  .offers { position: static; }
  .nextup { grid-template-columns: minmax(0, 1fr) 180px; padding: 36px; }
  .nextup-art { width: 170px; height: 170px; }
  .nextup-art svg { width: 90px; height: 90px; }
}
@media (max-width: 900px) {
  h1, .page-head h1 { font-size: 32px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 28px 24px 32px; gap: 24px; }
  .auth-pitch h1 { font-size: 38px; }
  .auth-pitch p { font-size: 17px; }
  .route-art { display: none; }
  .auth-main { padding: 28px 22px 48px; align-items: flex-start; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .side-inner { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; }
  .side .brandmark { padding: 0; flex: 1; }
  .side-nav { order: 3; flex: 1 0 100%; min-width: 0; flex-direction: row; overflow-x: auto; gap: 4px; }
  .side-inner > * { min-width: 0; }
  .side-nav .side-link { width: auto; flex: none; }
  .side-label { display: none; }
  .side-foot { border-top: 0; padding-top: 0; flex-direction: row; align-items: center; }
  .side-foot .me { display: none; }
  .side-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
  .main { padding: 24px 18px 56px; gap: 28px; }
  .page-head { align-items: flex-start; }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 10px 14px; }
  .stats dd { font-size: 24px; }
  .nextup { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .nextup h2 { font-size: 34px; }
  .nextup-art { display: none; }
  .route { grid-template-columns: minmax(0, 1fr); padding: 12px 18px; }
  .stop::before { top: calc(-50% + 30px); bottom: calc(50% + 30px); left: 30px; right: auto; border-top: 0; border-left: 4px dotted var(--line); }
  .stop.done::before, .stop.next::before { border-top: 0; border-left: 4px solid var(--brand); }
  .stop-link { flex-direction: row; text-align: left; gap: 16px; padding: 10px 0; }
  .stop-dot, .stop.next .stop-dot { width: 60px; height: 60px; margin: 0; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .lesson-tile { padding: 20px; }
  .stage-top { padding: 12px 16px; grid-template-columns: auto 1fr auto; }
  .stage-title { justify-content: center; font-size: 16px; }
  .stage-title svg, .stage-exit span { display: none; }
  .choices.many { grid-template-columns: 1fr; }
  .choices.many .choice { font-size: 18px; min-height: 56px; }
  .teach, .play-payday .game-play { grid-template-columns: 1fr; gap: 24px; }
  .teach h1 { font-size: 30px; }
  .teach-side .scene { min-height: 200px; }
  .wallet-panel { position: static; order: -1; }
  .wallet-panel .plan-table { display: none; }
  .gp-title { font-size: 30px; }
  .gp-prompt { font-size: 19px; }
  .tags { gap: 12px; }
  .ptag-btn { min-height: 150px; padding: 20px 14px 16px 30px; }
  .ptag-btn::before { left: 10px; width: 10px; height: 10px; margin-top: -5px; }
  .ptag-btn .ptag-price { font-size: 34px; }
  .ptag-btn .ptag-item { font-size: 16px; }
  .ptag-btn kbd { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .cal { grid-template-columns: repeat(7, 28px); }
  .cal-day { height: 28px; line-height: 26px; }
  .option kbd { display: none; }
  .gate-card { position: static; display: flex; flex-direction: column; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
  .gate-side { padding-top: 0; }
  .gate-wait { display: none; }
  .hud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hud-stat { min-width: 0; padding: 6px 12px; }
  .hud-stat strong { font-size: 20px; white-space: nowrap; }
  .hud-pause, .hud-track, .hud-zone { grid-column: 1 / -1; }
  .hud-pause { order: 6; }
  .hud-zone { order: 4; }
  .arena .toast { position: static; transform: none; width: auto; margin: 0; border-radius: 0; min-height: 44px; padding: 10px 14px; opacity: 1; background: var(--ink); visibility: hidden; }
  .arena .toast.show { visibility: visible; }
  .hud-track { order: 5; flex-basis: 100%; }
  .run-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runner-hero { height: 200px; }
  .toast { white-space: normal; width: 90%; text-align: center; }
  .stand-card { position: static; width: auto; box-shadow: none; border-width: 0; border-top: 2px solid var(--brand); border-radius: 0; }
  .hud-fund { min-width: 0; }
  .route-map-wide { display: none; }
  .route-map-narrow { display: block; }
  .reader { font-size: 18px; }
  .reader-head h1 { font-size: 30px; }
  .reader-nav { flex-wrap: wrap; }
  .reader-count { order: -1; width: 100%; text-align: center; }
  .reader-nav .btn { flex: 1; }
  .segments { padding: 16px 18px 0; }
  .stage-body { padding: 22px 18px 40px; }
  .playcard { min-height: 220px; padding: 28px 24px; }
  .choice { min-height: 64px; font-size: 20px; }
  .choice kbd, .keys-hint, .feedback-wrap kbd { display: none; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .results-head h1 { font-size: 30px; }
  .feed li { grid-template-columns: auto minmax(0, 1fr); }
  .feed time { grid-column: 2; }
  .buddy-layout { grid-template-columns: minmax(0, 1fr); }
  .buddy-stage { position: static; padding: 24px; }
  .buddy-preview { width: min(100%, 260px); }
  .buddy-name { font-size: 28px; }
  .meet { flex-wrap: wrap; gap: 16px; padding: 18px; }
  .wallet { margin: 0; }
}
@media (max-width: 600px) {
  .table .opt { display: none; }
  .table th, .table td { padding-left: 12px; padding-right: 12px; }
  .table th:first-child, .table td:first-child { padding-left: 20px; }
  .table th:last-child, .table td:last-child { padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- admin (Pluto navy) ---------- */
body.admin { background: #F4F6FA; color: #111827; }
body.admin .stack { display: flex; flex-direction: column; gap: 16px; }
body.admin .tile { background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
body.admin .tile strong { font-family: var(--display); font-size: 26px; }
body.admin .error { background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0; }
body.admin .notice { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0; }
body.admin .linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 700; text-decoration: underline; cursor: pointer; }
body.admin .btn { border-radius: 10px; min-height: 44px; font-size: 15px; }
body.admin .field input, body.admin .field select, body.admin .field textarea { border-color: #9CA3AF; min-height: 44px; }
body.admin :focus-visible, body.admin .field input:focus { outline-color: var(--navy); border-color: var(--navy); }
body.admin h1 { font-size: 30px; }
.admin-narrow { max-width: 420px; margin: 80px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 18px; }
.admin-logo { font-family: var(--display); font-size: 22px; font-weight: 750; }
.admin-narrow .admin-logo { color: var(--navy); }
.admin-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-nav { flex: 1 1 200px; max-width: 240px; background: var(--navy); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; }
.admin-nav .admin-logo { padding: 0 10px 16px; }
.admin-nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.linkbtn.on-navy { color: #fff; padding: 0 12px; text-align: left; }
.admin-main { flex: 999 1 560px; min-width: 0; }
.admin-form { min-height: 100vh; display: flex; flex-direction: column; }
.admin-content { flex: 1; padding: 32px 40px 40px; max-width: 1000px; }
.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.admin-tiles .tile { border: 1px solid #E5E7EB; }
.admin-tiles .tile span { color: #4B5563; font-size: 14px; }
body.admin .panel { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.product { border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.product legend { font-weight: 700; padding: 0 6px; }
.checks { display: flex; flex-direction: column; gap: 8px; justify-content: center; font-size: 14px; }
.checks label { display: flex; gap: 8px; align-items: flex-start; }
.checks input { width: 18px; height: 18px; margin-top: 2px; }
.colorrow { display: flex; align-items: center; gap: 12px; }
.colorrow input[type="color"] { width: 64px; height: 44px; padding: 2px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.ghost { background: #fff; color: #111827; border: 1px solid #D1D5DB; }
.savebar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #E5E7EB; padding: 12px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.savebar > span { margin-right: auto; }
@media (max-width: 640px) {
  .admin-content { padding: 24px 18px; }
  .savebar { padding: 12px 18px; }
  .admin-nav { max-width: none; }
}


/* ---------- the buddy's life (Life page) ---------- */
.life-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; margin: 6px 0 30px; }
.life-top h2 { font-size: 20px; margin: 0 0 14px; }
.place-scene { position: relative; height: 230px; border-radius: 18px; background: linear-gradient(var(--brand-soft) 72%, color-mix(in srgb, var(--brand) 16%, #fff) 72%); overflow: hidden; }
.place-buddy { position: absolute; left: 38%; bottom: 6%; width: 170px; height: 170px; transform: translateX(-50%); }
.place-buddy svg { width: 100%; height: 100%; }
.place-car { position: absolute; right: 2%; bottom: 0; width: 190px; height: 190px; }
.place-today { list-style: none; margin: 0; padding: 0; position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.place-today li { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 700; }
.place-today small { display: block; font-weight: 600; color: var(--ink-2); font-size: 12px; }
.place-shelf { margin-top: 12px; }
.place-shelf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.place-shelf li { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 12px; background: #F4F6F8; font-size: 13px; font-weight: 700; }
.wk-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.wk { display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px; align-items: center; gap: 12px; }
.wk-label { font-weight: 700; }
.wk-bar { position: relative; height: 16px; border-radius: 999px; background: #EEF1F4; }
.wk-bar b { display: block; height: 100%; border-radius: 999px; }
.wk.need b { background: var(--brand); }
.wk.want b { background: #E8A27C; }
.wk.saved b { background: var(--gold); }
.wk-bar i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; opacity: 0.6; }
.wk-num { font-size: 14px; color: var(--ink-2); text-align: right; }
.wk-num strong { color: var(--ink); font-size: 16px; margin-right: 4px; }
.life-section { margin-top: 30px; }
.life-section .block-head { margin-bottom: 4px; }
.life-blurb { margin: 0 0 16px; color: var(--ink-2); }
.life-items, .goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.life-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.life-item.have { border-color: var(--good); }
.life-pic { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: #F4F6F8; }
.life-text h3 { font-size: 17px; margin: 2px 0 4px; }
.life-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.life-price strong { color: var(--ink); font-size: 16px; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag-need { background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 80%, #000); }
.tag-want { background: #FBE6DA; color: #9A4A22; }
.life-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.breakdown { list-style: none; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #F7F8FA; font-size: 14px; }
.breakdown li { display: flex; justify-content: space-between; }
.life-action { grid-column: 2; display: flex; align-items: center; margin-top: 6px; }
.life-action .btn { width: 100%; justify-content: center; }
.life-action form { width: 100%; }
.goal { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.goal.funded { border-color: var(--good); background: color-mix(in srgb, var(--good-soft) 45%, #fff); }
.goal-top { display: flex; gap: 14px; align-items: center; }
.goal-top h3 { font-size: 18px; margin: 0; }
.goal-amt { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.goal-amt strong { color: var(--ink); font-size: 18px; }
.goal-bar { height: 14px; border-radius: 999px; background: #EEF1F4; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.goal.funded .goal-bar span { background: var(--good); }
.goal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.goal-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.goal-actions .btn { flex: 1; justify-content: center; }
.goal-actions .btn-small { min-height: 44px; font-size: 14px; }
@media (max-width: 900px) {
  .life-top { grid-template-columns: 1fr; }
  .life-items, .goals { grid-template-columns: 1fr; }
  .wk { grid-template-columns: 56px minmax(0, 1fr) 96px; }
}

/* Life page: the buddy's job and weekly pay stub */
.job-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; margin: 6px 0 22px; scroll-margin-top: 90px; }
.job-main { display: flex; align-items: center; gap: 16px; }
.job-main h2 { font-size: 20px; margin: 0 0 4px; }
.stub { border-collapse: collapse; font-size: 14px; width: 100%; }
.stub th, .stub td { padding: 4px 10px; text-align: left; font-weight: 500; border-bottom: 1px dashed var(--line); }
.stub td { text-align: right; font-family: var(--display); font-weight: 700; }
.stub-total th, .stub-total td { font-weight: 800; border-bottom: 0; }
.job-act .btn { white-space: nowrap; }
@media (max-width: 900px) { .job-card { grid-template-columns: 1fr; } }
.story-side { text-align: center; }
.story-side p { font: 800 20px var(--display); margin: 8px 0 0; }
.map-story { font: 900 24px var(--display); fill: #D9822B; }
.map-meta.story { fill: #9A5414; }
.life-item.locked-item { background: transparent; border-style: dashed; grid-template-rows: auto; }

/* ---------- Budget Blocks ---------- */
.play-blocks .stage-body, .play-business .stage-body { max-width: 1180px; }
.bb-play { display: flex; flex-direction: column; gap: 22px; }
.bb-head .gp-title { margin: 4px 0 8px; }
.bb-board { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bb-bar { display: flex; gap: 3px; min-height: 84px; padding: 4px; border-radius: 14px; background-color: #EEF1F5;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--cells, 20) - 1px), #D5DBE3 calc(100% / var(--cells, 20) - 1px), #D5DBE3 calc(100% / var(--cells, 20))); }
.bb-piece { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 6px 8px; border-radius: 10px; border: 2px solid; font: 700 14px/1.2 var(--text); color: var(--ink); text-align: left; overflow: hidden; cursor: pointer; }
.bb-piece:disabled { cursor: default; }
.bb-piece .bb-piece-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-piece .bb-piece-amt { font: 800 15px var(--display); }
.bb-piece:hover:not(:disabled) { filter: brightness(0.96); }
.t-need { background: #D6E5F7; border-color: #2F6FB0; }
.t-save { background: #D3EEDD; border-color: #2E8B57; }
.t-want { background: #FBE3C8; border-color: #C9701F; }
.bb-gap { display: flex; align-items: center; justify-content: center; min-width: 0; border: 2px dashed #A9B4C2; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; }
.bb-scale { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.bb-status { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bb-status li { padding: 7px 14px; border-radius: 999px; background: #EBEEF2; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.bb-status li.ok { background: var(--good-soft); color: var(--good); }
.bb-tray-head { font-size: 20px; margin: 0 0 2px; }
.bb-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 14px; }
.bb-block { display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 12px 14px; border-radius: 14px; border: 2px solid; border-bottom-width: 4px; text-align: left; font: 600 15px/1.3 var(--text); color: var(--ink); cursor: pointer; }
.bb-block:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); }
.bb-block.placed { background: var(--surface); border-style: dashed; border-bottom-width: 2px; }
.bb-block.nofit { background: #F1F3F6; border-color: #C3CBD5; cursor: not-allowed; }
.bb-block-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bb-tag { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); }
.bb-block-amt { font: 800 18px var(--display); }
.bb-block-name { font-weight: 700; font-size: 16px; }
.bb-cells { display: flex; flex-wrap: wrap; gap: 2px; }
.bb-cells i { width: 9px; height: 9px; border-radius: 2px; background: currentColor; opacity: 0.35; }
.bb-block-state { margin-top: auto; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.bb-block.nofit .bb-block-state { color: var(--bad); }
.bb-go { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.bb-go .btn { min-height: 56px; font-size: 18px; }
.bb-rules { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; font-size: 17px; }
.bb-rules li { display: flex; gap: 10px; }
.bb-rule-mark { font-weight: 800; width: 1.2em; }
.bb-demo { padding: 26px; background: var(--brand-soft); border-radius: var(--radius-lg); }
.bb-demo-pay { font: 800 20px var(--display); margin: 0 0 10px; }
.bb-demo-bar { --cells: 20; min-height: 70px; }
.bb-demo-bar .bb-piece { font-size: 12px; padding: 4px 6px; cursor: default; }
.bb-demo-left { margin: 10px 0 0; font-weight: 700; color: var(--good); }
.bb-legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 16px 0 0; font-weight: 600; }
.bb-legend li { display: flex; align-items: center; gap: 8px; }
.bb-swatch { width: 18px; height: 18px; border-radius: 5px; border: 2px solid; }
.scene-blocks { flex-direction: column; align-items: stretch; }
.scene-blocks .bb-bar { width: 100%; min-height: 56px; }
.scene-blocks .bb-piece { font-size: 12px; padding: 3px 6px; cursor: default; }
.scene-tray { display: flex; gap: 8px; }
.scene-tray .bb-piece { min-height: 40px; }

/* ---------- Buddy Business ---------- */
.bz-hud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.bz-hud .hud-stat { display: flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 140px; }
.bz-hud .hud-stat span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.bz-hud .hud-stat strong { font: 800 22px var(--display); }
.bz-play { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.bz-main { display: flex; flex-direction: column; gap: 22px; }
.bz-day { display: flex; gap: 20px; align-items: flex-start; }
.bz-weather { flex: none; padding: 6px; border-radius: 18px; background: var(--brand-soft); }
.bz-day .gp-title { margin: 2px 0 6px; }
.bz-day .gp-note { display: inline-block; margin-top: 10px; border-radius: 14px; }
.bz-plan { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bz-price { border: 0; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.bz-price legend, .bz-legend { font: 700 17px var(--display); margin: 0 0 10px; padding: 0; }
.bz-price label { position: relative; }
.bz-price input { position: absolute; opacity: 0; inset: 0; }
.bz-price label span { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 112px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; font: 800 22px var(--display); cursor: pointer; }
.bz-price input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.bz-price input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.bz-stepper { display: flex; align-items: center; gap: 12px; }
.bz-stepper .btn { min-width: 56px; padding: 0; font-size: 26px; }
.bz-stepper output { min-width: 120px; text-align: center; font: 800 24px var(--display); }
.bz-cups p { margin: 6px 0 0; }
.bz-sign { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-ink); cursor: pointer; }
.bz-sign input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.bz-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bz-go .btn { min-height: 56px; font-size: 18px; }
.bz-short { color: var(--bad); font-weight: 700; }
.bz-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin: 10px 0; font-size: 16px; }
.bz-ledger div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); padding: 4px 0; }
.bz-ledger dd { margin: 0; font-weight: 800; }
.bz-ledger .warn dd { color: var(--bad); }
.stand-scene { position: relative; height: 300px; border-radius: var(--radius-lg); background: linear-gradient(#DCEBF7 0 70%, #CFE3B8 70%); overflow: hidden; }
.stand-awning { position: absolute; left: 12%; right: 12%; top: 30px; height: 40px; display: flex; border-radius: 8px 8px 0 0; overflow: hidden; z-index: 2; }
.stand-awning span { flex: 1; border-radius: 0 0 14px 14px; }
.stand-awning .b { background: var(--brand); }
.stand-awning .w { background: #fff; }
.stand-sign { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); padding: 2px 14px; border-radius: 8px; background: #F5B83D; font: 800 15px var(--display); color: #1A2330; z-index: 3; }
.stand-buddy { position: absolute; left: 50%; bottom: 72px; width: 150px; transform: translateX(-50%); z-index: 1; }
.stand-counter { position: absolute; left: 10%; right: 10%; bottom: 24px; height: 74px; background: #C98A55; border-top: 10px solid #8B5A3C; border-radius: 4px; z-index: 2; display: flex; align-items: flex-start; gap: 10px; padding: 0 12px; }
.stand-pitcher { width: 30px; height: 40px; margin-top: -48px; border-radius: 4px 4px 8px 8px; background: #FCE9A0; border: 3px solid #fff; }
.stand-cups { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -24px; }
.stand-cups i { width: 13px; height: 18px; border-radius: 2px 2px 5px 5px; background: #fff; border: 2px solid #F5B83D; }
.scene-stand { padding: 0; }
.scene-stand .stand-scene { width: 100%; height: 190px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.scene-stand .stand-awning { top: 26px; height: 30px; }
.scene-stand .stand-buddy { width: 96px; bottom: 52px; }
.scene-stand .stand-counter { height: 52px; bottom: 14px; }
@media (max-width: 900px) {
  .bz-play { grid-template-columns: 1fr; }
  .bz-side { display: none; }
  .bz-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bz-hud .hud-stat { min-width: 0; padding: 8px 12px; }
  .bz-hud .hud-stat strong { font-size: 19px; }
  .bz-hud #h-sign-row { grid-column: 1 / -1; }
  .bz-price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bz-price label span { min-width: 0; width: 100%; justify-content: center; padding: 0 8px; }
  .bz-weather { width: 64px; height: 60px; }
  .bb-gap .bb-gap-word { display: none; }
  .bz-ledger { grid-template-columns: 1fr; }
  .bb-tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-bar { min-height: 70px; }
  .bb-piece { font-size: 12px; padding: 4px; }
  .bb-piece .bb-piece-name { display: none; }
  .bb-piece .bb-piece-amt { font-size: 12px; }
}

/* ---------- The Final Quest ---------- */
.finale-lede { font-size: 19px; line-height: 1.5; max-width: 34em; }
.finale-areas { list-style: none; padding: 0; margin: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.finale-areas li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--good-soft); color: var(--good); font-weight: 700; font-size: 15px; }
.finale-side { display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--brand-soft); border-radius: var(--radius-lg); }

/* ---------- The finish line ---------- */
.finish-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; padding: 52px 52px 44px; border-radius: var(--radius-lg); background: #1F2A3D; color: #fff; }
.finish-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, #fff 0 16px, #1A2330 16px 32px); }
.finish-copy { position: relative; z-index: 1; }
.finish-copy h1 { font-size: 46px; line-height: 1.08; margin: 14px 0 16px; color: #fff; }
.finish-copy p { font-size: 19px; line-height: 1.55; max-width: 32em; color: #DCE3EC; margin: 0; }
.finish-art { position: relative; height: 290px; z-index: 1; }
.finish-arch { position: absolute; inset: 0 0 auto; width: 100%; height: 270px; }
.finish-buddy { position: absolute; left: 50%; bottom: 14px; width: 170px; transform: translateX(-50%); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; transform: rotate(var(--r)); animation: confetti-fall 2.6s var(--d) cubic-bezier(.3, .6, .5, 1) both; }
@keyframes confetti-fall {
  from { transform: translateY(0) rotate(var(--r)); opacity: 1; }
  to { transform: translateY(380px) rotate(calc(var(--r) + 540deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

.certificate { margin-top: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.cert-inner { padding: 40px 32px 34px; border: 3px double #C9A24A; border-radius: 14px; text-align: center; background: linear-gradient(#FFFDF6, #FFF8E6); }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.cert-kicker { margin: 20px 0 4px; font: 700 16px var(--display); color: #8A6A1F; letter-spacing: 0.04em; }
.cert-inner h2 { font-size: 44px; margin: 0 0 10px; }
.cert-line { font-size: 18px; max-width: 30em; margin: 0 auto 24px; color: var(--ink-2); }
.cert-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 22px; }
.cert-stats div { display: flex; flex-direction: column-reverse; }
.cert-stats dt { font-size: 14px; color: var(--ink-2); }
.cert-stats dd { margin: 0; font: 800 30px var(--display); }
.cert-date { margin: 0; font-weight: 700; color: var(--ink-2); }
.cert-actions { display: flex; justify-content: center; margin-top: 14px; }
.finish-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; }
.journey { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.journey li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.journey-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; }
.journey-final .journey-dot { background: var(--gold); color: var(--gold-ink); }
.journey-name { font-weight: 700; }
.journey-score { color: var(--ink-2); font-size: 15px; }
.rewards { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 14px; }
.rewards li { display: flex; align-items: center; gap: 14px; }
.rewards li > span:last-child { display: flex; flex-direction: column; }
.rewards li > span:last-child > span { color: var(--ink-2); font-size: 15px; }
.reward-pic { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--brand-soft); }
.keep-going { margin-top: 24px; }
@media (max-width: 900px) {
  .finish-hero { grid-template-columns: 1fr; padding: 32px 22px 36px; }
  .finish-copy h1 { font-size: 32px; }
  .finish-art { height: 230px; }
  .finish-arch { height: 220px; }
  .finish-buddy { width: 130px; }
  .finish-grid { grid-template-columns: 1fr; }
  .cert-inner { padding: 28px 16px; }
  .cert-inner h2 { font-size: 32px; }
}
@media print {
  .side, .finish-hero, .finish-grid, .keep-going, .cert-actions { display: none !important; }
  .main { padding: 0 !important; }
  .certificate { border: 0; margin: 0; padding: 0; }
}

/* ---------- Life checks ---------- */
.pill-gold { background: var(--gold-soft); color: var(--gold-ink); }
.lifecheck-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; max-width: 560px; }
.lifecheck-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-weight: 600; }
.lifecheck-list li small { color: var(--ink-2); font-weight: 500; }
.lifecheck-list li strong { font-size: 14px; color: var(--bad); }
.lifecheck-list li.done strong { color: var(--good); }
.lc-mark { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #C3CBD5; display: flex; align-items: center; justify-content: center; }
.lifecheck-list li.done .lc-mark { background: var(--good); border-color: var(--good); color: #fff; }
.lifecheck-hero .lifecheck-list { margin-bottom: 26px; }
.lifecheck { border: 2px solid var(--gold); background: var(--gold-soft); }
.lifecheck.met { border-color: var(--good); background: var(--good-soft); }
.lifecheck-head { display: flex; gap: 16px; align-items: flex-start; }
.lifecheck-head h2 { margin: 2px 0 6px; }
.lifecheck-head p { margin: 0; }
.lifecheck-kicker { font-weight: 700; color: var(--gold-ink); font-size: 15px; }
.lifecheck.met .lifecheck-kicker { color: var(--good); }
.lifecheck-badge { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--gold-ink); }
.lifecheck.met .lifecheck-badge { color: var(--good); }
.lifecheck .lifecheck-list li { background: #fff; }
.map-meta.gate { fill: #8A5A0E; font-weight: 800; }
.lifecheck-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-block; min-height: 24px; }

/* ---------- Buddy Business: stages ---------- */
.bz-stages { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; align-self: center; }
.bz-stages li { padding: 8px 14px; border-radius: 999px; background: #EBEEF2; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.bz-stages li.done { background: var(--good-soft); color: var(--good); }
.bz-stages li.current { background: var(--brand); color: #fff; }
.bz-scene-wrap { position: relative; margin-bottom: 18px; }
.bz-scene-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 380; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.bz-scene-msg { position: absolute; left: 14px; top: 12px; margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); font-weight: 700; font-size: 15px; max-width: 60%; }
.bz-scene-msg:empty { display: none; }
.bz-panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bz-panel-head .gp-title { margin: 2px 0 6px; }
.bz-sub { font-size: 19px; margin: 22px 0 4px; }
.bz-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.bz-up { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 2px solid var(--line); }
.bz-up.picked { border-color: var(--brand); background: var(--brand-soft); }
.bz-up.owned { background: var(--good-soft); border-color: transparent; }
.bz-up-top { display: flex; justify-content: space-between; gap: 8px; }
.bz-up-cost { font: 800 17px var(--display); white-space: nowrap; }
.bz-up-effect { margin: 0; font-size: 15px; }
.bz-up-lesson { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.bz-up .btn { margin-top: auto; }
.bz-supplies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 10px; }
.bz-supplies .bz-legend { margin: 0 6px 0 0; }
.bz-panel .bz-go { margin-top: 22px; }
.bz-kitchen { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; margin-top: 12px; }
.bz-pitcher { position: relative; width: 120px; height: 170px; border: 5px solid #9AA8B8; border-top-width: 3px; border-radius: 10px 10px 26px 26px; background: #F4F8FB; overflow: hidden; }
.bz-pitcher-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #FCEB9B; transition: height 0.2s; }
.bz-pitcher-fill.mixed { background: #F9DC5C; }
.bz-pitcher-line { position: absolute; left: 0; right: 0; top: 8%; border-top: 2px dashed #9AA8B8; }
.bz-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bz-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #F4F6F9; }
.bz-steps li.current { background: var(--brand-soft); outline: 2px solid var(--brand); }
.bz-steps li.done { background: var(--good-soft); }
.bz-steps li.later { opacity: 0.6; }
.bz-step-name { font-weight: 800; min-width: 170px; }
.bz-lemons { display: flex; gap: 8px; }
.bz-lemon { width: 52px; height: 44px; border-radius: 50%; border: 2px solid #C9A300; background: #FCE45C; cursor: pointer; }
.bz-lemon.squeezed { background: #FFF6C9; border-style: dashed; transform: scaleY(0.7); }
.bz-lemon:disabled { cursor: default; }
.bz-dots { letter-spacing: 4px; color: var(--brand); font-size: 18px; }
.bz-meter { position: relative; width: 240px; height: 22px; border-radius: 999px; background: #E3E8EE; overflow: hidden; }
.bz-meter-zone { position: absolute; left: 60.7%; width: 10.7%; top: 0; bottom: 0; background: rgba(47, 158, 119, 0.35); }
.bz-meter-line { position: absolute; left: 71.4%; top: 0; bottom: 0; border-left: 3px solid #1A2330; }
.bz-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #F9DC5C; }
.bz-meter-fill.good { background: #2F9E77; }
.bz-meter-fill.over { background: #E5484D; }
.bz-kitchen-msg { margin: 16px 0 0; font-weight: 700; min-height: 1.4em; }
.bz-open-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bz-big { min-height: 64px; min-width: 180px; font-size: 20px; }
.bz-live { display: flex; gap: 22px; margin: 0 0 0 auto; }
.bz-live div { display: flex; flex-direction: column-reverse; }
.bz-live dt { font-size: 14px; color: var(--ink-2); }
.bz-live dd { margin: 0; font: 800 24px var(--display); }
.bz-timer { height: 8px; border-radius: 999px; background: #E3E8EE; margin: 16px 0 10px; overflow: hidden; }
.bz-timer span { display: block; height: 100%; width: 0; background: var(--brand); }
.bz-close-title { margin: 0 0 6px; font-size: 26px; }
@media (max-width: 900px) {
  .bz-stages { margin: 6px 0 0; flex-wrap: wrap; grid-column: 1 / -1; }
  .bz-kitchen { grid-template-columns: 1fr; }
  .bz-pitcher { width: 90px; height: 120px; }
  .bz-step-name { min-width: 0; width: 100%; }
  .bz-live { margin: 0; gap: 16px; }
  .bz-scene-msg { max-width: 90%; font-size: 13px; }
}
@media (max-width: 900px) {
  .bz-scene-msg { position: static; max-width: none; margin-top: 8px; background: var(--brand-soft); }
}

/* ---------- crystals: $1 credits from the credit union ---------- */
.gem { flex: none; display: inline-block; vertical-align: middle; }
.crystal-wallet { background: #E3F6FD; color: #0B5677; }
.map-crystal .gem { overflow: visible; }
.map-crystal.got { filter: drop-shadow(0 0 6px rgba(92, 200, 240, 0.7)); }
.crystal-news { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; padding: 16px 22px; border-radius: var(--radius); background: #E3F6FD; color: #0B4560; text-decoration: none; border: 1px solid #A7DDF2; }
.crystal-news > span { display: flex; flex-direction: column; gap: 2px; }
.crystal-news strong { font-family: var(--display); font-size: 20px; }
.panel.crystal-cash { flex-direction: row; gap: 24px; align-items: center; }
.crystal-cash h2 { margin-top: 0; }
.crystal-cash form { margin-top: 12px; }
.crystal-cash-art { flex: none; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: #E3F6FD; }
.crystal-list { list-style: none; margin: 12px 0 0; padding: 0; }
.crystal-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.crystal-list li + li { border-top: 1px solid var(--line); }
.crystal-list li > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.crystal-list li > span > span { color: var(--ink-2); font-size: 14px; }
.crystal-list a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; }
.crystal-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.terms summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.terms-text { max-height: 260px; overflow: auto; padding: 12px 14px; background: var(--bg, #F6F7F9); border-radius: var(--radius-sm); margin-top: 8px; }
.goal-crystal { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; color: #0B5677; }
.crystal-panel h2 { display: flex; align-items: center; gap: 8px; }
.crystal-panel form { margin-top: 12px; }
.crystal-teens { list-style: none; padding: 0; margin: 12px 0; }
.crystal-teens li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; font-size: 15px; }
.crystal-teens li + li { border-top: 1px solid var(--line); }
.crystal-teens li span { color: var(--ink-2); }
.small-head { font-size: 16px; margin: 16px 0 4px; }
.panel-pad { padding: 0 28px 22px; margin: 0; }
.admin-nav .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: #F5B83D; color: #14284B; font-size: 13px; font-weight: 800; text-align: center; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.small-btn { min-height: 44px; padding: 8px 14px; font-size: 14px; }
@media (max-width: 900px) {
  .panel.crystal-cash { flex-direction: column; align-items: flex-start; }
  .crystal-cash-art { width: 72px; height: 72px; }
}

/* ---------- the sit-down interview ("Your first job") ---------- */
.play-story .stage-body:has(.iv-on) { max-width: 1240px; }
.game-play.iv-on { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.interview { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.iv-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #F4E4CF; display: flex; flex-direction: column; }
.iv-room { display: block; width: 100%; height: auto; }
.iv-chalk { fill: #F4E9C8; font: 800 17px var(--display); letter-spacing: 0.08em; }
.iv-talk { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; padding: 14px 14px 18px; min-height: 150px; }
.iv-bubble { position: relative; padding: 10px 14px; border-radius: 16px; background: #fff; border: 2px solid #2A2018; box-shadow: 0 3px 0 rgba(42, 32, 24, 0.18); font-size: 16px; line-height: 1.4; color: var(--ink); }
.iv-bubble::after { content: ''; position: absolute; bottom: -11px; width: 18px; height: 18px; background: inherit; border-right: 2px solid #2A2018; border-bottom: 2px solid #2A2018; transform: rotate(45deg); }
.iv-bubble p { margin: 2px 0 0; }
.iv-who { display: block; font: 700 13px var(--display); color: var(--ink-2); }
.iv-olive { grid-column: 2; border-bottom-right-radius: 4px; }
.iv-olive::after { right: 34%; }
.iv-you { grid-column: 1; grid-row: 1; background: #FFF8E6; }
.iv-you::after { left: 30%; }
.iv-bubble.pop { animation: iv-pop 260ms ease-out; }
@keyframes iv-pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.olive-face { display: none; }
.olive.ok .mood-ok, .olive.happy .mood-happy, .olive.unsure .mood-unsure { display: inline; }
.olive.writing .olive-pad { animation: iv-write 600ms ease-in-out 2; transform-box: fill-box; transform-origin: center; }
@keyframes iv-write { 50% { transform: rotate(-6deg) translateY(-3px); } }
.iv-buddy { transform-box: fill-box; transform-origin: bottom center; }
.iv-buddy.enter { animation: iv-enter 900ms ease-out; }
@keyframes iv-enter { from { transform: translateX(-280px); } 70% { transform: translateX(10px); } to { transform: none; } }
.iv-buddy.talk { animation: iv-talk 520ms ease-in-out; }
@keyframes iv-talk { 25% { transform: scale(1.04, 0.96) translateY(4px); } 60% { transform: scale(0.98, 1.03) translateY(-8px); } }
.iv-meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.iv-meter-label { font-weight: 700; font-size: 15px; }
.iv-cups { display: flex; gap: 6px; }
.iv-cup { width: 30px; height: 30px; }
.option-act { display: block; font: italic 500 15px/1.3 var(--text); color: var(--ink-2); margin-bottom: 2px; }
@media (max-width: 1100px) {
  .game-play.iv-on { grid-template-columns: minmax(0, 1fr); }
  .interview { position: static; }
}
@media (max-width: 600px) {
  .iv-talk { grid-template-columns: 1fr; min-height: 0; padding: 10px 10px 16px; gap: 16px; }
  .iv-olive, .iv-you { grid-column: 1; grid-row: auto; }
  .iv-bubble { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-buddy.enter, .iv-buddy.talk, .olive.writing .olive-pad, .iv-bubble.pop { animation: none; }
}

/* ---------- Résumé Builder page (the builder's own styles are in public/resume/) ---------- */
.resume-reward { display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px dashed #B8C1CD; font-size: 15px; color: var(--ink-2); }
.resume-reward svg { flex: none; }
.resume-reward.earned { border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; }
.resume-host { margin-top: 8px; }
.section-head { font-size: 22px; margin: 36px 0 14px; }

/* ---------- unlocks and tip sheets ---------- */
.unlock-card { display: flex; align-items: center; gap: 16px; margin: 20px 0; padding: 16px 20px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold-ink); text-decoration: none; }
.unlock-card > span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.unlock-card strong { font-family: var(--display); font-size: 18px; }
.unlock-card svg { flex: none; }
.unlock-card.locked { background: var(--surface); border: 1px dashed #B8C1CD; color: var(--ink-2); }
.unlock-card.locked strong { color: var(--ink); }
.tip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tip-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tip-print-title { display: none; }
.tip-block { padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tip-block h2 { font-size: 20px; margin: 0 0 12px; }
.tip-wide { grid-column: 1 / -1; }
.tip-before .tip-list { display: block; columns: 2; column-gap: 40px; }
.tip-before .tip-list li { break-inside: avoid; margin-bottom: 8px; }
.tip-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tip-moments { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tip-moments li { counter-increment: m; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg, #F6F7F9); }
.tip-moments li strong::before { content: counter(m) ". "; color: var(--brand); }
.tip-qa { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.tip-qa dt { font-weight: 700; }
.tip-qa dd { margin: 4px 0 0; color: var(--ink-2); }
.tip-note p { margin: 0; padding: 14px 16px; border-left: 4px solid var(--brand); background: var(--bg, #F6F7F9); font-style: italic; }
@media (max-width: 900px) {
  .tip-sheet, .tip-qa { grid-template-columns: 1fr; }
  .tip-moments { grid-template-columns: 1fr; }
  .tip-before .tip-list { columns: 1; }
  .tip-block { padding: 18px; }
}
@media print {
  .tip-head, .unlock-card { display: none !important; }
  .tip-print-title { display: block; font: 700 20px var(--display); margin: 0; grid-column: 1 / -1; }
  .tip-sheet { gap: 8px; font-size: 11.5px; }
  .tip-block { padding: 10px 12px; border-radius: 8px; break-inside: avoid; }
  .tip-block h2 { font-size: 14px; margin-bottom: 6px; }
  .tip-list { gap: 3px; }
  .tip-moments { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tip-moments li { padding: 6px 8px; }
  .tip-qa { gap: 6px 14px; }
}
.crystal-where { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.crystal-where legend { margin-bottom: 4px; }
