:root {
  --paper:#e9fbf7; --card:#fffefb; --ink:#413260; --muted:#736884;
  --green:#14ac9d; --green-dark:#0a897e; --mint:#d6faf0;
  --pink:#f962a0; --pink-dark:#bb3c78; --orange:#ffd561; --orange-dark:#996711;
  --line:#e6dcf3; --shadow:0 7px 0 #c7dedf,0 14px 25px #5d3f6f09;
  --radius:28px; color-scheme:light;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
* {box-sizing:border-box}
body {margin:0; color:var(--ink); -webkit-font-smoothing:antialiased; background-color:var(--paper); background-image:linear-gradient(#fff9 1px,transparent 1px),linear-gradient(90deg,#fff9 1px,transparent 1px); background-size:36px 36px}
button {font:inherit;cursor:pointer;touch-action:manipulation;min-height:44px;-webkit-tap-highlight-color:transparent}
button:disabled {cursor:default;opacity:.62}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {outline:3px solid #7646c9;outline-offset:4px}
button,a,input {-webkit-tap-highlight-color:transparent}
img {max-width:100%;display:block}
h1,h2,h3,p {margin:0}
button[hidden],[hidden] {display:none!important}
dialog {color:var(--ink)}
.page-shell {max-width:1236px;margin:auto;padding:0 36px}
.site-header {height:86px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand {display:flex;align-items:center;gap:11px}
.brand img {width:52px;height:52px;filter:drop-shadow(0 4px 0 #ace4da)}
.brand strong {font-size:22px;letter-spacing:1px;font-weight:850}
.brand span {display:block;color:#776085;font-size:8px;letter-spacing:2px;margin-top:5px;font-weight:800}
.header-parent {border:2px solid white;background:#ffffffb5;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:750;color:#75638f;padding:7px 14px;border-radius:16px;box-shadow:0 3px 0 #ccdedf}
.header-parent span {font-size:23px;line-height:1;color:#776085}
.site-footer {padding:22px 0 24px;display:flex;justify-content:space-between;gap:16px;color:#766881;font-size:10px;letter-spacing:.3px;line-height:1.6}
/* The toy world sits behind the controls, with static decorations. */
.hero {position:relative;isolation:isolate;display:grid;grid-template-columns:1.03fr 1fr;min-height:310px;border:3px solid white;border-radius:34px;overflow:hidden;background:linear-gradient(116deg,#c7faea 0%,#d7f4f8 50%,#e7ddff 100%);box-shadow:0 8px 0 #b7dedc,0 16px 26px #5c658b08}
.hero:before {content:'';position:absolute;width:140px;height:140px;border:18px solid #fff4;border-radius:50%;left:45%;top:-70px;z-index:-1}
.hero:after {content:'';position:absolute;width:92px;height:92px;border:12px solid #fff5;border-radius:50%;right:-35px;bottom:-29px;z-index:-1}
.hero-copy {padding:35px 0 33px 37px;position:relative;z-index:1;align-self:center}
.eyebrow {display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.5px;font-weight:850;color:#367666}
.eyebrow i {width:7px;height:7px;border-radius:3px;background:#f78cab;transform:rotate(-15deg);box-shadow:0 2px 0 #d95788}
.hero h1 {font-size:43px;font-weight:900;line-height:1.22;letter-spacing:1px;margin-top:16px;color:#513373;text-shadow:0 3px 0 #fff9}
.hero h1 em {font-style:normal;color:#e64e92}
.hero-copy>p {font-size:13px;color:#61797a;line-height:1.7;margin-top:13px;font-weight:600}
.hero-tags {display:flex;gap:6px;flex-wrap:wrap;margin-top:20px}
.hero-tags span {font-size:10px;font-weight:700;background:#fff9;border:2px solid #fff;border-radius:20px;padding:6px 9px;color:#766187;white-space:nowrap}
.island-scene {align-self:center;width:100%;height:300px;padding:10px 9px 12px 0;position:relative}
.party-scene img {display:block;width:100%;height:100%;object-fit:contain}
.scene-label {position:absolute;right:28px;bottom:16px;color:#776085;font-size:8px;letter-spacing:2px;font-weight:800}
.adventure-hero.hero {min-height:310px}
.adventure-hero .hero-copy {padding:35px 0 33px 37px}
.adventure-hero h1 {font-size:43px}
.adventure-hero .hero-copy>p {font-size:13px}
.adventure-hero .hero-tags {margin-top:20px}
.adventure-hero .island-scene {height:300px}
.adventure-hero .scene-label {bottom:16px}
.home-main {display:grid;grid-template-columns:1.25fr 1fr;gap:22px;margin-top:25px;align-items:stretch}
.play-card,.journey-card {background:var(--card);border:3px solid white;border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;position:relative}
.play-card {background:linear-gradient(150deg,#fffefb,#fff9fd)}
.journey-card {background:linear-gradient(150deg,#fffefb,#f8f5ff)}
.card-topline {display:flex;justify-content:space-between;align-items:center;gap:10px}
.section-label {font-size:9px;letter-spacing:1.3px;color:#776085;font-weight:850}
.tiny-tag {color:#647963;border:1px solid #d0e6bb;background:#eef9d8;border-radius:20px;padding:4px 8px;font-size:9px;font-weight:750;white-space:nowrap}
.play-card h2,.journey-card h2 {font-size:20px;margin-top:8px;line-height:1.35;font-weight:850;letter-spacing:.1px}
.difficulty-picker {display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:19px}
.difficulty-button {position:relative;border:2px solid #e2eae8;background:#e8fbf5;border-radius:20px;min-height:125px;padding:14px 7px 11px;display:flex;align-items:center;flex-direction:column;color:#5b5c72;gap:6px;box-shadow:0 5px 0 #caddd7,inset 0 2px 0 #fff;transition:transform .15s,box-shadow .15s,border-color .15s}
.difficulty-button:nth-child(2) {background:#fff5d1;border-color:#f3e7bf;box-shadow:0 5px 0 #e8d9aa,inset 0 2px 0 white}
.difficulty-button:nth-child(3) {background:#ffebf3;border-color:#f4dce7;box-shadow:0 5px 0 #e8c7d7,inset 0 2px 0 white}
.difficulty-button.selected {border-color:#7351a3;box-shadow:0 5px 0 #7351a3,inset 0 2px 0 white;color:#473163}
.difficulty-button.selected:after {content:'✓';position:absolute;right:7px;top:7px;width:18px;height:18px;display:grid;place-items:center;background:#7351a3;color:white;border-radius:50%;font-size:11px;font-weight:900}
.difficulty-button:hover:not(:disabled) {transform:translateY(-2px)}
.difficulty-button:active:not(:disabled) {transform:translateY(3px);box-shadow:0 2px 0 #7351a3}
.difficulty-art {font-size:29px;line-height:1.25;filter:drop-shadow(0 2px 0 #ffffff)}
.difficulty-button strong {font-size:12px;font-weight:850}
.difficulty-button small {font-size:10px;color:#806d89}
.difficulty-dots {font-size:7px;letter-spacing:4px;color:#c48bb1;line-height:1.3}
.difficulty-help {font-size:10px;color:#776085;line-height:1.65;margin-top:13px}
.mode-picker {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}
.play-card .mode-picker {margin-top:17px}
.mode-button {display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;background:#f7f4fb;border:2px solid #e9e2f1;border-radius:17px;padding:14px;color:#7c6c8b;min-height:91px;box-shadow:0 3px 0 #e8e0f0}
.mode-button .mode-title {display:flex;align-items:center;gap:8px;font-size:14px;font-weight:850}
.mode-button small {font-size:10px;line-height:1.5;color:#776085}
.mode-button.selected {background:#eeebff;border-color:#a997d7;box-shadow:0 3px 0 #a997d7;color:#60498c}
.mode-icon {width:25px;height:25px;border-radius:8px;background:white;box-shadow:0 2px 0 #dbd4f0;display:grid;place-items:center;font-size:16px;color:#776085}
.mode-description {font-size:11px;line-height:1.7;color:#776085;min-height:38px;margin-top:13px}
.primary-button {border:2px solid #ff8dbb;background:linear-gradient(#ff76ad,#f761a0);color:#392144;border-radius:17px;min-height:55px;font-size:15px;font-weight:850;padding:13px 22px;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 5px 0 #c64482,inset 0 2px 0 #ffbed8;transition:transform .15s,filter .15s,box-shadow .15s;text-shadow:0 1px 0 #ffb7d0}
.primary-button:hover:not(:disabled) {filter:brightness(1.03);transform:translateY(-1px)}
.primary-button:active:not(:disabled) {transform:translateY(3px);box-shadow:0 2px 0 #c64482,inset 0 2px 0 #ffbed8}
.start-button {width:100%;margin-top:14px}
.start-button b {font-size:23px;font-weight:600}
.small-note {font-size:9px;color:#776085;text-align:center;line-height:1.6;margin-top:12px}
.asset-ready {display:flex;align-items:center;gap:6px;justify-content:center;margin-top:8px}
.asset-ready i {width:6px;height:6px;background:#32ac9b;border-radius:50%}
.asset-ready.error {color:#a05a38}
.asset-ready.error i {background:#f6956a}
.station-map {display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:18px;position:relative}
.station-map:before {content:'';position:absolute;top:45px;left:7%;right:7%;height:4px;background:repeating-linear-gradient(90deg,#f4bacf 0 7px,transparent 7px 12px)}
.station-stop {border:2px solid #e6def1;background:#f4effc;position:relative;border-radius:18px;padding:15px 3px 9px;display:flex;align-items:center;flex-direction:column;gap:5px;min-height:94px;box-shadow:0 4px 0 #e4d8f0}
.station-stop:nth-child(2) {background:#e6faf4;border-color:#d5efe6;box-shadow:0 4px 0 #c9e8de}
.station-stop:nth-child(3) {background:#fff3d3;border-color:#f1e5c0;box-shadow:0 4px 0 #e8dcb2}
.station-stop:nth-child(4) {background:#ffedf4;border-color:#f6dbe6;box-shadow:0 4px 0 #edcadb}
.station-stop.visited {border-color:#20b6a1;box-shadow:0 4px 0 #20b6a1}
.station-number {position:absolute;left:7px;top:5px;font-size:9px;color:#776085;font-weight:850}
.station-art {font-size:27px;line-height:1.35}
.station-stop strong {font-size:10px;color:#715e86;font-weight:850;white-space:nowrap}
.station-stop small {font-size:8px;color:#776085;white-space:nowrap}
.collection-divider {height:2px;background:repeating-linear-gradient(90deg,#e9dff2 0 5px,transparent 5px 10px);margin:18px 0 16px}
.collection-header {display:flex;align-items:center;justify-content:space-between;gap:9px}
.collection-header h3 {font-size:17px;margin-top:6px;font-weight:850}
.shell-bank {display:flex;align-items:center;gap:5px;white-space:nowrap;background:linear-gradient(#ffe995,#ffd661);border:2px solid #fff1b5;border-radius:16px;padding:7px 10px;color:#8d5d28;font-size:21px;font-weight:850;box-shadow:0 4px 0 #e4bf5a,inset 0 1px 0 white}
.shell-bank>span {font-size:23px}
.shell-bank small {font-size:9px;font-weight:750}
.participation-track {display:flex;gap:7px;margin-top:15px}
.participation-step {position:relative;background:#ede6f5;border:1px solid #e3d9ef;border-radius:8px;overflow:hidden;flex:1;height:23px;display:grid;place-items:center;box-shadow:inset 0 2px 0 #dcd2e9}
.participation-step i {position:absolute;left:0;top:0;bottom:0;background:linear-gradient(#7de1d0,#50ccbb);transition:width .3s}
.participation-step span {z-index:1;position:relative;color:#715289;font-size:10px;font-weight:850}
.collection-note {font-size:10px;color:#776085;line-height:1.65;margin-top:10px}
.sticker-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:14px}
.sticker-item {border:2px dashed #dfd5eb;border-radius:16px;padding:9px 3px;background:#f7f2fc;display:flex;align-items:center;flex-direction:column;gap:5px}
.sticker-art {font-size:27px;opacity:.42;filter:grayscale(.85);line-height:1.15}
.sticker-item.collected {border-style:solid;border-color:#f3d478;background:linear-gradient(#fff7d9,#fff0b8);box-shadow:0 3px 0 #ecd284,inset 0 2px 0 white;transform:rotate(-2deg)}
.sticker-item.collected:nth-child(even) {transform:rotate(2deg)}
.sticker-item.collected .sticker-art {opacity:1;filter:none}
.sticker-item strong {font-size:9px;color:#7a6489;font-weight:800}
.sticker-item small {font-size:8px;color:#776085}
.history-row {display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:10px}
.history-row>span {font-size:9px;color:#776085}
.text-button {background:none;border:0;padding:3px 0;color:#8660ac;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:9px;min-height:44px}
.journey-mini {display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #eee7f3}
.journey-mini:last-of-type {border-bottom:0}
.step-num {width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#fff0bd;color:#89632d;font-size:12px;font-weight:800;flex:none}
.journey-mini h3 {font-size:12px;font-weight:800}
.journey-mini p {font-size:10px;margin-top:5px;color:#776085;line-height:1.5}
.resume-banner {margin:24px 0 0;border:2px solid #f1d893;background:#fff4cc;padding:17px 21px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 4px 0 #ead29b}
.resume-banner strong {font-size:13px;font-weight:800}
.resume-banner p {font-size:11px;color:#89632d;margin-top:6px;line-height:1.6}
.resume-actions {display:flex;gap:8px;flex:none}
.secondary-button {border:2px solid #ded2ee;background:white;border-radius:14px;color:#7b6295;padding:10px 15px;min-height:46px;font-weight:800;font-size:12px;box-shadow:0 3px 0 #ded2ee;transition:transform .15s}
.secondary-button:active:not(:disabled) {transform:translateY(2px)}
.resume-actions .primary-button {font-size:12px;min-height:46px;padding:10px 17px;border-radius:14px}
.storage-note {font-size:12px;background:#fff3c7;border:2px solid #f5d779;padding:12px 17px;border-radius:14px;margin-bottom:15px;color:#8d682d;line-height:1.6}
.initial-load {min-height:350px;display:grid;place-items:center;font-size:14px;color:var(--muted)}
/* A quiet, cream stage keeps the four answer images easy to see. */
.game-topbar {display:flex;align-items:center;justify-content:space-between;margin:5px 0 19px;gap:16px}
.game-chapter {display:flex;align-items:center;gap:12px}
.chapter-badge {width:44px;height:44px;border:2px solid white;border-radius:15px;background:#dac8fb;box-shadow:0 4px 0 #b19bd8;display:grid;place-items:center;font-size:21px;color:#764cab}
.game-chapter h2 {font-size:17px;font-weight:850}
.game-chapter p {font-size:10px;color:#776085;margin-top:6px}
.game-timers {display:flex;align-items:center;gap:9px;flex:none}
.question-timer {display:flex;align-items:center;gap:8px;border:2px solid #abdfd7;background:#d6f8ed;border-radius:16px;padding:9px 13px;color:#38786e;min-height:49px;font-variant-numeric:tabular-nums;box-shadow:0 3px 0 #a0d9cb}
.question-timer span {font-size:11px;font-weight:750}
.question-timer strong {font-size:22px;font-weight:850}
.question-timer.urgent {background:#fff0c8;border-color:#eacb79;color:#9e651d;box-shadow:0 3px 0 #dec078}
.timer {display:flex;align-items:center;gap:9px;padding:9px 13px;background:white;border:2px solid #e0d0f2;border-radius:16px;color:#8964ac;font-variant-numeric:tabular-nums;min-width:123px;min-height:49px;box-shadow:0 3px 0 #dccced}
.timer span {font-size:11px;font-weight:750}
.timer strong {font-size:22px;letter-spacing:1px;font-weight:850}
.timer.low {color:#a05c28;background:#fff1cd;border-color:#f1d081;box-shadow:0 3px 0 #ebcc86}
.progress-rail {display:flex;gap:8px;margin-bottom:20px}
.progress-segment {height:9px;flex:1;border:1px solid #e2d8ee;border-radius:8px;background:#eae1f3;overflow:hidden;box-shadow:inset 0 1px 1px #c7b3dd50}
.progress-fill {height:100%;background:linear-gradient(90deg,#73dbc4,#27bba7);border-radius:8px;transition:width .2s}
.question-shell {border:3px solid white;background:#fffefb;border-radius:31px;padding:25px 33px 26px;box-shadow:0 7px 0 #cbdde0,0 16px 28px #4b346208;position:relative}
.question-top {display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#776085;font-weight:700}
.question-top .type-tag {background:#f1eafa;border:1px solid #e6d9f3;border-radius:20px;padding:6px 11px;color:#776085;font-weight:800}
.question-title {text-align:center;font-size:20px;font-weight:850;letter-spacing:.3px;margin-top:17px;color:#4e3c67}
.prompt-area {min-height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.word-prompt {font-size:51px;font-weight:850;letter-spacing:1px;color:#7651a4;font-family:ui-rounded,"Arial Rounded MT Bold",Arial,sans-serif;text-shadow:0 3px 0 #eee5f7}
.listen-button {border:3px solid #bdeddf;position:relative;width:80px;height:80px;background:linear-gradient(#9bf0d9,#68d6bc);border-radius:25px;color:#287b6c;display:grid;place-items:center;box-shadow:0 5px 0 #41ad96,inset 0 3px 0 #d7fff2,0 0 0 7px #f0faf5;transition:transform .15s}
.listen-button:hover:not(:disabled) {transform:translateY(-2px)}
.listen-button:active:not(:disabled) {transform:translateY(3px)}
.listen-button svg {width:32px;height:32px}
.listen-button.playing {animation:soundPulse 1s infinite}
.listen-hint {color:#776085;font-size:11px;min-height:17px}
.option-grid {max-width:750px;margin:5px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:17px}
.option-button {position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(#fff,#fdfbff);border:2px solid #e7dcf2;border-radius:23px;min-height:166px;padding:13px;box-shadow:0 5px 0 #e2d7ed,inset 0 2px 0 white;transition:border-color .15s,transform .15s,box-shadow .15s,background .15s;touch-action:manipulation}
.option-button:nth-child(2n) {border-color:#d8ece7;box-shadow:0 5px 0 #d1e7e0}
.option-button:hover:not(:disabled) {background:#f5fffb;border-color:#8fd8c5;box-shadow:0 5px 0 #b6dfd4}
.option-button:active:not(:disabled) {transform:translateY(3px);box-shadow:0 2px 0 #c2dcda}
.option-button:disabled {opacity:1;background:#faf8fc;color:#776085;box-shadow:0 4px 0 #e6e0ed}
.option-button:disabled img {opacity:.69}
.option-button img {width:125px;height:125px;object-fit:contain;filter:drop-shadow(0 3px 1px #70589412)}
.option-button .option-label {font-size:13px;color:#776085;margin-top:0}
.option-button .option-letter {position:absolute;left:13px;top:12px;font-size:11px;color:#776085;background:#f0eafa;width:26px;height:26px;border-radius:9px;display:grid;place-items:center;font-family:Arial,sans-serif;font-weight:850;border:1px solid #e4d8f1}
.options-3 .option-button:last-child {grid-column:1/-1;width:calc(50% - 8.5px);justify-self:center}
.options-2 .option-button {min-height:202px}
.question-bottom {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:17px;color:#776085;font-size:10px;line-height:1.5}
.exit-button {background:none;border:0;color:#776085;font-size:10px;padding:6px 0;min-height:44px;white-space:nowrap}
.phase-note {text-align:center;color:#776085;font-size:10px;line-height:1.6;margin-top:9px}
.audio-error {color:#956022;background:#fff2cf;border:2px solid #f2d891;border-radius:13px;padding:10px 14px;font-size:12px;line-height:1.6;margin:12px auto;max-width:740px}
/* Feedback feels like opening a small prize, while the clocks keep their rules. */
.feedback-center {text-align:center;padding:7px 9px 15px}
.feedback-bubble {display:inline-flex;align-items:center;gap:6px;color:#367666;background:#e0f8ee;border:1px solid #c4ecdf;border-radius:25px;padding:10px 16px;font-size:13px;font-weight:800}
.feedback-bubble.incorrect {color:#89632d;background:#fff1d1;border-color:#f6dda0}
.feedback-card {width:219px;background:linear-gradient(#fffbff,#f2eafa);border:3px solid white;border-radius:27px;padding:17px;margin:21px auto 15px;box-shadow:0 5px 0 #dbcee9}
.feedback-card img {width:145px;height:145px;margin:auto}
.feedback-word {font-size:32px;font-family:ui-rounded,Arial,sans-serif;font-weight:850;letter-spacing:1px;margin-top:5px;color:#715095}
.feedback-meaning {font-size:15px;color:#776085;margin-top:5px}
.feedback-play {border:1px solid #cdeadd;color:#367666;background:#dff7eb;border-radius:12px;padding:8px 12px;font-size:11px;font-weight:750;min-height:44px;margin-top:12px;box-shadow:0 2px 0 #c3e2d4}
.feedback-caption {font-size:11px;color:#776085;line-height:1.8;margin:15px auto;max-width:500px}
.feedback-center .primary-button {margin:19px auto 0;min-width:235px}
.reward-flash {display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:18px;background:#fff0b9;border:2px solid #ffe599;color:#996c2d;margin:11px auto 0;animation:rewardBloom .4s ease-out;box-shadow:0 3px 0 #edd380}
.reward-flash>span {font-size:21px}
.reward-flash strong {font-size:13px;font-weight:850}
.reward-flash small {font-size:10px;color:#89632d}
.reward-stamp {font-size:32px}
.reward-metrics {display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}
.reward-metrics>div {background:#fff4d1;border:2px solid #f7e5a7;border-radius:17px;padding:16px 11px;text-align:center;box-shadow:0 4px 0 #efdfb1}
.reward-metrics>div:nth-child(2) {background:#eaf9f1;border-color:#d4eadf;box-shadow:0 4px 0 #c9e4d6}
.reward-metrics>div:nth-child(3) {background:#ffedf4;border-color:#f1d9e5;box-shadow:0 4px 0 #e8cad9}
.reward-metrics strong {display:block;font:850 28px ui-rounded,Arial,sans-serif;color:#89632d}
.reward-metrics>div:nth-child(2) strong {color:#367666}
.reward-metrics>div:nth-child(3) strong {color:#776085}
.reward-metrics span {display:block;font-size:10px;line-height:1.7;color:#776085;margin-top:7px}
.reward-result .sticker-grid {max-width:480px}
.checkpoint-grid {display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:21px auto;max-width:850px}
.checkpoint-word {border:2px solid #e7dcf1;border-radius:17px;padding:11px 7px;background:#faf6ff;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 0 #e4d9ee}
.checkpoint-word img {height:65px;width:65px;object-fit:contain}
.checkpoint-word strong {font:800 17px ui-rounded,Arial,sans-serif;margin-top:5px;color:#70518f}
.checkpoint-word span {font-size:10px;color:#776085;margin-top:3px}
.checkpoint-word button {border:1px solid #d2e6dc;background:#e4f7ed;color:#367666;border-radius:10px;min-height:44px;margin-top:8px;padding:6px 10px;font-size:11px;font-weight:750}
.review-label {display:inline-block;background:#fff0c3;color:#89632d;border-radius:20px;padding:7px 12px;font-size:11px;font-weight:800;border:1px solid #f3dfa1}
.game-shell:has(.feedback-center) .question-title {margin-top:14px}
/* Results and records keep the same candy shapes. */
.result-hero {display:grid;grid-template-columns:1fr auto;gap:35px;align-items:center;background:linear-gradient(125deg,#d6f8ed,#ece1fc);border:3px solid white;border-radius:30px;padding:32px 36px;position:relative;box-shadow:0 7px 0 #c3dcdf}
.result-hero h1 {font-size:29px;font-weight:850;line-height:1.45;margin-top:12px;color:#684981}
.result-hero p {font-size:11px;color:#776085;line-height:1.8;margin-top:12px;max-width:780px}
.score-orbit {width:155px;height:155px;border:4px solid #fff4c3;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(#fff2b4,#ffdc73);box-shadow:0 6px 0 #e6bf67,0 0 0 9px #fff7d96e,inset 0 3px 0 white}
.score-orbit strong {font:900 57px ui-rounded,Arial,sans-serif;color:#96693a;line-height:1;text-shadow:0 2px 0 #fff4bb}
.score-orbit span {font-size:11px;color:#89632d;letter-spacing:2px;margin-top:10px;font-weight:850}
.result-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.metric-card {border:3px solid white;border-radius:20px;padding:21px;background:var(--card);box-shadow:0 5px 0 #d1dce2}
.metric-card strong {font:850 27px ui-rounded,Arial,sans-serif;color:#8160a7}
.metric-card span {font-size:11px;color:#776085;display:block;margin-top:7px;font-weight:750}
.metric-card small {font-size:9px;color:#776085;display:block;margin-top:9px}
.result-section {border:3px solid white;background:var(--card);border-radius:26px;padding:24px 27px;margin-top:24px;box-shadow:0 5px 0 #d0dde2}
.result-section h2 {font-size:18px;font-weight:850;color:#69507f}
.section-description {color:#776085;font-size:11px;line-height:1.8;margin-top:9px}
.result-warning {background:#fff3d0;border:2px solid #f1d894;padding:14px 18px;border-radius:16px;font-size:12px;line-height:1.8;color:#89632d;margin-top:16px}
.score-breakdown {display:flex;align-items:center;justify-content:center;gap:17px;margin:22px 0}
.score-component {text-align:center;flex:1;padding:18px;background:#f3ebfa;border:1px solid #e5d7f0;border-radius:18px;box-shadow:0 3px 0 #e5d7f0}
.score-component strong {font:850 27px ui-rounded,Arial,sans-serif;color:#8a64aa}
.score-component span {font-size:11px;color:#776085;display:block;margin-top:8px;line-height:1.7}
.score-breakdown>b {font-size:23px;color:#c0a7d3}
.word-results {display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:20px}
.word-result {background:#faf5ff;border:2px solid #ebe0f3;border-radius:18px;padding:14px 8px;text-align:center;box-shadow:0 3px 0 #e5d9ef}
.word-result img {width:74px;height:74px;object-fit:contain;margin:auto}
.word-result strong {font:800 17px ui-rounded,Arial,sans-serif;display:block;margin-top:7px;color:#76578f}
.word-result span {font-size:10px;color:#776085;display:block;margin-top:5px;line-height:1.5}
.attempt-dots {display:flex;justify-content:center;flex-wrap:wrap;gap:4px;margin-top:10px}
.attempt-dots i {width:7px;height:7px;border-radius:50%;background:#d9d5df}
.attempt-dots i.correct {background:#42bda5}
.attempt-dots i.wrong {background:#ed9c93}
.check-status {font-size:9px!important;line-height:1.6;color:#609c87!important;margin-top:9px!important}
.check-status.incomplete {color:#988fa4!important}
.result-actions {display:flex;justify-content:center;gap:12px;margin-top:28px}
.summary-note {font-size:11px;color:#776085;line-height:1.8;background:#f3eef9;border:1px solid #e9def2;border-radius:16px;padding:15px 18px;margin-top:18px}
.parent-observations {display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.parent-observations span {font-size:10px;padding:8px 10px;border-radius:10px;color:#776085;background:#f3ecfa;border:1px solid #e8ddf1}
.result-section summary {min-height:44px;align-content:center;color:#7f6095}
.result-section table {color:#776085}
.result-section th {font-weight:800}
.history-shell {padding-top:10px}
.history-shell h1 {font-size:28px;font-weight:850;margin-top:15px;color:#705385}
.history-shell>p {font-size:12px;color:#776085;margin-top:10px;line-height:1.7}
.history-list {display:grid;gap:16px;margin-top:25px}
.history-item {background:var(--card);border:3px solid white;border-radius:22px;padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;color:var(--ink);width:100%;box-shadow:0 5px 0 #ccdce0;transition:transform .15s}
.history-item:hover {transform:translateY(-2px)}
.history-item h3 {font-size:14px;font-weight:850;color:#75558e;line-height:1.6}
.history-item p {font-size:11px;color:#776085;margin-top:7px;line-height:1.7}
.history-score {font:850 32px ui-rounded,Arial,sans-serif;white-space:nowrap;color:#c96398}
.history-score small {font:600 10px -apple-system,sans-serif;color:#776085}
.empty-state {border:2px dashed #cebadd;background:#fffaff;border-radius:25px;min-height:250px;margin-top:25px;display:grid;place-items:center;text-align:center;padding:25px}
.empty-state h2 {font-size:18px;font-weight:850;color:#856098}
.empty-state p {font-size:12px;color:#776085;line-height:1.8;margin-top:14px}
.modal-backdrop {position:fixed;inset:0;background:#382145b5;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(5px)}
.modal-card {position:relative;background:#fffdfb;border-radius:29px;padding:30px;max-width:610px;width:100%;max-height:86vh;overflow:auto;border:3px solid white;box-shadow:0 7px 0 #ad93c0,0 25px 70px #3c255240}
.modal-card h2 {font-size:22px;font-weight:850;padding-right:40px;color:#6c4788}
.modal-card p,.modal-card li {font-size:12px;line-height:1.9;color:#776085}
.modal-card p {margin-top:16px}
.modal-card ul {padding-left:20px;margin:13px 0 18px}
.modal-close {position:absolute;right:16px;top:15px;background:#f4eafa;color:#776085;border:1px solid #e5d4ef;border-radius:50%;width:44px;min-height:44px;font-size:22px;box-shadow:0 3px 0 #e2d0ed}
.modal-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-bottom:4px}
.observation-buttons {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.observation-buttons button {min-height:79px;border:2px solid #e8daf3;border-radius:17px;background:#f7effc;text-align:left;padding:14px;color:#776085;font-size:12px;font-weight:800;box-shadow:0 3px 0 #e4d3ee}
.observation-buttons small {display:block;font-size:10px;color:#776085;margin-top:6px;font-weight:500;line-height:1.6}
.parent-share {border-top:2px dashed #e9dcef;margin-top:21px;padding-top:17px}
.parent-share h3 {font-size:15px;color:#776085;font-weight:800}
.parent-share p {font-size:11px!important;margin-top:10px!important}
.share-url {display:block;width:100%;font:11px ui-monospace,monospace;color:#776085;border:2px solid #e4d7ee;background:#faf5fe;padding:12px;border-radius:12px;margin-top:12px;min-height:46px}
.toast {position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#68448a;color:white;padding:13px 21px;border:2px solid #8d66ab;border-radius:16px;box-shadow:0 4px 0 #4f2e6f,0 10px 35px #49305c35;font-size:12px;font-weight:650;z-index:40;max-width:90%;text-align:center;line-height:1.6}
.modal-card .primary-button {min-height:46px;font-size:12px}
.modal-card .secondary-button {min-height:46px}
.audio-spinner {width:24px;height:24px;border:2px solid #b6e6d5;border-top-color:#428e78;border-radius:50%;animation:spin .8s linear infinite}
.loading-dots {letter-spacing:4px}
.loading-dots:after {content:'…'}
.copyright-note {font-size:10px;color:#776085;line-height:1.7;margin-top:20px}
@keyframes rewardBloom {from{opacity:0;transform:translateY(5px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes soundPulse {50%{box-shadow:0 5px 0 #41ad96,inset 0 3px 0 #d7fff2,0 0 0 10px #e6f9ef}}
@keyframes spin {to{transform:rotate(360deg)}}
@media (min-width:1180px) {
  .hero,.adventure-hero.hero {min-height:325px}
  .hero h1,.adventure-hero h1 {font-size:47px}
  .hero-copy,.adventure-hero .hero-copy {padding-left:42px}
  .island-scene,.adventure-hero .island-scene {height:319px}
  .play-card,.journey-card {padding:27px}
  .difficulty-button {min-height:132px}
  .station-stop strong {font-size:11px}
  .station-stop small {font-size:9px}
  .option-button {min-height:172px}
}
@media (max-width:900px) {
  .page-shell {padding:0 25px}
  .site-header {height:84px}
  .brand strong {font-size:20px}
  .header-parent {font-size:11px}
  .hero,.adventure-hero.hero {min-height:285px;grid-template-columns:1fr 1fr}
  .hero-copy,.adventure-hero .hero-copy {padding:28px 0 29px 28px}
  .hero h1,.adventure-hero h1 {font-size:37px}
  .hero-copy>p,.adventure-hero .hero-copy>p {font-size:12px;max-width:300px}
  .island-scene,.adventure-hero .island-scene {height:276px;padding-right:3px}
  .hero-tags,.adventure-hero .hero-tags {gap:5px;margin-top:17px}
  .hero-tags span {font-size:9px;padding:5px 7px}
  .scene-label {font-size:7px;right:20px}
  .home-main {gap:17px;grid-template-columns:1.12fr 1fr}
  .play-card,.journey-card {padding:20px}
  .play-card h2,.journey-card h2 {font-size:18px}
  .difficulty-picker {gap:7px}
  .difficulty-button {min-height:124px;padding:15px 4px 10px}
  .difficulty-button strong {font-size:11px}
  .difficulty-button small {font-size:9px}
  .difficulty-button.selected:after {width:16px;height:16px;font-size:10px;right:5px;top:5px}
  .mode-button {padding:12px 10px;min-height:91px}
  .mode-button .mode-title {font-size:12px;gap:6px}
  .mode-icon {width:22px;height:22px;font-size:13px}
  .mode-button small {font-size:9px}
  .station-map {grid-template-columns:1fr 1fr;gap:10px}
  .station-map:before {display:none}
  .station-stop {min-height:87px;padding-top:12px}
  .station-stop strong {font-size:10px}
  .station-stop small {font-size:9px}
  .station-art {font-size:25px}
  .collection-header h3 {font-size:16px}
  .shell-bank {font-size:18px;padding:7px 8px;gap:4px}
  .shell-bank>span {font-size:21px}
  .shell-bank small {font-size:8px}
  .sticker-art {font-size:24px}
  .sticker-item strong {font-size:8px}
  .sticker-item small {font-size:7px}
  .history-row {flex-wrap:wrap;gap:0}
  .history-row>span {margin-left:auto}
  .question-shell {padding:23px}
  .option-grid {max-width:680px}
  .result-hero {padding:27px;gap:25px}
  .result-grid {gap:10px}
  .metric-card {padding:16px}
  .metric-card strong {font-size:24px}
  .result-section {padding:23px}
  .checkpoint-grid {gap:7px}
}
@media (max-width:800px) {
  .home-main {grid-template-columns:1fr 1fr}
  .hero h1,.adventure-hero h1 {font-size:35px}
  .hero-tags span {font-size:8px}
  .collection-note {font-size:9px}
  .collection-header {gap:5px}
  .shell-bank {padding:6px;font-size:17px}
  .shell-bank small {display:none}
}
@media (max-width:650px) {
  .page-shell {padding:0 16px}
  .site-header {height:80px}
  .brand {gap:8px}
  .brand img {width:45px;height:45px}
  .brand strong {font-size:18px}
  .brand span {font-size:6px;letter-spacing:1.4px}
  .header-parent {padding:6px 9px;gap:4px;border-radius:14px;font-size:10px}
  .header-parent span {font-size:20px}
  .hero,.adventure-hero.hero {display:block;min-height:303px;border-radius:28px}
  .hero-copy,.adventure-hero .hero-copy {padding:27px 22px 25px}
  .hero h1,.adventure-hero h1 {font-size:35px;line-height:1.22;position:relative;z-index:1;max-width:260px}
  .hero-copy>p,.adventure-hero .hero-copy>p {font-size:11px;max-width:205px}
  .hero-tags,.adventure-hero .hero-tags {max-width:270px;margin-top:21px;gap:5px}
  .hero-tags span {font-size:9px;padding:5px 7px;background:#ffffffe6}
  .island-scene,.adventure-hero .island-scene {position:absolute;right:-88px;top:59px;width:268px;height:245px;padding:0;opacity:.48;pointer-events:none}
  .scene-label {display:none}
  .home-main {grid-template-columns:1fr;gap:20px;margin-top:23px}
  .play-card,.journey-card {padding:23px;border-radius:25px}
  .play-card h2,.journey-card h2 {font-size:20px}
  .difficulty-picker {gap:9px;margin-top:20px}
  .difficulty-button {min-height:123px;padding:13px 7px 10px}
  .difficulty-button strong {font-size:12px}
  .difficulty-button small {font-size:10px}
  .difficulty-art {font-size:29px}
  .difficulty-button.selected:after {right:7px;top:7px}
  .difficulty-help {font-size:10px}
  .mode-button {padding:14px;min-height:94px}
  .mode-button .mode-title {font-size:14px}
  .mode-button small {font-size:10px}
  .mode-icon {width:24px;height:24px;font-size:15px}
  .mode-description {min-height:33px;font-size:11px}
  .start-button {margin-top:14px}
  .primary-button {font-size:14px}
  .station-map {grid-template-columns:repeat(4,1fr);gap:6px;margin-top:20px}
  .station-map:before {display:block}
  .station-stop {min-height:91px;padding:14px 3px 9px;border-radius:16px}
  .station-stop strong {font-size:9px}
  .station-stop small {font-size:8px}
  .station-art {font-size:25px}
  .station-number {font-size:8px;left:6px;top:5px}
  .collection-note {font-size:10px}
  .collection-header h3 {font-size:17px}
  .shell-bank {padding:7px 10px;font-size:20px}
  .shell-bank small {display:block;font-size:9px}
  .sticker-art {font-size:29px}
  .sticker-item strong {font-size:9px}
  .sticker-item small {font-size:8px}
  .site-footer {font-size:9px;gap:16px;padding:23px 0}
  .resume-banner {align-items:flex-start;flex-direction:column;padding:17px}
  .resume-actions {width:100%;justify-content:space-between}
  .game-topbar {gap:8px;margin-bottom:17px}
  .game-chapter {gap:7px}
  .game-chapter h2 {font-size:13px}
  .game-chapter p {font-size:8px;line-height:1.5;max-width:180px}
  .chapter-badge {display:none}
  .game-timers {gap:5px}
  .question-timer {padding:8px;gap:4px;min-height:44px;border-radius:12px}
  .question-timer span {font-size:9px}
  .question-timer strong {font-size:17px}
  .timer {min-width:89px;padding:8px;gap:4px;min-height:44px;border-radius:12px}
  .timer strong {font-size:17px;letter-spacing:.5px}
  .timer span {font-size:9px}
  .progress-rail {gap:6px;margin-bottom:17px}
  .progress-segment {height:8px}
  .question-shell {padding:19px 13px;border-radius:25px}
  .question-title {font-size:17px;margin-top:17px;line-height:1.5}
  .question-top {font-size:9px}
  .question-top .type-tag {font-size:9px;padding:6px 10px}
  .prompt-area {min-height:127px}
  .word-prompt {font-size:44px}
  .listen-button {width:73px;height:73px;border-radius:24px}
  .listen-hint {font-size:10px;text-align:center;line-height:1.6}
  .option-grid {gap:12px}
  .option-button {min-height:151px;border-radius:19px;padding:10px;box-shadow:0 4px 0 #e2d7ed}
  .option-button img {width:110px;height:110px}
  .option-button .option-letter {left:9px;top:9px;width:23px;height:23px;font-size:10px}
  .option-button .option-label {font-size:12px}
  .options-3 .option-button:last-child {width:calc(50% - 6px)}
  .options-2 .option-button {min-height:185px}
  .question-bottom {font-size:9px;margin-top:16px;gap:8px}
  .exit-button {font-size:9px}
  .phase-note {font-size:9px;margin-top:7px}
  .feedback-center {padding:9px 3px}
  .feedback-bubble {font-size:11px;padding:10px 13px}
  .feedback-card {width:198px;margin-top:20px;padding:15px}
  .feedback-card img {width:130px;height:130px}
  .feedback-word {font-size:29px}
  .feedback-caption {font-size:10px;line-height:1.8}
  .reward-flash small {display:none}
  .checkpoint-grid {grid-template-columns:repeat(2,1fr);max-height:383px;overflow-y:auto;padding:0 4px 6px;gap:9px}
  .checkpoint-word img {height:63px;width:63px}
  .checkpoint-word strong {font-size:16px}
  .result-hero {padding:25px 20px;gap:20px;border-radius:26px}
  .result-hero h1 {font-size:22px}
  .result-hero p {font-size:10px}
  .score-orbit {width:107px;height:107px;border-width:3px;box-shadow:0 5px 0 #e6bf67,0 0 0 5px #fff7d96e}
  .score-orbit strong {font-size:40px}
  .score-orbit span {font-size:9px;margin-top:6px}
  .result-grid {grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}
  .metric-card {padding:17px}
  .metric-card strong {font-size:24px}
  .metric-card span {font-size:10px}
  .result-section {padding:21px 17px;margin-top:22px;border-radius:24px}
  .result-section h2 {font-size:17px}
  .section-description {font-size:10px}
  .score-breakdown {gap:7px}
  .score-component {padding:13px 6px;border-radius:14px}
  .score-component strong {font-size:20px}
  .score-component span {font-size:9px;line-height:1.6}
  .score-breakdown>b {font-size:17px}
  .word-results {grid-template-columns:repeat(2,1fr);gap:11px}
  .word-result img {width:78px;height:78px}
  .result-actions {flex-direction:column;gap:15px}
  .result-actions button {width:100%}
  .summary-note {font-size:10px;padding:14px}
  .reward-metrics {gap:8px}
  .reward-metrics>div {padding:14px 6px}
  .reward-metrics strong {font-size:24px}
  .reward-metrics span {font-size:9px}
  .modal-backdrop {padding:16px}
  .modal-card {padding:24px 21px;max-height:86vh;border-radius:25px}
  .modal-card h2 {font-size:20px}
  .modal-card p,.modal-card li {font-size:11px}
  .modal-actions {flex-wrap:wrap}
  .observation-buttons button {font-size:11px;padding:12px}
  .observation-buttons small {font-size:9px}
  .history-item {padding:19px;gap:12px}
  .history-item h3 {font-size:12px}
  .history-item p {font-size:10px}
  .history-score {font-size:27px}
}
@media (max-width:380px) {
  .page-shell {padding:0 12px}
  .brand span {font-size:5px}
  .header-parent {padding:6px;font-size:9px}
  .hero h1,.adventure-hero h1 {font-size:32px}
  .play-card,.journey-card {padding:20px}
  .difficulty-button strong {font-size:11px}
  .difficulty-button small {font-size:9px}
  .station-stop strong {font-size:8px}
  .station-stop small {font-size:7px}
  .game-chapter p {max-width:140px}
  .question-timer {padding:7px 6px}
  .timer {padding:7px 6px;min-width:82px}
  .question-title {font-size:15px}
  .question-bottom {font-size:8px}
}
/* Four choices fit in an iPad landscape viewport without a scrolling target. */
@media (max-height:850px) and (min-width:900px) {
  .site-header {height:68px}
  .game-topbar {margin-top:0;margin-bottom:14px}
  .game-chapter h2 {font-size:16px}
  .game-chapter p {font-size:9px;margin-top:4px}
  .progress-rail {margin-bottom:14px;height:8px}
  .progress-segment {height:8px}
  .question-shell {padding:17px 28px 16px}
  .question-top {font-size:10px}
  .question-top .type-tag {padding:5px 10px}
  .question-title {margin-top:10px;font-size:18px}
  .prompt-area {min-height:84px;gap:8px}
  .word-prompt {font-size:43px}
  .listen-button {height:58px;width:58px;border-radius:19px;border-width:2px;box-shadow:0 4px 0 #41ad96,inset 0 2px 0 #d7fff2,0 0 0 5px #f0faf5}
  .listen-button svg {width:27px;height:27px}
  .listen-hint {font-size:10px}
  .option-grid {gap:12px;max-width:690px}
  .option-button {min-height:120px;padding:8px;border-radius:20px}
  .option-button img {width:96px;height:96px}
  .option-button .option-letter {left:11px;top:10px;width:24px;height:24px}
  .options-2 .option-button {min-height:180px}
  .options-2 .option-button img {width:125px;height:125px}
  .options-3 .option-button:last-child {width:calc(50% - 6px)}
  .question-bottom {margin-top:11px}
  .phase-note {display:none}
  body:has(.game-shell) .site-footer {display:none}
  .feedback-center {padding:5px 8px 7px}
  .feedback-card {margin:16px auto 10px;width:190px;padding:13px}
  .feedback-card img {width:114px;height:114px}
  .feedback-word {font-size:28px}
  .feedback-meaning {font-size:13px}
  .feedback-play {margin-top:9px}
  .feedback-caption {margin:12px auto;font-size:10px}
  .feedback-center .primary-button {margin-top:15px;min-height:50px}
  .feedback-center:has(.reward-flash) .feedback-card {margin-top:13px}
  .reward-flash {padding:6px 12px;margin-top:9px}
  .checkpoint-grid {gap:8px;margin:16px auto}
  .checkpoint-word {padding:8px 6px}
  .checkpoint-word img {width:55px;height:55px}
  .checkpoint-word strong {font-size:16px}
  .checkpoint-word button {margin-top:7px}
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
