/* 3d-lab/adventure.css */
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,'Malgun Gothic',sans-serif;color:#234b50;background:#eff5ed}button,a{touch-action:manipulation}button{border:0;border-radius:20px;min-height:58px;padding:12px 20px;background:#2e8f81;color:white;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 5px 0 #206c6430}button:active{transform:translateY(3px);box-shadow:none}button:disabled{opacity:.55;cursor:default}[hidden]{display:none!important}a{color:#347d72;text-decoration:none}header{height:77px;display:flex;align-items:center;gap:16px;padding:10px 24px;background:#f8fbf5;position:relative;z-index:3}header a,header button{width:54px;min-height:52px;padding:10px;display:grid;place-items:center;border-radius:16px;background:#e2ede3;color:#3e766e;font-size:25px}header button{margin-left:auto}header h1{font-size:22px;margin:3px 0 0}header small{font-size:11px;color:#689488;letter-spacing:1px}#adventure{position:relative;min-height:100dvh;max-width:1440px;margin:auto;overflow:hidden}#view{height:47dvh;min-height:250px;position:relative;background:#bcdeda}#world{width:100%;height:100%;display:block;touch-action:none}#bubble{position:absolute;top:14px;left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:20px;background:#fffff5ee;box-shadow:0 5px 20px #619d8320;font-size:16px;font-weight:800;max-width:90%;text-align:center;min-width:240px}#hub,#activity,#finish{padding:19px 26px 24px;max-width:1040px;margin:auto;text-align:center}h2{margin:4px 0 16px;font-size:24px}#doors{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}#doors button{background:#e5ede0;color:#34594d;border:2px solid #d4e2cd;display:flex;align-items:center;gap:10px;text-align:left;padding:15px;min-height:130px;box-shadow:0 6px 0 #bbcdbc33}#doors button:nth-child(2){background:#faedc9;border-color:#eddeb9}#doors button:nth-child(3){background:#f7ded4;border-color:#edd0c4}#doors button:nth-child(4){background:#dbe9ef;border-color:#c4dce6}.door-art{height:75px;width:75px;flex-shrink:0;display:grid;place-items:center;background:#ffffff70;border-radius:20px;overflow:hidden}.door-art img{height:95%;width:95%;object-fit:contain}.door-art b{font-size:47px;color:#5b8770}.door-copy strong{font-size:21px;display:block}.door-copy small{display:block;font-size:12px;margin-top:4px;line-height:1.6;font-weight:500}.door-copy em{font-size:11px;font-style:normal;color:#518979}#hub>a{display:inline-block;font-size:13px;margin:19px 0 0}.activity-heading{display:flex;align-items:center;gap:15px;max-width:740px;margin:auto}.activity-heading div{flex:1}.activity-heading button{width:56px;background:#dfece2;color:#478879;font-size:24px}.activity-heading h2{margin:2px 0;font-size:24px}.activity-heading small{font-size:12px;color:#7a9b8b}#detail{font-size:14px;color:#68897c;margin:9px 0 14px}#work{min-height:125px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px}#work button.choice{width:150px;min-height:145px;border:3px solid #d7e5d4;background:#fcfff7;color:#365e57;box-shadow:0 5px 0 #cadac630;padding:10px}#work .choice img{height:90px;max-width:115px;object-fit:contain;display:block;margin:auto}#work .choice strong{display:block;font-size:22px}#work .choice.chosen{border-color:#51b69d;background:#e6f8de}#work .choice.dim{opacity:.35}#work .egg-row{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}#work .egg{width:74px;min-height:93px;border-radius:18px;padding:5px;background:#fcfff7;border:2px solid #d9e4d3;box-shadow:0 4px 0 #cfdbcb55;position:relative;color:#467366}#work .egg img{height:73px;width:62px;object-fit:contain}#work .egg.touched{border-color:#55b391;background:#e0f3d7}#work .egg b{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;background:#f1f8e2af;border-radius:16px}#work .order{width:100%;font-size:22px;font-weight:800}.send{background:#e7b768;color:#4c573c;min-height:65px}.work-light{display:inline-flex;flex-direction:column;gap:7px;border-radius:21px;background:#507b70;padding:12px}.work-light i{width:30px;height:30px;border-radius:50%;background:#354f4a}.work-light[data-go="false"] i:first-child{background:#f59a7c}.work-light[data-go="true"] i:last-child{background:#bde49e;box-shadow:0 0 15px #bdedac99}.prediction{display:grid;place-items:center}.prediction svg{height:73px;width:100px}#next{margin-top:13px;min-width:170px}#finish h2{color:#488979}#facts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:20px 0}.fact{background:#e0edde;padding:14px;border-radius:17px;max-width:200px}.fact img{width:65px;height:65px;object-fit:contain;display:block;margin:auto}.fact b{display:block;margin-top:6px;font-size:15px}.fact p{margin:5px 0;font-size:12px;line-height:1.6}#loading,#fallback{position:absolute;top:30%;left:50%;transform:translateX(-50%);background:#faffec;padding:22px;border-radius:20px;text-align:center;z-index:10;min-width:280px}
@media(max-width:640px){header{height:65px;padding:8px 13px;gap:10px}header a,header button{width:45px;min-height:45px;font-size:22px}header h1{font-size:18px}header small{font-size:9px}#view{height:39dvh;min-height:220px}#bubble{font-size:14px;top:9px;min-width:200px;padding:9px 15px}#hub,#activity,#finish{padding:16px 13px 24px}h2{font-size:21px}#doors{grid-template-columns:1fr 1fr;gap:10px}#doors button{min-height:113px;padding:10px;gap:8px}.door-art{width:54px;height:60px;border-radius:15px}.door-art b{font-size:38px}.door-copy strong{font-size:18px}.door-copy small{font-size:10px}.door-copy em{font-size:9px}.activity-heading h2{font-size:20px}.activity-heading button{width:46px;min-height:48px}#detail{font-size:12px;line-height:1.6}#work{gap:9px}#work button.choice{width:104px;min-height:123px;padding:7px;border-radius:17px}#work .choice img{height:71px;max-width:86px}#work .choice strong{font-size:19px}#work .egg{width:65px;min-height:79px}#work .egg img{height:64px;width:52px}#work .order{font-size:20px}.fact{max-width:155px;padding:12px}}
@media(max-height:520px) and (min-width:700px){header{height:55px}#view{height:calc(100dvh - 55px);width:55%;float:left;min-height:0}#hub,#activity,#finish{width:45%;margin-left:55%;padding:12px 18px}#doors{grid-template-columns:1fr 1fr;gap:8px}#doors button{min-height:94px;padding:9px;gap:7px}.door-art{width:45px;height:50px}.door-copy strong{font-size:17px}.door-copy small{font-size:10px}#hub h2{font-size:19px;margin:4px 0 12px}#hub>a{font-size:11px;margin:12px 0}#work button.choice{width:92px;min-height:116px}#work .choice img{height:65px;max-width:76px}.activity-heading h2{font-size:18px}.activity-heading button{width:42px;min-height:42px}#detail{font-size:11px}#work .egg{width:54px;min-height:72px}#work .egg img{height:58px;width:46px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none!important}}

/* The ride has no activity choices yet: give that space to the village road.
   The map/back and sound controls stay available throughout the journey. */
body[data-journey-view="on"] #adventure{height:100dvh;min-height:320px;display:flex;flex-direction:column}
body[data-journey-view="on"] #adventure>header{flex:0 0 auto}
body[data-journey-view="on"] #adventure #view{flex:1 1 auto;height:auto;min-height:0;width:100%;float:none}
body[data-journey-view="on"] #adventure #activity{flex:0 0 auto;width:100%;max-width:none;margin:0;padding:10px 14px 12px}
body[data-journey-view="on"] #activity .activity-heading{max-width:740px}
body[data-journey-view="on"] #activity .activity-heading h2{font-size:18px}
body[data-journey-view="on"] #activity #detail{margin:4px 0 0;font-size:12px}
body[data-journey-view="on"] #activity #work,body[data-journey-view="on"] #activity #repeat,body[data-journey-view="on"] #activity #next{display:none}
@media(max-height:520px){body[data-journey-view="on"] #adventure #activity{padding:6px 12px 8px}body[data-journey-view="on"] #activity .activity-heading small,body[data-journey-view="on"] #activity #detail{display:none}body[data-journey-view="on"] #activity .activity-heading button{min-width:46px;min-height:44px}}

/* Optional, object-linked village play; no animation competes with lessons. */
#view[data-discovery-focus="on"] #bubble{opacity:0;pointer-events:none}
#view .discovery-layer{position:absolute;inset:0;z-index:4;pointer-events:none}
#view .discovery-pin{position:absolute;display:grid;grid-template-rows:35px 18px;place-items:center;width:72px;height:64px;min-height:64px;padding:3px 5px;border:3px solid #fff8dd;border-radius:23px;background:#fffdf2;color:#38635a;box-shadow:0 3px 0 #526f5738;transform:translate(-50%,-50%);touch-action:manipulation;pointer-events:auto;line-height:1.1}
#view .discovery-pin svg{width:40px;height:35px;overflow:visible}
#view .discovery-pin span{font-size:13px;font-weight:850}
#view .discovery-pin:active{transform:translate(-50%,-50%) scale(.96);box-shadow:0 1px 0 #526f5738}
#view .discovery-pin:focus-visible{outline:3px solid #235c59;outline-offset:3px}
#view .discovery-note{position:absolute;bottom:var(--discovery-note-bottom,8px);left:50%;transform:translateX(calc(-50% + var(--discovery-note-x,0px)));margin:0;max-width:88%;padding:9px 18px;border-radius:22px;background:#fffdf2f5;box-shadow:0 2px 8px #456b5720;color:#38635a;text-align:center;font-size:16px;font-weight:800;pointer-events:none}
#view .discovery-note[data-discovery-note-occluded="on"]{clip-path:inset(50%)}

/* The same four pictures remain available in the village and during a walk. */
#hub .village-play-menu{margin:18px auto 0;max-width:740px}
#hub .village-play-menu h3{font-size:17px;margin:0 0 10px;color:#52776a}
#hub .village-play-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
#hub .village-play-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:82px;padding:7px 4px;background:#fff8e6;color:#38635a;border:2px solid #d9dfc8;border-radius:19px;font-size:15px;line-height:1.2;box-shadow:0 4px 0 #a2b49b40}
#hub .village-play-choices svg{width:42px;height:38px;pointer-events:none}
#hub .village-play-choices span{pointer-events:none}
#hub .village-visit-status{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:5px}
#hub .village-visit-copy{display:flex;align-items:center;gap:8px;min-width:0;color:#38635a;font-size:15px;line-height:1.3}
#hub .village-visit-copy svg{width:40px;height:36px;flex:none}
#hub .village-visit-status button{min-height:48px;padding:7px 12px;font-size:13px;background:#e4eee0;color:#38635a;box-shadow:0 3px 0 #a2b49b40}
#hub .village-play-menu button:focus-visible{outline:3px solid #245f5b;outline-offset:3px}
body[data-hub-walk="on"] #adventure #hub{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;padding:7px 9px;min-height:98px;max-width:none}
body[data-hub-walk="on"] #adventure #hub #stroll{min-width:0;width:78px;max-width:78px;min-height:76px;padding:5px;gap:2px;flex-direction:column;font-size:12px;border-radius:18px}
body[data-hub-walk="on"] #adventure #hub .village-play-menu{margin:0;max-width:none;min-width:0}
body[data-hub-walk="on"] #adventure #hub .village-play-menu h3{display:none}
body[data-hub-walk="on"] #adventure #hub .village-play-choices{gap:4px}
body[data-hub-walk="on"] #adventure #hub .village-play-choices button{min-height:76px;padding:3px 1px;font-size:11px;border-radius:16px;overflow-wrap:anywhere}
body[data-hub-walk="on"] #adventure #hub .village-play-choices svg{width:34px;height:32px}
body[data-hub-walk="on"] #adventure #hub .village-visit-status{gap:5px;justify-content:flex-start;padding:0}
body[data-hub-walk="on"] #adventure #hub .village-visit-copy{flex:1 1 100%;font-size:13px}
body[data-hub-walk="on"] #adventure #hub .village-visit-copy svg{width:32px;height:30px}
body[data-hub-walk="on"] #adventure #hub .village-visit-status button{min-height:40px;padding:5px 10px;font-size:12px}
body[data-hub-walk="on"] #adventure #view{bottom:var(--village-footer-space,116px)}
@media(max-width:430px){body:not([data-hub-walk="on"]) #hub .village-play-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:450px) and (orientation:landscape){body[data-hub-walk="on"] #adventure #hub{min-height:80px;padding:4px 9px;grid-template-columns:70px minmax(0,1fr)}body[data-hub-walk="on"] #adventure #hub #stroll{width:70px;max-width:70px;min-height:66px}body[data-hub-walk="on"] #adventure #hub .village-play-choices button{min-height:64px;flex-direction:row;gap:5px;font-size:13px}body[data-hub-walk="on"] #adventure #hub .village-visit-copy{flex:1 1 30%}body[data-hub-walk="on"] #adventure #view{bottom:var(--village-footer-space,94px)}}

/* Keep the two sets of concrete activities in reach on the first map. */
body[data-village-hub="on"]:not([data-hub-walk="on"]) #adventure #view{height:27dvh;min-height:180px}
body[data-village-hub="on"]:not([data-hub-walk="on"]) #hub{padding-top:12px}
body[data-village-hub="on"]:not([data-hub-walk="on"]) #hub .village-play-menu{margin:12px auto 14px}
#adventure #hub #doors button{min-height:102px;padding:12px;gap:8px}
#adventure #hub #doors .door-art{width:52px;height:58px;border-radius:16px}
#adventure #hub #doors .door-copy strong{font-size:18px;line-height:1.25;word-break:keep-all}
#adventure #hub #doors .door-copy small{line-height:1.4;word-break:keep-all}
@media(max-width:640px){body[data-village-hub="on"]:not([data-hub-walk="on"]) #adventure #view{height:24dvh;min-height:170px}#adventure #hub #doors button{min-height:98px;padding:9px}#adventure #hub #doors .door-art{width:42px;height:50px}#adventure #hub #doors .door-copy strong{font-size:16px}body:not([data-hub-walk="on"]) #hub .village-play-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#hub .village-play-choices button{min-height:74px;font-size:13px}#hub .village-play-choices svg{width:36px;height:33px}}


/* 3d-lab/adventure-compare.css */
.compare-step{width:100%;font-weight:800;color:#6b8c71;font-size:14px}
.compare-baskets{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:min(100%,560px)}
.compare-basket{padding:12px;border:3px solid #ebd49b;border-radius:24px;background:#fff5db;box-shadow:0 5px 0 #dcb87922}
.compare-basket:nth-child(2){border-color:#b5d3b1;background:#eaf5e4}
.basket-name{font-weight:800;font-size:17px;color:#6b7b57;margin-bottom:9px}
.count-tray{display:grid;grid-template-columns:repeat(2,74px);justify-content:center;align-content:center;gap:9px;min-height:155px}
#work .count-egg{position:relative;width:74px;height:74px;min-height:74px;padding:5px;border-radius:20px;background:#fffdf3;border:2px solid #e7dfbf;box-shadow:0 3px 0 #aa98561c;color:#386d63}
.count-egg img{width:54px;height:58px;object-fit:contain}
.count-egg b{position:absolute;inset:0;display:grid;place-items:center;border-radius:18px;background:#ecf9debf;font-size:29px}
#work .count-egg.counted{border-color:#65b89c;background:#effbde}
.basket-total{display:block;min-height:30px;font-size:22px;margin:10px 0 0;color:#39736a}
#work .compare-pick{width:100%;margin-top:9px;border-radius:16px;min-height:56px;background:#458d7e;color:#fff;font-size:19px}
.compare-basket.chosen{border-color:#3baf91;background:#e2f8d7}
.compare-basket.try-again{border-style:dashed}
@media(max-width:640px){.compare-step{font-size:12px}.compare-baskets{gap:10px}.compare-basket{padding:9px;border-radius:20px}.basket-name{font-size:14px}.count-tray{grid-template-columns:repeat(2,58px);min-height:124px;gap:7px}#work .count-egg{width:58px;height:58px;min-height:58px;padding:3px;border-radius:15px}.count-egg img{width:43px;height:47px}.count-egg b{font-size:26px;border-radius:13px}.basket-total{font-size:21px;margin-top:7px}#work .compare-pick{min-height:52px;font-size:17px;margin-top:7px}}
@media(max-height:520px) and (min-width:700px){.compare-step{font-size:11px}.compare-baskets{gap:9px}.compare-basket{padding:6px;border-radius:16px}.basket-name{font-size:12px;margin-bottom:4px}.count-tray{grid-template-columns:repeat(2,46px);min-height:97px;gap:5px}#work .count-egg{width:46px;height:46px;min-height:46px;padding:2px;border-radius:12px}.count-egg img{width:34px;height:39px}.count-egg b{font-size:23px;border-radius:11px}.basket-total{font-size:18px;margin-top:4px;min-height:22px}#work .compare-pick{font-size:15px;min-height:44px;margin-top:5px}}
@media(max-height:520px) and (min-width:700px){#activity{padding:8px 16px}.activity-heading button{height:42px;min-height:42px;padding:6px;font-size:20px}.activity-heading small{font-size:10px}#detail{margin:5px 0 9px;line-height:1.4}#work{gap:7px}.compare-step{line-height:1.2}}


/* 3d-lab/adventure-startup-v204.css */
body[data-startup=preparing] #view{height:calc(100dvh - 77px);width:100%;float:none;min-height:250px}#bubble:empty{display:none}
#view>#loading{position:absolute;top:auto;left:50%;bottom:15px;transform:translateX(-50%);width:min(90%,380px);min-width:0;height:auto;padding:14px 18px;border-radius:22px;background:#fffff2f2;box-shadow:0 8px 22px #507c692a;color:#365f57;text-align:center}
#loading strong{display:block;font-size:17px}#loading small{display:block;margin-top:7px;color:#67897c;font-size:12px}
.startup-steps{display:flex;justify-content:center;gap:11px;margin:12px 0 0}.startup-steps span{display:flex;align-items:center;gap:5px;font-size:11px;color:#78968c}.startup-steps i{width:9px;height:9px;display:block;border-radius:50%;background:#c7ddd0;animation:startup-breathe 1.8s ease-in-out infinite}.startup-steps [data-done=true]{color:#367567}.startup-steps [data-done=true] i{background:#4aa58e;animation:none}
#loading-retry{min-height:44px;margin-top:10px;font-size:13px;padding:8px 16px}
#fallback{text-align:center;padding:22px 16px;color:#3c7164}#fallback strong{display:block;font-size:19px;margin-bottom:12px}#fallback button,#fallback a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;margin:5px;border-radius:17px}#fallback a{background:#e0ede1;font-size:14px;font-weight:700}
@keyframes startup-breathe{50%{opacity:.5;transform:scale(.85)}}
@media(max-width:600px){body[data-startup=preparing] #view{height:calc(100dvh - 65px)}}
@media(max-height:520px) and (min-width:700px){body[data-startup=preparing] #view{height:calc(100dvh - 55px)}#view>#loading{bottom:12px;padding:12px;width:min(90%,420px)}#loading strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.startup-steps i{animation:none}}


/* 3d-lab/adventure-boot-v223.css */
/* This ordinary link still works if the entry script itself cannot load.
   The reveal has zero duration; reduced-motion users get the same recovery. */
#boot-reload{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;padding:8px 16px;border-radius:14px;background:#dcece2;color:#365f57;font-size:13px;visibility:hidden;animation:boot-retry-reveal 0s 18s forwards}
#boot-reload[hidden]{display:none}
@keyframes boot-retry-reveal{to{visibility:visible}}


/* 3d-lab/adventure-words-v205.css */
body[data-lesson=korean] #view{height:40dvh;min-height:240px}body[data-lesson=korean] .activity-heading button{min-height:44px;min-width:44px}
#work .word-progress{width:100%;display:flex;justify-content:center;gap:8px;margin-bottom:2px}
.word-progress i{display:block;width:18px;height:7px;border-radius:5px;background:#d4e3d5}.word-progress i[data-current=true]{background:#d8b364}.word-progress i[data-done=true]{background:#66a38d}
.word-find{display:flex;justify-content:center;gap:12px}.word-board{width:min(100%,580px);display:grid;justify-items:center;gap:12px;background:#faf9e9;border:2px solid #e1dec3;border-radius:24px;padding:12px 18px}
.word-model{display:flex;align-items:center;justify-content:center;gap:15px}.word-model img{height:50px;width:64px;object-fit:contain}.word-model strong{font-size:34px;letter-spacing:6px;color:#34695e}
.word-slots,.word-tiles{display:flex;justify-content:center;gap:12px}.word-slot{width:65px;height:60px;display:grid;place-items:center;border:3px dashed #c9d5bd;background:#f1f2df;color:#c2c9b0;border-radius:16px;font-size:34px;font-weight:800}.word-slot[data-active=true]{border-color:#d3aa56;background:#fff4d6}.word-slot[data-filled=true]{border-style:solid;border-color:#70ad8e;background:#e3f1d7;color:#377361}.word-slot[data-help=true]{color:#98b491}
#work .word-tile{min-height:66px;min-width:68px;padding:8px 13px;border:2px solid #d1e1c8;background:#fcfff6;color:#3f7865;border-radius:17px;font-size:34px;line-height:1.1;box-shadow:0 4px 0 #cadaae}.word-tile.word-miss{border-color:#dac696}.word-tile.word-used{opacity:.30;box-shadow:none}.word-note{color:#6d8d74;font-size:12px}
@media(max-width:640px){body[data-lesson=korean] #view{height:36dvh;min-height:235px}.word-board{gap:10px;padding:11px 9px}.word-find{gap:8px}.word-model img{height:44px;width:55px}.word-model strong{font-size:29px}.word-slots,.word-tiles{gap:9px}.word-slot{height:58px;width:60px;font-size:31px}#work .word-tile{min-width:62px;min-height:62px;font-size:30px;padding:8px}.word-note{font-size:11px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=korean] #view{height:calc(100dvh - 55px);min-height:0}body[data-lesson=korean] #activity{padding:9px 12px}body[data-lesson=korean] #detail{margin:5px 0 8px;font-size:10px}.word-board{gap:7px;padding:8px}.word-model img{height:35px;width:44px}.word-model strong{font-size:27px}.word-slot{height:48px;width:53px;font-size:27px}#work .word-tile{min-height:52px;min-width:53px;font-size:27px;padding:5px 8px}.word-note{font-size:10px}.word-find{gap:7px}.word-progress{margin:0}}


/* 3d-lab/adventure-social-v207.css */
#work button.share-friend{width:190px;min-height:182px}
.share-friend svg{display:block;width:108px;height:104px;margin:0 auto 7px}
.share-state{display:block;font-size:13px;margin-top:5px;color:#749387}
.share-friend.chosen .share-state{color:#2a8070}
@media(max-width:640px){#work button.share-friend{width:138px;min-height:163px}.share-friend svg{width:92px;height:90px}.share-state{font-size:12px}}
@media(max-height:520px) and (min-width:700px){#work button.share-friend{width:128px;min-height:147px}.share-friend svg{width:82px;height:76px}#work .share-friend strong{font-size:18px}}


/* 3d-lab/adventure-science-v209.css */
#work .science-steps{width:100%;display:flex;justify-content:center;gap:8px;margin:0 0 5px;font-size:13px;color:#6f938d}
.science-steps span{padding:7px 14px;border-radius:15px;background:#e2ede5}
.science-steps .current{background:#b5e0d6;color:#245d58;font-weight:800}
#work button.science-choice{width:180px;min-height:145px}
.science-diagram{display:block;width:132px;height:93px;margin:auto}
#work .science-choice.try-again{border-color:#e5bf7c}
#work button.science-drop{background:#d3edf0;color:#2d656e;border:3px solid #a1d1d6;min-width:240px;min-height:130px}
.science-drop strong{display:block;font-size:23px}
@media(max-width:640px){#work button.science-choice{width:130px;min-height:137px}.science-diagram{width:112px;height:82px}.science-steps span{padding:6px 11px}#work button.science-drop{min-width:215px;min-height:125px}}
@media(max-height:520px) and (min-width:700px){#work button.science-choice{width:115px;min-height:124px}.science-diagram{width:95px;height:68px}#work button.science-drop{min-width:195px;min-height:116px}.science-drop strong{font-size:20px}}


/* 3d-lab/adventure-count-v210.css */
#work .count-request{width:100%;display:grid;grid-template-columns:1fr auto;gap:8px 14px;align-items:center;padding:12px 18px;border-radius:22px;background:#fff3d8;border:2px solid #ebd6a8;max-width:470px;text-align:left}
.count-request strong{font-size:20px}.count-total{font-size:24px;color:#3d7966}.count-total[data-over=true]{color:#9a6324}.count-spaces{grid-column:1/-1;display:flex;gap:10px;justify-content:center}.count-space{width:58px;height:67px;display:grid;place-items:center;border:3px dashed #c7b797;border-radius:18px;background:#fff9ec}.count-space img{width:46px;height:55px;object-fit:contain;opacity:.12;transition:opacity .18s,transform .18s}.count-space[data-filled=true]{border-style:solid;border-color:#78b09a;background:#e6f2d8}.count-space[data-filled=true] img{opacity:1;transform:scale(.92)}.count-space[data-received=true]{box-shadow:0 0 0 3px #ebce82}
body[data-lesson=count] #view{height:28dvh;min-height:160px}body[data-lesson=count] #activity{padding:10px 18px 16px}body[data-lesson=count] #detail{margin:6px 0 9px}body[data-lesson=count] #work{max-width:670px;margin:auto;gap:10px}body[data-lesson=count] .send{width:100%;max-width:470px}body[data-lesson=count] .egg-row{width:100%}
@media(max-width:640px){.count-request strong{font-size:18px}#work .count-request{padding:8px 12px;gap:6px}.count-space{width:50px;height:56px}.count-space img{width:39px;height:47px}body[data-lesson=count] #work .egg-row{display:grid;grid-template-columns:repeat(4,65px)}body[data-lesson=count] #work .egg{width:65px}}
@media(min-width:700px){body[data-lesson=count] #view{height:calc(100dvh - 77px);width:55%;float:left;min-height:0}body[data-lesson=count] #activity{width:45%;margin-left:55%;max-width:none}body[data-lesson=count] #work .egg-row{gap:7px}body[data-lesson=count] #work .egg{width:65px}body[data-lesson=count] #work .egg img{width:52px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=count] #view{height:calc(100dvh - 55px);min-height:0}body[data-lesson=count] #activity{padding:8px 12px}body[data-lesson=count] #detail{display:none}body[data-lesson=count] .activity-heading button{min-height:44px}#work .count-request{padding:5px 10px;gap:3px 8px}.count-request strong{font-size:16px}.count-total{font-size:20px}.count-space{width:38px;height:38px}.count-space img{width:28px;height:32px}body[data-lesson=count] #work{gap:7px;margin-top:6px}body[data-lesson=count] #work .egg-row{display:grid;grid-template-columns:repeat(4,56px)}body[data-lesson=count] #work .egg{width:56px;min-height:62px}body[data-lesson=count] #work .egg img{height:49px;width:42px}body[data-lesson=count] .send{min-height:58px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)){grid-template-columns:repeat(6,minmax(44px,1fr));max-width:335px;gap:5px}body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)) .egg{width:100%;padding:4px;min-height:62px}body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)) .egg img{width:36px;height:47px}}


/* 3d-lab/adventure-compare-v211.css */
body[data-lesson=quantity] #view{height:28dvh;min-height:160px}body[data-lesson=quantity] #activity{padding:10px 18px 16px}body[data-lesson=quantity] #detail{margin:6px 0 9px}body[data-lesson=quantity] #work{gap:9px}.compare-basket.received{box-shadow:0 0 0 3px #e1be73}.compare-basket.received .basket-total{font-size:18px}.compare-baskets{width:min(100%,500px)}
@media(min-width:700px){body[data-lesson=quantity] #view{height:calc(100dvh - 77px);width:55%;float:left;min-height:0}body[data-lesson=quantity] #activity{width:45%;margin-left:55%;max-width:none}}
@media(max-width:640px){body[data-lesson=quantity] .count-tray{min-height:124px}body[data-lesson=quantity] .basket-total{min-height:24px}.compare-basket.received .basket-total{font-size:16px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=quantity] #view{height:calc(100dvh - 55px)}body[data-lesson=quantity] #activity{padding:8px 12px}body[data-lesson=quantity] #detail{display:none}body[data-lesson=quantity] .activity-heading button{min-height:44px}body[data-lesson=quantity] .compare-step{margin-top:4px}body[data-lesson=quantity] .compare-basket{padding:5px}body[data-lesson=quantity] #work{gap:6px}body[data-lesson=quantity] .basket-total{font-size:17px;min-height:22px}body[data-lesson=quantity] .compare-basket.received .basket-total{font-size:14px}}


/* 3d-lab/adventure-traffic-v213.css */
#adventure:has(#activity:not([hidden]) #cross) #bubble{top:auto;bottom:10px}
#work .traffic-light{flex-direction:row;gap:12px;padding:13px 17px;box-shadow:0 4px 0 #44685d20}
#work .traffic-go{min-width:235px;min-height:82px;background:#ece5d0;color:#5d7668;border:3px solid #d6dfce;font-size:23px;white-space:nowrap}
#work .traffic-go.ready{background:#d3eebc;border-color:#91c994;color:#2e735b}
@media(max-width:640px){#work .traffic-go{min-width:226px;font-size:21px}}
@media(max-height:520px) and (min-width:700px){#work .traffic-go{min-height:70px;min-width:220px;font-size:20px}#work .traffic-light{padding:9px 15px}}


/* 3d-lab/adventure-words-v216.css */
body[data-lesson=korean] #view{height:clamp(235px,calc(100dvh - 440px),42dvh);min-height:235px}
body[data-lesson=korean] #activity{padding:12px 20px 16px}
body[data-lesson=korean] #detail{margin:6px 0 8px;font-size:12px}
body[data-lesson=korean] #work{gap:9px}
body[data-lesson=korean] .word-board{gap:8px;padding:10px 14px}
body[data-lesson=korean] .word-model img{height:42px}
body[data-lesson=korean] .word-model strong{font-size:30px}
body[data-lesson=korean] .word-slot{height:56px}
body[data-lesson=korean] #work .word-tile{min-height:62px}
.word-flight{position:fixed;z-index:40;display:grid;place-items:center;border-radius:17px;border:2px solid #77a78a;background:#f7ffed;color:#346e62;font-size:32px;font-weight:800;box-shadow:0 6px 16px #376c6130;pointer-events:none;user-select:none}
.word-flight-hint{background:#e5f1d6bb;border-style:dashed;box-shadow:none}
.word-slot.word-guided{border-color:#82b28a;color:#8eaa80}.word-tile.word-guided{border-color:#82b28a}
.word-slot[data-speaking=true]{border-color:#cda253;background:#fff0bd;color:#735a26;box-shadow:0 0 0 3px #e9cd8233}
.word-slot[data-filled=true]{animation:word-arrive 280ms ease-out}
@keyframes word-arrive{0%{transform:scale(.86)}65%{transform:scale(1.07)}100%{transform:scale(1)}}
@media(max-width:640px){body[data-lesson=korean] .word-model img{height:40px}body[data-lesson=korean] .word-model strong{font-size:27px}}
@media(max-height:680px) and (min-width:700px){body[data-lesson=korean] header{height:55px}body[data-lesson=korean] #view{width:55%;float:left;height:calc(100dvh - 55px);min-height:0}body[data-lesson=korean] #activity{width:45%;margin-left:55%;padding:9px 12px}body[data-lesson=korean] .activity-heading h2{font-size:18px}body[data-lesson=korean] .word-board{gap:6px;padding:8px}body[data-lesson=korean] .word-model img{height:32px}body[data-lesson=korean] .word-model strong{font-size:26px}body[data-lesson=korean] .word-slot{height:48px}body[data-lesson=korean] #work .word-tile{min-height:52px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=korean] #view{height:calc(100dvh - 55px);min-height:0}}
@media(prefers-reduced-motion:reduce){.word-slot[data-filled=true]{animation:none}}


/* 3d-lab/adventure-readable-v219.css */
.activity-heading div{min-width:0}
.activity-heading button{flex-shrink:0;padding:8px}
.activity-heading h2,#bubble{word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty;line-height:1.45}
#work .compare-pick{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance;padding-inline:7px}
@media(max-width:640px){.activity-heading{gap:8px}.activity-heading h2{font-size:clamp(16px,4.55vw,19px)}#work .compare-pick{font-size:16px}}


/* 3d-lab/adventure-learning-view-v229.css */
/* Taller portrait phones have unused space beneath the math activity. Keep
   the existing compact layout for short phones and five/six-egg choices. */
@media(max-width:699px) and (min-height:760px){
 body[data-lesson=count]:not(:has(.egg:nth-child(5))) #view,
 body[data-lesson=quantity] #view{height:36dvh}
}


/* 3d-lab/adventure-give-v231.css */
body[data-lesson=count] #send-eggs{display:flex;align-items:center;justify-content:center;gap:16px;padding:7px 18px;min-height:76px;border:3px solid transparent;transition:background .2s,border-color .2s}body[data-lesson=count] #send-eggs[data-ready=true]{color:#fff;background:#247f70;border-color:#b0d9b4;box-shadow:0 3px 0 #19594e,0 0 0 3px #e2f0d8}.give-picture{display:flex;align-items:center;gap:10px;flex-shrink:0}.give-picture>img{width:26px;height:33px;object-fit:contain}.give-arrow{font-size:30px;line-height:1}.give-friend{width:46px;height:47px;display:block;background-repeat:no-repeat}.give-label{font-size:19px}#send-eggs[data-ready=true] .give-arrow{animation:give-forward 1.4s ease-in-out infinite}@keyframes give-forward{50%{transform:translateX(4px)}}@media(max-height:520px) and (min-width:700px){body[data-lesson=count] #send-eggs{min-height:62px;gap:9px;padding:3px 10px}.give-picture{gap:5px}.give-friend{width:35px;height:36px}.give-label{font-size:17px}}@media(prefers-reduced-motion:reduce){#send-eggs[data-ready=true] .give-arrow{animation:none}}


/* 3d-lab/adventure-math-view-v235.css */
/* Keep the real counting field large. The spoken instruction is already in
   the bubble and heading; its longer duplicate remains available to readers. */
@media(max-width:699px){
 body:is([data-lesson=count],[data-lesson=quantity]) #view{height:36dvh;min-height:230px;max-height:340px}
 body:is([data-lesson=count],[data-lesson=quantity]) #detail{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body:is([data-lesson=count],[data-lesson=quantity]) #activity{padding:8px 12px 14px}
 body:is([data-lesson=count],[data-lesson=quantity]) .activity-heading button{min-height:44px;height:44px}
 body[data-lesson=count] #work{gap:7px;margin-top:8px}
 body[data-lesson=count] #work .count-request{padding:7px 10px;gap:4px 8px}
 body[data-lesson=count] .count-request strong{font-size:17px}
 body[data-lesson=count] .count-total{font-size:22px}
 body[data-lesson=count] .count-spaces{gap:8px}
 body[data-lesson=count] .count-space{width:44px;height:46px;border-radius:14px}
 body[data-lesson=count] .count-space img{width:34px;height:39px}
 body[data-lesson=count] #work .egg-row{grid-template-columns:repeat(4,minmax(54px,65px));gap:7px;justify-content:center}
 body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)){grid-template-columns:repeat(3,minmax(64px,80px))}
 body[data-lesson=count] #work .egg{width:100%;min-height:64px;height:66px;padding:4px;border-radius:16px}
 body[data-lesson=count] #work .egg img{width:44px;height:55px}
 body[data-lesson=count] .send{min-height:70px}
}
@media(max-width:699px) and (min-height:760px){
 body:is([data-lesson=count],[data-lesson=quantity]) #view{height:40dvh}
}
@media(max-width:699px) and (max-height:699px){
 body:is([data-lesson=count],[data-lesson=quantity]) #view{height:32dvh;min-height:190px}
}
@media(max-height:520px) and (min-width:700px){
 body[data-lesson=count] #activity{padding-inline:8px}
 body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)){max-width:none}
}


/* 3d-lab/adventure-controls-v236.css */
/* Keep the two lesson controls reachable without shrinking the play field.
   Explicit flex basis prevents the landscape rule from reducing them to42px. */
body:is([data-lesson=count],[data-lesson=quantity]) .activity-heading{gap:8px}
body:is([data-lesson=count],[data-lesson=quantity]) .activity-heading button{
  flex:0 0 56px;width:56px;min-width:56px;height:56px;min-height:56px;padding:8px;
}


/* 3d-lab/adventure-compare-view-v237.css */
body[data-lesson=quantity] #work .compare-pick{min-height:56px}
@media(max-height:520px) and (min-width:700px){
 body[data-lesson=quantity] .count-tray{grid-template-columns:repeat(2,56px);gap:6px;min-height:118px}
 body[data-lesson=quantity] #work .count-egg{width:56px;height:56px;min-height:56px}
 body[data-lesson=quantity] .count-egg img{width:42px;height:47px}
}
/* Remove repeated captions, rather than shrinking targets, on short phones. */
@media(max-height:380px) and (min-width:700px){
 body[data-lesson=quantity] #activity{padding-block:6px}
 body[data-lesson=quantity] .activity-heading small,
 body[data-lesson=quantity] .compare-step{display:none}
 body[data-lesson=quantity] .compare-basket{padding:4px}
 body[data-lesson=quantity] .basket-name{line-height:1.1;margin-bottom:3px}
 body[data-lesson=quantity] .basket-total{margin-top:2px}
 body[data-lesson=quantity] #work .compare-pick{margin-top:4px}
}


/* 3d-lab/adventure-flow-layout-v238.css */
/* A child can start another trip before a parent reads the full learning log.
   The original facts and their explanations remain below the main action. */
#finish h2{margin-bottom:8px;line-height:1.35}
#finish #home{width:min(100%,320px);min-height:64px;margin:4px auto 12px}
#finish #facts{margin-top:12px}
@media(min-width:700px){
 body:has(#finish:not([hidden])) #view{width:55%;float:left;height:calc(100dvh - 77px);min-height:0}
 body:has(#finish:not([hidden])) #finish{width:45%;margin-left:55%;max-width:none;padding:12px 16px}
 body:has(#finish:not([hidden])) #finish h2{font-size:22px}
}
@media(max-height:520px) and (min-width:700px){
 body:has(#finish:not([hidden])) #view{height:calc(100dvh - 55px)}
 /* Keep six choices in one large row instead of shrinking them on phones. */
 body[data-lesson=count] #view{width:calc(100% - max(45%,392px))}
 body[data-lesson=count] #activity{width:max(45%,392px);margin-left:calc(100% - max(45%,392px))}
}


/* 3d-lab/adventure-stage-layout-v240.css */
/* Give a parked lesson its full screen height on wide tablets/desktops.
   Reuse the actual scene and controls. Small/short phone layouts stay intact. */
@media(min-width:1000px) and (min-height:600px){
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #adventure{display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,34vw,450px);grid-template-rows:77px minmax(0,1fr);align-items:start}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) header{grid-column:1/-1;grid-row:1;width:100%;height:77px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #view{grid-column:1;grid-row:2;float:none;width:auto;height:calc(100dvh - 77px);min-height:0;max-height:none;border-radius:0 24px 24px 0;overflow:hidden}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #activity{grid-column:2;grid-row:2;width:100%;max-width:none;min-width:0;margin:0;padding:18px 16px 24px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) .activity-heading{gap:8px;align-items:center}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) .activity-heading h2{font-size:22px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) .activity-heading button{width:48px;min-width:48px;min-height:52px;height:52px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #detail{font-size:13px;line-height:1.5;margin:10px 0 14px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #work{gap:10px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #work button.choice{width:calc((100% - 20px)/3);min-width:80px;max-width:150px;min-height:132px;padding:8px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #work .choice img{max-width:100%;height:78px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #work .choice strong{font-size:20px}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #work .word-board{min-width:0;max-width:100%;width:100%}
 body:not([data-journey-view="on"]):has(#activity:not([hidden])) #next{max-width:100%}
}
/* The former fixed104px choices extended4px past either side at320px. */
@media(max-width:360px){
 body[data-lesson=korean] #work .word-find{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-lesson=korean] #work .word-find button.choice{width:100%;min-width:0}
 body[data-lesson=korean] #work .word-find .choice img{max-width:100%}
}


/* 3d-lab/adventure-count-tray-v242.css */
/* The existing requested places also show every extra physical egg. A filled
   place returns that exact egg; it never submits or completes the lesson. */
body[data-lesson=count] #work .count-spaces{flex-wrap:wrap;gap:8px}
body[data-lesson=count] #work button.count-space{position:relative;padding:0;width:52px;min-width:52px;min-height:58px;height:58px;flex:0 0 52px;border-radius:16px;box-shadow:none;color:#426c60}
body[data-lesson=count] #work button.count-space:disabled{opacity:1;cursor:default}
body[data-lesson=count] #work button.count-space:not(:disabled){cursor:pointer;box-shadow:0 3px 0 #92b39a40}
body[data-lesson=count] #work button.count-space[data-extra=true]{border:3px solid #d39243;background:#ffdeb0;box-shadow:0 3px 0 #b07d3b33}
body[data-lesson=count] #work button.count-space[data-extra=true] .count-return-mark{position:absolute;right:-5px;top:-8px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#885723;color:#fff9e9;font-size:17px;line-height:1}
body[data-lesson=count] #work button.count-space:focus-visible{outline:3px solid #285f59;outline-offset:3px}
@media(max-width:360px),(max-height:520px) and (min-width:700px){body[data-lesson=count] #work button.count-space{width:48px;min-width:48px;flex-basis:48px;height:52px;min-height:52px}body[data-lesson=count] #work .count-spaces{gap:7px}}


/* 3d-lab/adventure-count-groups-v243.css */
/* Keep required places together and extras together, preserving actual buttons. */
body[data-lesson=count] #work .count-extras{display:flex;justify-content:center;gap:8px;flex:0 0 auto;width:auto;max-width:100%;padding:2px 0 0 8px;margin-left:2px}
@media(min-width:1000px) and (min-height:600px){
 body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)){display:flex;flex-wrap:wrap;justify-content:center;width:100%;max-width:260px;gap:8px}
 body[data-lesson=count] #work .egg-row:has(.egg:nth-child(5)) .egg{width:74px;max-width:74px;flex:0 0 74px}
}


/* 3d-lab/adventure-traffic-v245.css */
/* Acknowledge stopping without changing the light or treating the tap as a mistake. */
.traffic-go[data-wait-confirmed=true]{box-shadow:inset 0 0 0 3px #d6b077;background:#f1dec3;color:#674c30}


/* 3d-lab/adventure-word-recall-v247.css */
.word-recall{border:2px solid #dfddc2;border-radius:22px;background:#fffbed;padding:16px}.word-recall-prompt{display:flex;align-items:center;justify-content:center;gap:14px}.word-recall-prompt img{width:90px;height:78px;object-fit:contain}.word-recall-prompt strong{font-size:clamp(30px,5vmin,45px);color:#2b665b}.word-recall-progress{text-align:center;color:#6b857d;font-size:14px;margin:7px 0 12px}.word-recall-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.word-recall-choice{min-height:76px;padding:10px 6px;font-size:clamp(24px,5vmin,38px);border:2px solid #c7d8b7;border-radius:16px;background:#fffef4;color:#315f52;box-shadow:0 5px 0 #dce7ca}.word-recall-choice[data-found=true]{background:#d9efc5;border-color:#88b77d}.word-recall-choice:disabled{opacity:.6}.word-recall-hint{outline:4px solid #e5bf61;outline-offset:2px}@media(max-width:480px){.word-recall{padding:11px}.word-recall-prompt img{width:70px;height:66px}.word-recall-choice{min-height:64px;font-size:26px}.word-recall-choices{gap:8px}}@media(orientation:landscape) and (max-height:500px){.word-recall{padding:8px}.word-recall-prompt img{width:52px;height:44px}.word-recall-prompt strong{font-size:26px}.word-recall-progress{margin:2px 0 6px;font-size:11px}.word-recall-choice{min-height:56px;font-size:23px}}
.word-recall-choice{white-space:nowrap;font-size:clamp(24px,4vmin,34px)}@media(max-width:480px){.word-recall-choice{font-size:26px}}@media(orientation:landscape) and (max-height:500px){.word-recall-choice{font-size:23px}}


/* 3d-lab/adventure-save-note-v248.css */
.progress-save-note{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:40;width:calc(100% - 24px);max-width:1050px;margin:0;border:2px solid #d5b16a;border-radius:16px;background:#fff6dc;color:#624c25;box-shadow:0 8px 28px #234b5033;padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.progress-save-note[hidden]{display:none}.progress-save-note p{margin:0;flex:1;min-width:180px;font-size:14px;line-height:1.7}.progress-save-note button{min-width:140px;min-height:56px;background:#8b6935;color:#fff;border:0;border-radius:12px;font:700 15px system-ui;padding:12px 16px}.progress-save-note button:focus-visible{outline:3px solid #356c61;outline-offset:3px}@media(max-width:480px){.progress-save-note{padding:12px}.progress-save-note button{width:100%}}


/* 3d-lab/adventure-addition-v249.css */
body[data-lesson=addition] #work{display:flex;flex-direction:column;align-items:stretch;gap:12px}.addition-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.addition-group{padding:12px 8px;border-radius:18px;background:#f9edcc;border:2px solid #e0bf70;min-width:0}.addition-group:nth-child(2){background:#e8f2dc;border-color:#9dbd97}.addition-group>strong{display:block;text-align:center;font-size:15px;color:#31594d;margin-bottom:10px}.addition-source{display:flex;justify-content:center;gap:6px}.addition-source button,.addition-total-tray button{position:relative;min-width:52px;width:68px;min-height:76px;border-radius:14px;background:#fffaf0;border:2px solid #d7be85;padding:8px}.addition-source img,.addition-total-tray img{width:100%;max-width:48px;height:54px;object-fit:contain}.addition-source .joined{opacity:.22;transform:scale(.9)}.addition-count{width:100%;text-align:center;padding:12px;border-radius:18px;background:#fff5df;border:2px solid #e0c288}.addition-count>strong{font-size:18px;color:#31594d;display:block;margin-bottom:10px}.addition-total-tray{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.addition-total-tray b{position:absolute;right:3px;top:3px;display:grid;place-items:center;background:#368b72;color:white;font-size:16px;width:26px;height:26px;border-radius:50%}.addition-total-tray .counted{border-color:#368b72;background:#e1f3e7}.addition-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}.addition-answers button{min-height:94px;min-width:0;border:2px solid #93bdac;background:#edf6ef;border-radius:16px;font-size:34px;font-weight:800;color:#24594a;padding:8px}.addition-answer-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;margin-top:4px}.addition-answer-dots img{width:14px;height:19px;object-fit:contain}.addition-groups[hidden],.addition-count[hidden],.addition-answers[hidden]{display:none!important}
@media(max-width:360px){.addition-groups{gap:8px}.addition-group{padding:10px 5px}.addition-source button{width:56px;min-width:48px;padding:5px}.addition-total-tray button{width:56px;min-width:48px}.addition-total-tray{gap:4px}.addition-answers{gap:7px}}
@media(prefers-reduced-motion:no-preference){.addition-source button:not(:disabled){animation:addition-ready 2s ease-in-out infinite}@keyframes addition-ready{50%{border-color:#60a788;box-shadow:0 0 0 3px #83b99930}}}
body[data-lesson=addition] .activity-heading button{width:48px;min-width:48px;height:48px;min-height:48px}


/* 3d-lab/adventure-social-v250.css */
body[data-lesson=sharing] #work{gap:12px}body[data-lesson=sharing] #work button.share-friend{width:calc((100% - 12px)/2);min-width:120px;max-width:210px;min-height:190px;padding:10px;border:2px solid #c9dcd1;border-radius:22px;background:#f5faf5}body[data-lesson=sharing] #work .share-friend[data-waiting=true]{border-color:#63aa8e;background:#edf8e9;box-shadow:0 4px 0 #83b795}body[data-lesson=sharing] #work .share-friend.chosen{background:#e2f0e9}.share-count{display:flex;justify-content:center;gap:8px;margin:8px auto 4px}.share-count>span{display:grid;place-items:center;width:38px;height:43px;border:2px dashed #b8cfc2;border-radius:12px;background:#e8f0e9}.share-count img{width:31px!important;height:35px!important;object-fit:contain;opacity:.15}.share-count [data-filled=true]{border:2px solid #70ab8d;background:#fff7e4}.share-count [data-filled=true] img{opacity:1}body[data-lesson=sharing] .share-friend svg{width:100%;max-width:100px;height:94px}body[data-lesson=sharing] .share-friend strong{font-size:19px!important}
@media(max-width:640px){body[data-lesson=sharing] #work button.share-friend{min-height:174px;padding:8px}body[data-lesson=sharing] .share-friend svg{height:76px}.share-count{gap:5px}.share-count>span{width:32px;height:36px}.share-count img{width:27px!important;height:31px!important}body[data-lesson=sharing] .share-friend strong{font-size:17px!important}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=sharing] #work button.share-friend{min-height:126px;padding:6px}body[data-lesson=sharing] .share-friend svg{height:51px}.share-count{margin:4px auto}.share-count>span{width:27px;height:29px}.share-count img{width:22px!important;height:25px!important}.share-state{font-size:11px}}
body[data-lesson=sharing] #work .share-friend.chosen:disabled{opacity:1}
body[data-lesson=sharing] #next.share-next-action{display:inline-flex;align-items:center;justify-content:center;gap:9px}
body[data-lesson=sharing] #next .share-next-picture{position:relative;display:block;width:36px;height:40px;flex:0 0 36px;overflow:hidden;pointer-events:none;user-select:none}
body[data-lesson=sharing] #next .share-next-picture img{position:absolute;top:-5px;left:50%;width:88px;height:88px;max-width:none;object-fit:contain;transform:translateX(-50%)}
body[data-lesson=sharing] #next .share-next-label{line-height:1.25}


/* 3d-lab/adventure-word-listen-v251.css */
.word-slots button.word-slot{position:relative;font-family:inherit;padding:0;opacity:1;min-height:56px;min-width:60px;cursor:default}.word-slots button.word-slot[data-listen=true]{padding-bottom:12px;cursor:pointer;border-style:solid}.word-slots button.word-slot[data-listen=true]::after{content:'♪ 듣기';position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:11px;font-weight:700;line-height:1.2;color:#6b6843}.word-slots button.word-slot:disabled{cursor:default}.word-slots button.word-slot[data-listen=true]:disabled::after{content:'♪';color:#9b987f}.word-slots button.word-slot:focus-visible{outline:3px solid #c99c45;outline-offset:3px}.word-slots button.word-slot[data-speaking=true]{box-shadow:0 0 0 4px #e6c37455}
@media(orientation:landscape) and (max-height:500px){.word-slots button.word-slot{min-height:56px;min-width:56px;font-size:27px}}


/* 3d-lab/adventure-word-hints-v292.css */
.word-slots button.word-slot[data-visual=true]{padding-bottom:14px;cursor:pointer;border-style:solid;color:#476d58}
.word-slots button.word-slot[data-visual=true]::after{content:'힌트 보기';position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:11px;font-weight:700;line-height:1.2;color:#6b6843}
.word-slots button.word-slot[data-visual=true]:disabled::after{content:''}


/* 3d-lab/adventure-share-hints-v293.css */
body[data-lesson=sharing] #work .share-friend[data-share-help=true]{outline:4px solid #e4ac37;outline-offset:3px;animation:sharing-help293 .8s ease-in-out infinite alternate}
body[data-lesson=sharing] #work .share-count>span[data-share-help=true]{background:#fff2b1;border:3px solid #dca239;box-shadow:0 0 0 3px #fff9dd}
#repeat[data-visual-help=true]{font-family:inherit;font-size:26px;font-weight:900;color:#766326}
#repeat[data-visual-help=true]:disabled{opacity:.45}
@keyframes sharing-help293{to{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){body[data-lesson=sharing] #work .share-friend[data-share-help=true]{animation:none}}


/* 3d-lab/adventure-science-goal-v254.css */
#work .science-steps.science-goal{height:40px;min-height:40px;gap:8px;align-items:center;justify-content:center;padding:0 6px;border-radius:12px;background:#e5f0e8;color:#285a63;overflow:hidden}
#work .science-goal svg{width:64px;height:40px;flex:0 0 64px;margin:0}
#work .science-goal strong{font-size:17px;line-height:20px;max-width:calc(100% - 78px);overflow-wrap:anywhere}
#work .science-goal[data-help=true]{box-shadow:inset 0 0 0 2px #d5b46e;background:#fbf1d9}
#work button.science-choice .science-diagram{max-width:100%}
@media(prefers-reduced-motion:no-preference){#work .science-goal[data-help=true]{animation:science-look-again .65s ease-in-out 2}@keyframes science-look-again{50%{box-shadow:inset 0 0 0 3px #bc9850}}}


/* 3d-lab/adventure-science-controls-v264.css */
/* Match the counting lesson's large controls without changing the field size. */
#activity:has(#work .science-steps) .activity-heading{gap:8px}
#activity:has(#work .science-steps) .activity-heading>button{
 flex:0 0 56px;width:56px;min-width:56px;height:56px;min-height:56px;padding:8px;
}
/* Short landscape phones need the same side-by-side lesson as wider phones. */
@media (min-width:500px) and (max-width:699px) and (max-height:520px){
 body:has(#activity:not([hidden]) .science-steps) header{height:55px;min-height:55px;padding:6px 10px}
 body:has(#activity:not([hidden]) .science-steps) header h1{font-size:20px}
 body:has(#activity:not([hidden]) .science-steps) header small{font-size:9px}
 body:has(#activity:not([hidden]) .science-steps) header>a,
 body:has(#activity:not([hidden]) .science-steps) header>button{width:44px;height:44px;min-height:44px;padding:6px}
 body:has(#activity:not([hidden]) .science-steps) #view{float:left;width:54%;height:calc(100dvh - 55px);min-height:0;max-height:none}
 body:has(#activity:not([hidden]) .science-steps) #activity{width:46%;max-width:none;margin-left:54%;padding:6px}
 #activity:has(.science-steps) .activity-heading h2{font-size:16px;line-height:1.2}
 #activity:has(.science-steps) .activity-heading small{font-size:9px;line-height:1.2}
 #activity:has(.science-steps) #detail{font-size:11px;line-height:1.3;margin:4px 0}
 #activity:has(.science-steps) #work{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #activity:has(.science-steps) #work .science-steps{grid-column:1/-1;font-size:10px;gap:4px;margin:0;height:25px;min-height:25px;padding:0}
 #activity:has(.science-steps) #work .science-steps span{padding:5px 6px}
 #activity:has(.science-steps) #work .science-goal svg{width:40px;height:25px;flex-basis:40px}
 #activity:has(.science-steps) #work .science-goal strong{font-size:12px;line-height:14px}
 #activity:has(.science-steps) #work button.science-choice{width:100%;min-width:0;min-height:80px;padding:4px}
 #activity:has(.science-steps) #work .science-diagram{width:80px;height:50px}
 #activity:has(.science-steps) #work .science-choice strong{font-size:17px}
 #activity:has(.science-steps) #work button.science-drop{grid-column:1/-1;justify-self:center;min-width:180px;min-height:104px;padding:6px}
 #activity:has(.science-steps) #work .science-drop strong{font-size:18px}
 #activity:has(.science-steps) #next{min-height:44px;margin:4px auto 0;padding:8px 12px;font-size:16px}
}


/* 3d-lab/adventure-social-controls-v265.css */
/* Keep these navigation targets usable on a short landscape phone too. */
body[data-lesson=sharing] .activity-heading button{width:48px;min-width:48px;height:48px;min-height:48px;flex-shrink:0}
@media(min-width:500px) and (max-width:699px) and (max-height:520px){
 body[data-lesson=sharing] header{height:55px;min-height:55px;padding:6px 10px}
 body[data-lesson=sharing] header h1{font-size:20px}
 body[data-lesson=sharing] header small{font-size:9px}
 body[data-lesson=sharing] header>a,body[data-lesson=sharing] header>button{width:44px;height:44px;min-height:44px;padding:6px}
 body[data-lesson=sharing] #view{float:left;width:54%;height:calc(100dvh - 55px);min-height:0;max-height:none}
 body[data-lesson=sharing] #activity{width:46%;max-width:none;margin-left:54%;padding:6px}
 body[data-lesson=sharing] .activity-heading{gap:4px}
 body[data-lesson=sharing] .activity-heading h2{font-size:16px;line-height:1.2}
 body[data-lesson=sharing] .activity-heading small{font-size:9px;line-height:1.2}
 body[data-lesson=sharing] #detail{font-size:11px;line-height:1.3;margin:4px 0}
 body[data-lesson=sharing] #work{display:flex;gap:6px}
 body[data-lesson=sharing] #work button.share-friend{width:calc((100% - 6px)/2);min-width:0;min-height:112px;padding:5px}
 body[data-lesson=sharing] .share-friend svg{height:44px}
 body[data-lesson=sharing] .share-friend strong{font-size:14px!important}
 body[data-lesson=sharing] .share-count{gap:4px;margin:3px auto}
 body[data-lesson=sharing] .share-count>span{width:27px;height:29px}
 body[data-lesson=sharing] .share-count img{width:22px!important;height:25px!important}
 body[data-lesson=sharing] .share-state{font-size:11px}
 body[data-lesson=sharing] #next{min-height:44px;margin:4px auto 0;padding:8px;font-size:16px}
}


/* 3d-lab/adventure-word-clear-view-v266.css */
/* Short phones keep the physical delivery beside the child's real controls.
   Scrolling a word button into view must not send the entire field offscreen. */
@media(orientation:portrait) and (max-width:480px) and (max-height:650px){
 body[data-lesson=korean] #activity{padding:8px 12px 12px}
 body[data-lesson=korean] #detail{font-size:11px;line-height:1.35;margin:4px 0 6px}
 body[data-lesson=korean] #work .word-find button.choice{min-height:104px;padding:6px 3px}
 body[data-lesson=korean] #work .word-find .choice img{height:55px}
 body[data-lesson=korean] .word-board{padding:7px 9px;gap:5px}
 body[data-lesson=korean] .word-model img{height:32px}
 body[data-lesson=korean] .word-model strong{font-size:25px}
 body[data-lesson=korean] .word-note{font-size:10px;margin:2px 0}
}
@media(orientation:landscape) and (max-height:520px) and (min-width:480px){
 body[data-lesson=korean] #adventure{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,44%);grid-template-rows:55px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;align-items:start}
 body[data-lesson=korean] header{grid-column:1/-1;grid-row:1;height:55px;min-height:0;padding:5px 12px}
 body[data-lesson=korean] #view{grid-column:1;grid-row:2;float:none;width:100%;height:100%;min-height:0;max-height:none;overflow:hidden;border-radius:0 16px 16px 0}
 body[data-lesson=korean] #activity{grid-column:2;grid-row:2;float:none;width:100%;max-width:none;min-width:0;height:100%;min-height:0;margin:0;padding:5px 8px 10px;overflow-y:auto;overscroll-behavior:contain}
 body[data-lesson=korean] .activity-heading{gap:4px;align-items:center}
 body[data-lesson=korean] .activity-heading h2{font-size:16px;line-height:1.25}
 body[data-lesson=korean] .activity-heading small{font-size:10px}
 body[data-lesson=korean] .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px}
 body[data-lesson=korean] #detail{display:none}
 body[data-lesson=korean] #work{gap:6px;margin-top:4px}
 body[data-lesson=korean] .word-find{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}
 body[data-lesson=korean] #work .word-find button.choice{width:100%;min-width:0;min-height:100px;padding:6px 3px}
 body[data-lesson=korean] #work .word-find .choice img{height:55px;max-width:100%}
 body[data-lesson=korean] #work .word-find .choice strong{font-size:17px}
 body[data-lesson=korean] .word-board{width:100%;min-width:0;padding:6px 8px;gap:5px}
 body[data-lesson=korean] .word-model img{height:30px}
 body[data-lesson=korean] .word-model strong{font-size:24px}
 body[data-lesson=korean] .word-slot{height:44px;min-height:44px;min-width:44px}
 body[data-lesson=korean] #work .word-tile{min-width:44px;min-height:48px;padding:4px 8px;font-size:25px}
 body[data-lesson=korean] .word-note{font-size:10px;margin:2px 0}
 body[data-lesson=korean] .word-recall{width:100%;padding:7px}
 body[data-lesson=korean] .word-recall-choice{min-width:44px;min-height:56px;padding:6px 3px;font-size:21px}
}


/* 3d-lab/adventure-word-compact-review-v266.css */
/* Keep the complete retry row on the smallest portrait phone as well. */
@media(orientation:portrait) and (max-width:480px) and (max-height:650px){
 body[data-lesson=korean] .word-recall{padding:8px}
 body[data-lesson=korean] .word-recall-prompt img{width:56px;height:48px}
 body[data-lesson=korean] .word-recall-progress{margin:4px 0 7px}
}


/* 3d-lab/adventure-motion-view-v270.css */
/* Automatic helper movement gets the field. Manual experiments and choices
   immediately return to the existing lesson layout, with their state intact. */
body[data-delivery-motion=on]{overflow:hidden}
body[data-delivery-motion=on]::before{content:'';position:fixed;inset:0;background:#e9f3e6;z-index:44}
body[data-delivery-motion=on] #adventure>header{position:fixed;inset:0 0 auto;height:56px;width:100%;z-index:48;padding:6px 12px;gap:10px;box-shadow:0 2px 12px #547e6420}
body[data-delivery-motion=on] #adventure>header small{display:none}
body[data-delivery-motion=on] #adventure>header h1{font-size:18px;margin:0}
body[data-delivery-motion=on] #adventure>header a,body[data-delivery-motion=on] #adventure>header button{width:44px;min-width:44px;min-height:44px;height:44px;padding:8px;font-size:22px}
body[data-delivery-motion=on] #adventure #view{position:fixed;inset:64px 8px 86px;z-index:45;width:auto;height:auto;min-height:0;max-height:none;float:none;border-radius:22px;overflow:hidden;contain:paint}
body[data-delivery-motion=on] #adventure #activity{position:static;width:auto;padding:0;margin:0;min-height:0}
body[data-delivery-motion=on] #adventure #activity .activity-heading{position:fixed;inset:auto 8px 8px;z-index:48;width:auto;max-width:none;min-height:68px;padding:8px 12px;margin:0;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;background:#f8fcf1;border:1px solid #c9dfca;border-radius:20px;box-shadow:0 5px 20px #547e6420;isolation:isolate;transform:translateZ(0)}
body[data-delivery-motion=on] #adventure #activity .activity-heading #back{width:44px;min-width:44px;min-height:44px;height:44px;padding:4px}
body[data-delivery-motion=on] #adventure #activity .activity-heading h2{font-size:18px;line-height:1.3;margin:0;overflow-wrap:anywhere}
body[data-delivery-motion=on] #adventure #activity .activity-heading small{font-size:10px}
body[data-delivery-motion=on] #adventure #activity #repeat,body[data-delivery-motion=on] #adventure #activity #detail,body[data-delivery-motion=on] #adventure #activity #work,body[data-delivery-motion=on] #adventure #activity #next{display:none!important}
@media(max-height:520px){
 body[data-delivery-motion=on] #adventure>header{height:48px;padding:2px 8px}
 body[data-delivery-motion=on] #adventure>header h1{font-size:15px}
 body[data-delivery-motion=on] #adventure #view{inset:54px 6px 72px;border-radius:16px}
 body[data-delivery-motion=on] #adventure #activity .activity-heading{inset:auto 6px 5px;min-height:60px;padding:5px 9px;border-radius:16px}
 body[data-delivery-motion=on] #adventure #activity .activity-heading h2{font-size:15px}
 body[data-delivery-motion=on] #adventure #activity .activity-heading small{display:none}
 body[data-delivery-motion=on] #adventure #bubble{font-size:12px;top:6px;padding:7px 12px;min-width:180px}
}


/* 3d-lab/adventure-stroll-v271.css */
#stroll{min-height:56px;border:0;border-radius:22px;background:#328e7c;color:#fff;font:inherit;font-weight:800;padding:12px 24px;box-shadow:0 5px 0 #246b60;cursor:pointer}#stroll:disabled{opacity:.65;cursor:wait}
body[data-hub-walk="on"]{background:#e4eedc}body[data-hub-walk="on"] #adventure>header{position:fixed;inset:0 0 auto;height:56px;z-index:20;padding:6px 12px;background:#f7faf1}body[data-hub-walk="on"] #view{position:fixed;inset:64px 8px 88px;width:auto;height:auto;min-height:0;margin:0;border-radius:24px}body[data-hub-walk="on"] #hub{position:fixed;inset:auto 8px 8px;min-height:64px;padding:4px 12px;display:flex;align-items:center;justify-content:center;background:#f7faf1;border-radius:24px;z-index:21}body[data-hub-walk="on"] #hub h2,body[data-hub-walk="on"] #doors,body[data-hub-walk="on"] #hub>a{display:none}body[data-hub-walk="on"] #stroll{min-width:180px}body[data-hub-walk="on"] #bubble{font-size:clamp(15px,3vw,23px);pointer-events:none}body[data-hub-walk="on"] #world{touch-action:pan-y}
body[data-hub-walk="on"] #adventure>header>a,body[data-hub-walk="on"] #adventure>header>#sound{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;flex:0 0 44px}
@media(max-height:450px) and (orientation:landscape){body[data-hub-walk="on"] #adventure>header{height:48px;padding:2px 12px}body[data-hub-walk="on"] #view{inset:54px 6px 72px}body[data-hub-walk="on"] #hub{min-height:54px;padding:3px 10px}body[data-hub-walk="on"] #stroll{min-height:44px;padding:6px 20px}}
#stroll[data-stroll-cue]{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%}
#stroll[data-stroll-cue] .stroll-cue-picture{position:relative;display:block;flex:0 0 44px;width:44px;height:30px;overflow:hidden}
#stroll[data-stroll-cue] .stroll-cue-picture svg{position:absolute;inset:0;width:44px;height:30px}
#stroll[data-stroll-cue] .stroll-cue-picture svg svg{position:static;width:22px;height:30px}
#stroll[data-stroll-cue] .stroll-cue-truck{position:absolute;left:8px;top:-8px;width:40px;height:40px;max-width:none;object-fit:contain}
#stroll[data-stroll-cue] .stroll-cue-label{line-height:1.2;white-space:normal}
#stroll[data-stroll-cue] .stroll-cue-picture,#stroll[data-stroll-cue] .stroll-cue-picture *,#stroll[data-stroll-cue] .stroll-cue-label{pointer-events:none;user-select:none;-webkit-user-select:none}

body[data-hub-walk="on"] #view[data-stroll-return="on"] #bubble{opacity:0;pointer-events:none}


/* 3d-lab/adventure-picnic-v272.css */
#picnic-invite{position:absolute;bottom:16px;left:16px;z-index:6;display:flex;align-items:center;gap:10px;background:#fff8e6;color:#28524e;border:3px solid #e7be6a;border-radius:22px;padding:8px 16px;font:inherit;font-size:18px;box-shadow:0 4px 0 #b58c44;cursor:pointer}#picnic-invite img{width:54px;height:54px;object-fit:contain}#picnic-invite:disabled{opacity:.65}#picnic-invite[hidden],#picnic-panel[hidden],.picnic-pick[hidden]{display:none!important}
#picnic-panel{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);max-width:calc(100% - 16px);width:max-content;z-index:7;background:#fffdf2ee;border:2px solid #dfc38a;border-radius:22px;padding:7px 14px;color:#234d49;text-align:center;font-weight:800;font-size:clamp(15px,2.6vw,20px);pointer-events:none}.picnic-count{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center}.picnic-slots{display:flex}.picnic-slots img{width:29px;height:34px;object-fit:contain}.picnic-count small{font-size:12px;color:#67776b;flex-basis:100%}#picnic-again{pointer-events:auto;border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:12px;font:inherit;min-height:48px;cursor:pointer}#picnic-again img{width:44px;height:44px;object-fit:contain}#picnic-again small{display:block;font-size:13px}
.picnic-pick{position:absolute;z-index:5;transform:translate(-50%,-50%);width:80px;height:76px;border:0;border-radius:28px;background:transparent;cursor:pointer;touch-action:manipulation}.picnic-pick span{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:30px;height:30px;border-radius:50%;background:#fffbea;border:2px solid #cfad65;color:#28524e;font:bold 18px/26px sans-serif;box-shadow:0 2px 3px #6b69333b}.picnic-pick:focus-visible{outline:3px solid #298e7b}.picnic-nudge{animation:picnic-nudge .45s ease-out}@keyframes picnic-nudge{50%{background:#ffe9c5}}
@media(max-height:450px) and (orientation:landscape){#picnic-invite{bottom:8px;padding:4px 10px;font-size:15px}#picnic-invite img{width:38px;height:38px}#picnic-panel{bottom:3px;padding:4px 10px;font-size:14px}.picnic-slots img{width:22px;height:24px}.picnic-count small{display:none}.picnic-pick{width:64px;height:60px}}
@media(prefers-reduced-motion:reduce){.picnic-nudge{animation:none}}
.picnic-pick:active{transform:translate(-50%,-50%)}
#picnic-invite small{display:block;font-size:11px;color:#67776b;margin-top:3px}


/* 3d-lab/adventure-free-walk-v273.css */
body[data-hub-walk="on"] #world{touch-action:none;user-select:none;-webkit-user-select:none}
.stroll-stick{position:absolute;width:100px;height:100px;margin:-50px 0 0 -50px;border-radius:50%;border:2px solid #fff9;background:#fff3;box-shadow:0 2px 14px #214c3330;pointer-events:none;z-index:8;box-sizing:border-box}
.stroll-stick i{display:block;position:absolute;left:31px;top:31px;width:34px;height:34px;border-radius:50%;background:#f8de8bd9;box-shadow:0 2px 4px #405d3855;border:2px solid #fff8;box-sizing:border-box}
.stroll-stick[hidden]{display:none}


/* 3d-lab/adventure-green-touch-v282.css */
.traffic-go[data-departure="pending"]{outline:3px solid #7eac74;outline-offset:3px;box-shadow:0 0 0 7px #b8d9aa44;animation:green-touch-confirm 1.2s ease-in-out infinite}
@keyframes green-touch-confirm{50%{box-shadow:0 0 0 11px #b8d9aa18}}
@media(prefers-reduced-motion:reduce){.traffic-go[data-departure="pending"]{animation:none}}

.science-drop[data-release="pending"]{outline:3px solid #65a5b1;outline-offset:3px;box-shadow:0 0 0 7px #83cbd544;animation:green-touch-confirm 1.2s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.science-drop[data-release="pending"]{animation:none}}


/* 3d-lab/adventure-science-view-v283.css */
/* A steady, larger portrait stage throughout prediction, transport, release
   and comparison. Short phones retain their current compact field. */
@media(max-width:699px) and (min-height:760px){
 body:has(#activity:not([hidden]) .science-steps) #view{height:44dvh;min-height:0}
}


/* 3d-lab/adventure-number-view-v284.css */
/* One field for selecting, combining, counting, carrying and receiving.
   Original art and disabled-state feedback stay visible below the field. */
@media(max-width:699px){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #view{height:clamp(190px,36dvh,340px);min-height:0;max-height:none}
 body[data-lesson=addition] #detail{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-lesson=addition] #activity{padding:8px 12px 14px}
 body[data-lesson=addition] #work{gap:8px;margin-top:8px}
 body[data-lesson=addition] .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px}
 body[data-lesson=addition] .addition-group{padding:8px 6px}
 body[data-lesson=addition] .addition-group>strong{margin-bottom:6px}
 body[data-lesson=addition] .addition-count{padding:8px}
 body[data-lesson=addition] .addition-count>strong{margin-bottom:6px}
 body[data-lesson=addition] .addition-answers button{min-height:80px}
 /* Extra eggs stay beside their original four places. The large source
    choices retain their size; only these return slots use the 44px target. */
 body[data-lesson=count] #work .count-spaces:has(button.count-space[data-extra=true]:not([hidden])){gap:4px}
 body[data-lesson=count] #work .count-spaces:has(button.count-space[data-extra=true]:not([hidden])) button.count-space{width:44px;min-width:44px;flex-basis:44px}
 body[data-lesson=count] #work .count-spaces:has(button.count-space[data-extra=true]:not([hidden])) .count-extras{gap:4px;padding:0;margin:0}
}
@media(max-width:699px) and (min-height:760px){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #view{height:clamp(230px,40dvh,360px)}
}
@media(max-width:699px) and (max-height:699px){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #view{height:190px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px;padding:5px}
 body[data-lesson=count] #work .count-request{padding:5px 8px;gap:3px 8px}
 body[data-lesson=count] #work button.count-space{width:44px;min-width:44px;flex-basis:44px;height:44px;min-height:44px}
 body[data-lesson=count] #work button.count-space img{height:35px;width:30px}
 body[data-lesson=count] #work .count-spaces{gap:4px}
 body[data-lesson=count] #work .count-extras{gap:4px;padding:0;margin:0}
 body[data-lesson=count] #work .egg-row .egg{min-height:60px;height:60px}
 body[data-lesson=count] #work .egg-row .egg img{height:48px;width:39px}
 body[data-lesson=count] #adventure #send-eggs{height:64px;min-height:64px;gap:8px;padding:4px 10px}
}
/* A portrait tablet has room for the complete field above both baskets. */
@media(min-width:700px) and (max-width:999px) and (min-height:521px){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #view{float:none;width:100%;height:min(48dvh,550px);min-height:0;max-height:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #activity{width:100%;margin:0 auto;max-width:700px;padding:12px 18px 20px}
}
/* Short landscape: retain a useful field and fit both full-size choices. */
@media(min-width:700px) and (max-height:520px){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #view{width:calc(100% - max(45%,400px));height:calc(100dvh - 55px);float:left;min-height:0;max-height:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #adventure #activity{width:max(45%,400px);margin-left:calc(100% - max(45%,400px));padding:6px 8px;max-width:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) #detail{display:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) .activity-heading{gap:6px;min-height:44px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) .activity-heading h2{font-size:16px;line-height:1.2}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px;padding:5px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity]) .activity-heading small{display:none}
 body[data-lesson=quantity] #work{gap:6px;min-height:0}
 body[data-lesson=quantity] .compare-step{display:none}
 body[data-lesson=quantity] .compare-baskets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-lesson=quantity] .compare-basket{min-width:0;padding:6px}
 body[data-lesson=quantity] .basket-name{font-size:12px;line-height:1.2;margin-bottom:3px}
 body[data-lesson=quantity] .basket-total{font-size:20px;line-height:1.1;min-height:24px;margin-top:4px}
 body[data-lesson=quantity] #work .compare-pick{min-height:44px;margin-top:5px;padding:8px;font-size:15px;line-height:1.1}
}


/* 3d-lab/adventure-continuous-yard-v285.css */
/* Keep names/counts legible during the unchanged guarded delivery animation. */
body[data-lesson=sharing] #work button.share-friend:disabled,
body[data-lesson=korean] #work .word-slot[data-filled=true]:disabled{opacity:1}
@media(max-width:699px) and (orientation:portrait){
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{height:clamp(190px,36dvh,340px);min-height:0;max-height:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px;padding:5px}
 body[data-lesson=sharing] #activity{padding:8px 12px 14px}
 body[data-lesson=sharing] #detail{font-size:11px;line-height:1.35;margin:4px 0 6px}
 body[data-lesson=sharing] #work{gap:8px}
 body[data-lesson=sharing] #work button.share-friend{min-width:0;padding:8px;min-height:150px}
 body[data-lesson=sharing] .share-friend svg{height:62px}
 body[data-lesson=sharing] #next{min-height:48px;margin:8px auto 0;padding:10px}
}
@media(max-width:699px) and (orientation:portrait) and (min-height:760px){body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{height:clamp(230px,40dvh,360px)}}
@media(max-width:699px) and (orientation:portrait) and (max-height:699px){
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{height:190px}
 body[data-lesson=sharing] #work button.share-friend{min-height:112px;padding:5px}
 body[data-lesson=sharing] .share-friend svg{height:44px}
 body[data-lesson=sharing] .share-state{font-size:11px}
}
@media(min-width:700px) and (max-width:999px) and (min-height:521px){
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{float:none;width:100%;height:min(48dvh,550px);min-height:0;max-height:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #activity{width:100%;margin:0 auto;max-width:700px;padding:12px 18px 20px}
}
@media(min-width:700px) and (max-height:520px){
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,45%);grid-template-rows:55px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden;align-items:start}
 body:is([data-lesson=korean],[data-lesson=sharing]) header{grid-column:1/-1;grid-row:1;height:55px;min-height:0;padding:5px 12px}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{grid-column:1;grid-row:2;float:none;width:100%;height:100%;min-height:0;max-height:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #activity{grid-column:2;grid-row:2;float:none;width:100%;max-width:none;min-width:0;height:100%;min-height:0;margin:0;padding:5px 8px 10px;overflow-y:auto;overscroll-behavior:contain}
 body:is([data-lesson=korean],[data-lesson=sharing]) #detail{display:none}
 body[data-lesson=sharing] .activity-heading{gap:4px;min-height:44px}
 body[data-lesson=sharing] .activity-heading h2{font-size:16px;line-height:1.2}
 body[data-lesson=sharing] .activity-heading small{font-size:9px}
 body[data-lesson=sharing] #work{gap:8px;margin-top:6px}
 body[data-lesson=sharing] #work button.share-friend{min-width:0;min-height:112px;padding:6px}
 body[data-lesson=sharing] .share-friend svg{height:52px}
 body[data-lesson=sharing] .share-state{font-size:11px}
 body[data-lesson=sharing] #next{min-height:44px;margin:5px auto 0;padding:8px}
}


/* 3d-lab/adventure-phone-yard-v288.css */
/* One continuous courtyard for choosing, carrying and receiving.
   The real scene uses the height left by the same compact controls. */
@media(max-width:699px) and (orientation:portrait){
 body:is([data-lesson=korean],[data-lesson=sharing]):has(#activity:not([hidden])){overflow:hidden}
 body:is([data-lesson=korean],[data-lesson=sharing]):has(#activity:not([hidden])) #adventure{display:flex;flex-direction:column;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure>header{height:56px;min-height:56px;flex:0 0 56px;padding:6px 12px;gap:10px}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure>header small{display:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure>header h1{font-size:18px;margin:0}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure>header a,
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure>header button{width:44px;min-width:44px;height:44px;min-height:44px;padding:6px}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #view{position:relative;inset:auto;float:none;flex:1 1 0;width:100%;height:auto;min-height:0;max-height:none;border-radius:0;overflow:hidden}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #activity{position:relative;flex:0 0 auto;width:100%;max-width:none;min-width:0;height:auto;min-height:0;margin:0;padding:7px 12px max(10px,env(safe-area-inset-bottom));background:#f7fbef;border-top:1px solid #d4e4d1}
 body:is([data-lesson=korean],[data-lesson=sharing]) #activity .activity-heading{gap:7px;min-height:44px}
 body:is([data-lesson=korean],[data-lesson=sharing]) #activity .activity-heading small{display:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) #activity .activity-heading h2{font-size:15px;line-height:1.3;margin:0}
 body:is([data-lesson=korean],[data-lesson=sharing]) #activity .activity-heading button{width:44px;min-width:44px;height:44px;min-height:44px;padding:5px}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #detail{display:none}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #work{min-height:0;gap:7px;margin-top:7px}
 body[data-lesson=sharing] #adventure #work button.share-friend{width:calc((100% - 7px)/2);min-width:0;min-height:116px;padding:6px;border-radius:18px}
 body[data-lesson=sharing] #adventure .share-friend svg{height:43px}
 body[data-lesson=sharing] #adventure .share-friend strong{font-size:16px!important}
 body[data-lesson=sharing] #adventure .share-count{gap:5px;margin:4px auto}
 body[data-lesson=sharing] #adventure .share-count>span{width:27px;height:30px}
 body[data-lesson=sharing] #adventure .share-count img{width:22px!important;height:25px!important}
 body[data-lesson=sharing] #adventure .share-state{font-size:11px;line-height:1.25}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #next{min-height:48px;padding:9px 16px;margin:7px auto 0}
 body:is([data-lesson=korean],[data-lesson=sharing]) #adventure #bubble{font-size:14px;line-height:1.4;top:9px;min-width:180px;max-width:calc(100% - 24px);padding:9px 14px}
}


/* 3d-lab/adventure-hands-on-yard-v289.css */
/* Keep the actual learning yard large while preserving every choice and retry.
   The controls take their natural height; the scene gets the remaining space. */
@media(max-width:699px) and (orientation:portrait){
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])){overflow:hidden}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure{display:flex;flex-direction:column;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure>header{height:56px;min-height:56px;flex:0 0 56px;padding:6px 12px;gap:10px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)) header small{display:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)) header h1{font-size:18px;margin:0}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure>header :is(a,button){width:44px;min-width:44px;height:44px;min-height:44px;padding:6px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #view{position:relative;float:none;flex:1 1 0;width:100%;height:auto;min-height:0;max-height:none;border-radius:0;overflow:hidden}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #activity{position:relative;flex:0 0 auto;width:100%;max-width:none;min-width:0;height:auto;min-height:0;margin:0;padding:7px 12px max(10px,env(safe-area-inset-bottom));background:#f7fbef;border-top:1px solid #d4e4d1}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #activity .activity-heading{gap:7px;min-height:44px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #activity .activity-heading small{display:none}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #activity .activity-heading h2{font-size:15px;line-height:1.3;margin:0}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #activity .activity-heading button{width:44px;min-width:44px;flex:0 0 44px;height:44px;min-height:44px;padding:5px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #detail{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #work{min-height:0;gap:7px;margin-top:7px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #bubble{font-size:14px;line-height:1.4;top:9px;min-width:180px;max-width:calc(100% - 24px);padding:9px 14px}
 body:is([data-lesson=count],[data-lesson=addition],[data-lesson=quantity],:has(#activity:not([hidden]) .science-steps)):has(#activity:not([hidden])) #adventure #next{min-height:48px;padding:9px 16px;margin:7px auto 0}
 /* Picture places and the number remain together; the duplicate sentence is
    still available to screen readers through the original request label. */
 body[data-lesson=count] #adventure #work .count-request{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;min-height:64px}
 body[data-lesson=count] .count-request>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body[data-lesson=count] #adventure .count-total{font-size:22px;order:2;white-space:nowrap;flex:0 0 auto}
 body[data-lesson=count] #adventure .count-spaces{width:auto;flex:0 1 auto;gap:4px;flex-wrap:nowrap;min-width:0}
 body[data-lesson=count] #adventure .count-extras{gap:4px;padding:0;margin:0}
 body[data-lesson=count] #adventure #work button.count-space{width:44px;min-width:44px;flex:0 0 44px;height:46px;min-height:44px;border-radius:14px}
 body[data-lesson=count] #adventure #work .egg-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;max-width:520px}
 body[data-lesson=count] #adventure #work .egg-row:has(.egg:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-lesson=count] #adventure #work .egg{width:100%;min-width:0;height:80px;min-height:80px;padding:4px;border-radius:17px}
 body[data-lesson=count] #adventure #work .egg-row:has(.egg:nth-child(5)) .egg{height:72px;min-height:72px}
 body[data-lesson=count] #adventure #work .egg img{width:50px;height:62px}
 body[data-lesson=count] #adventure #send-eggs{width:100%;min-height:64px;height:64px;gap:8px;padding:5px 10px}
 body[data-lesson=count] #send-eggs .give-picture{height:44px}
 body[data-lesson=count] #send-eggs .give-label{font-size:18px}
 /* Prediction, putting in water and observing share the same control space.
    The water and the helper stay in the scene above throughout the trial. */
 body:has(#activity:not([hidden]) .science-steps) #adventure #work{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;min-height:164px;gap:7px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-steps{grid-column:1/-1;width:100%;height:34px;min-height:34px;margin:0;gap:5px;padding:0}
 body:has(#activity:not([hidden]) .science-steps) #work .science-steps>span{font-size:12px;padding:6px 9px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-steps.science-goal{height:48px;min-height:48px;padding:4px 6px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-goal svg{width:60px;height:40px;flex:0 0 60px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-goal strong{font-size:16px;line-height:19px}
 body:has(#activity:not([hidden]) .science-steps) #work button.science-choice{width:100%;min-width:0;min-height:100px;padding:6px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-diagram{width:110px;height:64px;max-width:100%}
 body:has(#activity:not([hidden]) .science-steps) #work .science-choice strong{font-size:18px;line-height:22px}
 body:has(#activity:not([hidden]) .science-steps) #work button.science-drop{grid-column:1/-1;justify-self:stretch;width:100%;min-height:112px;padding:6px}
 body:has(#activity:not([hidden]) .science-steps) #work .science-drop strong{font-size:19px}
}
@media(max-width:699px) and (orientation:portrait) and (max-height:699px){
 body[data-lesson=count] #adventure #work .egg,body[data-lesson=count] #adventure #work .egg-row:has(.egg:nth-child(5)) .egg{height:64px;min-height:64px}
 body[data-lesson=count] #adventure #work .egg img{width:43px;height:54px}
 body[data-lesson=count] #adventure #work .count-request{min-height:56px;padding:4px 8px}
 body:has(#activity:not([hidden]) .science-steps) #adventure #work{min-height:154px}
}


/* 3d-lab/adventure-count-return-v290.css */
/* Overcount is a correction step, not a reason to shrink the child's targets.
   Give the count its own row only when extra eggs are actually present. */
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:6px 8px;min-width:0}
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden]))>strong{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])) .count-total{grid-column:1/-1;grid-row:1;order:0;justify-self:center;font-size:22px;line-height:26px;text-align:center;white-space:nowrap}
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])) .count-spaces{grid-column:1/-1;grid-row:2;display:flex;flex:none;flex-wrap:wrap;justify-content:center;width:100%;min-width:0;gap:4px}
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])) .count-extras{display:flex;flex:0 0 auto;gap:4px;padding:0;margin:0;max-width:100%}
body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])) button.count-space{width:44px;min-width:44px;flex:0 0 44px;height:46px;min-height:44px;padding:0;border-radius:14px}
@media(max-width:359px){body[data-lesson=count] #adventure #work .count-request:has(.count-extras:not([hidden])) :is(.count-spaces,.count-extras){gap:2px}}
/* Existing material shapes, sizes and positions stay exact. Dark outlines
   separate wood and stone from water on small screens and in both trials. */
body:has(#activity:not([hidden]) .science-steps) #work .science-diagram :is(rect,ellipse){stroke-width:2.5;vector-effect:non-scaling-stroke}
body:has(#activity:not([hidden]) .science-steps) #work .science-diagram rect{stroke:#76542f}
body:has(#activity:not([hidden]) .science-steps) #work .science-diagram ellipse{stroke:#395c69}
body:has(#activity:not([hidden]) .science-steps) #work .science-diagram>path:first-child{stroke:#436a78}
body:has(#activity:not([hidden]) .science-steps) #work .science-diagram>path:nth-child(2){stroke:#237a96}


/* 3d-lab/adventure-quantity-request-v295.css */
.quantity-request{background:#fff4d9;border:2px solid #e6ca89;border-radius:20px;padding:10px 14px;text-align:center;color:#345953;margin:0 0 10px}
.quantity-request[hidden]{display:none}
.quantity-request>strong{font-size:clamp(17px,2.3vmin,22px);display:block;line-height:1.35}
.quantity-request-strip{display:flex;justify-content:center;align-items:center;gap:12px;margin:5px auto}
.quantity-examples{display:flex;gap:12px;align-items:end}
.quantity-example-basket{position:relative;display:flex;align-items:center;justify-content:center;width:78px;height:49px;border:2px solid #bda679;border-bottom:8px solid #c3a377;border-radius:9px;background:#f5e9c9}
.quantity-example-basket img{width:22px;height:31px;object-fit:contain;filter:none}
.quantity-example-basket[data-wanted=true]{border-color:#398c77;background:#e1f2d9;box-shadow:0 0 0 3px #72b9a34d}
.quantity-example-heart{display:none;position:absolute;top:-13px;right:-6px;border-radius:50%;background:#398c77;color:white;font:700 19px/24px sans-serif;width:24px;height:24px}
.quantity-example-basket[data-wanted=true] .quantity-example-heart{display:block}
.quantity-request-arrow{font-size:26px;font-weight:800;color:#398c77}
.quantity-request-friend{width:48px;height:48px;background-repeat:no-repeat;flex:none}
.quantity-request small{display:block;font-size:12px;line-height:1.3;color:#637e70}
body[data-lesson=quantity] .compare-baskets{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}
body[data-lesson=quantity] .compare-basket{min-width:0}
body[data-lesson=quantity] .count-tray{grid-template-columns:repeat(2,minmax(0,74px))}
body[data-lesson=quantity] #work .count-egg{max-width:100%;min-width:0}
body[data-lesson=quantity] .count-egg img{max-width:100%}
body[data-lesson=quantity] #work .compare-pick{min-width:0;max-width:100%;overflow-wrap:anywhere}
.quantity-request[data-help=true] .quantity-example-basket[data-wanted=true]{animation:quantity-request-pulse 1s ease-in-out 3}
[data-lesson=quantity] .count-egg[data-count-help=true]:not([aria-pressed=true]){outline:4px solid #398c77;outline-offset:2px;animation:quantity-count-pulse 1s ease-in-out 3}
@keyframes quantity-request-pulse{50%{transform:translateY(-4px);box-shadow:0 0 0 5px #72b9a34d}}
@keyframes quantity-count-pulse{50%{outline-color:#c69b3b}}
@media(max-height:520px) and (orientation:landscape){.quantity-request{display:grid;grid-template-columns:86px 1fr;align-items:center;gap:5px;width:100%;padding:5px 8px;margin-bottom:3px}.quantity-request>strong{font-size:14px;line-height:1.2}.quantity-request-strip{margin:2px auto;gap:8px}.quantity-examples{gap:8px}.quantity-example-basket{height:32px;width:58px}.quantity-example-basket img{height:23px;width:16px}.quantity-request-friend{height:32px;width:32px}.quantity-request-arrow{font-size:22px}.quantity-request small{display:none}}
@media(prefers-reduced-motion:reduce){.quantity-request[data-help=true] .quantity-example-basket[data-wanted=true],[data-lesson=quantity] .count-egg[data-count-help=true]{animation:none}}


/* 3d-lab/adventure-controls-v296.css */
/* The narrow landscape heading used a 42px map button. Keep its real hit
   area at least 44px without scaling the scene or the character art. */
.activity-heading > #back {
 min-width: 44px;
 min-height: 44px;
}


/* 3d-lab/adventure-science-actions-v297.css */
#work .science-drop .science-action-picture{display:block;width:142px;height:102px;max-width:100%;margin:auto}
#activity #next.science-next-action{display:flex;align-items:center;justify-content:center;gap:8px}
#next.science-next-action>.science-action-picture{display:block;width:44px;height:36px;flex:0 0 44px}
#next.science-next-action>strong{font:inherit;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
@media(max-height:520px){#work .science-drop .science-action-picture{width:108px;height:72px}#next.science-next-action>.science-action-picture{width:36px;height:30px;flex-basis:36px}}
/* Match the existing compact science layout on wider landscape phones too.
   Review used to scroll the top sound control out of view to reveal Next. */
@media(min-width:700px) and (max-height:520px){
 body:has(#activity:not([hidden]) .science-steps) header{height:55px;min-height:55px;padding:6px 10px}
 body:has(#activity:not([hidden]) .science-steps) header h1{font-size:20px}
 body:has(#activity:not([hidden]) .science-steps) header small{font-size:9px}
 body:has(#activity:not([hidden]) .science-steps) header>a,
 body:has(#activity:not([hidden]) .science-steps) header>button{width:44px;height:44px;min-height:44px;padding:6px}
 body:has(#activity:not([hidden]) .science-steps) #view{height:calc(100dvh - 55px);min-height:0;max-height:none}
 #activity:has(.science-steps){padding-top:6px;padding-bottom:8px}
 #activity:has(.science-steps) .activity-heading h2{font-size:18px;line-height:1.2}
 #activity:has(.science-steps) .activity-heading small{font-size:10px}
 #activity:has(.science-steps) .activity-heading>button{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:6px}
 #activity:has(.science-steps) #detail{font-size:12px;line-height:1.3;margin:4px 0}
 #activity:has(.science-steps) #work button.science-choice{min-height:104px;padding:6px}
 #activity:has(.science-steps) #work .science-diagram{width:95px;height:68px}
 #activity:has(.science-steps) #next{min-height:44px;margin:4px auto 0;padding:8px 12px;font-size:16px}
}


/* 3d-lab/adventure-number-train-v306.css */
body[data-lesson=number-train] #work{display:grid;grid-template-columns:1fr;gap:12px;width:min(100%,640px);margin-inline:auto}
.train-track{display:flex;justify-content:center;gap:12px;padding:8px 12px 15px;border-bottom:5px double #95a79b}
.train-slot{display:grid;place-items:center;min-width:62px;min-height:48px;background:#e8eddf;border:2px dashed #a6b6a8;border-radius:14px;color:#879c8c;font-size:28px;font-weight:900}
.train-slot[data-current=true]{border:3px solid #d9ad50;background:#fff3c9;color:#375d55;box-shadow:0 0 0 4px #e3bb6530}
.train-slot[data-filled=true]{border-style:solid;border-color:#79a999;color:#34685a;background:#dcefe4}
.train-request{display:flex;align-items:center;justify-content:center;gap:14px;min-height:67px;padding:6px 16px;background:#fff6dc;border-radius:20px}
.train-request>b{font-size:40px;color:#315e57;line-height:1}
.train-egg-picture{display:flex;justify-content:center;align-items:center;gap:3px;flex-wrap:wrap}
.train-egg-picture img{display:block;object-fit:contain;width:31px;height:42px;user-select:none}
.train-request .train-egg-picture{max-width:160px}
.train-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#work .train-choice{position:relative;display:grid;place-items:center;min-height:112px;padding:12px 7px 24px;border-radius:18px;border:3px solid #a7c2ad;background:#fffdf4;box-shadow:0 5px 0 #c4d3bc;cursor:pointer;touch-action:manipulation}
.train-choice:nth-child(2){border-color:#d0bb84;box-shadow:0 5px 0 #e4d4ad}.train-choice:nth-child(3){border-color:#c7a88d;box-shadow:0 5px 0 #dec5ae}
.train-choice .train-egg-picture{max-width:85px;min-height:70px;gap:2px}
.train-choice .train-egg-picture img{width:34px;height:42px}
.train-choice-wheels:before,.train-choice-wheels:after{content:"";position:absolute;bottom:8px;width:17px;height:17px;background:#486764;border:4px solid #d8c394;border-radius:50%;box-sizing:border-box}.train-choice-wheels:before{left:18px}.train-choice-wheels:after{right:18px}
#work .train-choice:active{transform:translateY(3px);box-shadow:none}#work .train-choice[data-placed=true]{opacity:.32;background:#dae8df;box-shadow:none}#work .train-choice[data-help=true]{outline:4px solid #e4b95a;outline-offset:3px;animation:train-help-pulse 1s ease-in-out infinite}
@keyframes train-help-pulse{50%{outline-offset:6px}}
@media(max-width:640px){body[data-lesson=number-train] #work{gap:9px}.train-track{gap:9px;padding:4px 9px 10px}.train-slot{min-width:56px;min-height:42px;font-size:25px}.train-request{min-height:57px;padding:5px 12px}.train-request>b{font-size:33px}.train-request .train-egg-picture img{width:25px;height:34px}.train-choices{gap:9px}#work .train-choice{min-height:105px;padding:8px 5px 23px}.train-choice .train-egg-picture img{width:29px;height:38px}}
@media(max-height:520px) and (min-width:700px){body[data-lesson=number-train] #work{gap:7px}.train-track{padding-bottom:7px}.train-slot{min-width:49px;min-height:34px;font-size:23px}.train-request{min-height:42px;padding:3px 10px}.train-request>b{font-size:28px}.train-request .train-egg-picture img{width:22px;height:29px}#work .train-choice{min-height:88px}.train-choice .train-egg-picture{min-height:45px}.train-choice .train-egg-picture img{width:25px;height:32px}}
@media(prefers-reduced-motion:reduce){#work .train-choice[data-help=true]{animation:none}}


/* 3d-lab/adventure-number-train-v308.css */
#work .train-choice[data-train-feedback=retry]{border-color:#dbb66d;background:#fff5dc;animation:train-try-again .32s ease-out}
#work .train-choice[data-train-feedback=moving]{border-color:#cda34f;background:#fff4cf;box-shadow:0 5px 0 #d8be82,0 0 0 4px #e5c98438}
.train-slot[data-train-feedback=coupled]{background:#cae8d9;border-color:#6a9f86;animation:train-linked .4s ease-out}
@keyframes train-try-again{25%{transform:translateX(-3px)}65%{transform:translateX(3px)}}
@keyframes train-linked{45%{transform:scale(1.07)}}
@media(prefers-reduced-motion:reduce){#work .train-choice[data-train-feedback],.train-slot[data-train-feedback]{animation:none}}


/* 3d-lab/adventure-word-content-v310.css */
.vocab-art{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;min-width:0;pointer-events:none}
.vocab-art>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
#work .vocab-art>img{width:100%;height:100%;max-width:100%;margin:0}
.vocab-window{display:block;position:relative;height:100%;width:auto;overflow:hidden;flex:none}
.vocab-window>img{position:absolute;max-width:none!important;object-fit:fill!important;pointer-events:none}
.word-find .choice .vocab-art{height:clamp(78px,13vmin,126px);width:100%;margin:0 auto 4px}
.word-model .vocab-art{width:clamp(66px,10vmin,90px);height:clamp(66px,10vmin,90px)}
.word-recall-prompt .vocab-art{width:76px;height:76px}
.fact .vocab-art{width:64px;height:64px;flex:none}
@media(max-width:560px){.word-find .choice .vocab-art{height:82px}.word-model .vocab-art{width:64px;height:64px}.word-recall-prompt .vocab-art{width:62px;height:62px}}

/* The active slot already has its letter and focus ring. A second line of
   hint text obscured that letter on short screens. Keep the accessible label
   and the single help sentence below the board instead. */
#work .vocab-board .word-slot{width:60px;height:60px;min-width:60px;min-height:60px;padding:0;font-size:30px}
#work .vocab-board .word-slot::after{display:none}
body[data-lesson=korean] #work .vocab-board .word-tile{min-width:62px;min-height:62px;font-size:30px;padding:6px}
#work .vocab-board .word-tiles{flex-wrap:wrap;gap:8px}
#work .vocab-board .word-slots{gap:8px}
@media(orientation:landscape) and (max-height:520px){
 #work .vocab-board .word-slot{width:56px;height:56px;min-width:56px;min-height:56px;font-size:28px}
 body[data-lesson=korean] #work .vocab-board .word-tile{min-width:56px;min-height:56px;font-size:28px}
}


/* 3d-lab/adventure-stamp-v306.css */
/* Optional drawing editor, scoped to the existing village view. */
#view .stamp-layer{position:absolute;inset:0;z-index:7;pointer-events:none}
#view .stamp-entry{position:absolute;display:grid;grid-template-rows:35px 18px;place-items:center;width:72px;height:64px;min-height:64px;padding:3px 5px;border:3px solid #fff8dd;border-radius:23px;background:#fffdf2;color:#38635a;box-shadow:0 3px 0 #526f5738;transform:translate(-50%,-50%);touch-action:none;pointer-events:auto;line-height:1.1}
#view .stamp-entry svg{width:40px;height:35px;overflow:visible}
#view .stamp-entry span{font-size:13px;font-weight:850}
#view .stamp-entry:active{transform:translate(-50%,-50%) scale(.96)}
#view .stamp-editor{position:absolute;inset:0;display:grid;place-items:center;padding:8px;background:#edf3e8f5;pointer-events:auto;touch-action:none;overflow:hidden}
#view .stamp-panel{display:grid;grid-template-columns:var(--stamp-paper-size) var(--stamp-tool-size) 64px;align-items:center;justify-content:center;gap:12px;max-width:100%;max-height:100%}
#view .stamp-paper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));width:var(--stamp-paper-size);height:var(--stamp-paper-size);background:#fff7e8;border-radius:12px;box-shadow:0 3px 10px #4d675529;overflow:hidden}
#view .stamp-paper{position:relative}
/* The note borrows the top row's inner space, never its 64px hit areas. */
#view .stamp-instruction{position:absolute;inset:0 4px auto;box-sizing:border-box;height:24px;margin:0;padding:4px 0 2px;color:#38635a;font-size:13px;font-weight:850;line-height:18px;letter-spacing:-.2px;text-align:center;white-space:nowrap;pointer-events:none;user-select:none}
#view .stamp-cell{display:grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;color:#38635a;touch-action:none;transform:none}
#view .stamp-cell[data-stamp-cell="0"],#view .stamp-cell[data-stamp-cell="1"],#view .stamp-cell[data-stamp-cell="2"]{box-sizing:border-box;padding-top:24px}
#view .stamp-cell svg{width:70%;height:70%;pointer-events:none;transform:scale(1);transition:transform .10s ease-out}
#view .stamp-cell:active{transform:none}
#view .stamp-cell[data-stamp-pressed="on"]{background:radial-gradient(circle,#c6d9bd99 0 39%,transparent 41%)}
#view .stamp-cell:active svg,#view .stamp-cell[data-stamp-pressed="on"] svg{transform:scale(.92)}
#view .stamp-tools{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}
#view .stamp-tool{display:grid;place-items:center;width:var(--stamp-tool-size);height:var(--stamp-tool-size);min-width:var(--stamp-tool-size);min-height:var(--stamp-tool-size);padding:5px;border:4px solid transparent;border-radius:19px;background:#f9fbf2;box-shadow:0 3px 0 #526f5724;color:#38635a;touch-action:none}
#view .stamp-tool svg{width:46px;height:46px;pointer-events:none}
#view .stamp-tool[aria-pressed="true"]{border-color:#2c736d;background:#dbeedb;box-shadow:0 3px 0 #2c736d38}
#view .stamp-utilities{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}
#view .stamp-eraser,#view .stamp-undo,#view .stamp-close{display:grid;place-items:center;grid-template-rows:30px 16px;gap:1px;width:64px;height:var(--stamp-tool-size);min-width:64px;min-height:64px;padding:4px 3px;border:3px solid transparent;border-radius:17px;background:#f9fbf2;color:#38635a;touch-action:none;font-size:12px;line-height:1.1}
#view .stamp-eraser svg,#view .stamp-undo svg,#view .stamp-close svg{width:34px;height:30px;pointer-events:none}
#view .stamp-eraser[aria-pressed="true"]{border-color:#2c736d;background:#dbeedb;box-shadow:0 3px 0 #2c736d38}
#view .stamp-close{background:#2e8f81;color:#fffdf2}
#view .stamp-undo:disabled{opacity:.42;box-shadow:none;cursor:default}
#view .stamp-entry:focus-visible,#view .stamp-tool:focus-visible,#view .stamp-eraser:focus-visible,#view .stamp-undo:focus-visible,#view .stamp-close:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .stamp-cell:focus-visible{outline:3px solid #174d55;outline-offset:-4px}
#view .stamp-editor[data-stamp-layout="tall"] .stamp-panel{grid-template-columns:var(--stamp-paper-size);grid-template-rows:var(--stamp-paper-size) var(--stamp-tool-size) var(--stamp-tool-size);gap:12px}
#view .stamp-editor[data-stamp-layout="tall"] .stamp-tools{flex-direction:row}
#view .stamp-editor[data-stamp-layout="tall"] .stamp-utilities{flex-direction:row}
#view[data-stamp-editor="on"]>.discovery-layer,#view[data-stamp-editor="on"]>#bubble,#view[data-stamp-editor="on"]>#picnic-invite{visibility:hidden!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){#view .stamp-cell svg{transition:none}#view .stamp-cell:active svg,#view .stamp-cell[data-stamp-pressed="on"] svg{transform:scale(.985)}}


/* 3d-lab/adventure-creek-boats-v306.css */
/* One fixed launch label; scenery and other toys retain their own UI. */
#view .creek-boats-layer{position:absolute;inset:0;z-index:5;pointer-events:none}
#view .creek-boats-pin{position:absolute;z-index:1;display:grid;grid-template-rows:46px 20px;place-items:center;box-sizing:border-box;width:104px;height:80px;min-width:104px;min-height:80px;padding:4px 3px;border:3px solid #fff8dd;border-radius:23px;background:#fffdf2;color:#38635a;box-shadow:0 3px 0 #526f5738;transform:translate(-50%,-50%);touch-action:none;pointer-events:auto;line-height:1.1}
#view .creek-boats-pin svg{width:94px;height:44px;overflow:visible;pointer-events:none}
#view .creek-boats-pin span{font-size:14px;font-weight:850;white-space:nowrap;pointer-events:none}
#view .creek-boats-pin[hidden],#view .creek-action-link[hidden]{display:none}
#view .creek-boats-pin[data-creek-mode="watch"]{background:#e8f4ed}
#view .creek-action-link{position:absolute;z-index:0;height:3px;border-radius:2px;background:#79adb0;transform-origin:left center;pointer-events:none}
#view .creek-boats-pin:active{transform:translate(-50%,-50%) scale(.96)}
#view .creek-boats-pin[data-creek-pressed="on"]{background:#dcebd8;box-shadow:0 1px 0 #526f5738}
#view .creek-boats-pin:focus-visible{outline:3px solid #174d55;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#view .creek-boats-pin:active{transform:translate(-50%,-50%)}}

#view[data-creek-focus="on"] #bubble{visibility:hidden}


/* 3d-lab/adventure-apple-harvest-v306.css */
/* Fixed, large picture choices leave the physical fruit and faces readable. */
#view .apple-harvest-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
#view .apple-harvest-controls{position:absolute;left:50%;bottom:8px;display:flex;gap:8px;padding:5px 7px;border:2px solid #fff7dc;border-radius:24px;background:#f9f1d5ed;transform:translateX(-50%);pointer-events:none}
#view .apple-harvest-controls[hidden]{display:none}
#view .apple-harvest-button{display:grid;grid-template-rows:36px 17px;place-items:center;width:88px;height:68px;min-width:64px;min-height:64px;padding:3px 4px;border:3px solid #fff8dd;border-radius:20px;background:#fffdf2;color:#38635a;box-shadow:0 3px 0 #526f5738;line-height:1.1;touch-action:none;pointer-events:auto}
#view .apple-harvest-button svg{width:70px;height:36px;pointer-events:none}
#view .apple-harvest-button span{font-size:13px;font-weight:850;white-space:nowrap;pointer-events:none}
#view .apple-harvest-button[aria-pressed="true"]{background:#dcebd8;box-shadow:0 1px 0 #526f5738}
#view .apple-harvest-button:disabled{opacity:.58}
#view .apple-harvest-button:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .apple-harvest-controls{z-index:2}
#view .apple-harvest-action-pin{position:absolute;z-index:1;display:grid;grid-template-rows:46px 20px;place-items:center;box-sizing:border-box;width:104px;height:80px;min-width:104px;min-height:80px;padding:4px 3px;border:3px solid #f5d58e;border-radius:24px;background:#fffbed;color:#315f55;box-shadow:0 4px 0 #745c4038;line-height:1;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none}
#view .apple-harvest-action-pin[hidden],#view .apple-harvest-action-link[hidden]{display:none}
#view .apple-harvest-action-pin svg{width:94px;height:44px;pointer-events:none}
#view .apple-harvest-action-pin span{font-size:15px;font-weight:850;white-space:nowrap;pointer-events:none}
#view .apple-harvest-action-pin:active{transform:translate(-50%,-50%) scale(.97)}
#view .apple-harvest-action-pin:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .apple-harvest-action-link{position:absolute;z-index:0;height:3px;border-radius:2px;background:#d9ae4f;box-shadow:0 0 0 1px #fff8dc;transform-origin:left center;pointer-events:none}
#view[data-apple-harvest-focus="on"] #bubble{visibility:hidden}
/* The older global invitation occupies these same phone controls. Borrow
   only its visibility while this local strip is actually on screen. */
#view[data-apple-harvest-controls="on"] #picnic-invite{visibility:hidden;pointer-events:none}
@media(max-width:420px){#view .apple-harvest-button{width:80px}}
@media(orientation:landscape) and (max-height:500px){
 #view .apple-harvest-controls{left:8px;top:50%;bottom:auto;flex-direction:column;transform:translateY(-50%)}
 #view .apple-harvest-button{width:88px}
}


/* 3d-lab/adventure-writing-v306.css */
/* The new station owns its modal and hub invitation only. */
#hub .writing-hub-entry{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;gap:7px;min-height:60px;padding:8px 14px;margin-left:10px;border:3px solid #f7eed2;border-radius:22px;background:#f6dfad;color:#42685c;box-shadow:0 4px 0 #c7ad7a;font:inherit;font-weight:850;line-height:1.15;touch-action:none}
#hub .writing-hub-entry svg{width:34px;height:34px;pointer-events:none}
#hub .writing-hub-entry span{pointer-events:none}
body:not([data-hub-walk="on"]) #hub #stroll{vertical-align:middle}
body:not([data-hub-walk="on"]) #hub #doors{margin-top:8px}
body[data-hub-walk="on"] #hub .writing-hub-entry{display:none}
#view .writing-layer{position:absolute;inset:0;z-index:9;pointer-events:none}
#view .writing-entry{position:absolute;display:grid;grid-template-rows:35px 17px;place-items:center;width:72px;height:64px;min-height:64px;padding:3px 5px;border:3px solid #fff8dd;border-radius:23px;background:#fffdf2;color:#38635a;box-shadow:0 3px 0 #526f5738;transform:translate(-50%,-50%);touch-action:none;pointer-events:auto;line-height:1.1}
#view .writing-entry svg{width:40px;height:35px;pointer-events:none}
#view .writing-entry span{font-size:13px;font-weight:850;pointer-events:none}
#view .writing-editor{position:absolute;inset:0;display:grid;place-items:center;padding:8px;background:#edf3e8f5;pointer-events:auto;touch-action:none;overflow:hidden}
#view .writing-entry[hidden],#view .writing-editor[hidden]{display:none}
#view .writing-panel{display:grid;grid-template-columns:64px 280px var(--writing-paper-size);grid-template-rows:64px 64px 64px;align-items:center;justify-content:center;gap:8px;max-width:100%;max-height:100%}
#view .writing-modes{grid-column:1;grid-row:1/4;flex-direction:column}
#view .writing-groups{grid-column:2;grid-row:1}
#view .writing-choices{grid-column:2;grid-row:2}
#view .writing-utilities{grid-column:2;grid-row:3}
#view .writing-utilities{position:relative}
#view .writing-save-status{position:absolute;left:0;right:0;top:auto;bottom:-14px;text-align:center;color:#557268;font-size:11px;line-height:12px;font-weight:700;white-space:nowrap;pointer-events:none}
#view .writing-colors{grid-column:2;grid-row:1}
#view .writing-brushes{grid-column:2;grid-row:2}
#view .writing-modes,#view .writing-groups,#view .writing-colors,#view .writing-brushes,#view .writing-choices,#view .writing-utilities{display:flex;align-items:center;justify-content:center;gap:8px}
#view .writing-panel [hidden]{display:none!important}
#view .writing-paper-wrap{grid-column:3;grid-row:1/4;position:relative;width:var(--writing-paper-size);height:var(--writing-paper-size);border-radius:20px;background:#fff7e8;box-shadow:0 4px 12px #4d67552b;overflow:hidden}
#view .writing-paper{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}
#view .writing-paper>*{pointer-events:none}
#view .writing-paper>.writing-hit{pointer-events:all}
#view .writing-line-learner,#view .writing-line-learner *{pointer-events:none}
#view .line-play-truck{overflow:hidden}
#view .line-play-finish{pointer-events:none}
#view .writing-editor[data-writing-mode="lines"] .writing-choices{grid-row:1/3}
#view .writing-teacher-trail{fill:none;stroke:#2f7fa9;stroke-width:.019;stroke-dasharray:.026 .019;stroke-linecap:round;stroke-linejoin:round;opacity:.92;pointer-events:none}
#view .writing-lift-cue>rect{fill:#fffdf2;stroke:#d2ddcf;stroke-width:2}
#view .writing-lift-hand{fill:#f0d4a7;stroke:#557269;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#view .writing-lift-arrow{fill:none;stroke:#2f7fa9;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
#view .writing-lift-paper,#view .writing-lift-tap{fill:none;stroke:#7b9987;stroke-width:2;stroke-linecap:round}
#view .writing-status{position:absolute;top:9px;left:8px;right:8px;text-align:center;color:#557268;font-size:13px;font-weight:800;line-height:1.25;pointer-events:none}
#view .writing-paper[data-writing-done="on"]{background:radial-gradient(circle,#eaf2df66,transparent 65%)}
#view .writing-mode,#view .writing-color,#view .writing-brush,#view .writing-group,#view .writing-choice,#view .writing-guide,#view .writing-reset,#view .writing-close{display:grid;place-items:center;width:64px;height:64px;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#f9fbf2;color:#38635a;box-shadow:0 3px 0 #526f5724;touch-action:none;line-height:1.1}
#view .writing-mode,#view .writing-color,#view .writing-brush{grid-template-rows:31px 16px;font-size:11px;font-weight:850}
#view .writing-brush{color:var(--writing-brush-color,#2f7568)}
#view .writing-brush svg{width:44px;height:31px;pointer-events:none}
#view .writing-brush span{pointer-events:none;white-space:nowrap;color:#38635a}
#view .writing-free-start{pointer-events:none}
#view .writing-mode svg{width:34px;height:31px;pointer-events:none}
#view .writing-mode span,#view .writing-color span{pointer-events:none;white-space:nowrap}
#view .writing-swatch{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--writing-color);color:#fffdf2}
#view .writing-swatch b{visibility:hidden;font-size:22px;line-height:1;pointer-events:none}
#view .writing-color[aria-pressed="true"] .writing-swatch b{visibility:visible}
#view .writing-group{grid-template-rows:29px 17px}
#view .writing-group b{font-size:22px;letter-spacing:-1px;pointer-events:none}
#view .writing-group span{font-size:11px;font-weight:850;pointer-events:none;white-space:nowrap}
#view .writing-choice svg{width:48px;height:48px;pointer-events:none}
#view .writing-guide,#view .writing-reset,#view .writing-close{grid-template-rows:31px 16px;font-size:12px;font-weight:850}
#view .writing-guide svg,#view .writing-reset svg,#view .writing-close svg{width:34px;height:31px;pointer-events:none}
#view .writing-guide span,#view .writing-reset span,#view .writing-close span{pointer-events:none}
#view .writing-mode[aria-pressed="true"],#view .writing-color[aria-pressed="true"],#view .writing-brush[aria-pressed="true"],#view .writing-group[aria-pressed="true"],#view .writing-choice[aria-pressed="true"],#view .writing-guide[aria-pressed="true"]{border-color:#2c736d;background:#dbeedb}
#view .writing-utilities button:disabled{opacity:.48;box-shadow:none}
#view .writing-close{background:#2e8f81;color:#fffdf2}
#hub .writing-hub-entry:focus-visible,#view .writing-entry:focus-visible,#view .writing-mode:focus-visible,#view .writing-color:focus-visible,#view .writing-brush:focus-visible,#view .writing-group:focus-visible,#view .writing-choice:focus-visible,#view .writing-guide:focus-visible,#view .writing-reset:focus-visible,#view .writing-close:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .writing-editor[data-writing-layout="tall"] .writing-panel{grid-template-columns:var(--writing-paper-size);grid-template-rows:64px 64px var(--writing-paper-size) 64px 64px;gap:8px}
#view .writing-editor[data-writing-layout="tall"] .writing-modes{grid-column:1;grid-row:1;flex-direction:row}
#view .writing-editor[data-writing-layout="tall"] .writing-groups,#view .writing-editor[data-writing-layout="tall"] .writing-colors{grid-column:1;grid-row:2}
#view .writing-editor[data-writing-layout="tall"] .writing-paper-wrap{grid-column:1;grid-row:3}
#view .writing-editor[data-writing-layout="tall"] .writing-choices{grid-column:1;grid-row:4}
#view .writing-editor[data-writing-layout="tall"] .writing-utilities{grid-column:1;grid-row:5}
#view .writing-editor[data-writing-layout="tall"] .writing-save-status{top:auto;bottom:-18px}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-panel{grid-template-rows:64px 64px 64px var(--writing-paper-size) 64px}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-brushes{grid-column:1;grid-row:3}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-paper-wrap{grid-row:4}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-utilities{grid-row:5}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-panel{position:relative}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-utilities{position:static}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-save-status{top:-12px;bottom:auto}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="lines"] .writing-panel{grid-template-rows:64px 64px var(--writing-paper-size) 64px}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="lines"] .writing-choices{grid-row:2}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="lines"] .writing-utilities{grid-row:4}
#view[data-writing-editor="on"]>.discovery-layer,#view[data-writing-editor="on"]>#bubble,#view[data-writing-editor="on"]>#picnic-invite{visibility:hidden!important;pointer-events:none!important}
@media(max-width:420px){body:not([data-hub-walk="on"]) #stroll{max-width:48%;padding-left:10px;padding-right:10px}#hub .writing-hub-entry{max-width:44%;margin-left:6px;padding-left:8px;padding-right:8px}}

/* Shape stamps are real marks on the same paper. Keep full-size controls in
   a second tool column on short landscape screens and a row on portrait. */
#view .writing-free-tool{display:grid;place-items:center;grid-template-rows:31px 16px;width:64px;height:64px;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#f9fbf2;color:var(--writing-tool-color,#2f7568);box-shadow:0 3px 0 #526f5724;touch-action:none;line-height:1.1;font-size:11px;font-weight:850}
#view .writing-free-tool svg{width:34px;height:31px;pointer-events:none}
#view .writing-free-tool:not([data-writing-tool="crayon"]) svg{fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
#view .writing-free-tool span{pointer-events:none;white-space:nowrap;color:#38635a}
#view .writing-free-tool[aria-pressed="true"]{border-color:#2c736d;background:#dbeedb}
#view .writing-free-tool:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .writing-free-tools{grid-column:2;grid-row:1/4;display:grid;grid-template-columns:64px 64px;align-content:center;gap:8px}
#view .writing-editor[data-writing-mode="free"] .writing-panel{grid-template-columns:64px 136px 280px var(--writing-paper-size)}
#view .writing-editor[data-writing-mode="free"] .writing-colors{grid-column:3;grid-row:1}
#view .writing-editor[data-writing-mode="free"] .writing-brushes{grid-column:3;grid-row:2}
#view .writing-editor[data-writing-mode="free"] .writing-utilities{grid-column:3;grid-row:3}
#view .writing-editor[data-writing-mode="free"] .writing-paper-wrap{grid-column:4;grid-row:1/4}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-panel{grid-template-columns:var(--writing-paper-size);grid-template-rows:64px 64px 64px 64px var(--writing-paper-size) 64px}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-colors{grid-column:1;grid-row:2}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-free-tools{grid-column:1;grid-row:3;display:flex;align-items:center;justify-content:center;gap:8px}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-brushes{grid-column:1;grid-row:4}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-paper-wrap{grid-column:1;grid-row:5}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-utilities{grid-column:1;grid-row:6}
#view .writing-editor[data-writing-mode="free"] .writing-reset[data-writing-capacity="on"]{border-color:#b38036;background:#fff0bc;box-shadow:0 3px 0 #b792535c}
body[data-hub-walk="on"] #adventure #view[data-writing-editor="on"]{bottom:8px}
#view[data-writing-editor="on"]~#hub{visibility:hidden;pointer-events:none}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-panel{grid-template-columns:64px 280px var(--writing-paper-size);grid-template-rows:64px 64px 64px 64px}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-modes{grid-row:1/5}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-colors{grid-column:2;grid-row:1}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-brushes{grid-column:2;grid-row:2}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-free-tools{grid-column:2;grid-row:3;display:flex;align-items:center;justify-content:center;gap:8px}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-utilities{grid-column:2;grid-row:4}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-paper-wrap{grid-column:3;grid-row:1/5}

/* Four full-size utility buttons fit the existing280px choice-column width. */
#view .writing-page{display:grid;place-items:center;grid-template-rows:31px 16px;width:64px;height:64px;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#fff0ce;color:#38635a;box-shadow:0 3px 0 #526f5724;touch-action:none;line-height:1.1;font-size:11px;font-weight:850}
#view .writing-page>svg{width:36px;height:31px}
#view .writing-page svg{pointer-events:none}
#view .writing-page span{pointer-events:none;white-space:nowrap}
#view .writing-page:focus-visible{outline:3px solid #174d55;outline-offset:3px}

/* Optional shared turns reuse the existing paper and dialog. */
#view .writing-buddy-start,#view .writing-buddy-child,#view .writing-buddy-finish,#view .writing-buddy-next,#view .writing-buddy-stop{display:grid;place-items:center;min-width:64px;min-height:64px;padding:6px;border:3px solid #e3d7ec;border-radius:18px;background:#eee7f3;color:#624e76;font:inherit;font-size:14px;font-weight:850;line-height:1.15;touch-action:none}
#view .writing-buddy-start{width:64px;height:64px;white-space:normal;word-break:keep-all}
#view .writing-buddy-start{grid-template-rows:34px 18px;font-size:11px}
#view .writing-buddy-start .ahyeon-portrait{height:34px}
#view .writing-buddy-child,#view .writing-buddy-finish,#view .writing-buddy-next,#view .writing-buddy-stop{grid-template-rows:30px 18px}
#view .writing-buddy-child svg,#view .writing-buddy-finish svg,#view .writing-buddy-next svg,#view .writing-buddy-stop svg{width:34px;height:30px;fill:none;stroke:currentColor;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#view .writing-buddy-start span,#view .writing-buddy-child span,#view .writing-buddy-finish span,#view .writing-buddy-next span,#view .writing-buddy-stop span{pointer-events:none}
#view .writing-buddy-child,#view .writing-buddy-next{width:128px;background:#2e8f81;border-color:#c9e4cf;color:#fffdf2}
#view .writing-buddy-finish{width:112px;background:#2e8f81;border-color:#c9e4cf;color:#fffdf2}
#view .writing-buddy-stop{width:88px;background:#fff6df;color:#685c40;border-color:#eddfc3}
#view .writing-buddy-start:focus-visible,#view .writing-buddy-child:focus-visible,#view .writing-buddy-finish:focus-visible,#view .writing-buddy-next:focus-visible,#view .writing-buddy-stop:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .writing-buddy-preview{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(180px,70%);padding:8px;border:3px solid #cfc2dd;border-radius:18px;background:#fffaf0;box-shadow:0 4px 12px #4d67552b;pointer-events:none}
#view .writing-buddy-heading{display:flex;align-items:center;justify-content:center;gap:4px;color:#624e76;font-size:12px;line-height:1.15}
#view .writing-buddy-preview svg{display:block;width:100%;aspect-ratio:1;background:#fff7e8;border-radius:10px}
#view .writing-buddy-preview-trail{fill:none;stroke:#2f7fa9;stroke-width:.035;stroke-linecap:round;stroke-linejoin:round}
#view .writing-buddy-preview[hidden]{display:none!important}
#view .writing-buddy-turn{position:absolute;top:4px;left:4px;right:4px;display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:14px;background:#fffaf0e8;color:#624e76;font-size:18px;line-height:1.1;pointer-events:none}
/* A CSS window onto the same approved boy artwork used in the village.
   No bitmap is regenerated and the friend keeps her original portrait. */
#view .writing-jjae-portrait{display:inline-block;width:48px;height:44px;flex-shrink:0;background-image:url('../assets/jjae-bowl-poses-v146-lossless-v204.webp');background-repeat:no-repeat;background-size:226.47px 113.235px;background-position:-4.09px -12.77px;pointer-events:none}
#view .writing-jjae-portrait[hidden],#view .writing-buddy-turn .ahyeon-portrait[hidden]{display:none!important}
#view .writing-editor[data-writing-buddy] .writing-status{top:auto;bottom:8px;background:#fffaf0df;border-radius:8px}
#view .writing-editor[data-writing-buddy="demo"] .writing-paper{opacity:.48}
@media(max-width:370px){#view .writing-modes .ahyeon-writing-buddy{display:none}}

/* Hide optional choices only for the shared turn. Releasing the dataset
   restores every ordinary grid, control and tool without changing its state. */
#view .writing-editor[data-writing-buddy] .writing-modes{display:none!important}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"] .writing-panel{grid-template-columns:280px var(--writing-paper-size);grid-template-rows:64px 64px 64px;gap:12px}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"] .writing-paper-wrap{grid-column:2;grid-row:1/4}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"] .writing-utilities{grid-column:1;grid-row:1/4;align-self:center}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"][data-writing-mode="free"] .writing-colors{grid-column:1;grid-row:1}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"][data-writing-mode="free"] .writing-utilities{grid-column:1;grid-row:3}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-panel{grid-template-columns:var(--writing-paper-size);grid-template-rows:var(--writing-paper-size) 64px;gap:12px}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-paper-wrap{grid-column:1;grid-row:1}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-utilities{grid-column:1;grid-row:2}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-panel{grid-template-rows:64px var(--writing-paper-size) 64px}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-colors{grid-column:1;grid-row:1}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-paper-wrap{grid-column:1;grid-row:2}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-utilities{grid-column:1;grid-row:3}

/* Ordinary wide mode choices include three modes, together-start and the
   unchanged friend portrait. Two columns keep all five inside short views.
   These selectors do not alter shared-turn compact or portrait grids. */
#view .writing-editor[data-writing-layout="wide"]:not([data-writing-buddy]) .writing-panel{grid-template-columns:136px 280px var(--writing-paper-size)}
#view .writing-editor[data-writing-layout="wide"]:not([data-writing-buddy]) .writing-modes{display:grid;grid-template-columns:64px 64px;grid-auto-rows:64px;align-content:center;justify-content:center;gap:8px}
#view .writing-editor[data-writing-layout="wide"][data-writing-mode="free"]:not([data-writing-buddy]) .writing-panel{grid-template-columns:136px 136px 280px var(--writing-paper-size)}
#view .writing-editor[data-writing-layout="wide"][data-writing-mode="free"][data-writing-tools="stacked"]:not([data-writing-buddy]) .writing-panel{grid-template-columns:136px 280px var(--writing-paper-size)}

/* A separate status cell keeps the start cue visible even on a216px paper.
   The paper and its normalized tracing coordinates remain unchanged. */
#view .writing-editor[data-writing-buddy] .writing-buddy-turn {
  position:static;
  top:auto;
  left:auto;
  right:auto;
  grid-column:1;
  grid-row:1;
  width:100%;
  max-width:100%;
  align-self:center;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"] .writing-utilities {
  grid-row:2/4;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"][data-writing-mode="free"] .writing-buddy-turn {
  grid-row:2;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="wide"][data-writing-mode="free"] .writing-utilities {
  grid-row:3;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-panel {
  grid-template-rows:44px var(--writing-paper-size) 64px;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-paper-wrap {
  grid-row:2;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"] .writing-utilities {
  grid-row:3;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-panel {
  grid-template-rows:44px 64px var(--writing-paper-size) 64px;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-colors {
  grid-row:2;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-paper-wrap {
  grid-row:3;
}
#view .writing-editor[data-writing-buddy][data-writing-layout="tall"][data-writing-mode="free"] .writing-utilities {
  grid-row:4;
}

/* Shared turns own this compact action row. Ordinary picture controls must
   neither consume its width nor create an implicit third panel column. */
#view .writing-editor[data-writing-buddy] .writing-picture-show,
#view .writing-editor[data-writing-buddy] .writing-picture-book {
  display:none!important;
}
#view .writing-editor[data-writing-buddy="demo"] .writing-utilities>.writing-guide,
#view .writing-editor[data-writing-buddy="demo"] .writing-utilities>.writing-reset,
#view .writing-editor[data-writing-buddy="celebrate"] .writing-utilities>.writing-guide,
#view .writing-editor[data-writing-buddy="celebrate"] .writing-utilities>.writing-reset {
  display:none!important;
}
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-child,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-next {
  --writing-buddy-action-width:128px;
}
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-finish {
  --writing-buddy-action-width:112px;
}
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-stop {
  --writing-buddy-action-width:88px;
}
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-child,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-finish,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-next,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-stop {
  box-sizing:border-box;
  flex:0 0 var(--writing-buddy-action-width);
  width:var(--writing-buddy-action-width);
  min-width:var(--writing-buddy-action-width);
  max-width:var(--writing-buddy-action-width);
  height:64px;
  min-height:64px;
  padding:4px;
}
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-child span,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-finish span,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-next span,
#view .writing-editor[data-writing-buddy] .writing-utilities>.writing-buddy-stop span {
  white-space:nowrap;
}
#view .writing-editor[data-writing-buddy="child"][data-writing-mode="free"] .writing-utilities {
  gap:8px;
  flex-wrap:nowrap;
}
#view .writing-editor[data-writing-buddy="child"][data-writing-mode="free"] .writing-utilities>.writing-guide {
  flex:0 0 64px;
  width:64px;
  min-width:64px;
  max-width:64px;
}

/* Ordinary success prepares a separate action without hiding the old tools. */
#view .writing-next{display:grid;grid-template-rows:30px 18px;place-items:center;box-sizing:border-box;width:128px;min-width:128px;max-width:128px;height:64px;min-height:64px;padding:4px;border:3px solid #c9e4cf;border-radius:18px;background:#267c6e;color:#fffdf2;font:inherit;font-size:14px;font-weight:850;line-height:1.15;touch-action:none;justify-self:center}
#view .writing-next svg{width:34px;height:30px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#view .writing-next span{white-space:nowrap;pointer-events:none}
#view .writing-next:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .writing-editor[data-writing-next="on"][data-writing-layout="wide"]:not([data-writing-buddy]) .writing-panel{grid-template-rows:64px 64px 64px 64px}
#view .writing-editor[data-writing-next="on"][data-writing-layout="wide"]:not([data-writing-buddy]) .writing-modes{grid-row:1/5}
#view .writing-editor[data-writing-next="on"][data-writing-layout="wide"]:not([data-writing-buddy]) .writing-paper-wrap{grid-row:1/5}
#view .writing-editor[data-writing-next="on"][data-writing-layout="wide"]:not([data-writing-buddy]) .writing-next{grid-column:2;grid-row:3}
#view .writing-editor[data-writing-next="on"][data-writing-layout="wide"]:not([data-writing-buddy]) .writing-utilities{grid-row:4}
/* Under296px, the four real mode buttons use two rows. Only the duplicate,
   noninteractive invitation portrait yields its flow slot to the next action. */
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-panel{grid-template-rows:64px 64px 64px}
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-modes{grid-row:1/3}
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-modes>.ahyeon-writing-buddy{display:none!important}
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-paper-wrap{grid-row:1/4}
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-next{grid-column:1;grid-row:3}
#view .writing-editor[data-writing-next="on"][data-writing-next-layout="compact"]:not([data-writing-buddy]) .writing-utilities{grid-row:3}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"]:not([data-writing-buddy]) .writing-panel{grid-template-rows:64px 64px var(--writing-paper-size) 64px 64px 64px}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"]:not([data-writing-buddy]) .writing-next{grid-column:1;grid-row:5}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"]:not([data-writing-buddy]) .writing-utilities{grid-row:6}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"][data-writing-mode="lines"]:not([data-writing-buddy]) .writing-panel{grid-template-rows:64px 64px var(--writing-paper-size) 64px 64px}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"][data-writing-mode="lines"]:not([data-writing-buddy]) .writing-next{grid-row:4}
#view .writing-editor[data-writing-next="on"][data-writing-layout="tall"][data-writing-mode="lines"]:not([data-writing-buddy]) .writing-utilities{grid-row:5}
#view .writing-editor[data-writing-next-layout="scroll"]{overflow-y:auto;align-items:start}
#view .writing-editor[data-writing-next-layout="scroll"] .writing-panel{max-height:none}


/* 3d-lab/adventure-egg-order-v1.css */
/* The original count-and-delivery layout remains. Only its new remaining-set
   step has this layout, keeping the approved characters and palette. */
body[data-order-step] #work .order-remainder{width:100%;display:grid;gap:10px;padding:14px;background:#fffaf0;border:2px solid #d9e6cf;border-radius:24px;text-align:center;box-sizing:border-box}
body[data-order-step] .order-remainder>strong{font-size:clamp(18px,2.5vmin,26px);color:#254d45}
body[data-order-step] .order-left-total{font-size:22px;color:#306d56}
body[data-order-step] .order-left-row,body[data-order-step] .order-answers{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
body[data-order-step] #work .order-left-row>button,body[data-order-step] #work .order-answers>button{position:relative;min-width:76px;min-height:82px;width:auto;flex:0 0 auto;padding:8px 12px;border:2px solid #c9dcc5;border-radius:20px;box-shadow:0 4px 0 #b2cdb7;background:#fffef9;opacity:1}
body[data-order-step] .order-left-row img{height:60px;width:auto;object-fit:contain}
body[data-order-step] .order-left-row>button[data-counted=true]{border-color:#4b9976;background:#e1f0df;box-shadow:none}
body[data-order-step] .order-left-row b{position:absolute;right:-3px;top:-6px;display:grid;place-items:center;border-radius:50%;width:30px;height:30px;background:#347d60;color:white;font-size:22px}
body[data-order-step] #work .order-answers strong{display:block;font-size:32px;line-height:1.1;color:#254d45}
body[data-order-step] .order-answer-dots{display:flex;justify-content:center;gap:3px;margin-top:5px}
body[data-order-step] .order-answer-dots img{width:17px;height:23px;object-fit:contain}
body[data-order-step] .order-answers button[data-retry=true]{border-color:#d4a961;background:#fff2d6}
body[data-order-step] .order-review{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-order-step] .order-review section{padding:10px 6px;border:2px solid #d3e4ca;border-radius:20px;background:#edf5e5}
body[data-order-step] .order-review section:first-child{background:#fff0d4;border-color:#e8d4ad}
body[data-order-step] .order-review strong{display:block;font-size:16px;margin-bottom:8px}
body[data-order-step] .order-review section div{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
body[data-order-step] .order-review img{height:42px;max-width:23%;object-fit:contain}
body[data-order-step] #work .order-next{width:100%;min-height:60px;background:#2e8470;color:white;font-size:22px;border-radius:20px;box-shadow:0 4px 0 #1b5c50}
body[data-order-step] #work [hidden]{display:none!important}
#work [data-order-hint=true]{outline:4px solid #dcb95c;outline-offset:3px}
@media(max-height:520px) and (min-width:700px){
 body[data-order-step] #work .order-remainder{padding:8px;gap:6px}
 body[data-order-step] .order-remainder>strong{font-size:17px}
 body[data-order-step] .order-left-total{font-size:18px}
 body[data-order-step] #work .order-left-row>button,body[data-order-step] #work .order-answers>button{min-height:64px;min-width:68px;padding:5px 9px}
 body[data-order-step] .order-left-row img{height:46px}
 body[data-order-step] .order-review img{height:34px}
 body[data-order-step] #work .order-next{min-height:52px;font-size:20px}
}


/* 3d-lab/adventure-ahyeon-v322.css */
/* The fourth mode-row slot is a quiet friend, not another action to learn. */
#view .ahyeon-writing-buddy{display:grid;place-items:center;grid-template-rows:44px 16px;width:64px;height:64px;min-width:64px;flex-shrink:0;border-radius:18px;background:#eee7f3;color:#69557e;font-size:11px;line-height:1;font-weight:850;pointer-events:none}
.ahyeon-portrait{display:inline-block;width:48px;height:44px;flex-shrink:0;background-image:url('../assets/ahyeon-friend-v322.png');background-repeat:no-repeat;background-size:330px 110px;background-position:-34px -2px;pointer-events:none}
#view [data-ahyeon-gesture="wave"] .ahyeon-portrait{background-position-x:-144px}
#view [data-ahyeon-gesture="clap"] .ahyeon-portrait{background-position-x:-254px}
#hub .ahyeon-writing-entry .ahyeon-portrait{width:44px;height:40px;background-position-x:-36px}
#view .writing-modes{overflow:visible}
@media(max-height:360px){#view .writing-editor[data-writing-layout="wide"] .ahyeon-writing-buddy{display:none}}


/* 3d-lab/adventure-picture-show-v323.css */
/* A read-only copy of the same paper. Sizes use the editor's existing paper
   calculation; the controller keeps every interaction in the original dialog. */
#view .writing-panel[hidden]{display:none!important}
#view .writing-picture-show{display:grid;place-items:center;grid-template-rows:31px 16px;width:64px;height:64px;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#eee7f3;color:#69557e;box-shadow:0 3px 0 #526f5724;touch-action:none;line-height:1.1;font-size:11px;font-weight:850}
#view .writing-picture-show>svg{width:36px;height:31px}
#view .writing-picture-show svg,#view .writing-picture-show span{pointer-events:none}
#view .writing-picture-show span{white-space:nowrap}
#view .writing-picture-show:disabled{opacity:.48;box-shadow:none}
#view .writing-picture-show:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-show{display:grid;grid-template-columns:var(--writing-paper-size) 208px;grid-template-rows:minmax(0,1fr) 64px;grid-template-areas:"paper friend" "paper actions";gap:12px 16px;align-items:center;justify-content:center;max-width:100%;max-height:100%}
#view .picture-show[hidden]{display:none!important}
#view .picture-show-preview{grid-area:paper;display:block;width:var(--writing-paper-size);height:var(--writing-paper-size);min-width:0;min-height:0;padding:0;border:0;border-radius:20px;background:#fff7e8;color:#38635a;box-shadow:0 4px 12px #4d67552b;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
#view .picture-show-paper,#view .picture-show-friend-paper{display:block;width:100%;height:100%;pointer-events:none}
#view .picture-show-paper *,#view .picture-show-friend-paper *{pointer-events:none}
#view .picture-show-friend-paper{display:none}
#view .picture-show[data-paper-owner="friend"] .picture-show-paper{display:none}
#view .picture-show[data-paper-owner="friend"] .picture-show-friend-paper{display:block}
#view .picture-ride-layer,#view .picture-ride-layer *{pointer-events:none}
#view .picture-ride-truck{overflow:hidden}
#view .picture-show-friend{grid-area:friend;display:grid;justify-items:center;align-content:center;gap:0;min-width:0;pointer-events:none}
/* At the minimum216px paper,96px portrait +40px copy fits the140px
   space above the unchanged64px action row and12px grid gap. */
#view .picture-show-friend-turn{position:relative;display:block;box-sizing:border-box;width:clamp(96px,calc(var(--writing-paper-size) - 136px),144px);height:clamp(96px,calc(var(--writing-paper-size) - 136px),144px);min-width:96px;min-height:96px;margin:0;padding:0;border:2px solid #c5b4d0;border-radius:18px;background:#eee7f3;color:#69557e;box-shadow:0 3px 0 #526f5724;touch-action:none;pointer-events:auto;font:inherit;line-height:1.1}
#view .picture-show-friend-turn:disabled{opacity:.8;box-shadow:none}
#view .picture-show-friend-turn:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-show-friend-turn[data-drawing="on"]{opacity:1;border-color:#2c736d;background:#e1efe4;box-shadow:inset 0 0 0 2px #2c736d}
#view .picture-show-friend-turn[data-drawing="on"] .picture-show-friend-pencil{box-sizing:border-box;border:2px solid #2c736d;border-radius:6px;background:#fff0ce}
#view .picture-show-source{display:grid;place-items:center;grid-template-rows:76px 16px;box-sizing:border-box;width:88px;height:96px;min-width:88px;min-height:96px;margin:0;padding:0;border:2px solid #6d9b84;border-radius:14px;background:#fff7e8;color:#38635a;box-shadow:0 3px 0 #526f5724;pointer-events:auto;touch-action:none;cursor:pointer}
#view .picture-show-source[hidden]{display:none!important}
#view .picture-show-source:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-show-source-paper{display:block;width:76px;height:76px;overflow:hidden;background:#fff7e8;pointer-events:none}
#view .picture-show-source-paper *,#view .picture-show-source-crayon *{pointer-events:none}
#view .picture-show-source-crayon{display:block;width:24px;height:16px;pointer-events:none}
#view .picture-show-portrait{position:absolute;left:50%;top:0;transform:translateX(-50%);display:block;width:calc(100% - 20px);height:calc(100% - 20px);background-image:url('../assets/ahyeon-friend-v322.png');background-repeat:no-repeat;background-size:300% 100%;background-position:100% 0;pointer-events:none}
#view .picture-show-drawing-portrait{position:absolute;inset:0;display:none;width:100%;height:100%;object-fit:contain;pointer-events:none}
#view .picture-show[data-paper-owner="friend"][data-friend-art="ready"] .picture-show-portrait{background-image:none}
#view .picture-show[data-paper-owner="friend"][data-friend-art="ready"] .picture-show-drawing-portrait{display:block}
#view .picture-show-friend-pencil{position:absolute;top:3px;right:3px;width:22px;height:22px;pointer-events:none}
#view .picture-show-friend-label{position:absolute;bottom:3px;left:0;width:100%;font-size:12px;line-height:16px;font-weight:850;white-space:nowrap;pointer-events:none}
#view .picture-show-friend-copy{display:grid;grid-template-rows:20px 20px;gap:0;max-width:208px;max-height:44px;align-content:center;pointer-events:none}
#view .picture-show-owner{margin:0;color:#38635a;text-align:center;font-size:14px;line-height:20px;font-weight:900;word-break:keep-all;pointer-events:none}
#view .picture-show-message{margin:0;max-width:208px;color:#69557e;text-align:center;font-size:16px;line-height:20px;font-weight:850;word-break:keep-all;overflow-wrap:break-word;pointer-events:none}
#view .picture-show-actions{grid-area:actions;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}
#view .picture-show-again,#view .picture-show-ride,#view .picture-show-walk{display:grid;place-items:center;grid-template-rows:31px 16px;flex:1 1 0;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#eee7f3;color:#69557e;box-shadow:0 3px 0 #526f5724;touch-action:none;font:inherit;font-size:12px;font-weight:850;line-height:1.1;white-space:nowrap}
#view .picture-show-ride{background:#fff0ce;color:#38635a}
#view .picture-show-ride[hidden]{display:none!important}
#view .picture-show-ride[aria-pressed="true"]{border-color:#2c736d;background:#dbeedb}
#view .picture-show-action-icon{width:34px;height:31px;pointer-events:none}
#view .picture-show-action-icon *,#view .picture-show-action-label{pointer-events:none}
#view .picture-show-button-icon{display:flex;align-items:center;justify-content:center;gap:0;width:48px;height:31px;pointer-events:none}
#view .picture-show-button-icon .picture-show-button-paper{width:17px;height:27px;flex-shrink:0}
#view .picture-show-button-icon .picture-show-button-arrow{width:8px;height:20px;flex-shrink:0}
#view .picture-show-button-friend{display:block;width:22px;height:28px;flex-shrink:0;background-image:url('../assets/ahyeon-friend-v322.png');background-repeat:no-repeat;background-size:165px 55px;background-position:-17px -1px;pointer-events:none}
#view .picture-show-walk{background:#2e8f81;color:#fffdf2}
#view .picture-show-preview:focus-visible,#view .picture-show-again:focus-visible,#view .picture-show-ride:focus-visible,#view .picture-show-walk:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .writing-editor[data-writing-layout="tall"] .picture-show{grid-template-columns:var(--writing-paper-size);grid-template-rows:96px var(--writing-paper-size) 64px;grid-template-areas:"friend" "paper" "actions";gap:10px}
#view .writing-editor[data-writing-layout="tall"] .picture-show-friend{grid-template-columns:96px minmax(0,1fr);align-items:center;justify-items:center;gap:8px}
#view .writing-editor[data-writing-layout="tall"] .picture-show-friend-turn{width:96px;height:96px}
#view .writing-editor[data-writing-layout="tall"] .picture-show-friend-copy{grid-template-rows:auto auto;max-height:none}
#view .writing-editor[data-writing-layout="tall"] .picture-show-message{font-size:14px}
/* The full original stays beside the friend, outside the main216px paper.
   96px+88px+8px fits the208px column;96px+4px+40px fits its140px row. */
#view .picture-show[data-paper-owner="friend"] .picture-show-friend{grid-template-columns:96px 88px;grid-template-rows:96px 40px;column-gap:8px;row-gap:4px;justify-content:center}
#view .picture-show[data-paper-owner="friend"] .picture-show-friend-turn{width:96px;height:96px}
#view .picture-show[data-paper-owner="friend"] .picture-show-friend-copy{grid-column:1/-1;grid-row:2}
#view .writing-editor[data-writing-layout="tall"] .picture-show[data-paper-owner="friend"] .picture-show-friend{grid-template-rows:96px;row-gap:0}
/* Keep the ownership/caption text available to assistive technology while
   the two recognizable paper/character controls fit the existing96px header. */
#view .writing-editor[data-writing-layout="tall"] .picture-show[data-paper-owner="friend"] .picture-show-friend-copy{position:absolute;width:1px;height:1px;max-width:1px;max-height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Posting and returning share one second-card slot. Neither adds a fourth
   footer action or shrinks the existing216px main paper. */
#view .picture-show-source{overflow:hidden}
#view .picture-show-exhibit{display:grid;place-items:center;grid-template-rows:76px 16px;box-sizing:border-box;width:88px;height:96px;min-width:88px;min-height:96px;margin:0;padding:0;overflow:hidden;border:2px solid #ac906b;border-radius:14px;background:#fff7e8;color:#38635a;box-shadow:0 3px 0 #526f5724;pointer-events:auto;touch-action:none;cursor:pointer}
#view .picture-show-exhibit[hidden]{display:none!important}
#view .picture-show-exhibit:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-show-exhibit[aria-pressed="true"]{border-color:#2c736d;box-shadow:inset 0 0 0 2px #2c736d}
#view .picture-show-exhibit-paper{display:block;width:76px;height:76px;background:#fff7e8;pointer-events:none}
#view .picture-show-exhibit-paper *,#view .picture-show-exhibit-stand *{pointer-events:none}
#view .picture-show-exhibit-stand{display:block;width:28px;height:16px;pointer-events:none}
#view .picture-show-exhibit-label{display:flex;align-items:center;justify-content:center;gap:2px;font-size:10px;line-height:16px;font-weight:850;white-space:nowrap;pointer-events:none}
#view .picture-show[data-exhibit-choice="on"] .picture-show-friend{grid-template-columns:96px 88px;grid-template-rows:96px 40px;column-gap:8px;row-gap:4px;justify-content:center}
#view .picture-show[data-exhibit-choice="on"] .picture-show-friend-turn{width:96px;height:96px}
#view .picture-show[data-exhibit-choice="on"] .picture-show-friend-copy{grid-column:1/-1;grid-row:2}
#view .writing-editor[data-writing-layout="tall"] .picture-show[data-exhibit-choice="on"] .picture-show-friend{grid-template-rows:96px;row-gap:0}
#view .writing-editor[data-writing-layout="tall"] .picture-show[data-exhibit-choice="on"] .picture-show-friend-copy{position:absolute;width:1px;height:1px;max-width:1px;max-height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* The standing picture uses the former caption space. Keep its live status
   available to assistive technology while the child looks at the exhibit. */
#view[data-writing-exhibit="on"] #bubble{width:1px;height:1px;min-width:0;min-height:0;max-width:1px;max-height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;pointer-events:none}
/* The optional picture letter uses a second footer row, preserving every
   existing action and the original square paper on the smallest layouts. */
#view .picture-show-letter{display:grid;place-items:center;grid-template-rows:31px 16px;box-sizing:border-box;min-width:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#f4e4d4;color:#6a5b4d;box-shadow:0 3px 0 #526f5724;touch-action:none;font:inherit;font-size:12px;font-weight:850;line-height:1.1;white-space:nowrap}
#view .picture-show-letter[hidden]{display:none!important}
#view .picture-show-letter:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-show[data-letter-choice="on"]{grid-template-rows:minmax(0,1fr) 136px}
#view .picture-show[data-letter-choice="on"] .picture-show-actions{display:grid;grid-template-columns:repeat(2,minmax(64px,1fr));grid-template-rows:64px 64px;gap:8px}
#view .writing-editor[data-writing-layout="tall"] .picture-show[data-letter-choice="on"]{grid-template-rows:96px var(--writing-paper-size) 136px}
#view .picture-letter-hud{position:absolute;z-index:32;left:50%;bottom:16px;transform:translateX(-50%);display:grid;grid-template-columns:1fr 1fr;gap:8px;box-sizing:border-box;width:min(440px,calc(100% - 24px));padding:10px;border:3px solid #aac7ae;border-radius:22px;background:#fff8e9;box-shadow:0 5px 0 #536f5724;pointer-events:auto;font-family:inherit}
#view .picture-letter-hud[hidden]{display:none!important}
#view .picture-letter-status{grid-column:1/-1;margin:0;text-align:center;color:#496f65;font-size:15px;line-height:20px;font-weight:850;word-break:keep-all}
#view .picture-letter-primary,#view .picture-letter-cancel{display:grid;place-items:center;box-sizing:border-box;min-width:64px;min-height:72px;margin:0;padding:8px;border:2px solid #81b39e;border-radius:16px;background:#2e8f81;color:#fffdf2;touch-action:none;font:inherit;font-size:15px;line-height:20px;font-weight:850;word-break:keep-all;overflow-wrap:break-word;grid-template-rows:31px auto;gap:3px}
#view .picture-letter-cancel{border-color:#c8b89d;background:#eee7d8;color:#5d6756}
#view .picture-letter-primary:disabled{background:#e4ebdc;color:#5d7364;opacity:1}
#view .picture-letter-primary:focus-visible,#view .picture-letter-cancel:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view[data-writing-letter="on"] #bubble{width:1px;height:1px;min-width:0;min-height:0;max-width:1px;max-height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;pointer-events:none}
#view[data-writing-letter="on"]~#hub{visibility:hidden;pointer-events:none}

#view .picture-letter-primary>svg,#view .picture-letter-cancel>svg{display:block;width:34px;height:31px;pointer-events:none}
#view .picture-letter-primary>svg *,#view .picture-letter-cancel>svg *{pointer-events:none}

/* Independent invited friend turn330: the letter and editable original keep
   their own lifetimes. This layer only presents the selected temporary copy. */
#view .picture-letter-hud[data-friend-choice="on"]{grid-template-columns:repeat(3,minmax(0,1fr));width:min(540px,calc(100% - 24px))}
#view .picture-letter-friend{display:grid;place-items:center;box-sizing:border-box;min-width:72px;min-height:72px;margin:0;padding:8px;border:2px solid #bcadc9;border-radius:16px;background:#eee7f3;color:#69557e;touch-action:none;font:inherit;font-size:14px;line-height:20px;font-weight:850;word-break:keep-all;grid-template-rows:31px auto;gap:3px}
#view .picture-letter-friend[hidden]{display:none!important}
#view .picture-letter-friend:disabled{opacity:.55}
#view .picture-letter-friend:focus-visible{outline:3px solid #174d55;outline-offset:3px}
#view .picture-letter-friend-portrait{display:block;width:34px;height:31px;background-image:url('../assets/ahyeon-friend-v322.png');background-repeat:no-repeat;background-size:210px 70px;background-position:-23px -2px;pointer-events:none}
#view .picture-letter-friend>span{pointer-events:none}
#view[data-writing-reply="on"] .picture-letter-hud{visibility:hidden;pointer-events:none}
#view .picture-reply-editor{z-index:40;box-sizing:border-box}
#view .picture-reply-editor[hidden]{display:none!important}
#view .picture-reply-editor .picture-show{height:var(--picture-reply-height);grid-template-rows:minmax(0,1fr) 72px}
#view .picture-reply-editor .picture-show-actions{height:72px}
#view .picture-reply-editor .picture-show-again,#view .picture-reply-editor .picture-show-walk{min-height:72px;height:72px;box-sizing:border-box}
#view .picture-reply-editor[data-writing-layout="tall"] .picture-show{grid-template-rows:96px var(--writing-paper-size) 72px;row-gap:10px}


/* 3d-lab/adventure-picture-book-v331.css */
/* Only the optional picture book owns these controls and overview. */
#view .writing-picture-book{display:grid;place-items:center;grid-template-rows:31px 16px;min-width:64px;height:64px;min-height:64px;padding:4px;border:3px solid transparent;border-radius:18px;background:#f5e5c4;color:#735d40;font:inherit;font-size:11px;font-weight:850;line-height:1.1;touch-action:none;box-shadow:0 3px 0 #526f5724}
#view .writing-picture-book svg{width:36px;height:31px;pointer-events:none}#view .writing-picture-book span{pointer-events:none;white-space:nowrap}
#view .writing-picture-book[hidden],#view .picture-book-overview[hidden]{display:none!important}
#view .writing-editor[data-writing-mode="free"] .writing-picture-book{grid-column:3;grid-row:2;width:64px;justify-self:center;position:relative;left:72px}
#view .writing-editor[data-writing-mode="free"] .writing-brushes{width:208px;justify-self:center;justify-content:flex-start}
#view .writing-editor[data-writing-mode="free"][data-writing-tools="stacked"] .writing-picture-book{grid-column:2;grid-row:2}
#view .writing-editor[data-writing-layout="tall"][data-writing-mode="free"] .writing-picture-book{grid-column:1;grid-row:4}
#view .picture-book-overview{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "pages" "actions" "status";gap:8px;width:min(100%,640px);max-height:100%;overflow:auto;padding:4px;color:#38635a;pointer-events:auto;touch-action:pan-y;box-sizing:border-box}
#view .picture-book-title{grid-area:title;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;font-size:18px;line-height:26px;font-weight:900}#view .picture-book-title svg{width:32px;height:26px}
#view .picture-book-pages{grid-area:pages;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#view .picture-book-page{display:grid;place-items:center;grid-template-rows:minmax(64px,76px) 16px;min-width:88px;min-height:104px;padding:4px;box-sizing:border-box;border:3px solid #b6c9b6;border-radius:14px;background:#fff7e8;color:#38635a;touch-action:none;font:inherit;box-shadow:0 3px 0 #526f5724}
#view .picture-book-thumbnail{display:block;width:76px;height:76px;background:#fff7e8;pointer-events:none}#view .picture-book-thumbnail *{pointer-events:none}#view .picture-book-page-label{font-size:12px;line-height:16px;font-weight:850;pointer-events:none}
#view .picture-book-page{position:relative}
#view .picture-book-empty-cue{grid-row:1;grid-column:1;display:grid;place-items:center;position:absolute;inset:4px 4px auto;height:76px;pointer-events:none;color:#63846a}
#view .picture-book-empty-cue svg{width:64px;height:64px}#view .picture-book-empty-cue[hidden]{display:none!important}
#view .picture-book-copy-cue{display:none}#view .picture-book-overview[data-copy-mode="on"] .picture-book-draw-cue{display:none}#view .picture-book-overview[data-copy-mode="on"] .picture-book-copy-cue{display:block}
#view .picture-book-page[data-book-selected="on"]{border-color:#2c736d;box-shadow:inset 0 0 0 2px #2c736d}
#view .picture-book-actions{grid-area:actions;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#view .picture-book-copy{grid-column:1/-1}
#view .picture-book-actions button{display:grid;place-items:center;grid-template-rows:31px 16px;min-width:64px;min-height:64px;padding:4px;box-sizing:border-box;border:3px solid transparent;border-radius:16px;background:#eee7d9;color:#65573d;font:inherit;font-size:11px;font-weight:850;line-height:1.1;touch-action:none}
#view .picture-book-actions svg{width:34px;height:31px;pointer-events:none}#view .picture-book-actions span{pointer-events:none;white-space:nowrap}#view .picture-book-again{background:#dcecdf!important;color:#38635a!important}
#view .picture-book-copy[aria-pressed="true"]{border-color:#2c736d;background:#dcecdf}#view .picture-book-overview button:disabled{opacity:.45;box-shadow:none}
#view .picture-book-status{grid-area:status;margin:0;min-height:16px;text-align:center;font-size:11px;line-height:16px;font-weight:750;word-break:keep-all}
#view .picture-book-overview button:focus-visible,#view .writing-picture-book:focus-visible{outline:3px solid #174d55;outline-offset:2px}
#view .writing-editor[data-writing-layout="wide"] .picture-book-overview{grid-template-columns:minmax(288px,1fr) 144px;grid-template-areas:"title title" "pages actions" "status status";gap:8px 12px;max-width:760px}
#view .writing-editor[data-writing-layout="wide"] .picture-book-pages{grid-template-columns:repeat(3,minmax(0,1fr))}
#view .writing-editor[data-writing-layout="wide"] .picture-book-actions{grid-template-columns:144px;grid-template-rows:64px 64px 64px;align-content:center}#view .writing-editor[data-writing-layout="wide"] .picture-book-copy{grid-column:1}

