*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f3f8ef;color:#3a4a42;font-family:system-ui,'Malgun Gothic',sans-serif}[hidden]{display:none!important}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;font-weight:800;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:4px solid #206f8e;outline-offset:4px}#play{max-width:1120px;margin:auto;padding:10px 18px 14px}nav{display:flex;justify-content:space-between;align-items:center;gap:12px;height:64px;padding-bottom:10px}.icon-button{display:grid;place-items:center;width:48px;height:48px;border:2px solid white;border-radius:16px;background:#fffaf0;color:#497b78;font-size:27px;box-shadow:0 3px 0 #c3d9cb;text-decoration:none}.chapter{display:flex;gap:9px}.chapter span{background:#e1dfcb;color:#777d6b;border:2px solid transparent;border-radius:20px;font-size:13px;font-weight:800;padding:6px 16px}.chapter span.active{background:#ffd36c;color:#5a4726;border-color:white}.chapter span.done{background:#a3d6bb;color:#355f4c}#stage{position:relative;height:min(74dvh,690px);min-height:430px;border:4px solid #fffaf0;border-radius:28px;overflow:hidden;box-shadow:0 8px 0 #c3d9cb;background:#c5e7ed}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:pointer}#cue{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 26px);padding:12px 20px;display:flex;gap:12px;align-items:center;border-radius:22px;background:#fffaf2f5;color:#42534b;box-shadow:0 5px 0 #c8bba12e;min-height:56px;font-size:clamp(17px,2.4vw,24px)}#cue span{color:#458f9d;font-size:19px}#cue-line{white-space:normal;text-align:left}#egg-meter{position:absolute;left:14px;top:94px;background:#fff9e9ed;border:2px solid white;border-radius:18px;padding:9px 12px;pointer-events:none}#meter-label{display:block;font-size:12px;font-weight:800;text-align:center;margin-bottom:5px}#egg-slots{display:flex;gap:6px}.veil{position:absolute;inset:0;display:grid;place-items:center;background:#233c4430;backdrop-filter:blur(3px);z-index:5}.card{width:min(460px,calc(100% - 28px));text-align:center;border:3px solid #fff;border-radius:30px;background:#fff9edf5;padding:28px 24px;box-shadow:0 12px 50px #2e635438}.tag{font-size:13px;letter-spacing:.04em;color:#688474;font-weight:800}h1,h2{font-size:clamp(25px,4vw,34px);line-height:1.25;margin:15px 0}p{font-size:16px;line-height:1.6}.primary{display:inline-block;min-width:178px;min-height:60px;padding:13px 26px;font-size:23px;border:3px solid #fff8ce;border-radius:23px;color:#604920;background:#f7ce65;box-shadow:0 6px 0 #c89d39;text-decoration:none}.primary:active{transform:translateY(3px);box-shadow:0 2px 0 #c89d39}.primary:disabled{opacity:.65;cursor:default}.concept{display:block;font-size:13px;margin-top:20px;color:#668078;text-decoration:underline;text-underline-offset:4px}#action-bar{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);z-index:2}#coach-hand{position:absolute;pointer-events:none;z-index:3;font-size:38px;filter:drop-shadow(0 2px 0 white);animation:coach 1s ease-in-out infinite}#feedback{text-align:center;font-size:15px;min-height:26px;margin-top:15px;font-weight:700;color:#668078}.learning-stamps{display:flex;gap:5px;justify-content:center;margin:16px 0 23px}.learning-stamps span{font-size:12px;border-radius:13px;padding:6px 9px;background:#e6efd9;color:#64816a}.screen-reader{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.screen-reader:focus-within{position:static;width:auto;height:auto;clip-path:none;white-space:normal;padding:12px;display:flex;gap:10px;flex-wrap:wrap}.screen-reader button{min-height:52px;padding:10px;border-radius:14px;background:white}#stage.hint #cue{box-shadow:0 0 0 4px #f8ce6944}@keyframes coach{50%{transform:translateY(7px)}}@media(max-width:500px){#play{padding:8px 8px 14px}nav{height:58px}.chapter span{padding:6px 10px;font-size:12px}.icon-button{width:44px;height:44px}#stage{height:calc(100dvh - 115px);min-height:460px;border-radius:23px}#cue{top:12px;padding:11px 12px;gap:8px;font-size:18px;min-height:52px}#egg-meter{top:79px;left:9px;padding:7px 9px}#feedback{font-size:13px;margin-top:14px}.card{padding:22px 15px}.learning-stamps span{font-size:11px;padding:5px 7px}}@media(max-height:500px) and (min-width:600px){#play{padding:4px 10px 8px}nav{height:42px}.icon-button{width:34px;height:34px;font-size:22px}.chapter span{padding:3px 15px}#stage{height:calc(100dvh - 80px);min-height:240px;border-radius:20px}#cue{top:8px;min-height:39px;padding:6px 15px;font-size:17px}#egg-meter{top:8px;left:8px;font-size:11px;padding:5px 8px}#meter-label{font-size:10px}#action-bar{bottom:14px}.primary{min-height:47px;font-size:19px;padding:8px 20px}#feedback{font-size:12px;margin-top:9px}.card{padding:14px 18px}h1,h2{font-size:23px;margin:7px 0}p{margin:8px 0}.concept{margin-top:10px}.learning-stamps{margin:9px 0 12px}}@media(prefers-reduced-motion:reduce){#coach-hand{animation:none}.primary:active{transform:none}}

