/* B 積木探索：presentation only; learning data and actions remain unchanged. */
:root{--ink:#16345b;--teal:#237bc0;--cream:#edf7ff;--paper:#fff;--gold:#ffd66c;--coral:#a38ae9;--line:#d8e6f3;--shadow:0 6px 0 #dae6ef}
body{background:#edf7ff;color:var(--ink)}
.shell{max-width:1120px;padding:28px 24px 48px}.top{gap:16px;margin-bottom:28px}.brand{color:#204e7a}.back{border:2px solid #d1e5f5;border-radius:18px;box-shadow:0 3px 0 #c6dbea;padding:12px 18px}.avatar{box-shadow:0 4px 0 #e7bf51}
h1,h2,h3{color:#16345b;line-height:1.35}p{line-height:1.8}.eyebrow{color:#3376a6}.small,small{line-height:1.7}
.hero{background:linear-gradient(120deg,#d8ecff,#e5e2ff);border:3px solid white;border-radius:30px;padding:30px 20px;box-shadow:0 6px 0 #ccdef0;margin:18px auto 32px}.hero h1{margin:16px 0}.hero .profiles{margin-bottom:20px}
.card,.profile,.pick,.choice{border:2px solid #dfebf6;background:#fff;border-radius:27px;box-shadow:0 6px 0 #dae6ef}.card{padding:26px}.today{background:linear-gradient(120deg,#d8ecff,#e9e6ff);border-color:#fff}.home-grid{gap:24px}.word-list{gap:10px;margin:20px 0}.word-chip{background:#ffffffb8;border:1px solid #dce8fa;border-radius:14px;padding:12px 6px;overflow-wrap:anywhere}
.primary,.secondary,.sound,.back,.day-tabs button,.pick,.choice{transition:transform .12s,box-shadow .12s;touch-action:manipulation}
.primary,.secondary,.sound{min-height:48px;border:2px solid #1180dd;border-radius:19px;background:linear-gradient(#56b9ff,#238fe7);color:#fff;box-shadow:0 5px 0 #1475be;padding:13px 18px;line-height:1.5}
.secondary{background:#eff7ff;color:#315d83;border-color:#d1e5f5;box-shadow:0 5px 0 #c6dbea}.sound.slow,.navrow .primary{background:linear-gradient(#ffe99c,#ffd66c);border-color:#e8c662;color:#634a19;box-shadow:0 5px 0 #cfb053}
button:not(:disabled):active{transform:translateY(3px);box-shadow:none}button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #6c4cb2;outline-offset:5px}button:disabled{opacity:.5;cursor:not-allowed}
.profiles{gap:26px;margin-top:32px!important}.profiles>div{gap:18px}.profile{padding:28px;min-height:205px;text-align:left}.profile .big{margin-bottom:14px}.people-toolbar{gap:18px;margin:22px 0 28px}.progress-details{margin-top:28px}.progress-details summary{padding:12px 0;line-height:1.8;cursor:pointer}.backup-import{margin-top:24px;border:2px solid #d8e6f3;border-radius:18px;padding:18px}.card+.profiles{margin-top:32px!important}
input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{border:2px solid #cfdeec;border-radius:14px;padding:12px;color:#16345b;background:#fff;max-width:100%;box-sizing:border-box}input[type=file]{line-height:1.8}
.word-picker{gap:16px;margin-top:24px}.pick{padding:18px;border-radius:20px}.day-tabs{gap:12px;margin:22px 0}.day-tabs button{min-height:46px;background:#fff;border:2px solid #cfdeec;box-shadow:0 3px 0 #c6dbea;color:#315d83;border-radius:16px}.day-tabs button.completed{background:#286653;color:#fff;border-color:#286653;box-shadow:0 3px 0 #194e3d}.day-tabs button.selected[aria-pressed=true]{background:#69469b;color:#fff;border-color:#69469b;box-shadow:0 3px 0 #49316d}
.learn{max-width:1000px}.progress{height:12px;background:#dce7f2;margin-bottom:24px}.progress i{background:linear-gradient(90deg,#58b5f5,#a38ae9)}.art{background:#fff;border:2px solid #dfeaf6;box-shadow:0 6px 0 #dae6ef;border-radius:28px}.word-panel{background:#fff;border:2px solid #dfebf6;border-radius:27px;padding:28px 22px;margin:24px 0;box-shadow:0 6px 0 #dae6ef}.english{color:#174b79}.meaning,.translation{color:#466581}.sound-row{gap:16px;margin:18px 0}.voice-practice{background:#f5f0ff;border:2px solid #dfd2f5;border-radius:20px;padding:18px;margin:24px 0}.voice-practice .sound:not(.slow){background:linear-gradient(#c5b5ff,#a38ae9);border-color:#a18bdd;color:#302352;box-shadow:0 4px 0 #8b76bd}.phrase-practice{background:#fff8df;border-color:#f1d985}.phrase-chunks{gap:14px}.phrase-chunks button{border-radius:15px;padding:14px}.recording-reward{border:1px solid #efdb96;border-radius:16px;background:#fff6d4;padding:14px 18px;line-height:1.7}.navrow{gap:18px;margin:24px 0}
.quiz,.result{max-width:850px}.options,.picture-options{gap:18px}.choice{padding:18px;border-radius:23px}.choice.good{background:#d9f2e3;border-color:#489e71}.choice.bad{background:#fff0e9;border-color:#dd8a72}.answer-feedback{border-radius:20px;padding:20px;margin:22px 0}.teaching-answer{border-radius:22px;background:#fff}.recall-actions{gap:20px}.review-entry{margin-bottom:28px}
.adventure-card{background:linear-gradient(125deg,#fff4d2,#fff);border:2px solid #f2df9f;border-radius:27px;box-shadow:0 6px 0 #e5dcb9}.adventure-actions{gap:18px}.adventure-details{border-radius:18px;padding:18px;background:#fff}
dialog{background:#f1f7ff;color:#16345b;border:2px solid #d3e5f5!important;border-radius:28px!important;box-shadow:0 16px 60px #16345b33}dialog::backdrop{background:#16345b70}.usage-dialog header{background:#f1f7ff}.usage-dialog details{background:#fff;border:2px solid #dce7f3;border-radius:18px;margin:16px 0;padding:18px}.story-card,.story-line,.life-line{border-radius:20px;border:2px solid #dce7f3;background:#fff}.stories-dialog,.life-dialog{background:#f1f7ff}.story-controls,.life-controls{gap:16px}.device-help{max-width:1000px;padding:28px 24px 45px;gap:22px;color:#4d6a86}.device-help button{max-width:440px}.device-help p{margin:0}.device-help.lesson-footer{padding-top:0}
@media(min-width:900px){.learn{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);column-gap:28px;align-items:start}.learn>.top,.learn>.eyebrow,.learn>.progress,.learn>.navrow{grid-column:1/-1}.learn>.art{grid-column:1;grid-row:4;height:390px;position:sticky;top:24px}.learn>.recording-reward{grid-column:1;grid-row:5}.learn>.word-panel{grid-column:2;grid-row:4/6;margin:0}.learn>.navrow{grid-row:6}}
@media(max-width:620px){.shell{padding:18px 16px 32px}.card{padding:20px}.hero{padding:24px 16px}.home-grid{gap:22px}.profiles{gap:22px}.profile{padding:22px}.word-panel{padding:22px 16px}.sound-row{gap:14px}.sound{padding:11px 13px}.picture-options{gap:10px}.choice{padding:10px;border-radius:18px}.people-toolbar{gap:16px}.device-help{padding:24px 18px}.word-list{gap:6px}.word-chip{font-size:.9rem}.top{gap:10px}.day-tabs{gap:10px}}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
/* Optional activity controls use the same B palette. */
.story-dialog{background:#f1f7ff;color:#16345b}.story-dialog button:not(.secondary):not(.primary),.life-dialog button:not(.secondary):not(.primary){background:#eff7ff;color:#315d83;border:2px solid #d1e5f5;border-radius:16px;box-shadow:0 4px 0 #c6dbea;padding:12px 16px;min-height:48px}.story-dialog .story-lines li,.life-dialog .life-lines li{border-radius:18px}.story-dialog fieldset,.life-dialog fieldset{border:2px solid #d8e6f3;border-radius:20px;background:#fff}
.interactive-entry{margin:26px 0;background:linear-gradient(120deg,#e3efff,#eee7ff)}.interactive-link{display:block;text-align:center;text-decoration:none;margin:20px 0}.interactive-landing{padding-top:0;padding-bottom:0}

/* Day paw buttons: rendering only; completion remains cumulative. */
.day-tabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:18px 14px;align-items:start}
.day-tabs button,.day-tabs button.completed,.day-tabs button.selected[aria-pressed=true]{position:relative;display:block;width:100%;height:148px;min-width:0;padding:0 0 22px;background:transparent;border:0;border-radius:22px;box-shadow:none;color:#16345b;isolation:isolate}
.day-tabs button .paw-art{position:absolute;left:0;top:0;width:100%;height:126px;object-fit:contain;pointer-events:none}
.day-tabs .paw-text{position:absolute;left:0;right:0;top:58px;display:flex;align-items:center;flex-direction:column;line-height:1.05;pointer-events:none;font-size:15px;font-weight:700}
.day-tabs .paw-text strong{font-size:29px;line-height:1.12;font-variant-numeric:tabular-nums}
.day-tabs button.completed .paw-art{filter:hue-rotate(-42deg) saturate(1.5)}
.day-tabs button.selected .paw-art{filter:drop-shadow(2px 0 #8a40d5) drop-shadow(-2px 0 #8a40d5) drop-shadow(0 2px #8a40d5) drop-shadow(0 -2px #8a40d5)}
.day-tabs button.completed.selected .paw-art{filter:hue-rotate(-42deg) saturate(1.5) drop-shadow(2px 0 #8a40d5) drop-shadow(-2px 0 #8a40d5) drop-shadow(0 2px #8a40d5) drop-shadow(0 -2px #8a40d5)}
.paw-check{position:absolute;right:8%;top:42px;background:#078c79;color:white;border:3px solid white;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:20px;line-height:1;font-weight:900}
.paw-selected{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap;padding:3px 10px;border-radius:12px;background:#7835b2;color:white;font-size:12px;line-height:1.4}
.paw-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.day-tabs button:hover .paw-text{color:#63319a}.day-tabs button:focus-visible{outline:3px solid #7734b7;outline-offset:3px}.legend-complete{color:#087b6b}.legend-selected{color:#7835b2}
@media(max-width:620px){.day-tabs{grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:16px 9px}.day-tabs button,.day-tabs button.completed,.day-tabs button.selected[aria-pressed=true]{height:123px}.day-tabs button .paw-art{height:101px}.day-tabs .paw-text{top:46px;font-size:12px}.day-tabs .paw-text strong{font-size:24px}.paw-check{top:30px;right:3%;width:25px;height:25px;font-size:17px}.paw-selected{font-size:11px;padding:3px 6px}}
