:root{font-family:Fredoka,system-ui,sans-serif;color:#2b2a4c;background:#f6ecd9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 15% 20%,#fff8eb 0 10%,transparent 32%),radial-gradient(circle at 90% 80%,#ead6b4 0 8%,transparent 34%),#f6ecd9}.app{min-height:100dvh;max-width:1500px;margin:auto;padding:14px clamp(12px,2vw,30px) 8px;display:flex;flex-direction:column;gap:12px}.topbar{display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#ffbf3f;box-shadow:3px 4px 0 #dba938;font-size:27px;transform:rotate(-7deg)}.brand strong{display:block;font-size:clamp(20px,2.3vw,30px);line-height:1}.brand small{font-size:13px;color:#736c75}.icon-button{width:48px;height:48px;border:2px solid #2b2a4c;border-radius:50%;background:#fff9ed;color:#2b2a4c;font-size:24px;cursor:pointer;box-shadow:3px 4px 0 #d9c9ac}.icon-button[aria-pressed=false]{opacity:.5}.progress-wrap{padding:4px 0}.progress{display:flex;justify-content:center;gap:clamp(5px,1.2vw,14px)}.flag{width:clamp(23px,4vw,41px);height:31px;clip-path:polygon(0 0,100% 0,100% 74%,50% 100%,0 74%);background:#e1cdb0;text-align:center;padding-top:4px;font-weight:600;color:#746b6d;transition:transform .2s,background .2s}.flag.done{background:#2ec4b6;color:#fff}.flag.current{background:#ffbf3f;color:#2b2a4c;transform:translateY(4px)}.workshop{position:relative;flex:1;min-height:0;background:#fff9ef;border-radius:23px;padding:clamp(12px,1.5vw,22px);box-shadow:0 12px 0 #ddc9aa,0 20px 30px #8d725530;overflow:hidden}.workshop:before{content:"";pointer-events:none;position:absolute;inset:0;border-radius:inherit;opacity:.23;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 130 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}.task-heading{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 10px}.section-tag{background:#e6dcff;border-radius:8px;padding:6px 10px;font-size:13px;font-weight:600;white-space:nowrap}.task-heading h1{font-size:clamp(20px,2.4vw,31px);line-height:1.1;margin:0}.work-grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:stretch}.board-shell{position:relative;min-width:0;background:#f4e5ca;border:9px solid #ead6b6;border-radius:16px;box-shadow:inset 0 0 0 2px #fff9e9,5px 7px 0 #d5b991;overflow:hidden}.board-shell:after{content:"";pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 26px,#754c2510 27px 28px);opacity:.35}#board{width:100%;height:auto;display:block;touch-action:none;cursor:crosshair;position:relative;z-index:1}#board .point{cursor:pointer}#board .hit-ray{cursor:pointer}.board-caption{position:absolute;bottom:8px;left:12px;color:#876e53;font-size:11px;letter-spacing:.13em;z-index:2}.helper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.fox-wrap{height:145px;width:145px;display:grid;place-items:center;filter:drop-shadow(5px 7px 2px #80694d3d)}.fox-fallback{width:115px;height:120px;position:relative}.fox-fallback .ear{position:absolute;top:6px;width:70px;height:70px;background:#ef9252;clip-path:polygon(0 0,100% 0,50% 100%)}.fox-fallback .ear.left{left:-10px;transform:rotate(-20deg)}.fox-fallback .ear.right{right:-10px;transform:rotate(20deg)}.fox-fallback .face{position:absolute;inset:29px 0 0;background:#f4a65f;clip-path:polygon(50% 0,100% 22%,87% 70%,50% 100%,13% 70%,0 22%)}.fox-fallback .face:after{content:"";position:absolute;inset:45% 0 0;background:#fff4dd;clip-path:polygon(0 0,50% 100%,100% 0)}.fox-fallback i{position:absolute;z-index:2;top:43px;width:7px;height:9px;border-radius:50%;background:#2b2a4c}.fox-fallback i:first-child{left:29px}.fox-fallback i:nth-child(2){right:29px}.fox-fallback b{position:absolute;z-index:3;bottom:9px;left:50%;width:9px;height:8px;border-radius:50%;background:#2b2a4c;transform:translateX(-50%)}.speech{position:relative;width:100%;background:#fff;border:2px solid #e9d5ba;box-shadow:4px 5px 0 #e8d3b5;border-radius:14px;padding:15px;font-size:clamp(15px,1.45vw,19px);line-height:1.3;min-height:90px}.speech:before{content:"";position:absolute;top:-13px;left:50%;width:20px;height:20px;background:#fff;border-top:2px solid #e9d5ba;border-left:2px solid #e9d5ba;transform:rotate(45deg)}.activity{position:relative;min-height:66px;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:12px 0 3px}.controls{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.controls button,.activity button{font:600 18px Fredoka,system-ui;min-height:46px;border-radius:11px;cursor:pointer;touch-action:manipulation}.primary{background:#2ec4b6;border:2px solid #219a8e;color:#173d41;box-shadow:3px 4px 0 #168d84;padding:7px 22px}.secondary{background:#fff1ca;border:2px solid #e3c582;color:#4d4160;box-shadow:3px 4px 0 #ddbf77;padding:7px 17px}.secondary.glow{animation:hintPulse 1.1s infinite}.card-button,.letter-card,.slot,.choice{border:2px solid #d5b88e;background:#fff6e7;color:#2b2a4c;box-shadow:3px 4px 0 #dcc09c;padding:7px 13px}.letter-card{width:52px;font-size:25px!important;background:#e8dcff}.letter-card.used{opacity:.4}.slot{width:54px;background:#fff;font-size:26px!important}.slot.filled{background:#ffe8c7}.choice.correct{border-color:#3fbf7f;background:#e0f7e9}.cards-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;width:100%}.concept-card{width:min(31%,210px);min-width:130px;min-height:123px;border:2px solid #d5b88e;border-radius:13px;background:#fff2df;color:#2b2a4c;box-shadow:4px 5px 0 #ddc4a4;padding:8px;cursor:pointer;font:600 15px Fredoka,system-ui}.concept-card svg{display:block;width:100%;height:72px}.concept-card.selected{border-color:#3fbf7f;background:#e3faeb}.equation{font-size:27px;font-weight:600;margin-right:4px}.prompt-note{background:#fff0c8;border-radius:10px;padding:9px 14px;text-align:center;font-size:17px}.footer{text-align:center;color:#786c71;font-size:13px;padding:6px}.confetti-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:10}.confetti-piece{position:absolute;top:-40px;width:14px;height:20px;animation:fall .95s ease-in forwards;transform:rotate(15deg)}.complete-card{text-align:center;background:#fff7e7;border:3px solid #e5bb6a;border-radius:18px;padding:20px;max-width:580px;margin:auto;box-shadow:7px 9px 0 #d6b47a}.complete-card h2{margin:0 0 10px;font-size:29px}.complete-card p{font-size:21px;margin:8px}.complete-card .summary-angle{font-size:33px;color:#d45e4d}.complete-card button{margin-top:10px}.wiggle{animation:wiggle .42s}.bounce{animation:bounce .6s}@keyframes wiggle{25%{transform:translateX(-5px) rotate(-2deg)}50%{transform:translateX(5px) rotate(2deg)}75%{transform:translateX(-3px)}}@keyframes bounce{50%{transform:translateY(-15px)}}@keyframes hintPulse{50%{filter:brightness(1.15);transform:scale(1.05)}}@keyframes fall{to{top:110vh;transform:translateX(120px) rotate(700deg);opacity:.2}}@media(max-width:780px){.app{gap:8px}.work-grid{grid-template-columns:1fr;gap:8px}.helper{flex-direction:row;justify-content:center}.fox-wrap{height:84px;width:84px;flex:0 0 84px}.fox-fallback{transform:scale(.62)}.speech{min-height:65px;font-size:16px}.speech:before{top:25px;left:-12px;transform:rotate(-45deg)}.activity{min-height:60px}.board-shell{border-width:6px}.concept-card{min-width:100px;width:31%;font-size:13px}}@media(max-width:430px){.app{padding:8px 8px 3px}.brand-mark{width:39px;height:39px}.brand strong{font-size:20px}.brand small{font-size:11px}.workshop{padding:10px;border-radius:17px}.task-heading{gap:7px}.section-tag{font-size:11px;padding:5px}.task-heading h1{font-size:20px}.board-caption{font-size:8px}.concept-card{padding:4px;min-height:110px}.concept-card svg{height:62px}.activity{padding:7px 0}.footer{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.angle-icon{display:inline-block;width:1em;height:.9em;vertical-align:-.06em;overflow:visible;flex:none}
[hidden]{display:none!important}
.board-options{position:absolute;z-index:3;inset:7% 5%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:3%;}
.board-options .concept-card{width:100%;height:72%;min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:6px 8px 0 #ddc4a4;font-size:22px;transform:rotate(-2deg)}
.board-options .concept-card:nth-child(2){transform:rotate(2deg)}
.board-options .concept-card svg{height:auto;max-height:130px;flex:1}
.concept-task .activity{min-height:0;padding:0}
.finish-task .board-shell{display:none}
.finish-task .work-grid{display:block}
.finish-task .helper{flex-direction:row;justify-content:center;max-width:690px;margin:auto}
.finish-task .fox-wrap{flex:0 0 110px;width:110px;height:110px}
.finish-task .speech{width:auto;flex:1;min-height:70px}
.finish-task .speech:before{top:28px;left:-12px;transform:rotate(-45deg)}
.finish-task .activity{padding:14px 0}
.summary-drawing{display:block;width:min(100%,320px);height:auto;margin:auto}
#board .point-hit{cursor:pointer}
@media(max-width:780px){
  .app{min-height:100dvh}
  .workshop{flex:1 0 auto;overflow:visible}
  .board-shell{width:100%;aspect-ratio:375/480}
  #board{width:100%;height:100%}
  .controls{position:sticky;bottom:0;z-index:5;background:#fff9ef;padding:10px 4px max(10px,env(safe-area-inset-bottom));margin:0 -4px -4px;border-radius:12px}
  .concept-card{min-height:126px}
}
@media(max-width:430px){
  .board-shell{aspect-ratio:375/480}
  .task-heading{flex-wrap:wrap}
  .activity{min-height:65px}
  .board-options{inset:4% 8%;grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:3%}
  .board-options .concept-card{min-width:0;min-height:0;height:100%;flex-direction:row;font-size:18px;padding:6px 10px}
  .board-options .concept-card svg{width:75%;max-height:100px}
  .concept-task .activity{min-height:0}
  .finish-task .fox-wrap{flex-basis:72px;width:72px;height:72px}
  .finish-task .speech{font-size:15px;padding:10px;min-height:60px}
  .finish-task .activity{padding:8px 0}
  .complete-card{width:100%;padding:10px 12px}
  .complete-card h2{font-size:23px;margin-bottom:3px}
  .complete-card p{font-size:17px;margin:5px}
  .complete-card .summary-angle{font-size:26px}
  .summary-drawing{width:min(100%,255px)}
}