#color-request{position:absolute;right:14px;top:94px;display:flex;align-items:center;gap:10px;padding:10px 12px;border:2px solid white;border-radius:18px;background:#fff9e9f0;pointer-events:none;min-height:74px;color:#42534b}#color-request[hidden]{display:none}#color-request strong,#color-request small{display:block}#color-request strong{font-size:15px}#color-request small{font-size:11px;margin-top:5px}@media(max-width:500px){#color-request{right:9px;top:79px;padding:7px 9px;gap:7px;min-height:66px}#color-request strong{font-size:13px}#color-request small{font-size:10px}}@media(max-height:500px) and (min-width:600px){#color-request{top:8px;right:8px;padding:5px 8px;gap:6px;min-height:46px}#color-request strong{font-size:12px}#color-request small{font-size:10px;margin-top:2px}}

#friend-request{position:absolute;right:14px;top:94px;display:flex;align-items:center;gap:8px;padding:8px 11px;border:2px solid white;border-radius:18px;background:#fff9e9f0;pointer-events:none;color:#42534b}#friend-request strong,#friend-request small{display:block}#friend-request strong{font-size:14px}#friend-request small{font-size:11px;margin-top:5px}.friend-portrait img{position:absolute;max-width:none}@media(max-width:500px){#friend-request{right:9px;top:79px;padding:7px 8px;gap:5px}#friend-request strong{font-size:12px}#friend-request small{font-size:10px}}@media(max-height:500px) and (min-width:600px){#friend-request{right:8px;top:8px;padding:4px 7px;gap:5px}#friend-request strong{font-size:12px}#friend-request small{margin-top:2px;font-size:10px}}

#friend-response{position:absolute;z-index:5;display:flex;align-items:center;gap:6px;padding:9px 14px;border-radius:18px;background:#fff8e8;color:#49766b;box-shadow:0 3px 12px #42685825;pointer-events:none;transform:translate(-50%,-100%);font-size:16px;white-space:nowrap}#friend-response span{color:#de9b82;font-size:22px}#friend-response[hidden]{display:none}

#count-check{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:3;border:2px solid #fffaf0;border-radius:23px;background:#fff9e9f2;padding:12px 14px 14px;text-align:center;box-shadow:0 5px 16px #49766b23;width:292px;max-width:calc(100% - 20px)}#count-check>strong{display:block;font-size:17px;color:#4b6b5e;margin-bottom:9px}#count-choices{display:flex;gap:12px}#count-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:50%;min-height:112px;border:2px solid #c7d9b6;border-radius:18px;background:#f1f6e5;color:#527464;padding:10px;box-shadow:0 4px 0 #b9cba8}#count-choices button:active{transform:translateY(2px);box-shadow:0 1px 0 #b9cba8}#count-choices button>strong{font-size:25px;line-height:1}#count-check.retry{border-color:#efd391}@media(max-width:500px){#count-check{bottom:16px;padding:10px 12px 12px}#count-choices button{min-height:107px}}@media(max-height:500px) and (min-width:600px){#count-check{bottom:12px;left:14px;transform:none;width:245px;padding:8px 10px 10px}#count-check>strong{font-size:14px;margin-bottom:6px}#count-choices button{min-height:89px;padding:7px;gap:2px}#count-choices button>strong{font-size:20px}}

