html,body{margin:0;height:100%;background:#dff5fc}#activity-root{height:100svh;width:100%}*{box-sizing:border-box}.sd-board{width:100%;height:100%;min-height:250px;display:flex;flex-direction:column;gap:12px;color:#174A7E;font-family:Fredoka,sans-serif}.sd-instruction{font-size:clamp(20px,2.3vw,28px);font-weight:600;line-height:1.2;text-align:center;margin:0;min-height:1.3em}.sd-hint{font-size:18px;line-height:1.3;min-height:2.6em;text-align:center;margin:0;background:#fff9eb;padding:8px 16px;border-radius:12px}.sd-task{display:flex;justify-content:center;align-items:center;gap:clamp(15px,3vw,40px);flex:1;min-height:180px}.sd-bank{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;min-height:76px;padding:8px;background:#e4f4f9cc;border-radius:14px}.sd-item,.sd-target{border:0;padding:5px;min-width:56px;min-height:56px;background:#fff9eb;border-radius:12px;cursor:pointer;touch-action:none;position:relative;color:inherit;font:inherit}.sd-item img,.sd-target img{width:70px;height:70px;object-fit:contain;display:block;pointer-events:none}.sd-item{background:transparent}.sd-item[aria-pressed=true]{outline:4px solid #174A7E;outline-offset:2px;background:#fff9eb}.sd-item:focus-visible,.sd-target:focus-visible{outline:3px solid #174A7E;outline-offset:4px}.sd-target{border:2px dashed #7395aa;min-width:86px;min-height:86px}.sd-target:empty::after{content:'';display:block;width:34px;height:34px;border-radius:50%;border:2px solid #7395aa;margin:auto}.sd-bank[data-target]{border:2px dashed transparent}.sd-bank[data-target]:focus-visible{outline:3px solid #174A7E}.sd-stack{display:flex;flex-direction:column-reverse;align-items:center;gap:0;min-width:125px}.sd-stack .sd-target{background:transparent;min-height:60px;height:75px;min-width:125px}.sd-stack img{margin:auto;height:90px;max-width:125px;width:auto}.sd-snowman{display:flex;flex-direction:column-reverse;align-items:center;gap:0;position:relative}.sd-snowman>img{height:90px;object-fit:contain;display:block;margin-top:-18px}.sd-buttons{position:absolute;inset:30% 15%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:110px;min-width:56px}.sd-buttons img{width:22px;height:22px}.sd-sample{display:flex;flex-wrap:wrap;gap:8px;max-width:140px;padding:12px;background:#fff9eb;border-radius:14px;justify-content:center;align-items:center}.sd-sample img{width:35px;height:35px;object-fit:contain}.sd-pairs{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}.sd-pair{display:flex;flex-direction:column;gap:10px;align-items:center}.sd-reference{width:85px;height:85px;object-fit:contain}.sd-mirror{display:grid;grid-template-columns:repeat(6,minmax(48px,64px));grid-template-rows:repeat(3,56px);position:relative;gap:4px;padding:8px;background:#f8fcff;border-radius:16px}.sd-mirror::after{content:'';position:absolute;left:50%;height:calc(100% - 12px);top:6px;border-left:3px dashed #174A7E;pointer-events:none}.sd-cell{display:flex;justify-content:center;align-items:center;min-width:0;min-height:0;border:1px solid #abc7d6;background:#e9f4fa}.sd-cell img{width:40px;height:40px}.sd-cell button{min-width:48px;min-height:48px;padding:3px}.sd-cell button img{width:40px;height:40px}.sd-groups{display:flex;gap:14px;align-items:stretch;justify-content:center;flex-wrap:wrap}.sd-group{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:105px;min-height:130px;background:#fff9eb;border-radius:16px;padding:10px}.sd-group>img{width:74px;height:74px;object-fit:contain}.sd-group .sd-target{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:0;max-width:140px;padding:2px;min-height:70px}.sd-group .sd-item{padding:2px;min-width:48px;min-height:48px}.sd-group .sd-item img{width:44px;height:44px}.sd-dragging{position:fixed!important;z-index:999!important;pointer-events:none!important;opacity:.9;width:72px!important;height:72px!important}.sd-demo-label{font-size:18px;text-align:center;font-weight:600;margin:0;color:#174A7E}::selection{background:#174A7E;color:white}@media(orientation:portrait){.sd-board{min-height:300px;gap:10px}.sd-task{gap:12px;min-height:190px}.sd-instruction{font-size:22px}.sd-bank{gap:5px}.sd-item img{width:57px;height:57px}.sd-mirror{grid-template-columns:repeat(6,minmax(38px,1fr));width:100%;max-width:390px;grid-template-rows:repeat(3,58px);gap:2px}.sd-cell button{min-width:42px;padding:0}.sd-cell img,.sd-cell button img{width:34px;height:40px}.sd-group{min-width:84px;padding:5px}.sd-groups{gap:7px}.sd-group .sd-target{max-width:95px;min-width:74px}.sd-group>img{width:60px;height:60px}.sd-pairs{gap:9px}.sd-reference{width:70px;height:70px}.sd-target{min-width:74px;min-height:74px}.sd-hint{font-size:16px}.sd-sample{max-width:100px}.sd-sample img{width:30px;height:30px}.sd-stack .sd-target{min-width:100px}.sd-snowman>img{height:80px}}@media(orientation:landscape) and (max-height:650px){.sd-board{min-height:220px;gap:5px}.sd-task{min-height:140px}.sd-bank{min-height:60px;padding:4px}.sd-item img{width:56px;height:56px}.sd-instruction{font-size:20px}.sd-hint{font-size:16px;min-height:0;padding:5px}.sd-stack .sd-target{height:58px;min-height:58px}.sd-stack img{height:66px}.sd-snowman>img{height:70px}.sd-mirror{grid-template-rows:repeat(3,48px)}.sd-reference{height:64px;width:64px}.sd-target{min-height:64px}.sd-group{min-height:100px}.sd-group>img{height:50px;width:50px}}

@media(orientation:portrait){.sd-board{padding-bottom:115px}.sd-mirror{grid-template-columns:repeat(6,minmax(48px,1fr));padding:4px;gap:1px;min-width:301px}.sd-cell button{min-width:48px;min-height:48px}.sd-sample{max-width:120px}}

.sd-task-header{display:flex;align-items:center;justify-content:center;gap:18px;min-height:90px}.sd-nuki{width:80px!important;height:90px!important;object-fit:contain}.sd-task-header .sd-instruction{max-width:30ch}.sd-buttons{inset:25% auto auto 50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(2,48px);gap:0;min-width:96px;min-height:144px}.sd-buttons .sd-item{min-width:48px;min-height:48px;padding:0}.sd-buttons .sd-item img{width:22px;height:22px;margin:auto}
@media(orientation:portrait){.sd-board{padding-bottom:0}.sd-task-header{min-height:74px;gap:10px}.sd-nuki{width:66px!important;height:74px!important}.sd-task{min-height:180px}.sd-instruction{text-align:left}}
@media(orientation:portrait) and (max-height:700px){.sd-task-header{min-height:58px}.sd-nuki{width:52px!important;height:58px!important}.sd-instruction{font-size:19px}.sd-task{min-height:150px}.sd-stack .sd-target{height:55px;min-height:55px}.sd-stack img{height:60px}.sd-hint{font-size:15px;padding:5px;min-height:0}.sd-board{gap:5px}.sd-bank{min-height:65px;padding:3px}.sd-reference{width:65px;height:65px}.sd-target{min-height:65px}.sd-pair{gap:4px}}
@media(orientation:landscape) and (max-height:650px){.sd-board{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:48px minmax(144px,1fr) auto;gap:4px;min-height:0}.sd-task-header{grid-column:1/-1;min-height:0}.sd-nuki{height:48px!important;width:42px!important}.sd-task{grid-column:1;min-height:0;grid-row:2}.sd-bank{grid-column:2;grid-row:2;align-content:center;min-height:0}.sd-hint{grid-column:1/-1;grid-row:3;font-size:14px;line-height:1.15;min-height:0;padding:3px}.sd-stack .sd-target{height:48px;min-height:48px}.sd-stack img{height:48px}.sd-mirror{grid-template-columns:repeat(6,48px);grid-template-rows:repeat(3,48px);padding:0;gap:0}.sd-snowman>img{height:58px}.sd-buttons{grid-template-columns:repeat(3,48px);width:144px}.sd-buttons .sd-item{min-height:48px}.sd-instruction{text-align:center}}

body[data-adventure="cocoa-everyone"] .sd-instruction{background:#fff9eb;padding:8px 12px;border-radius:12px}

@media(orientation:portrait) and (max-height:700px){body[data-adventure="cocoa-everyone"] .sd-bank{display:grid;grid-template-columns:repeat(3,48px);gap:2px;min-height:0;align-content:center}body[data-adventure="cocoa-everyone"] .sd-bank .sd-item{min-width:48px;min-height:48px;padding:2px}body[data-adventure="cocoa-everyone"] .sd-bank .sd-item img{width:44px;height:44px}}

.sd-hint{padding-left:48px;padding-right:16px}
/* Build a Snowman fills its available scene; other adapters retain their geometry. */
body[data-adventure="build-snowman"] .sd-board{container-type:size;--sd-slot:clamp(72px,16cqh,140px);--sd-ball:clamp(110px,20cqh,168px);--sd-snowman-ball:clamp(120px,24cqh,180px);gap:8px}
body[data-adventure="build-snowman"] .sd-task-header{position:relative;min-height:54px;height:54px;flex-shrink:0}
body[data-adventure="build-snowman"] .sd-nuki{position:absolute;left:calc(50% - 340px);top:120px;width:170px!important;height:180px!important;max-height:none!important}
body[data-adventure="build-snowman"] .sd-task{min-height:0;flex:1;gap:35px}
body[data-adventure="build-snowman"] .sd-stack{min-width:210px}
body[data-adventure="build-snowman"] .sd-stack .sd-target{width:210px;min-width:210px;height:var(--sd-slot);min-height:var(--sd-slot);display:grid;place-items:center;padding:0}
body[data-adventure="build-snowman"] [data-source^="ball:"] img{width:calc(var(--sd-ball)*var(--sd-size))!important;height:calc(var(--sd-ball)*var(--sd-size))!important;max-width:none}
body[data-adventure="build-snowman"] .sd-bank{width:max-content;max-width:100%;min-width:430px;align-self:center;flex-shrink:0;gap:18px;padding:10px 24px}
body[data-adventure="build-snowman"] .sd-snowman>img{width:calc(var(--sd-snowman-ball)*var(--sd-size))!important;height:calc(var(--sd-snowman-ball)*var(--sd-size))!important;max-width:none;max-height:none;margin:-10px 0 0}
body[data-adventure="build-snowman"] .sd-sample{max-width:180px;padding:15px;gap:9px}
body[data-adventure="build-snowman"] .sd-sample img{width:44px;height:44px}
body[data-adventure="build-snowman"] .sd-buttons{top:28%;grid-template-columns:repeat(2,52px);min-height:0;min-width:104px;gap:0;width:104px}
body[data-adventure="build-snowman"] .sd-buttons .sd-item{min-height:52px;min-width:52px}
body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:32px;height:32px}
body[data-adventure="build-snowman"] .sd-bank [data-source="button"] img{width:64px;height:64px}
body[data-adventure="build-snowman"] .sd-hint{min-height:0;flex-shrink:0;padding-block:8px}
@media(orientation:portrait){body[data-adventure="build-snowman"] .sd-board{--sd-slot:clamp(78px,16cqh,140px);--sd-ball:clamp(100px,18cqh,130px);--sd-snowman-ball:clamp(120px,24cqh,160px)}body[data-adventure="build-snowman"] .sd-task-header{height:110px;min-height:110px;gap:14px}body[data-adventure="build-snowman"] .sd-nuki{position:static;width:100px!important;height:110px!important;flex-shrink:0}body[data-adventure="build-snowman"] .sd-stack,body[data-adventure="build-snowman"] .sd-stack .sd-target{width:180px;min-width:180px}body[data-adventure="build-snowman"] .sd-bank{min-width:0;gap:8px;padding:8px 12px}body[data-adventure="build-snowman"] .sd-task{gap:20px}body[data-adventure="build-snowman"] .sd-sample{max-width:120px;padding:10px;gap:5px}body[data-adventure="build-snowman"] .sd-instruction{font-size:22px}}
@media(max-width:500px) and (orientation:portrait){body[data-adventure="build-snowman"] .sd-board{--sd-ball:clamp(90px,18cqh,110px);--sd-snowman-ball:clamp(115px,23cqh,140px)}body[data-adventure="build-snowman"] .sd-bank{gap:6px;padding:7px 10px}body[data-adventure="build-snowman"] .sd-task-header .sd-instruction{max-width:220px}body[data-adventure="build-snowman"] .sd-hint{font-size:15px;padding:6px 12px 6px 32px}body[data-adventure="build-snowman"] .sd-sample{max-width:105px;padding:7px;gap:4px}body[data-adventure="build-snowman"] .sd-sample img{width:36px;height:36px}}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .sd-board{--sd-slot:clamp(44px,21cqh,68px);--sd-ball:clamp(88px,35cqh,110px);--sd-snowman-ball:clamp(80px,36cqh,110px);grid-template-rows:36px minmax(0,1fr) auto;gap:4px}body[data-adventure="build-snowman"] .sd-task-header{height:36px;min-height:36px}body[data-adventure="build-snowman"] .sd-nuki{position:absolute;left:4%;top:45px;width:86px!important;height:100px!important}body[data-adventure="build-snowman"] .sd-stack,body[data-adventure="build-snowman"] .sd-stack .sd-target{width:130px;min-width:130px}body[data-adventure="build-snowman"] .sd-bank{width:100%;min-width:0;max-width:100%;align-self:stretch;padding:6px;gap:8px}body[data-adventure="build-snowman"] .sd-task{gap:20px}body[data-adventure="build-snowman"] .sd-sample{max-width:105px;padding:6px;gap:3px}body[data-adventure="build-snowman"] .sd-sample img{width:30px;height:30px}body[data-adventure="build-snowman"] .sd-buttons{grid-template-columns:repeat(2,44px);width:88px;min-width:88px;top:22%}body[data-adventure="build-snowman"] .sd-buttons .sd-item{min-width:44px;min-height:44px}body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:24px;height:24px}body[data-adventure="build-snowman"] .sd-hint{padding-block:3px}}
body[data-adventure="build-snowman"] .sd-buttons{min-height:156px}@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .sd-buttons{min-height:132px}}
body[data-adventure="build-snowman"] .sd-buttons{grid-auto-rows:52px;align-content:start}@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .sd-buttons{grid-auto-rows:44px}}
/* Buttons follow one center line on the middle and lower snowballs. */
body[data-adventure="build-snowman"] .sd-buttons{display:block;left:50%;right:auto;bottom:auto;width:clamp(44px,calc(var(--sd-snowman-ball)*.4),72px);min-width:0;min-height:0;transform:translateX(-50%);padding:0}
body[data-adventure="build-snowman"] .sd-buttons .sd-item{position:absolute;left:50%;transform:translateX(-50%);width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center}
body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:26px;height:26px;max-width:none;max-height:none}
body[data-adventure="build-snowman"] .sd-sample img{width:28px;height:28px}
body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-bank{min-width:0;width:82px;padding:8px}
body[data-adventure="build-snowman"] .sd-bank [data-source="button"] img{width:32px;height:32px}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .sd-buttons .sd-item{width:24px;height:24px;min-width:24px;min-height:24px}body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:18px;height:18px}body[data-adventure="build-snowman"] .sd-sample img{width:24px;height:24px}body[data-adventure="build-snowman"] .sd-bank [data-source="button"] img{width:28px;height:28px}}
body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:26px!important;height:26px!important}@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .sd-buttons .sd-item img{width:18px!important;height:18px!important}}


