:root {
  --ink: #264d43;
  --muted: #7b857c;
  --green: #398570;
  --green-light: #e4efe5;
  --cream: #faf8f0;
  --orange: #d98667;
  --orange-dark: #b76448;
  --line: #e6e6db;
  --phone-width: 390px;
  --phone-height: 844px;
  font-family: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #f0f1e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, a, select, input { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #b26742; outline-offset: 4px; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
.icon { width: 23px; height: 23px; flex-shrink: 0; vertical-align: middle; }
.mascot { display: block; }
.workspace-header { max-width: 1330px; margin: 0 auto; padding: 32px 44px 0; display: flex; align-items: center; gap: 22px; }
.workspace-brand { font-size: 28px; font-weight: 850; letter-spacing: -1.5px; display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.workspace-brand > span:first-child { font-size: 33px; width: 39px; height: 39px; margin-right: 10px; border-radius: 13px; display: grid; place-items: center; background: var(--green); color: #fff9de; font-weight: 600; }
.brand-dot { color: var(--orange); }
.workspace-caption { font-size: 10px; letter-spacing: 2px; font-weight: 650; color: #858f83; }
.version-tag { margin-left: auto; border: 1px solid #d8dcd0; padding: 8px 12px; border-radius: 6px; font-size: 11px; color: #6b7a6c; }
.workspace-layout { max-width: 1250px; margin: 40px auto 0; padding: 0 40px 38px; display: grid; grid-template-columns: 270px var(--phone-width) 230px; align-items: start; justify-content: space-between; gap: 38px; }
.lab-panel { padding-top: 30px; }
.lab-kicker { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #7c8d7c; }
.lab-intro h2 { font-size: 30px; line-height: 1.18; letter-spacing: -1.3px; margin: 16px 0; font-weight: 750; }
.lab-intro > p { color: #788374; line-height: 1.7; font-size: 13px; }
.lab-tags { display: flex; gap: 7px; margin: 18px 0 26px; }
.lab-tags span { font-size: 10px; color: #6a7d6c; border: 1px solid #d8ddcf; border-radius: 5px; padding: 6px 8px; }
.lab-controls { border-top: 1px solid #d6ddce; }
.lab-controls > summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; }
.lab-controls > summary::-webkit-details-marker { display: none; }
.lab-controls > summary .icon { width: 18px; height: 18px; }
.lab-controls > summary::after { content: '+'; margin-left: auto; font-size: 20px; color: #82937f; }
.lab-controls[open] > summary::after { content: '−'; }
.lab-control-content { display: grid; gap: 17px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
input, select { min-width: 0; width: 100%; color: var(--ink); border: 1px solid #dce1d5; border-radius: 9px; background: #fbfcf7; padding: 11px 12px; min-height: 44px; }
select { cursor: pointer; }
.lab-control-content label { font-size: 11px; color: #6a7c6b; font-weight: 500; }
.lab-control-content select { background: #f8f9f3; font-size: 12px; padding: 10px; }
.control-label { display: block; font-size: 9px; font-weight: 650; letter-spacing: 1.3px; color: #889584; }
.lab-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.lab-scenarios .control-label { grid-column: 1 / -1; margin-bottom: 3px; }
.lab-button { border: 1px solid #d5ddcf; background: transparent; border-radius: 7px; min-height: 40px; padding: 9px 7px; font-size: 11px; line-height: 1.35; color: #5c725e; text-align: left; }
.lab-button:hover { background: #e6ecdf; border-color: #a6b69e; }
.lab-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lab-date b { display: block; font-size: 12px; margin-top: 7px; font-weight: 600; }
.compact { min-height: 36px; padding: 7px 12px; }
.reset-button { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 11px; border: 0; padding: 8px; background: transparent; color: #7b8474; }
.reset-button .icon { width: 15px; height: 15px; }
.lab-hint { font-size: 10px; line-height: 1.6; color: #8c9785; margin-top: -10px; }
.lab-footer { font-size: 10px; color: #899481; margin-top: 23px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #6f9977; }
.preview-column { min-width: 0; }
.preview-label { display: flex; justify-content: space-between; color: #92a08c; font-size: 9px; letter-spacing: 1.4px; margin: 0 12px 12px; font-weight: 650; }
.phone { height: var(--phone-height); width: var(--phone-width); border-radius: 40px; overflow: hidden; background: var(--cream); border: 7px solid #fff; box-shadow: 0 22px 55px #244d4212, 0 0 0 1px #dae0d4; position: relative; display: flex; flex-direction: column; }
.phone-status { min-height: 39px; padding: 12px 24px 3px; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.phone-status-icons { display: flex; align-items: center; gap: 4px; font-size: 8px; }
.battery { width: 19px; height: 9px; border: 1px solid var(--ink); border-radius: 2px; display: inline-block; position: relative; margin-left: 3px; }
.battery::before { content: ''; position: absolute; inset: 1px; background: var(--ink); border-radius: 1px; }
.battery::after { content: ''; height: 4px; width: 2px; position: absolute; right: -3px; top: 1.5px; background: var(--ink); border-radius: 1px; }
.app-content { overflow: auto; flex: 1; display: flex; flex-direction: column; scrollbar-width: none; overscroll-behavior: contain; overflow-anchor: none; }
.app-content::-webkit-scrollbar { display: none; }
.home-indicator { min-height: 20px; display: grid; place-items: center; }
.home-indicator::after { content: ''; width: 114px; height: 4px; border-radius: 5px; background: #365a4b; }
.preview-caption { text-align: center; margin-top: 20px; color: #8c9884; font-size: 11px; }
.principles-panel { padding: 76px 0 0 10px; }
.principles-panel h3 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.6px; margin: 18px 0 38px; }
.principle { display: flex; gap: 16px; align-items: baseline; margin-top: 23px; }
.principle > span { font-size: 10px; color: #a5ad9c; }
.principle p { color: #788574; font-size: 12px; line-height: 1.7; }
.principles-art { border-top: 1px solid #d8dece; padding-top: 31px; margin-top: 40px; }
.principles-art .mascot { width: 135px; transform: rotate(-6deg); opacity: .75; }
.principles-note { font-size: 12px; color: #85917d; line-height: 1.7; margin-top: 9px; }
.app-header { min-height: 64px; flex-shrink: 0; display: flex; align-items: center; gap: 11px; padding: 7px 22px; }
.app-wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.app-header .icon-button { margin-left: auto; }
.app-header .icon-button:first-child { margin-left: -4px; }
.brand-symbol { width: 30px; height: 30px; background: var(--green); color: #fff7da; border-radius: 10px; font-size: 27px; line-height: 29px; text-align: center; }
.icon-button { border: 0; background: transparent; width: 44px; height: 44px; flex-shrink: 0; padding: 11px; display: grid; place-items: center; color: var(--ink); border-radius: 12px; }
.icon-button:hover { background: #e9ecdf; }
.icon-button .icon { width: 21px; height: 21px; }
.screen { padding: 15px 22px 24px; flex: 1; }
.eyebrow { font-size: 8px; letter-spacing: 1.2px; font-weight: 650; color: #8b9985; line-height: 1.7; }
.screen h1 { font-size: 29px; letter-spacing: -1.1px; font-weight: 750; line-height: 1.2; }
.greeting { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.greeting h1 { font-size: 27px; margin-top: 7px; }
.sun-doodle { color: #dbaa49; font-size: 35px; transform: rotate(14deg); margin-left: 5px; }
.adventure-card { background: #e2ecdf; border-radius: 23px; padding: 21px 20px 19px; position: relative; overflow: hidden; }
.small-label { font-size: 8px; letter-spacing: 1.2px; font-weight: 700; color: #789274; }
.adventure-card h2 { font-size: 27px; letter-spacing: -.9px; font-weight: 800; margin-top: 8px; }
.adventure-card > p { font-size: 11px; color: #6f8670; line-height: 1.6; margin-top: 7px; max-width: 235px; }
.hero-art { height: 222px; position: relative; margin: 5px -5px 0; }
.hero-mascot { position: absolute; height: 199px; width: 185px; left: -9px; bottom: 0; z-index: 2; transform: rotate(-3deg); }
.hero-rocket { position: absolute; width: 95px; height: 139px; right: 16px; bottom: 20px; transform: rotate(14deg); z-index: 1; }
.orbit { position: absolute; border-radius: 50%; background: #d1e1cb; }
.orbit-one { width: 161px; height: 161px; right: 0; bottom: 16px; }
.orbit-two { width: 74px; height: 74px; left: 11px; top: 14px; background: #e9f0df; }
.ground-line { position: absolute; width: 220px; height: 1px; bottom: 23px; background: #a7b99e; right: 13px; }
.speech-bubble { position: absolute; left: 96px; top: 6px; padding: 9px 14px; border-radius: 13px 13px 13px 3px; background: #fffaf0; color: #597457; font-size: 12px; font-weight: 650; transform: rotate(4deg); z-index: 3; }
.art-star { position: absolute; color: #c4a05c; }
.star-one { top: 35px; right: 33px; transform: rotate(15deg); }
.star-two { left: 13px; top: 83px; transform: rotate(-13deg); }
.star-two .icon { width: 16px; height: 16px; }
.lesson-meta { display: flex; justify-content: center; gap: 20px; font-size: 11px; color: #64805f; margin: 0 0 16px; }
.lesson-meta span { display: flex; align-items: center; gap: 5px; }
.lesson-meta .icon { width: 15px; height: 15px; }
.primary, .secondary { width: 100%; min-height: 54px; padding: 13px 18px; border: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--orange); color: #fffdf4; border-radius: 15px; box-shadow: 0 4px 0 #b96f54; font-size: 18px; font-weight: 700; letter-spacing: -.3px; transition: transform .15s, background .15s; }
.primary:hover { background: #d17b5b; }
.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b96f54; }
.primary .icon { width: 21px; height: 21px; }
.secondary { background: #e5eddf; color: var(--ink); box-shadow: 0 3px 0 #c1d0b9; font-size: 14px; min-height: 47px; border-radius: 12px; }
.habit-card { margin-top: 24px; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-line h3 { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.pill { display: flex; align-items: center; gap: 4px; font-size: 9px; background: #f2e9ce; color: #8c7748; border-radius: 7px; padding: 6px 7px; white-space: nowrap; }
.pill .icon { width: 12px; height: 12px; }
.week { display: flex; justify-content: space-between; gap: 6px; margin-top: 15px; }
.week-day { text-align: center; flex: 1; }
.week-day > span { display: block; font-size: 9px; color: #96a18c; margin-bottom: 7px; }
.week-day > b { display: grid; place-items: center; height: 32px; max-width: 34px; margin: auto; background: #edf0e4; color: #a6b19b; font-size: 11px; font-weight: 600; border-radius: 50%; }
.week-day.today > b { outline: 1.5px solid #96b28c; outline-offset: 2px; }
.week-day.done > b { background: #6c9d7b; color: white; }
.week-day .icon { width: 17px; height: 17px; }
.habit-card > p { font-size: 10px; color: #8a9780; margin-top: 13px; }
.next-skill-card { margin-top: 20px; padding: 13px 0 0; border: 0; border-top: 1px solid #e5e7d9; width: 100%; background: transparent; text-align: left; display: flex; align-items: center; gap: 11px; }
.skill-badge { width: 43px; height: 43px; border-radius: 13px; background: #f1e7cc; display: grid; place-items: center; color: #a78c51; flex-shrink: 0; }
.next-skill-card > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.next-skill-card small { font-size: 7px; letter-spacing: 1px; color: #a2ab93; }
.next-skill-card b { font-size: 12px; font-weight: 650; }
.next-skill-card > span > span { font-size: 8px; color: #87967b; }
.next-skill-card > .icon { width: 16px; color: #8d9c80; }
.bottom-nav { position: sticky; bottom: 0; display: flex; background: var(--cream); border-top: 1px solid #e7e7db; padding: 9px 14px 2px; margin-top: auto; z-index: 5; min-height: 66px; flex-shrink: 0; }
.nav-item { background: transparent; border: 0; flex: 1; display: flex; align-items: center; flex-direction: column; gap: 5px; font-size: 9px; color: #a0a997; padding: 5px; border-radius: 11px; min-height: 45px; }
.nav-item .icon { height: 20px; width: 20px; }
.nav-item.active { color: #3e7e62; font-weight: 650; }
.map-screen h1, .setup-screen h1, .parent-screen h1 { margin-top: 9px; }
.map-intro { display: flex; align-items: center; justify-content: center; height: 151px; padding-top: 14px; }
.map-intro .mascot { width: 123px; height: 132px; }
.mini-bubble { background: #e5ecdc; border-radius: 17px 17px 17px 3px; font-size: 13px; line-height: 1.5; padding: 14px 18px; color: #5c7955; }
.skill-path { margin-top: 22px; }
.path-row { position: relative; display: flex; gap: 18px; align-items: center; min-height: 108px; padding-left: 5px; }
.path-row + .path-row::before { content: ''; position: absolute; width: 3px; height: 29px; left: 38px; top: -14px; background: #dce3cf; border-radius: 3px; }
.path-row.offset { padding-left: 31px; }
.path-row.offset::before { transform: rotate(-39deg); left: 52px; }
.path-node { width: 68px; height: 68px; border-radius: 24px; background: #73a985; color: white; border: 4px solid #dfebd7; box-shadow: 0 5px 0 #4f845e; display: grid; place-items: center; flex-shrink: 0; }
.path-node .icon { width: 27px; height: 27px; }
.path-node.mastered { background: #dfb25b; border-color: #f1e5c6; box-shadow: 0 5px 0 #b69349; }
.path-row.locked .path-node { background: #e6e7dc; color: #a3ad9c; border-color: #eeefe7; box-shadow: 0 5px 0 #d0d4c5; }
.path-row small { color: #a1aa95; font-size: 8px; letter-spacing: 1px; }
.path-row h3 { font-size: 14px; margin-top: 5px; font-weight: 700; }
.path-row p { font-size: 9px; color: #8c9a80; margin-top: 6px; }
.path-row.locked h3 { color: #8d9981; }
.mini-progress { height: 6px; background: #e5e9da; border-radius: 6px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; border-radius: 6px; background: #83ad7d; }
.path-row .mini-progress { margin-top: 10px; width: 156px; }
.soft-note { margin-top: 32px; font-size: 11px; text-align: center; color: #94a087; line-height: 1.7; }
.setup-mascot { height: 159px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.setup-mascot .mascot { width: 130px; }
.profile-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.theme-choices { display: flex; gap: 7px; }
.theme-choice { flex: 1; position: relative; }
.theme-choice input { position: absolute; opacity: 0; width: 1px; min-height: 1px; height: 1px; }
.theme-choice span { display: grid; justify-items: center; gap: 7px; padding: 12px 4px; border: 1px solid #e0e4d6; background: #f3f4e9; border-radius: 11px; font-size: 9px; font-weight: 500; cursor: pointer; }
.theme-choice input:checked + span { border-color: #6b9f79; background: #e6eddd; box-shadow: inset 0 0 0 1px #6b9f79; }
.theme-choice input:focus-visible + span { outline: 3px solid #b26742; outline-offset: 3px; }
.form-note { color: #88957f; font-size: 11px; line-height: 1.6; font-weight: 400; }
.lesson-header { display: flex; align-items: center; gap: 9px; padding: 8px 12px; min-height: 63px; flex-shrink: 0; }
.lesson-header .icon-button:first-child { color: #91a086; }
.lesson-progress { flex: 1; background: #e3e8d9; height: 10px; border-radius: 10px; overflow: hidden; }
.lesson-progress i { display: block; height: 100%; background: #78a778; border-radius: 10px; transition: width .3s; }
.lesson-screen { padding-top: 13px; display: flex; flex-direction: column; }
.lesson-caption { display: flex; justify-content: space-between; align-items: center; }
.lesson-caption > span { color: #99a58c; font-size: 8px; letter-spacing: 1.5px; font-weight: 650; }
.lesson-caption b { color: #879979; font-size: 12px; font-weight: 650; }
.lesson-screen h1 { margin-top: 26px; font-size: 32px; }
.question-subtitle { font-size: 13px; color: #85957a; margin-top: 10px; }
.question-scene { min-height: 243px; margin-top: 24px; border-radius: 23px; background: #f0ecdb; display: flex; flex-direction: column; justify-content: center; padding: 23px 16px; border: 1px solid #e8e3cd; }
.objects { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.single-group { max-width: 280px; margin: auto; gap: 15px; }
.count-object { width: 63px; height: 63px; position: relative; display: inline-block; animation: appear .35s both; animation-delay: calc(var(--i) * 40ms); }
.count-object svg { width: 100%; height: 100%; }
button.count-object { padding: 0; border: 0; background: transparent; border-radius: 15px; }
button.count-object.counted { background: #d0e3c1; }
.count-object.numbered { margin-bottom: 12px; }
.object-number { position: absolute; display: grid; place-items: center; bottom: -9px; right: -1px; width: 22px; height: 22px; background: #fff9e8; border: 1px solid #d5cead; color: #8e7848; border-radius: 50%; font-size: 11px; font-weight: 700; }
.with-help { background: #eaf0df; border-color: #dbe4ce; }
.answer-options { display: flex; gap: 12px; margin-top: 23px; }
.number-choice { flex: 1; min-height: 81px; border: 2px solid #e0e3d3; border-radius: 19px; background: #fffdf5; color: #496f54; font-size: 35px; font-weight: 750; box-shadow: 0 4px 0 #d6dcc7; }
.number-choice:hover:not(:disabled) { background: #eaf0e0; border-color: #adc39b; }
.number-choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #d6dcc7; }
.number-choice:disabled { opacity: .5; }
.number-choice.correct-choice { background: #e2edda; border-color: #8bae7b; opacity: 1; box-shadow: 0 4px 0 #9dbb8d; }
.lesson-helper { margin-top: 27px; margin-bottom: 12px; display: flex; justify-content: center; }
.help-button { display: flex; align-items: center; gap: 7px; min-height: 44px; background: transparent; border: 1px solid #dae2cd; border-radius: 14px; padding: 12px 17px; color: #8b9b7e; font-size: 12px; }
.help-button:hover { background: #eef1e6; }
.help-button .icon { width: 17px; height: 17px; }
.helper-message { display: flex; gap: 11px; align-items: center; padding: 12px; background: #eef1e3; border-radius: 17px; width: 100%; }
.helper-message .mascot { width: 59px; flex-shrink: 0; }
.helper-message p { font-size: 12px; line-height: 1.6; color: #6e8762; }
.feedback { margin-top: 24px; border-radius: 20px; padding: 12px 14px 17px; background: #e5eedb; }
.feedback.support { background: #f1ecdb; }
.feedback-message { display: flex; gap: 11px; align-items: center; margin-bottom: 15px; }
.feedback-message .mascot { width: 63px; height: 72px; flex-shrink: 0; }
.feedback-message h3 { font-size: 16px; font-weight: 700; }
.feedback-message p { font-size: 12px; line-height: 1.6; color: #789167; margin-top: 5px; }
.feedback.support p { color: #90835e; }
.feedback .primary { min-height: 48px; border-radius: 12px; font-size: 16px; }
.compare-scene { display: flex; gap: 12px; margin-top: 30px; min-height: 285px; }
.group-choice { width: 50%; background: #f0ecdc; border: 2px solid #e3dfc8; border-radius: 22px; padding: 19px 10px 14px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 #ddd9c1; }
.group-choice .objects { gap: 5px; flex: 1; align-content: center; }
.group-choice .count-object { width: 47px; height: 47px; }
.group-choice > span { font-size: 11px; color: #96845a; display: flex; align-items: center; gap: 5px; margin-top: 18px; }
.group-choice > span .icon { width: 15px; height: 15px; }
.group-choice:hover:not(:disabled) { background: #eee8cc; border-color: #c6bb91; }
.group-choice.correct-choice { background: #e3edda; border-color: #93b381; box-shadow: 0 4px 0 #a5bd91; }
.addition-groups { display: flex; align-items: center; gap: 8px; }
.addition-groups .objects { flex: 1; gap: 5px; }
.addition-groups .count-object { width: 47px; height: 47px; }
.addition-plus { font-size: 34px; font-weight: 500; color: #9b936d; }
.visual-equation { text-align: center; margin-top: 24px; font-size: 20px; letter-spacing: 2px; color: #63885b; }
.retry-screen { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 39px; }
.large-label { font-size: 9px; letter-spacing: 1.6px; color: #91a080; font-weight: 650; }
.retry-screen h1 { font-size: 33px; margin-top: 16px; }
.intro-copy { font-size: 13px; line-height: 1.9; color: #839277; margin-top: 16px; }
.retry-art { height: 265px; position: relative; width: 100%; margin-top: 22px; }
.retry-art .mascot { width: 226px; height: 240px; margin: auto; transform: rotate(-5deg); }
.retry-count { background: #f3e4bd; position: absolute; width: 72px; height: 72px; border-radius: 25px; right: 14px; top: 116px; font-size: 31px; color: #a08548; font-weight: 750; display: grid; align-content: center; box-shadow: 0 4px 0 #e6d4a3; }
.retry-count span { display: block; font-size: 8px; font-weight: 500; margin-top: -2px; }
.support-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #829572; font-size: 12px; margin-bottom: 28px; }
.support-note .icon { width: 18px; height: 18px; }
.result-screen { text-align: center; padding-top: 2px; }
.result-art { height: 243px; position: relative; }
.result-rocket { width: 114px; height: 168px; position: absolute; top: 5px; left: 46px; transform: rotate(-10deg); }
.result-mascot { width: 170px; height: 181px; position: absolute; right: 15px; bottom: 0; transform: rotate(7deg); }
.result-screen .large-label { display: block; margin-top: 13px; }
.result-screen h1 { font-size: 32px; margin-top: 12px; }
.result-screen > p { color: #87967a; font-size: 13px; line-height: 1.8; margin-top: 11px; }
.result-pills { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.result-pills span { padding: 9px 10px; background: #e7eddb; border-radius: 10px; font-size: 9px; display: flex; align-items: center; gap: 5px; color: #789668; }
.result-pills span + span { background: #f3e9cb; color: #a28b4d; }
.result-pills .icon { width: 14px; height: 14px; }
.result-progress-card { margin: 23px 0; border: 1px solid #e3e6d5; border-radius: 16px; padding: 17px; text-align: left; }
.result-progress-card h3 { font-size: 13px; }
.result-progress-card .section-line > span { font-size: 11px; color: #8d9a80; }
.result-progress-card .mini-progress { margin-top: 13px; }
.result-progress-card p { font-size: 10px; color: #8a9a7d; margin-top: 9px; }
.text-button { min-height: 44px; border: 0; background: transparent; color: #8a987c; font-size: 11px; padding: 14px 7px; margin-top: 11px; border-radius: 10px; }
.text-button:hover { background: #ecf0e2; }
.confetti { width: 6px; height: 13px; display: block; position: absolute; background: #dba773; border-radius: 3px; transform: rotate(20deg); }
.confetti-one { top: 63px; left: 16px; }
.confetti-two { top: 14px; right: 51px; background: #92b18a; transform: rotate(-30deg); }
.confetti-three { top: 196px; left: 62px; background: #b2bd83; transform: rotate(-40deg); }
.parent-stats { display: flex; gap: 14px; margin-top: 24px; }
.parent-stats > div { flex: 1; padding: 17px; border-radius: 17px; background: #e7eedc; }
.parent-stats > div + div { background: #f0e9d3; }
.parent-stats b { display: block; font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.parent-stats span { display: block; font-size: 9px; color: #8d997f; margin-top: 7px; }
.parent-card { background: #fffdf6; border: 1px solid #e8e9dc; border-radius: 18px; padding: 19px 17px; margin-top: 18px; }
.parent-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; margin-top: 12px; }
.metric-row > span { color: #8a977f; }
.metric-row > b { font-size: 11px; font-weight: 650; }
.parent-card .form-note { font-size: 10px; margin-top: 15px; }
.parent-skill { margin-top: 16px; }
.parent-skill > div:first-child { display: flex; justify-content: space-between; align-items: center; font-size: 10px; margin-bottom: 9px; }
.parent-skill b { color: #8fa17f; font-weight: 500; }
#settings-form { display: grid; gap: 15px; }
#settings-form label { font-size: 11px; font-weight: 500; }
#settings-form select { font-size: 12px; }
.theme-hero-objects { position: absolute; right: 0; bottom: 48px; display: flex; width: 124px; }
.theme-hero-objects .count-object { height: 63px; width: 63px; transform: rotate(8deg); }
.result-objects { position: absolute; top: 15px; left: 11px; width: 165px; display: flex; flex-wrap: wrap; justify-content: center; }
.result-objects .count-object { width: 76px; height: 76px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #2e4e41; color: #f9f8ef; padding: 13px 20px; border-radius: 13px; box-shadow: 0 8px 25px #1b34271a; max-width: min(480px, 90vw); font-size: 12px; line-height: 1.6; z-index: 30; opacity: 0; pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes appear { from { opacity: 0; transform: translateY(5px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 1150px) {
  .workspace-layout { grid-template-columns: 250px var(--phone-width); justify-content: center; gap: 65px; }
  .principles-panel { display: none; }
}
@media (max-width: 790px) {
  .workspace-header { padding: 22px 26px 0; }
  .workspace-caption { display: none; }
  .workspace-layout { display: flex; flex-direction: column; align-items: center; padding: 0 20px 30px; margin-top: 30px; gap: 34px; }
  .preview-column { order: 0; }
  #lab { order: 1; width: min(100%, 390px); }
  .lab-panel { padding-top: 0; }
  .lab-intro { display: none; }
}
@media (max-width: 480px) {
  :root { background: var(--cream); }
  .workspace-header, .preview-label, .preview-caption { display: none; }
  .workspace-layout { padding: 0; margin: 0; gap: 0; }
  .preview-column { width: 100%; }
  .phone { width: 100%; height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .phone-status { display: none; }
  .app-header { padding-top: calc(7px + env(safe-area-inset-top)); min-height: 70px; }
  .lesson-header { padding-top: calc(8px + env(safe-area-inset-top)); }
  .home-indicator { display: none; }
  .bottom-nav { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .screen { padding-bottom: 26px; }
  #lab { padding: 24px; width: 100%; background: #edf0e5; }
  .lab-controls { border-top: 0; }
  .lab-controls > summary { padding: 3px 0 20px; }
  .lab-footer { padding-bottom: env(safe-area-inset-bottom); }
  .result-screen { padding-top: 15px; }
}
@media (max-width: 370px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .adventure-card { padding-left: 16px; padding-right: 16px; }
  .adventure-card h2 { font-size: 25px; }
  .hero-art { height: 195px; }
  .hero-mascot { width: 168px; height: 180px; }
  .hero-rocket { width: 85px; right: 7px; }
  .question-scene { min-height: 217px; }
  .single-group { gap: 8px; }
  .single-group .count-object { width: 58px; height: 58px; }
  .lesson-screen h1 { font-size: 29px; margin-top: 20px; }
  .group-choice .count-object { width: 43px; height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) and (max-height: 750px) {
  .lesson-screen h1 { margin-top: 18px; }
  .question-scene { min-height: 185px; margin-top: 18px; }
  .compare-scene { min-height: 230px; margin-top: 20px; }
  .feedback { margin-top: 20px; }
  .lesson-helper { margin-top: 20px; }
  .count-object { width: 55px; height: 55px; }
}

/* Rewards and the mascot's wardrobe. */
.header-wallet { margin-left: auto; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 47px; min-height: 38px; border: 0; background: #f1e5c5; color: #9d7e3f; border-radius: 12px; padding: 7px 9px; font-size: 12px; font-weight: 700; }
.header-wallet .icon { width: 16px; height: 16px; }
.header-wallet + .icon-button { margin-left: 0; }
.home-rewards-card { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; border: 1px solid #e7ddbf; padding: 13px 12px; border-radius: 15px; background: #f5edd7; text-align: left; }
.reward-card-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: #ebd6a5; color: #9a7b40; flex-shrink: 0; }
.home-rewards-card > span:nth-child(2) { flex: 1; }
.home-rewards-card b { display: block; font-size: 11px; color: #816d44; }
.home-rewards-card small { display: block; font-size: 8px; color: #a18f68; margin-top: 5px; }
.home-rewards-card > .icon { width: 16px; color: #a18f68; }
.daily-reward-card { display: flex; align-items: center; gap: 10px; background: #f3e6c2; border-radius: 16px; padding: 14px 12px; text-align: left; margin: 18px 0; }
.reward-coin { background: #e3be67; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; color: #fff9dc; flex-shrink: 0; }
.reward-coin .icon { width: 24px; height: 24px; }
.daily-reward-card > div { flex: 1; }
.daily-reward-card h3 { font-size: 12px; font-weight: 700; color: #8f743e; }
.daily-reward-card p { margin-top: 5px; font-size: 9px; line-height: 1.5; color: #a38d59; }
.daily-reward-card > b { font-size: 19px; color: #9a7c41; }
.result-screen .result-art { height: 181px; }
.result-screen .result-rocket { width: 91px; height: 139px; }
.result-screen .result-mascot { width: 138px; height: 150px; right: 35px; }
.result-screen .result-progress-card { margin: 16px 0; }
.result-screen > .text-button { margin: 6px 0 0; }
.wardrobe-intro { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wardrobe-intro h1 { font-size: 24px; margin-top: 6px; letter-spacing: -.8px; }
.wallet { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 54px; min-height: 38px; border-radius: 12px; background: #f1e3bf; color: #a0803d; font-size: 15px; font-weight: 700; }
.wallet .icon { width: 18px; height: 18px; }
.fitting-room { height: 222px; border-radius: 24px; background: #e7eddf; margin: 18px 0 17px; position: relative; display: grid; place-items: center; overflow: hidden; }
.fitting-room::before { content: ''; position: absolute; width: 163px; height: 163px; border-radius: 50%; background: #dce7d4; right: 19px; top: 33px; }
.fitting-label { position: absolute; font-size: 8px; color: #86a077; font-weight: 650; letter-spacing: 1.2px; top: 16px; left: 0; right: 0; text-align: center; }
.wardrobe-mascot { width: 184px; height: 195px; position: relative; margin-top: 22px; }
.fitting-star { position: absolute; top: 61px; right: 39px; color: #c4a464; transform: rotate(14deg); }
.fitting-star .icon { width: 21px; height: 21px; }
.remove-accessory { position: absolute; bottom: 14px; right: 11px; background: #fff8e7c9; border: 1px solid #d6dfc9; font-size: 8px; min-height: 30px; padding: 7px 9px; border-radius: 9px; color: #839875; }
.wardrobe-tabs { display: flex; border-radius: 12px; background: #edeede; padding: 4px; gap: 3px; margin-bottom: 14px; }
.wardrobe-tabs button { flex: 1; border: 0; border-radius: 9px; background: transparent; min-height: 38px; padding: 8px 5px; color: #97a185; font-size: 12px; }
.wardrobe-tabs button.selected { background: #fffdf5; color: #507754; font-weight: 650; box-shadow: 0 2px 5px #45644508; }
.wardrobe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wardrobe-item { background: #fffdf5; border: 1.5px solid #e3e5d4; border-radius: 15px; min-height: 127px; padding: 8px 5px 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.wardrobe-item:hover { background: #f1f3e5; }
.wardrobe-item.selected { background: #edf2e3; border-color: #8cad7c; box-shadow: inset 0 0 0 1px #8cad7c; }
.wardrobe-item .accessory { width: 65px; height: 57px; }
.wardrobe-item b { font-size: 9px; line-height: 1.4; font-weight: 650; text-align: center; margin-top: 4px; }
.item-price { color: #aa955d; display: flex; align-items: center; gap: 3px; font-size: 9px; margin-top: 7px; }
.item-price .icon { width: 13px; height: 13px; }
.color-swatch { display: grid; place-items: center; margin: 7px 0 3px; width: 45px; height: 45px; border-radius: 17px; background: var(--swatch); color: #fff9e7; font-size: 32px; line-height: 1; border: 2px solid #264d4326; }
.wardrobe-selection { text-align: center; margin-top: 18px; }
.wardrobe-selection h3 { font-size: 15px; font-weight: 700; }
.purchase-hint { font-size: 10px; color: #92a084; margin: 7px 0 16px; line-height: 1.5; min-height: 15px; }
.wardrobe-selection .primary { font-size: 16px; min-height: 49px; }
.wardrobe-selection .secondary { font-size: 14px; }
.wardrobe-selection .secondary:disabled { opacity: .65; }
.chests-screen h1, .chest-detail-screen h1 { font-size: 28px; margin-top: 10px; }
.chests-subtitle { font-size: 12px; color: #8b987c; line-height: 1.8; margin-top: 12px; }
.gift-days { display: flex; justify-content: space-between; margin-top: 23px; gap: 8px; }
.gift-days > span { flex: 1; max-width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; color: #a2ac90; background: #e9ecde; }
.gift-days > span.done { background: #a0bb8e; color: #fffdf4; }
.gift-days .icon { width: 17px; height: 17px; }
.chest-card { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #f3edd9; border: 1px solid #e5dcc0; border-radius: 20px; padding: 15px 10px; margin-top: 19px; min-height: 139px; }
.chest-card .chest-art { width: 94px; height: 89px; flex-shrink: 0; }
.chest-card > span { flex: 1; }
.chest-card small { display: block; color: #ae9c70; font-size: 7px; letter-spacing: 1.1px; }
.chest-card b { display: block; font-size: 15px; margin-top: 7px; color: #806d44; }
.chest-card > span > span { display: block; font-size: 10px; color: #a18d62; margin-top: 7px; }
.chest-card em { display: inline-block; font-style: normal; font-size: 9px; color: #a9976d; margin-top: 11px; }
.chest-card > .icon { width: 16px; color: #ac9a70; }
.chest-card.available { background: #e8eedb; border-color: #bfcea9; }
.chest-card.available em { color: #6b965e; font-weight: 700; }
.chest-card.claimed { background: #f0f2e6; border-color: #dde4cf; }
.chest-note { margin-top: 25px; font-size: 10px; color: #93a083; display: flex; align-items: center; justify-content: center; gap: 7px; }
.chest-note .icon { width: 16px; height: 16px; }
.chest-detail-screen { text-align: center; }
.chest-detail-art { position: relative; height: 228px; margin: 25px 0 10px; display: grid; place-items: center; border-radius: 27px; background: #f2ead2; }
.chest-detail-art > .chest-art { width: 204px; height: 171px; transform: rotate(-3deg); }
.gift-mascot { width: 199px; height: 215px; }
.known-reward { display: flex; justify-content: center; align-items: center; gap: 13px; text-align: left; border: 1px solid #e3e5d3; border-radius: 16px; padding: 13px; }
.known-reward .accessory { width: 63px; height: 47px; }
.known-reward small { display: block; font-size: 8px; letter-spacing: 1px; color: #9da68d; }
.known-reward b { display: block; font-size: 13px; margin-top: 5px; }
.chest-detail-hint { font-size: 11px; line-height: 1.7; color: #8e9b7e; margin: 17px 0; }
.reward-lab { display: grid; gap: 12px; border-top: 1px solid #d8dece; padding-top: 16px; }
.reward-lab input { background: #f8f9f3; font-size: 12px; }
@media (max-width: 370px) {
  .wardrobe-intro h1 { font-size: 23px; }
  .wardrobe-item b { font-size: 8px; }
  .fitting-room { height: 204px; }
  .wardrobe-mascot { height: 178px; width: 167px; }
}