#friend-request.word-request strong{font-size:20px;color:#567e73}#friend-request.word-request{min-width:110px;justify-content:center}.friend-portrait[hidden]{display:none!important}@media(max-height:500px) and (min-width:600px){#friend-request.word-request strong{font-size:16px}}

#go[data-turn]{min-width:230px;padding:13px 18px;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:11px}#go[data-turn]::before{content:"";width:24px;height:24px;flex:none;border:3px solid #fff8e5;border-radius:50%;background:#de886e;box-shadow:0 0 0 2px #537565}#go[data-turn="wait"]{background:#f3ded1;color:#805947;box-shadow:0 5px 0 #c6a08d}#go[data-turn="ready"]{background:#bee1b5;color:#365e47;box-shadow:0 5px 0 #84ac7c}#go[data-turn="ready"]::before{background:#60b982}

/* Guidance and decisions have their own space. The real canvas fills only
   the remaining field, so an instruction cannot cover an egg or a face. */
#stage{display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f6f5e9}
#activity-guide{padding:10px 12px 8px;background:#fff9eb;border-bottom:2px solid #dce8d7;z-index:2}
#cue{position:static;transform:none;max-width:100%;width:100%;min-height:49px;justify-content:center;margin:0;padding:8px 13px;box-shadow:none;background:transparent}
#cue-line{text-align:center}
#guide-details{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;min-height:44px}
#egg-meter{position:static;flex:none;padding:5px 8px;border-color:#e5dbc2;border-radius:13px;background:#f7efda}
#meter-label{margin-bottom:4px;font-size:12px}
#egg-slots{gap:5px;justify-content:center}
#color-request,#friend-request{position:static;min-width:0;min-height:53px;gap:7px;padding:5px 8px;border-color:#d8e4cd;border-radius:13px;background:#edf4e6}
#color-request strong,#friend-request strong{font-size:15px}
#color-request small,#friend-request small{font-size:11px;margin-top:3px}


#field-view{position:relative;min-width:0;min-height:0;overflow:hidden;background:#c5e7ed}
#field-view canvas{width:100%;height:100%}
#activity-actions{display:none;padding:10px 12px 16px;background:#fff9eb;border-top:2px solid #dce8d7}
#stage[data-phase="count"] #activity-actions,#stage[data-phase="ready"] #activity-actions,#stage[data-phase="wait"] #activity-actions{display:flex;align-items:center;justify-content:center}
#count-check{position:static;transform:none;width:min(330px,100%);max-width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#count-check>strong{font-size:18px;margin-bottom:8px}
#count-choices button{min-height:112px}
#action-bar{position:static;transform:none;display:flex;justify-content:center;width:100%}
#go{min-width:230px;min-height:62px}
#coach-hand{z-index:4}
#friend-response{z-index:3}
@media(max-width:500px){
  #stage{min-height:430px}#activity-guide{padding:6px 8px 7px}#cue{min-height:42px;font-size:18px;padding:6px 5px}
  #guide-details{margin-top:3px}#egg-meter{padding:4px 7px}
  #color-request,#friend-request{padding:4px 7px;gap:5px}#friend-request.word-request strong{font-size:18px}
  #activity-actions{padding:9px 10px 13px}#count-choices{gap:12px}#count-choices button{min-height:110px}
}
@media(max-height:520px) and (min-width:650px){
  #activity-guide{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:4px 10px}
  #cue{min-height:38px;font-size:17px;padding:4px 5px}#guide-details{margin:0;min-height:38px;gap:9px}
  #egg-meter{display:flex;align-items:center;gap:7px;padding:3px 7px}#meter-label{margin:0;font-size:11px}
  #color-request,#friend-request{min-height:36px;padding:2px 7px}#color-request strong,#friend-request strong{font-size:12px}
  #color-request small,#friend-request small{font-size:10px}
  #activity-actions{padding:5px 9px 8px}#go,#go[data-turn]{min-height:45px;font-size:19px;padding:7px 16px}
  #stage[data-phase="count"]{grid-template-columns:minmax(0,1fr) 240px;grid-template-rows:auto minmax(0,1fr)}
  #stage[data-phase="count"] #activity-guide{grid-column:1/-1}
  #stage[data-phase="count"] #field-view{grid-row:2;grid-column:1}
  #stage[data-phase="count"] #activity-actions{grid-row:2;grid-column:2;border-top:0;border-left:2px solid #dce8d7}
  #count-check{width:100%}#count-check>strong{font-size:16px}#count-choices button{min-height:94px;padding:8px}
}