/* Snowman comparison: two equal-scale figures and a finite, visible button tray. */
body[data-adventure="build-snowman"] .sd-snowman-wrap{display:flex;flex-direction:column;align-items:center;gap:16px}
body[data-adventure="build-snowman"] .sd-snowman-label{margin:0;font:600 20px Fredoka,sans-serif}
body[data-adventure="build-snowman"] .sd-model-button{position:absolute;left:50%;transform:translateX(-50%);object-fit:contain;padding:8px}
body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task{gap:clamp(28px,6vw,100px)}
body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-bank{width:auto;min-height:60px;max-width:440px;align-self:center;gap:0;padding:3px 6px;flex-wrap:nowrap}
body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"]{width:56px;height:56px;min-width:56px;min-height:56px;padding:12px}
body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"] img{width:32px!important;height:32px!important}
body[data-adventure="build-snowman"] .sd-buttons:empty::after{display:none}
body[data-adventure="build-snowman"] .sd-model-snowman .sd-buttons{pointer-events:none}
@media(orientation:portrait){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-bank{max-width:340px;flex-wrap:wrap}body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"]{width:44px;height:44px;min-width:44px;min-height:44px;padding:8px}body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"] img{width:28px!important;height:28px!important}body[data-adventure="build-snowman"] .sd-snowman-label{font-size:17px}}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task{gap:35px}body[data-adventure="build-snowman"] .sd-snowman-wrap{gap:8px}body[data-adventure="build-snowman"] .sd-snowman-label{font-size:15px}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-bank{width:156px;flex-wrap:wrap;gap:0}body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"]{width:44px;height:44px;min-width:44px;min-height:44px;padding:8px}body[data-adventure="build-snowman"] .sd-bank [data-source^="button:"] img{width:28px!important;height:28px!important}body[data-adventure="build-snowman"] .sd-model-button{padding:4px}}
body[data-adventure="build-snowman"] .sd-model-button{display:grid;place-items:center;padding:0}
body[data-adventure="build-snowman"] .sd-model-button img{width:26px!important;height:26px!important;object-fit:contain}
@media(orientation:portrait){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-board{padding-bottom:66px}}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-board{--sd-snowman-ball:100px;position:relative;grid-template-columns:1fr 38%;grid-template-rows:minmax(0,1fr);gap:0}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task{grid-row:1;gap:35px}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task-header{position:absolute;right:0;top:0;width:38%;height:auto}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-instruction{font-size:18px}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-nuki{display:none}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-bank{grid-row:1;align-self:center}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-hint{position:absolute;right:0;bottom:20px;width:38%;font-size:13px}body[data-adventure="build-snowman"] .sd-model-button img{width:18px!important;height:18px!important}}
@media(orientation:portrait){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-board{padding-bottom:0}}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task{height:228px;align-self:center;overflow:visible}}
@media(orientation:landscape) and (max-height:650px){body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"]{overflow:visible}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-board{--sd-snowman-ball:108px}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task{height:246px}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-task-header{display:block;min-height:0}body[data-adventure="build-snowman"] .wm-board-slot[data-phase="buttons"] .sd-instruction{margin:0;max-width:none}}
