:root {
  --paper: #fffdf5;
  --ink: #18375e;
  --ink-soft: #52708d;
  --sky: #dff5ff;
  --green: #3cad66;
  --green-deep: #247c4a;
  --red: #ff5d57;
  --red-deep: #c83745;
  --yellow: #ffd44d;
  --orange: #f28d24;
  --purple: #7d5ac7;
  --line: rgba(24, 55, 94, .16);
  --shadow: 0 14px 0 rgba(24, 55, 94, .13), 0 28px 56px rgba(24, 55, 94, .16);
  --ease-pop: cubic-bezier(.2, 1.35, .38, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: #eef9f6; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 212, 77, .28), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(60, 173, 102, .2), transparent 26%),
    linear-gradient(180deg, var(--sky) 0, #f6fbf2 54%, #eaf4e9 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 5px solid rgba(255, 212, 77, .85); outline-offset: 3px; }
.sky-decoration { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-decoration i { position: absolute; width: 170px; height: 55px; background: rgba(255,255,255,.66); border-radius: 999px; filter: blur(.2px); }
.sky-decoration i::before, .sky-decoration i::after { content: ""; position: absolute; bottom: 10px; background: inherit; border-radius: 50%; }
.sky-decoration i::before { left: 30px; width: 70px; height: 70px; }
.sky-decoration i::after { right: 24px; width: 55px; height: 55px; }
.sky-decoration i:nth-child(1) { top: 12%; left: -42px; }
.sky-decoration i:nth-child(2) { top: 24%; right: -65px; transform: scale(.7); }
.sky-decoration i:nth-child(3) { bottom: 7%; left: 18%; transform: scale(.48); opacity: .7; }

.app-shell { width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; padding: 14px clamp(12px, 2.4vw, 34px) 30px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { padding: 0; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: inherit; background: transparent; border: 0; text-decoration: none; text-align: left; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 21px; letter-spacing: -.04em; }
.brand small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.brand-fruit { position: relative; width: 47px; height: 47px; flex: 0 0 47px; display: inline-block; background: var(--red); border: 4px solid var(--ink); border-radius: 48% 53% 50% 45%; box-shadow: inset -7px -5px 0 var(--red-deep), 0 5px 0 rgba(24,55,94,.18); transform: rotate(-5deg); }
.brand-fruit::before { content: ""; position: absolute; top: -12px; left: 23px; width: 16px; height: 12px; background: var(--green); border: 3px solid var(--ink); border-radius: 100% 0 100% 0; transform: rotate(-20deg); }
.top-status { display: flex; align-items: center; gap: 10px; }
.top-status > span { min-width: 126px; height: 50px; padding: 6px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.78); border: 2px solid rgba(24,55,94,.12); border-radius: 15px; box-shadow: 0 5px 0 rgba(24,55,94,.08); }
.top-status small { color: var(--ink-soft); font-size: 9px; font-weight: 900; }
.top-status strong { font-size: 21px; }
.sound-button, .back-button { min-height: 48px; cursor: pointer; background: rgba(255,255,255,.82); border: 2px solid rgba(24,55,94,.14); box-shadow: 0 5px 0 rgba(24,55,94,.1); }
.sound-button { width: 50px; display: grid; place-items: center; border-radius: 15px; }
.sound-button svg { width: 25px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sound-button.muted svg { opacity: .38; }

.stage { position: relative; min-height: calc(100vh - 112px); }
.screen { min-height: calc(100vh - 112px); border: 5px solid var(--ink); border-radius: 30px; background: rgba(255,253,245,.96); box-shadow: var(--shadow); overflow: hidden; animation: screen-in 300ms var(--ease-pop) both; }
.map-screen { padding: clamp(18px, 2.4vw, 34px); }
.map-hero { position: relative; min-height: 208px; padding: clamp(24px, 3vw, 42px); display: grid; grid-template-columns: 1fr 280px; align-items: center; overflow: hidden; background: linear-gradient(125deg, #fff4be, #fffdf5 60%, #dff5ec); border: 3px solid var(--ink); border-radius: 25px; box-shadow: 0 8px 0 rgba(24,55,94,.13); }
.map-hero::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: -42px; height: 82px; background: var(--green); border: 3px solid var(--ink); border-radius: 50% 50% 0 0; opacity: .22; }
.map-hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 10px; color: var(--red-deep); font-size: 12px; font-weight: 1000; letter-spacing: .08em; }
h1, h2, p { margin-top: 0; }
.map-hero h1 { max-width: 760px; margin-bottom: 10px; font-size: clamp(36px, 5vw, 65px); line-height: .98; letter-spacing: -.075em; text-wrap: pretty; }
.map-hero h1 em, .report-card h1 em { color: var(--red); font-style: normal; }
.map-hero-copy > p:not(.eyebrow) { max-width: 680px; margin-bottom: 16px; color: var(--ink-soft); font-size: 15px; font-weight: 800; line-height: 1.65; }
.map-legend { display: flex; flex-wrap: wrap; gap: 15px; color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.active { background: var(--green); }
.legend-dot.locked { background: #aeb8bf; }
.hero-toy { position: relative; z-index: 2; width: 220px; height: 172px; justify-self: center; }
.toy-face { position: absolute; z-index: 2; inset: 22px 47px 15px; background: var(--yellow); border: 5px solid var(--ink); border-radius: 47% 53% 44% 48%; box-shadow: inset -13px -10px 0 var(--orange), 0 10px 0 rgba(24,55,94,.16); transform: rotate(3deg); }
.toy-face::before, .toy-face::after { content: ""; position: absolute; top: 53px; width: 8px; height: 14px; background: var(--ink); border-radius: 50%; }
.toy-face::before { left: 38px; }.toy-face::after { right: 38px; }
.toy-face i { position: absolute; left: 50%; bottom: 31px; width: 34px; height: 16px; border-bottom: 5px solid var(--ink); border-radius: 0 0 50% 50%; transform: translateX(-50%); }
.toy-face b { position: absolute; top: -20px; left: 34px; width: 58px; height: 38px; background: var(--red); border: 5px solid var(--ink); border-radius: 18px 18px 8px 8px; box-shadow: inset -8px -5px 0 var(--red-deep); }
.orbit { position: absolute; inset: 5px 8px; border: 3px solid rgba(24,55,94,.22); border-radius: 50%; transform: rotate(-17deg); }
.orbit-two { inset: 31px -3px 13px; transform: rotate(22deg); border-color: rgba(255,93,87,.3); }
.toy-fruit { position: absolute; z-index: 3; width: 25px; height: 25px; background: var(--red); border: 3px solid var(--ink); border-radius: 50%; }
.fruit-a { left: 5px; top: 72px; }.fruit-b { right: 9px; bottom: 34px; }

.adventure-path { position: relative; margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.adventure-path::before { content: ""; position: absolute; z-index: 0; left: 7%; right: 7%; top: calc(50% - 3px); border-top: 6px dotted rgba(24,55,94,.16); }
.chapter-card { --chapter: var(--green); position: relative; z-index: 1; min-height: 174px; padding: 18px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto 1fr auto; gap: 9px 14px; cursor: pointer; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 rgba(24,55,94,.16); text-align: left; transition: transform 180ms var(--ease-pop), box-shadow 180ms ease, filter 180ms ease; }
.chapter-card:not(:disabled):hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 13px 0 rgba(24,55,94,.16); }
.chapter-card:not(:disabled):active { transform: translateY(4px); box-shadow: 0 4px 0 rgba(24,55,94,.16); }
.chapter-card:disabled { cursor: not-allowed; filter: grayscale(.65); opacity: .57; }
.chapter-one { background: linear-gradient(145deg, #effbea, #fff 70%); }
.chapter-two { --chapter: #a66bd1; }.chapter-three { --chapter: #75b84f; }.chapter-four { --chapter: #3ca8c7; }.chapter-five { --chapter: #5f65bd; }.chapter-six { --chapter: #c49532; }
.chapter-index { grid-row: 1 / 3; width: 52px; height: 58px; display: grid; place-items: center; align-self: start; color: white; background: var(--chapter); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 color-mix(in srgb, var(--chapter) 55%, var(--ink)); font-size: 20px; font-weight: 1000; }
.chapter-copy { min-width: 0; display: flex; flex-direction: column; }
.chapter-copy small { color: color-mix(in srgb, var(--chapter) 72%, var(--ink)); font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.chapter-copy strong { margin: 3px 0 4px; font-size: 20px; line-height: 1.05; }
.chapter-copy span { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.chapter-state { grid-column: 1 / -1; align-self: end; padding-top: 10px; display: flex; justify-content: flex-end; border-top: 2px dashed rgba(24,55,94,.13); color: var(--chapter); font-size: 10px; font-weight: 1000; }
.chapter-placeholder { position: absolute; right: 17px; top: 17px; color: var(--chapter); font-size: 9px; font-weight: 1000; opacity: .75; }
.art-baskets { position: absolute; right: 18px; top: 17px; width: 80px; height: 45px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 4px; }
.art-baskets i { width: 23px; height: 20px; background: #e9ac50; border: 2px solid var(--ink); border-radius: 4px 4px 8px 8px; transform: rotate(var(--tilt)); }
.art-baskets i:nth-child(1) { --tilt: -6deg; }.art-baskets i:nth-child(2) { --tilt: 3deg; }.art-baskets i:nth-child(3) { --tilt: -2deg; }
.art-baskets i::before { content: ""; position: absolute; width: 15px; height: 12px; margin: -11px 0 0 2px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; }
.prototype-note { margin: 20px 2px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.prototype-note strong { color: var(--red-deep); }

.game-screen { padding: clamp(15px, 2.4vw, 30px); background: linear-gradient(180deg, #fffdf5, #f3f8e8); }
.game-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.back-button { padding: 0 16px; border-radius: 14px; font-size: 11px; font-weight: 1000; }
.back-button span { margin-right: 5px; font-size: 17px; }
.round-progress { min-width: 0; }
.round-progress > div { margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.round-progress span:first-child { color: var(--red-deep); font-size: 10px; font-weight: 1000; }
.round-progress strong { font-size: 18px; }
.progress-track { height: 10px; display: block; overflow: hidden; background: #dbe8e2; border: 2px solid var(--ink); border-radius: 999px; }
.progress-track i { width: 33%; height: 100%; display: block; background: var(--green); border-radius: inherit; transition: width 320ms ease; }
.score-card { min-width: 210px; min-height: 58px; padding: 8px 13px; display: grid; grid-template-columns: auto auto auto auto auto; align-items: center; gap: 7px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 17px; box-shadow: 0 6px 0 var(--orange); }
.score-card small { font-size: 8px; font-weight: 1000; }.score-card strong { font-size: 18px; }.score-card span { opacity: .45; }
.packing-layout { margin-top: 22px; display: grid; grid-template-columns: minmax(245px, 290px) 1fr; gap: 20px; align-items: stretch; }
.order-ticket { position: relative; min-height: 460px; padding: 25px 22px; overflow: hidden; background: #fff6d7; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 #d9b357; }
.order-ticket::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(24,55,94,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(24,55,94,.13) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.order-ticket > * { position: relative; z-index: 1; }
.ticket-kicker { display: inline-flex; padding: 7px 10px; color: white; background: var(--red); border: 2px solid var(--ink); border-radius: 999px; font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.ticket-number { margin: 30px 0 20px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2px 8px; text-align: center; }
.ticket-number span { font-size: 54px; font-weight: 1000; line-height: .85; }
.ticket-number small { color: var(--ink-soft); font-size: 9px; font-weight: 1000; }
.ticket-number b { position: absolute; left: 50%; top: 21px; color: var(--red); font-size: 30px; transform: translateX(-50%); }
.order-ticket > p:nth-of-type(2) { color: var(--ink-soft); font-size: 14px; font-weight: 900; line-height: 1.65; text-align: center; text-wrap: pretty; }
.ticket-total { margin-top: 23px; padding: 15px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.7); border: 2px dashed rgba(24,55,94,.28); border-radius: 14px; }
.ticket-total span { color: var(--ink-soft); font-size: 10px; font-weight: 900; }.ticket-total strong { font-size: 13px; }.ticket-total b { color: var(--red-deep); font-size: 24px; }
.ticket-tip { position: absolute; left: 22px; right: 22px; bottom: 23px; display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 10px; font-weight: 800; line-height: 1.5; }
.ticket-tip i { width: 12px; height: 12px; flex: 0 0 12px; background: var(--green); border: 2px solid var(--ink); border-radius: 50%; }
.packing-workbench { min-width: 0; min-height: 460px; padding: 20px; background: #dff3dd; border: 3px solid var(--ink); border-radius: 22px; box-shadow: inset 0 -12px 0 rgba(36,124,74,.08), 0 8px 0 rgba(24,55,94,.13); }
.workbench-top { min-height: 44px; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.workbench-label { margin-bottom: 3px; font-size: 15px; font-weight: 1000; }.workbench-top > div > span { color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.packed-counter { min-width: 82px; padding: 7px 11px; display: flex; justify-content: center; align-items: baseline; gap: 5px; color: white; background: var(--green-deep); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 rgba(24,55,94,.18); }
.packed-counter span:first-child { font-size: 18px; font-weight: 1000; }.packed-counter span:last-child, .packed-counter b { font-size: 11px; }
.fruit-warehouse { min-height: 106px; margin-top: 12px; padding: 15px; display: flex; flex-wrap: wrap; align-content: center; gap: 9px; background: rgba(255,255,255,.76); border: 3px dashed rgba(24,55,94,.22); border-radius: 17px; }
.fruit-token { position: relative; width: 50px; height: 50px; flex: 0 0 50px; cursor: grab; background: transparent; border: 0; border-radius: 50%; transition: transform 170ms var(--ease-pop), filter 170ms ease; }
.fruit-token::before, .slot.filled::before { content: ""; position: absolute; inset: 7px 6px 5px; background: var(--red); border: 3px solid var(--ink); border-radius: 48% 53% 50% 45%; box-shadow: inset -6px -4px 0 var(--red-deep); transform: rotate(-5deg); }
.fruit-token::after, .slot.filled::after { content: ""; position: absolute; top: 2px; right: 6px; width: 13px; height: 9px; background: var(--green); border: 2px solid var(--ink); border-radius: 100% 0 100% 0; transform: rotate(-18deg); }
.fruit-token:hover { transform: translateY(-5px) rotate(-4deg); }.fruit-token:active { cursor: grabbing; }
.fruit-token.selected { transform: translateY(-8px) scale(1.12); filter: drop-shadow(0 0 8px var(--yellow)); }
.fruit-token.packed { animation: pack-away 220ms ease forwards; pointer-events: none; }
.basket-zone { min-height: 205px; margin-top: 15px; display: grid; grid-template-columns: repeat(5, minmax(92px, 1fr)); gap: 10px; align-items: end; }
.basket { position: relative; min-height: 150px; padding: 39px 8px 10px; cursor: pointer; background: transparent; border: 0; border-radius: 18px; }
.basket::before { content: ""; position: absolute; left: 15%; right: 15%; top: 10px; height: 56px; border: 5px solid var(--ink); border-bottom: 0; border-radius: 40px 40px 0 0; }
.basket::after { content: ""; position: absolute; z-index: 0; inset: 49px 2px 18px; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(119,70,23,.16) 15px 19px), #e9ac50; border: 4px solid var(--ink); border-radius: 8px 8px 23px 23px; box-shadow: inset 0 -13px 0 #c47e2c, 0 5px 0 rgba(24,55,94,.14); }
.basket:hover { transform: translateY(-3px); }.basket.drop-ready { filter: drop-shadow(0 0 9px var(--yellow)); }
.basket-label, .basket-slots { position: relative; z-index: 1; }
.basket-label { display: block; margin-bottom: 11px; color: var(--ink); font-size: 9px; font-weight: 1000; }
.basket-slots { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.slot { position: relative; width: 42px; height: 45px; display: inline-block; border: 2px dashed rgba(24,55,94,.25); border-radius: 50%; }
.slot.filled { border-color: transparent; animation: fruit-pop 220ms var(--ease-pop) both; }
.slot.filled::before { inset: 6px 5px 4px; border-width: 2px; }.slot.filled::after { top: 2px; right: 4px; width: 11px; height: 7px; border-width: 1px; }
.interaction-hint { margin: 11px 0 0; color: var(--ink-soft); font-size: 9px; font-weight: 800; text-align: center; }
.interaction-hint.success { color: var(--green-deep); }

.math-check { margin-top: 18px; padding: 20px; display: grid; grid-template-columns: minmax(230px, .65fr) 1fr auto; align-items: center; gap: 22px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 rgba(24,55,94,.14); animation: math-in 280ms var(--ease-pop) both; }
.math-check-copy { padding: 12px 18px; text-align: center; background: #fff3c1; border: 2px dashed rgba(24,55,94,.24); border-radius: 16px; }
.math-check-copy p { margin-bottom: 4px; color: var(--green-deep); font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.math-check-copy h2 { margin-bottom: 3px; font-size: 37px; }.math-check-copy h2 strong { color: var(--red); }.math-check-copy > span { color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.answer-area > p { margin-bottom: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 900; }
.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 9px; }
.answer-button { min-height: 55px; cursor: pointer; background: #f7fafb; border: 3px solid var(--ink); border-radius: 15px; box-shadow: 0 5px 0 #c9d9de; font-size: 23px; font-weight: 1000; transition: transform 150ms var(--ease-pop), box-shadow 150ms ease; }
.answer-button:hover { transform: translateY(-3px); }.answer-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9d9de; }
.answer-button.wrong { color: var(--red-deep); background: #ffe8e6; animation: shake 230ms ease; }.answer-button.correct { color: var(--green-deep); background: #dff5df; animation: fruit-pop 240ms var(--ease-pop); }
.answer-feedback { min-height: 20px; margin-top: 6px; color: var(--red-deep); font-size: 10px; font-weight: 900; }
.answer-feedback.correct { color: var(--green-deep); }
.next-order-button, .primary-button, .secondary-button { min-height: 54px; cursor: pointer; border: 3px solid var(--ink); border-radius: 16px; font-size: 12px; font-weight: 1000; }
.next-order-button, .primary-button { padding: 0 20px; color: var(--ink); background: var(--yellow); box-shadow: 0 6px 0 var(--orange); }
.next-order-button span, .primary-button span { margin-left: 8px; font-size: 18px; }
.secondary-button { padding: 0 20px; background: white; box-shadow: 0 6px 0 #c9d9de; }

.report-screen { min-height: calc(100vh - 112px); display: grid; place-items: center; padding: 25px; background: linear-gradient(145deg, #dff5ec, #fff8d6 55%, #dff5ff); }
.report-card { position: relative; width: min(820px, 96%); padding: clamp(26px, 4vw, 48px); overflow: hidden; background: var(--paper); border: 5px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.report-badge { position: absolute; right: 37px; top: 38px; transform: rotate(8deg); }.report-badge .brand-fruit { width: 65px; height: 65px; display: block; }
.report-card h1 { margin: 0 100px 10px 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -.07em; }
.report-stars { color: var(--orange); font-size: 28px; letter-spacing: 5px; }
.report-score { margin: 20px 0 15px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--ink); border-radius: 17px; }
.report-score small { font-size: 11px; font-weight: 900; }.report-score strong { color: var(--yellow); font-size: 34px; }
.report-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-breakdown > div { min-height: 91px; padding: 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: #f0f7f5; border: 2px solid var(--line); border-radius: 15px; }
.report-breakdown span { color: var(--ink-soft); font-size: 10px; font-weight: 900; }.report-breakdown strong { font-size: 24px; }.report-breakdown small { grid-column: 1 / -1; color: var(--green-deep); font-size: 9px; font-weight: 800; }
.fact-ribbon { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.fact-ribbon span { padding: 7px 10px; background: #fff2bd; border: 2px solid rgba(24,55,94,.14); border-radius: 999px; font-size: 11px; font-weight: 1000; }
.leaderboard-placeholder { margin-top: 17px; padding: 15px 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; background: #f6f3ed; border: 2px dashed rgba(24,55,94,.22); border-radius: 15px; }
.leaderboard-placeholder span { color: var(--red-deep); font-size: 10px; font-weight: 1000; }.leaderboard-placeholder strong { font-size: 13px; }.leaderboard-placeholder p { grid-column: 1 / -1; margin: 3px 0 0; color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.report-actions { margin-top: 22px; display: flex; justify-content: flex-end; gap: 11px; }

@keyframes screen-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fruit-pop { 0% { transform: scale(.6) rotate(-10deg); } 70% { transform: scale(1.14) rotate(5deg); } 100% { transform: scale(1); } }
@keyframes pack-away { to { opacity: 0; transform: translateY(35px) scale(.35); } }
@keyframes math-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-7px); } 60% { transform: translateX(7px); } }

@media (max-width: 980px) {
  .map-hero { grid-template-columns: 1fr 210px; }
  .hero-toy { transform: scale(.84); }
  .adventure-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adventure-path::before { display: none; }
  .packing-layout { grid-template-columns: 220px 1fr; }
  .ticket-number span { font-size: 43px; }
  .basket-zone { grid-template-columns: repeat(3, minmax(90px, 1fr)); }
  .math-check { grid-template-columns: minmax(200px, .7fr) 1fr; }
  .next-order-button { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 700px) {
  .app-shell { padding: 8px; }
  .topbar { min-height: 57px; }
  .brand-fruit { width: 39px; height: 39px; flex-basis: 39px; border-width: 3px; }
  .brand-fruit::before { left: 18px; }
  .brand strong { font-size: 17px; }.brand small { display: none; }
  .top-status > span { min-width: 91px; height: 44px; padding: 5px 9px; }.top-status small { display: none; }.top-status strong { margin: auto; }
  .sound-button { width: 44px; min-height: 44px; }
  .screen { min-height: calc(100vh - 78px); border-width: 4px; border-radius: 22px; }
  .map-screen { padding: 12px; }
  .map-hero { min-height: 230px; padding: 22px 18px; display: block; }
  .map-hero h1 { max-width: 290px; font-size: clamp(34px, 11vw, 48px); }
  .map-hero-copy > p:not(.eyebrow) { max-width: 280px; font-size: 12px; }
  .hero-toy { position: absolute; right: -66px; bottom: -31px; opacity: .34; transform: scale(.64); }
  .map-legend { font-size: 9px; }
  .adventure-path { grid-template-columns: 1fr; gap: 12px; margin-top: 13px; }
  .chapter-card { min-height: 146px; padding: 15px; }
  .chapter-copy strong { font-size: 19px; }.prototype-note { font-size: 9px; }
  .game-screen { padding: 12px; }
  .game-header { grid-template-columns: auto 1fr; gap: 10px; }
  .back-button { min-height: 47px; padding: 0 11px; font-size: 0; }.back-button span { margin: 0; font-size: 20px; }
  .round-progress strong { font-size: 14px; }.round-progress span:first-child { font-size: 8px; }
  .score-card { grid-column: 1 / -1; min-width: 0; min-height: 48px; grid-template-columns: 1fr auto auto auto 1fr; text-align: center; }
  .packing-layout { grid-template-columns: 1fr; margin-top: 14px; gap: 13px; }
  .order-ticket { min-height: 0; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 12px; }
  .ticket-kicker { justify-self: start; }.ticket-number { margin: 0; }.ticket-number span { font-size: 33px; }.ticket-number b { top: 10px; font-size: 20px; }
  .order-ticket > p:nth-of-type(2) { grid-column: 1 / -1; margin: 0; font-size: 11px; }
  .ticket-total { margin: 0; padding: 9px; }.ticket-tip { position: static; }.ticket-tip span { font-size: 8px; }
  .packing-workbench { min-height: 0; padding: 13px; }
  .fruit-warehouse { min-height: 87px; padding: 10px; gap: 5px; }
  .fruit-token { width: 44px; height: 44px; flex-basis: 44px; }
  .basket-zone { min-height: 0; grid-template-columns: repeat(2, minmax(104px, 1fr)); gap: 5px; }
  .basket { min-height: 134px; }.interaction-hint { font-size: 8px; }
  .math-check { grid-template-columns: 1fr; gap: 12px; margin-top: 13px; padding: 13px; }
  .math-check-copy { padding: 7px; }.math-check-copy h2 { margin: 0; font-size: 31px; }
  .answer-area > p { text-align: center; }
  .next-order-button { grid-column: auto; width: 100%; }
  .report-screen { padding: 10px; }
  .report-card { width: 100%; padding: 25px 17px 18px; border-width: 4px; }
  .report-badge { display: none; }.report-card h1 { margin-right: 0; font-size: 37px; }
  .report-breakdown { grid-template-columns: 1fr; }.report-breakdown > div { min-height: 67px; }
  .report-actions { flex-direction: column-reverse; }.report-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