.delivery-steps{list-style:none;display:flex;justify-content:center;gap:13px;padding:0;margin:15px 0}.delivery-steps li{flex:1;min-width:0;display:grid;justify-items:center;gap:3px;font-size:17px;background:#eff4e8;border-radius:17px;padding:8px}.delivery-steps img,.delivery-friend{height:55px;width:75px;object-fit:contain}.delivery-friend{display:grid;place-items:center;color:#df9185;font-size:49px}.delivery-steps b{font-size:16px}@media(max-height:520px){.delivery-steps{margin:7px 0}.delivery-steps li{padding:4px}.delivery-steps img,.delivery-friend{height:39px}.delivery-friend{font-size:33px}.veil .card{max-height:100%;overflow:auto}}

/* The hidden departure button must not reserve half of the quantity row. */
#stage[data-phase="count"] #action-bar{display:none}

/* precise-tap-v150: the SVG fingertip and ring stay on the actual target. */
#coach-hand{width:0;height:0;animation:none;filter:none;font-size:0}
.coach-art{position:absolute;left:-18px;top:-4px;width:52px;height:64px;transform-origin:18px 4px;filter:drop-shadow(0 2px 2px #31584755)}
.coach-art svg{display:block;width:52px;height:64px;overflow:visible;transform-origin:18px 4px;animation:gentle-point 1.35s ease-in-out infinite}
#coach-hand[data-direction="up"] .coach-art{transform:rotate(180deg)}
.coach-tap{position:absolute;width:44px;height:44px;left:-22px;top:-22px;border:2px solid #fff8d8;border-radius:50%;box-shadow:0 0 0 2px #e5b359a8;animation:gentle-tap 1.35s ease-in-out infinite}
@keyframes gentle-point{0%,100%{transform:rotate(-5deg)}45%,65%{transform:rotate(2deg)}}
@keyframes gentle-tap{0%,100%{transform:scale(.8);opacity:.55}45%,65%{transform:scale(1.12);opacity:1}}
@media(prefers-reduced-motion:reduce){.coach-art svg,.coach-tap{animation:none}}

/* entry-v151: loading and recovery belong to the intro, never the play field. */
#load-help p{margin:10px 0 0;font-size:13px;color:#668078}#load-help .concept{margin-top:7px}
#intro[data-loading="pending"] #start{min-width:178px}
@media(max-height:520px) and (min-width:650px){#load-help p{margin-top:5px;font-size:12px}#load-help .concept{margin-top:4px}}

/* The introduction describes the actual activity, including quantity choice. */
.delivery-steps li{min-width:0}.delivery-steps b{font-size:12px;overflow-wrap:anywhere}.count-step-art{display:flex;justify-content:center;align-items:center;height:68px}.delivery-steps .count-step-art img{width:45%;height:58px;object-fit:contain}
@media(max-width:500px){.delivery-steps[data-lesson=count]{gap:4px}.delivery-steps[data-lesson=count] li{padding:7px 2px}.delivery-steps b{font-size:10px}.count-step-art{height:54px}.delivery-steps .count-step-art img{height:46px}}

/* picture-match-v153: render the actual egg once and reuse it across the scene's UI. */
.egg-picture{position:relative;display:block;flex:none;overflow:hidden}
.egg-picture img{position:absolute;left:50%;top:50%;width:210%;height:auto;max-width:none;transform:translate(-50%,-50%);pointer-events:none;user-select:none}
#egg-slots{gap:4px}.egg-dot{width:24px;height:34px}.egg-dot img{opacity:.22;filter:saturate(.35)}.egg-dot.filled img{opacity:1;filter:none}
.quantity-eggs{display:flex;justify-content:center;align-items:center;align-content:center;flex-wrap:wrap;width:76px;min-height:92px;gap:4px 6px}.quantity-egg{width:32px;height:44px}
#count-choices button{min-height:144px;padding:9px;gap:5px}
#sample-egg{width:48px;height:64px}
.friend-portrait{position:relative;width:64px;height:64px;overflow:hidden;flex:none}
#friend-request>div:last-child,#color-request>div:last-child{min-width:0}
#friend-request,#color-request{flex:0 1 auto}
#friend-request small,#color-request small{overflow-wrap:anywhere}
@media(max-width:340px){.friend-portrait{width:54px;height:54px}#sample-egg{width:40px;height:54px}#friend-request small,#color-request small{max-width:70px}#color-request strong,#friend-request strong{font-size:13px}}
@media(max-height:520px) and (min-width:650px){
  #egg-slots{gap:3px}.egg-dot{width:19px;height:27px}
  .friend-portrait{width:48px;height:48px}#sample-egg{width:36px;height:48px}
  .quantity-eggs{width:63px;min-height:72px;gap:4px 5px}.quantity-egg{width:27px;height:34px}
  #count-choices button{min-height:113px;padding:7px;gap:4px}
}

/* Quantity is a close look into the real loaded bed. The original two choices,
   voice and touch targets remain the only decisions on this screen. */
#stage[data-phase="count"] #egg-meter{background:#eef5e3;border-color:#d6e5c6}
#go:not([data-turn]){position:relative;padding-left:82px}
#go:not([data-turn])::after{content:"";position:absolute;left:12px;top:50%;transform:translateY(-50%);width:62px;height:50px;background:url('../assets/card-truck-v143.png') center/contain no-repeat;pointer-events:none}
@media(max-height:520px) and (min-width:650px){#go:not([data-turn])::after{width:54px;height:38px;left:16px}}

/* The real activity's pictures introduce it and record the earned delivery.
   The original start/next controls are still the only primary actions. */
#intro .card,#finish .card{width:min(600px,calc(100% - 24px));max-height:calc(100% - 18px);padding:20px;overflow:auto;scrollbar-width:thin}
#story-preview,#delivery-record,#next-picture{border-radius:20px;background:#edf4e5;border:2px solid #d6e5c8;padding:12px;overflow:hidden}
#story-preview{margin:12px 0 10px;min-height:140px}
.book-row{display:flex;justify-content:center;align-items:center;gap:8px;min-width:0}
.book-egg{position:relative;width:54px;height:70px;overflow:hidden;display:block;flex:0 1 54px}
.book-egg img{position:absolute;left:50%;top:50%;width:210%;max-width:none;height:auto;transform:translate(-50%,-50%);pointer-events:none}
.book-friend{display:block;width:70px;height:92px;min-width:0;flex:0 1 70px}
.book-friend svg{display:block;width:100%;height:100%;overflow:hidden}
.book-speaker{width:70px;height:80px;flex:0 1 70px}.book-arrow,.book-heart{font-size:30px;color:#65a18a;line-height:1;flex:none}.book-heart{color:#d88b77}
.book-caption{display:block;margin-top:8px;font-size:17px;color:#4a715d;line-height:1.3}.book-link{font-size:24px;color:#70a089;line-height:1}
.book-turn{display:flex;justify-content:center;align-items:center;gap:10px;min-height:80px}.book-truck{width:132px;height:98px;object-fit:contain;min-width:0;flex:0 1 132px}
.book-light{display:grid;gap:4px;padding:6px;background:#587373;border-radius:14px;width:34px;flex:none}.book-light i{display:block;width:20px;height:20px;border-radius:50%;background:#a7b6a0}.book-light i:first-child{background:#eb8976}.book-light[data-green=true] i:first-child{background:#a7b6a0}.book-light[data-green=true] i:last-child{background:#78bd83}
#finish .tag{display:block}.learning-stamps{display:none}#finish h2{font-size:clamp(24px,4vw,32px);margin:10px 0}#finish-line{font-size:14px;margin:7px 0 12px}
#delivery-record{min-height:135px;background:#fff4d9;border-color:#eed9a9}
.book-colour-pairs{display:flex;gap:5px;justify-content:center}.book-pair{display:grid;justify-items:center;flex:1;min-width:0;gap:2px}.book-pair .book-egg{width:42px;height:54px;flex:none}.book-pair .book-friend{width:52px;height:69px;flex:none}.book-pair .book-arrow{font-size:20px;transform:rotate(90deg)}.book-pair small{font-size:12px;font-weight:800;color:#6c785f}
.next-activity{margin-top:15px;display:flex;gap:10px;align-items:center;text-align:left;padding:8px 10px;border-radius:17px;background:#edf4e5}.next-activity>div:last-child{min-width:0}.next-activity small{display:block;font-size:12px;color:#6c8271}.next-activity strong{font-size:17px;color:#426956}
#next-picture{width:105px;min-height:78px;padding:5px;flex:none;border:0;background:transparent}#next-picture .book-row{gap:3px}#next-picture .book-caption{display:none}#next-picture .book-egg{width:22px;height:31px;flex:0 1 22px}#next-picture .book-friend{width:29px;height:43px;flex:0 1 29px}#next-picture .book-speaker{width:25px;height:35px;flex:0 1 25px}#next-picture .book-arrow,#next-picture .book-heart{font-size:17px}#next-picture .book-turn{min-height:50px;gap:4px}#next-picture .book-truck{width:43px;height:42px;flex:0 1 43px}#next-picture .book-light{width:16px;border-radius:7px;gap:2px;padding:3px}#next-picture .book-light i{width:10px;height:10px}
#again{margin-top:13px;width:100%;max-width:330px}#finish .concept{margin-top:14px}#intro .delivery-steps{margin:10px 0}#intro #lesson-description{font-size:14px;margin:6px 0}
@media(max-width:340px){#intro .card,#finish .card{padding:13px 12px}#story-preview{min-height:123px;padding:9px;margin:8px 0}.book-row{gap:5px}.book-egg{width:48px;height:62px;flex-basis:48px}.book-friend{width:59px;height:78px;flex-basis:59px}.book-caption{font-size:15px}#intro h1{font-size:24px;margin:8px 0}#intro #lesson-description{font-size:12px}.next-activity{margin-top:10px;padding:5px 7px;gap:7px}.next-activity strong{font-size:15px}#next-picture{width:86px}.book-pair .book-friend{width:45px;height:59px}.book-pair .book-egg{width:37px;height:47px}#finish h2{font-size:24px}.book-pair small{font-size:10px}}
@media(max-height:520px) and (min-width:650px){
 #intro .card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:4px 18px;padding:12px;width:min(700px,calc(100% - 24px));align-items:center}
 #intro .tag{grid-column:2;grid-row:1}#intro h1{grid-column:2;grid-row:2;font-size:22px;margin:0}#intro #lesson-description{grid-column:2;grid-row:3;font-size:12px;margin:0;line-height:1.3}#story-preview{grid-column:1;grid-row:1/7;margin:0;min-height:170px;padding:10px}
 #intro .delivery-steps{grid-column:2;grid-row:4;margin:4px 0;gap:4px}#intro .delivery-steps img,#intro .delivery-friend{height:31px;width:48px}#intro .delivery-steps b{font-size:9px}#intro .delivery-steps .count-step-art{height:31px}#intro .delivery-steps .count-step-art img{height:29px;width:35px}#start{grid-column:2;grid-row:5;justify-self:center;min-height:47px;padding:7px 20px}#load-help{grid-column:2;grid-row:6}
 #finish .card{display:grid;grid-template-columns:250px minmax(0,1fr);gap:4px 16px;width:min(700px,calc(100% - 24px));padding:12px;align-items:center}#finish .tag{grid-column:2;grid-row:1}#finish h2{grid-column:2;grid-row:2;font-size:22px;margin:0}#finish-line{grid-column:2;grid-row:3;margin:0;font-size:12px}#delivery-record{grid-column:1;grid-row:1/7;padding:8px}#finish .next-activity{grid-column:2;grid-row:4;margin:3px 0;padding:3px 7px}#next-picture{min-height:52px;width:75px}.next-activity strong{font-size:14px}#again{grid-column:2;grid-row:5;margin:2px 0;min-height:47px}#finish .concept{grid-column:2;grid-row:6;margin:0}.book-friend{width:55px;height:73px;flex-basis:55px}.book-egg{width:43px;height:56px;flex-basis:43px}.book-row{gap:5px}.book-colour-pairs{gap:4px}.book-pair .book-friend{width:44px;height:58px}.book-caption{font-size:14px}
}

/* Motion clues use the existing game's egg, truck and exact recipient portrait.
   They reserve guide space, never cover the field or add a child's control. */
#motion-state{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:48px;padding:2px 9px;border-radius:14px;background:#edf4e6;border:2px solid #d8e4cd;pointer-events:none}
#motion-origin{width:39px;height:44px;object-fit:contain;flex:none}#motion-arrow{color:#70a089;font-weight:900;font-size:23px}
.motion-target{position:relative;display:block;width:44px;height:44px;overflow:hidden;flex:none}.motion-target img{position:absolute;inset:0;width:44px;height:44px;max-width:none;object-fit:contain}
#stage[data-working=true] canvas{cursor:default}#stage[data-working=true] #cue-line{color:#426956}
@media(max-width:340px){#motion-state{padding:2px 5px;gap:2px}#motion-origin{width:31px}#motion-arrow{font-size:19px}}
@media(max-height:520px) and (min-width:650px){#motion-state{min-height:38px;padding:0 5px}#motion-origin{width:33px;height:36px}.motion-target{height:38px}#cue{font-size:16px}}

/* Each count belongs to an actual cargo egg. The existing picture choices
   still decide the answer; these touches are a concrete counting aid. */
#stage[data-phase=count] #egg-meter{background:#fff5dd;border-color:#ebd39d}
#stage[data-phase=count] #egg-slots{gap:7px}
#stage[data-phase=count] .count-egg{pointer-events:auto;width:48px;height:62px;background:#fffaf0;border:2px solid #e8d5ad;border-radius:16px;box-shadow:0 3px 0 #dfcca5;padding:0}
#stage[data-phase=count] .count-egg img{width:190%;opacity:1;filter:none;top:46%}
#stage[data-phase=count] .count-egg[aria-pressed=true]{background:#e9f3db;border-color:#80ae79;box-shadow:0 3px 0 #80ae79}
.count-ordinal{display:none}#stage[data-phase=count] .count-ordinal{display:grid;place-items:center;position:absolute;right:0;bottom:0;border-radius:9px 0 12px 0;background:#548865;color:white;min-width:21px;height:22px;font-size:15px;z-index:1}
#stage[data-phase=count] .count-egg[aria-pressed=false] .count-ordinal{display:none}
#count-touch{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.count-world-mark{position:absolute;display:grid;place-items:center;width:33px;height:33px;border:2px solid #fffaf0;border-radius:50%;background:#548865ed;color:white;font-size:20px;font-weight:900;line-height:1;box-shadow:0 3px 8px #325e4530;transform:translate(-50%,-50%)}
.count-world-mark[data-last=true]{animation:count-confirm .38s ease-out both}
@keyframes count-confirm{0%{transform:translate(-50%,-50%) scale(.7);opacity:.3}70%{transform:translate(-50%,-50%) scale(1.14)}100%{transform:translate(-50%,-50%) scale(1);opacity:1}}
@media(max-height:520px) and (min-width:650px){#stage[data-phase=count] .count-egg{height:48px;width:44px;border-radius:13px}#stage[data-phase=count] #egg-slots{gap:5px}.count-world-mark{width:27px;height:27px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.count-world-mark[data-last=true]{animation:none}}

/* A quiet outline follows the same named feature as the existing help picture.
   It receives no input and disappears during the original delivery motion. */
#word-feature{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.word-feature-mark{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff6d9d9;border-radius:50%;box-shadow:0 0 0 1px #66987caf;pointer-events:none}
.book-word{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 3px 20px;border-radius:14px;background:#fffaf0;border:1px solid #eadab2}
.book-word .book-part{width:100%;height:52px;display:block}.book-word .book-part svg{width:100%;height:100%}.book-word>strong{font-size:14px;line-height:1.1;color:#496951;font-weight:800}
.book-context{position:absolute;bottom:1px;right:1px;width:25px;height:30px}.book-context>.book-friend{width:25px;height:30px;display:block}
@media(max-width:340px){.book-word .book-part{height:40px}.book-word>strong{font-size:12px}.book-word{padding-bottom:18px}.book-context,.book-context>.book-friend{width:21px;height:25px}}
@media(max-height:520px) and (min-width:650px){.book-word .book-part{height:37px}.book-word>strong{font-size:12px}.book-word{padding-bottom:17px}.book-context,.book-context>.book-friend{width:20px;height:24px}}

/* A tactile book of the actual delivery; the primary next action stays large. */
#delivery-record{padding:9px}
.book-study-detail{min-height:104px;display:grid;grid-template-rows:82px 18px;gap:4px;align-items:center;justify-items:center;overflow:hidden}
.book-study-art{display:flex;align-items:center;justify-content:center;width:100%;height:82px;overflow:hidden}
.book-study-caption{font-size:14px;line-height:1.2;color:#496e56;max-width:100%}
.book-study-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:6px}
.book-study-tabs:has(>:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.book-study-tabs:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
.book-study-card{position:relative;min-width:44px;min-height:76px;padding:4px 3px 18px;display:flex;align-items:center;justify-content:center;border:2px solid #e5d6ac;border-radius:15px;background:#fffaf0;color:#496e56;transition:background .16s,border-color .16s,transform .16s}
.book-study-card[aria-pressed=true]{border-color:#659781;background:#e6f0dc;box-shadow:0 2px 0 #9fb794}
.book-study-card:active:not(:disabled){transform:translateY(2px)}
.book-study-card:disabled{cursor:default}
.book-study-number{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:20px;height:18px;border-radius:8px;background:#dcebcf;color:#42654a;font-size:13px;line-height:1}
.book-study-card>.book-egg{position:absolute;top:3px;right:1px;width:19px;height:25px;z-index:1}
.book-study-card>.book-friend{width:100%;max-width:62px;height:50px;flex:none}
.book-study-card .book-word{height:50px;padding:0 1px 12px;gap:1px;background:transparent;border:0;overflow:hidden}
.book-study-card .book-word .book-part{height:26px}
.book-study-card .book-word>strong{font-size:11px}
.book-study-card .book-context,.book-study-card .book-context>.book-friend{height:18px;width:15px}
.book-study-set{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:82px}
.book-study-pair{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:0;height:82px}
.book-study-pair>.book-egg{width:22px;height:28px;flex:none}
.book-study-pair>.book-arrow{font-size:10px;line-height:6px;height:6px}
.book-study-pair>.book-friend{height:48px;width:49px;flex:none}
.book-study-pair[data-shell]{flex-direction:row;gap:7px;width:100%}
.book-study-pair[data-shell]>.book-egg{width:42px;height:60px}
.book-study-pair[data-shell]>.book-friend{width:67px;height:80px;border-radius:17px;background:#edf4e5}
.book-study-pair[data-shell]>.book-arrow{font-size:22px;transform:rotate(-90deg);height:24px;line-height:1}
.book-study-feature{display:flex;align-items:center;justify-content:center;gap:8px;height:82px;width:100%}
.book-study-feature>svg{height:80px;width:145px;max-width:68%;overflow:hidden}
.book-study-context>.book-friend{width:52px;height:78px}
.book-study-step{display:flex;align-items:center;justify-content:center;gap:7px;height:82px;max-width:100%}
.book-study-step>.book-truck{width:112px;height:78px;flex:0 1 112px}
.book-study-step>.book-egg{width:40px;height:55px;flex:none}
.book-study-step>.book-friend{width:68px;height:78px;flex:none}
.book-study-card>.book-study-step{height:49px;gap:2px;width:100%;overflow:hidden}
.book-study-card .book-truck{width:40px;height:45px;flex:0 1 40px}
.book-study-card .book-light{width:15px;padding:2px;gap:2px;border-radius:5px}
.book-study-card .book-light i{width:10px;height:10px}
.book-study-card .book-study-step>.book-egg{width:17px;height:25px}
.book-study-card .book-study-step>.book-friend{width:28px;height:40px}
@media(max-width:340px){.book-study-tabs{gap:4px}.book-study-set{gap:3px}.book-study-set .book-friend{width:42px}.book-study-caption{font-size:12px}.book-study-card{border-radius:12px}}
@media(max-height:520px) and (min-width:650px){.book-study-detail{min-height:101px}.book-study-card{min-height:72px}}
@media(prefers-reduced-motion:reduce){.book-study-card{transition:none}.book-study-card:active:not(:disabled){transform:none}}
