:root{font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#284b48;background:#f8f5ec;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:780px;margin:auto;padding:24px 18px}header{display:flex;justify-content:space-between;align-items:center}a{color:#285d56;text-underline-offset:5px}header a{padding:12px 0;font-weight:700}#stars{background:#fff1c4;border-radius:30px;padding:12px 18px;font-weight:800}.intro{text-align:center;padding:28px 0 18px}.badge{font-size:13px;color:#687b66}h1{font-size:clamp(32px,7vw,44px);margin:10px 0}h1 span{color:#eea268}p{line-height:1.6}.intro p{color:#687b66}button,select{font:inherit;color:inherit}button{min-height:48px;border:0;border-radius:18px;padding:12px 16px;font-size:17px;font-weight:750;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #a14b17;outline-offset:4px}button:disabled{cursor:default}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 20px}nav button{background:#e6ece1}nav button[aria-pressed=true]{background:#2d6a60;color:#fff}.activity{background:#fffdf8;border:2px solid #e7e9dc;border-radius:30px;padding:24px;text-align:center;box-shadow:0 12px 35px #405c3510}h2{font-size:25px;margin:24px 0 8px}#instruction{min-height:26px;color:#62786a}select{padding:12px;border:1px solid #b4c9bb;border-radius:12px;background:white;font-size:16px;max-width:100%}.number{font-size:64px;font-weight:850;line-height:1.3;margin:12px 0 20px;color:#2d6a60}.board{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:12px;min-height:90px;margin:20px auto}.tray{display:grid;grid-template-columns:repeat(5,48px);gap:6px;padding:10px;border:2px dashed #c9d8c6;border-radius:20px;background:#f0f4e9;max-width:100%}.tray.orange{background:#fff1df;border-color:#eac493}.tray-label{grid-column:1/-1;font-size:14px;font-weight:700}.bead{width:48px;height:48px;min-height:48px;padding:0;border-radius:50%;background:radial-gradient(circle at 32% 24%,#b9e7ea,#479aab 65%,#367b8e);color:#fff;box-shadow:0 4px 0 #2a778440;font-size:19px}.orange .bead{background:radial-gradient(circle at 32% 24%,#ffe1a5,#e99b4b 65%,#bf7130)}.bead.touched{background:#2d6a60;box-shadow:inset 0 0 0 3px #b9d7b9}.bead.removed{background:#eee;box-shadow:none;color:#7e7e7e;text-decoration:line-through;border:2px dashed #bbb}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.actions button{background:#e7efe1}.answers{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:380px;margin:18px auto}.answers button{background:#e5eef1;font-size:25px;min-height:58px}.answers button:disabled{opacity:.55}.primary{background:#2d6a60;color:white;padding:16px 28px}#feedback{min-height:54px;font-size:18px;font-weight:700;margin:20px 0 10px}.success{color:#277052}footer{text-align:center;color:#71816f;font-size:13px;padding:22px 0}footer a{display:inline-block;padding:14px}[hidden]{display:none!important}@media(max-width:560px){main{padding:16px 12px}nav{grid-template-columns:1fr 1fr}.activity{padding:20px 10px}.tray{grid-template-columns:repeat(5,44px);gap:5px;padding:8px}.bead{width:44px;height:44px;min-height:44px}.number{font-size:54px}.intro{padding-top:20px}}@media(prefers-reduced-motion:no-preference){.bead{transition:background .15s,transform .15s}.bead:active{transform:scale(.92)}}

/* Bundle pictures preserve the unit: each small dot still represents one bead. */
.skip-board{display:block}.bundle-concept{font-size:14px;color:#62786a;margin:0 0 14px}.bundle-progress{position:sticky;top:8px;z-index:1;border:2px solid #d3e2cc;background:#f2f6e9;border-radius:16px;padding:12px 8px;margin:0 0 14px;font-size:19px;font-weight:800;box-shadow:0 4px 12px #405c3510}.bundle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.bundle-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:148px;min-width:0;padding:16px 8px;border:2px solid #e0e4d7;background:#f5f5ee;border-radius:20px}.bundle-unit{font-size:14px;color:#607468}.bundle-picture{display:grid;grid-template-columns:repeat(5,10px);gap:4px;min-height:24px;align-content:center;justify-content:center}.bundle-picture i{display:block;width:10px;height:10px;border-radius:50%;background:#74afbb;box-shadow:inset 0 2px 0 #ffffff55}.bundle-picture.dots-2{grid-template-columns:repeat(2,16px)}.dots-2 i{width:16px;height:16px}.bundle-picture.dots-100{grid-template-columns:repeat(10,6px);gap:2px}.dots-100 i{width:6px;height:6px;box-shadow:none}.bundle-total{font-size:27px;color:#758579;line-height:1}.bundle-tile.next-bundle{border-color:#dba345;background:#fff3d8;box-shadow:0 0 0 3px #f6dfa1}.bundle-tile.counted{border-color:#95bb9b;background:#e7f0e2}.counted .bundle-total{color:#246b54}.counted .bundle-picture i{background:#3f8978}@media(min-width:650px){.bundle-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.bundle-tile{padding:14px 6px}.bundle-unit{font-size:12px}}@media(max-width:360px){.bundle-grid{gap:10px}.bundle-unit{font-size:13px}}

/* Quiet, flat colors and slightly uneven, hand-drawn outlines. */
.activity{border-color:#d9ddd0;border-radius:29px 25px 31px 27px;box-shadow:none}
nav button{border-radius:17px 21px 18px 15px}.bead{background:#9bbfc3;color:#254e54;border:2px solid #7b9fa4;border-radius:49% 53% 47% 51%;box-shadow:0 3px 0 #bdd2cf}.orange .bead{background:#eac6a0;border-color:#c9a681;color:#704e37}.bead.touched{background:#abc9b3;color:#315f4b;border-color:#779d80;box-shadow:inset 0 3px 0 #88ad92}.bead.removed{background:#eee;color:#777;border:2px dashed #bbb;box-shadow:none}
.preferences{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.preferences button{background:#eeeadd;border:1px solid #c8cabb;font-size:14px;min-height:44px}.preferences span{font-size:12px;color:#657563;width:100%;text-align:center}.round-progress{font-size:12px;color:#687b66;min-height:20px}.session-done{font-size:clamp(26px,6vw,42px)}
.apple-game{display:grid;grid-template-columns:minmax(80px,1fr) minmax(145px,2fr);align-items:center;gap:20px;width:100%;max-width:540px;min-height:240px}.apple-source{position:relative}.apple-source p{font-size:12px;color:#6b7c69}.apple{width:86px;height:92px;padding:4px;background:#f3ecdf;border:2px dashed #ccbeab;border-radius:23px 20px 26px 18px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;position:relative;z-index:3;cursor:grab}.apple svg{width:100%;height:100%;pointer-events:none}.apple[aria-pressed=true]{outline:3px solid #b29c79;outline-offset:3px}.apple.dragging{z-index:5;cursor:grabbing;box-shadow:0 4px 10px #725c3820}.apple-basket{width:100%;min-height:205px;background:#eee2cb;border:3px solid #b7a184;border-radius:25px 20px 38px 32px;padding:20px 12px 12px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;position:relative}.apple-basket:before{content:'';position:absolute;top:-17px;left:22%;width:56%;height:28px;border:3px solid #b7a184;border-bottom:0;border-radius:40% 48% 0 0;pointer-events:none}.apple-basket.over{background:#e1ead5;border-color:#7b9a72}.basket-contents{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;min-height:120px}.small-apple{display:block;width:34px;height:38px}.small-apple svg{width:100%;height:100%}.apple-bundle{border:2px dashed #b79b78;border-radius:16px 19px 14px 18px;background:#f7efdc;padding:16px 10px;font-size:15px}.bundle-picture.dots-1000{grid-template-columns:repeat(5,13px);gap:3px}.dots-1000 i{height:13px;width:13px;border:1px solid #799c8b;border-radius:3px;background:#b3cabb;box-shadow:none}.bundle-tile.next-bundle{background:#f1ead5;border-color:#baa77c;box-shadow:none}.bundle-tile{border-radius:20px 17px 23px 19px}.bundle-picture i{box-shadow:none}.bundle-progress{box-shadow:none}
@media(max-width:380px){.apple-game{gap:10px;grid-template-columns:82px minmax(0,1fr)}.apple-basket{padding:16px 6px 10px}.small-apple{width:28px;height:32px}.number{font-size:44px}}
@media(prefers-reduced-motion:no-preference){.popped{animation:soft-pop .2s ease-out}@keyframes soft-pop{0%{transform:scale(1)}45%{transform:scale(.87)}100%{transform:scale(1)}}}
