@font-face {
  font-family:"Learning Camel Bold";
  src:url("assets/fonts/comic-sans-ms-bold.ttf") format("truetype");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}
:root { --lc-ui-font:"Learning Camel Bold","Comic Sans MS",sans-serif; }
input, select, textarea, option { font-family:inherit; }
/* Little Letters - AT Family. All selectors are scoped to the independent game. */
:root{color-scheme:light;--ink:#39465b;--muted:#768297;--cream:#fffaf2;--bg:#f9f2e5;--purple:#8f79d9;--violet:#eae4ff;--coral:#ff887e;--orange:#ffc27a;--mint:#bdebd8;--green:#50b49f;--line:#e9e5dd;--shadow:0 14px 36px rgba(92,73,90,.105);--soft-shadow:0 8px 18px rgba(82,72,97,.09)}
*{box-sizing:border-box}html,body{margin:0;min-width:280px}body{background:var(--bg);font-family:var(--lc-ui-font);color:var(--ink);-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:4px solid #6658c6;outline-offset:4px}button:disabled{cursor:not-allowed}svg{width:1em;height:1em;fill:currentColor}.icon-library,.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}[hidden]{display:none!important}
.game-shell{isolation:isolate;position:relative;min-height:100svh;overflow:hidden;background:radial-gradient(ellipse at 22% -12%,#fffcf2 0%,transparent 52%),radial-gradient(ellipse at 96% 80%,#f4e8f4 0%,transparent 39%),#f9f2e5;display:flex;flex-direction:column}.topbar{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:1300px;width:100%;margin:0 auto;padding:20px clamp(18px,3.6vw,46px) 10px}.brand{display:flex;align-items:center;gap:11px;white-space:nowrap}.brand-icon{height:43px;width:43px;display:grid;place-items:center;border-radius:15px;background:#ffd778;color:#fff;box-shadow:0 4px 0 #e9b960,0 8px 16px #ffdd9180;transform:rotate(-9deg)}.brand-icon svg{width:24px;height:24px}.brand-copy{display:flex;flex-direction:column;line-height:1.06}.brand-copy strong{font-size:21px;letter-spacing:-1.05px;font-weight:900}.brand-copy small{font-size:9px;font-weight:900;letter-spacing:2.7px;color:#b49aa8;margin-top:5px}.top-actions{display:flex;align-items:center;gap:9px}.icon-button{border:2px solid #f0e6df;background:#fffdf8;color:#555b70;min-height:42px;padding:8px 14px;border-radius:16px;display:inline-flex;align-items:center;gap:8px;box-shadow:0 3px 0 #ede5dc;font-size:13px;font-weight:900;transition:transform .18s,box-shadow .18s}.icon-button:hover{transform:translateY(-2px);box-shadow:0 5px 0 #ede5dc}.icon-button svg{font-size:19px}.sound-control{background:#fff2d8;color:#9a6936;border-color:#f8e8c7;box-shadow:0 3px 0 #f0dfbc}.sound-control[aria-pressed="false"]{background:#eeeef1;color:#6c7281;border-color:#dedee5;box-shadow:0 3px 0 #d7d7de}
main{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;min-height:0}.screen{width:100%;max-width:1320px;margin:0 auto;padding:12px clamp(18px,4vw,50px) 14px;flex:1;position:relative;display:flex;flex-direction:column;justify-content:center}.game-footer{max-width:1320px;width:100%;margin:0 auto;position:relative;z-index:2;padding:8px clamp(18px,4vw,50px) 13px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#b4a8a2;font-size:10px;font-weight:900;letter-spacing:1.75px}.footer-dots{letter-spacing:7px;color:#d6bbd5}.bg-deco,.floating-star{position:absolute;pointer-events:none;z-index:0}.deco-sun{width:310px;height:310px;border-radius:50%;background:#fee6b1;opacity:.36;right:-155px;top:-167px}.deco-blob{height:360px;width:500px;border-radius:56% 44% 39% 61%/38% 52% 48% 62%;background:#f6e4e7;opacity:.36;bottom:-240px;left:-200px}.deco-cloud{width:92px;height:28px;border-radius:99px;background:#fffefa;opacity:.57}.deco-cloud:before,.deco-cloud:after{content:"";position:absolute;background:inherit;border-radius:50%;bottom:8px}.deco-cloud:before{width:40px;height:40px;left:12px}.deco-cloud:after{width:54px;height:54px;right:11px}.cloud-one{left:-25px;top:165px;animation:drift 10s ease-in-out infinite}.cloud-two{right:4%;top:230px;transform:scale(.65);animation:drift 12s ease-in-out infinite reverse}.floating-star{color:#f5c95c;animation:float 5.2s ease-in-out infinite}.floating-star svg{width:100%;height:100%}.star-a{width:29px;height:29px;left:4%;top:40%}.star-b{width:19px;height:19px;right:8%;top:43%;color:#b9a9e7;animation-delay:2s}.star-c{width:18px;height:18px;left:47%;bottom:11%;color:#eb9db2;animation-delay:1s}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#ad829c;letter-spacing:2px;font-size:11px;font-weight:900}.eyebrow svg{font-size:16px;color:#f8b764}.button{border:0;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:14px 24px;font-size:15px;font-weight:900;letter-spacing:.35px;transition:transform .2s,box-shadow .2s,background .2s;min-height:52px;text-align:center}.button svg{font-size:20px;flex-shrink:0}.button:hover:not(:disabled){transform:translateY(-3px)}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{background:#ff866f;color:white;box-shadow:0 6px 0 #e76864,0 12px 22px #e97e7770;text-shadow:0 1px rgba(106,60,50,.15)}.button-primary:hover:not(:disabled){box-shadow:0 8px 0 #e76864,0 14px 24px #e97e7770}.button-primary:active:not(:disabled){box-shadow:0 2px 0 #e76864}.button-primary:disabled{opacity:.56;filter:saturate(.55);box-shadow:0 4px 0 #cbbfc0;transform:none}.button-secondary{background:#fffdf8;color:#7361ac;border:2px solid #e5dcfb;box-shadow:0 5px 0 #e7ddf8}.button-secondary:hover{box-shadow:0 7px 0 #e7ddf8}.button-quiet{background:transparent;color:#8f8ca1;box-shadow:none;font-size:13px;padding-left:8px;padding-right:8px}.button-quiet:hover{background:#f8f3fa}.button-xl{font-size:18px;padding:18px 24px 18px 17px;border-radius:23px;min-height:65px}.button-circle{border-radius:50%;background:#fff5f0;color:#ff8e76;width:33px;height:33px;display:grid;place-items:center}.button-circle svg{font-size:22px;margin-left:2px}.button-arrow{margin-left:9px}
/* Welcome screen */
.screen-welcome{padding-top:8px;padding-bottom:5px}.welcome-layout{display:grid;grid-template-columns:minmax(0,1.01fr) minmax(0,.99fr);align-items:center;gap:10px;max-width:1200px;width:100%;margin:auto}.welcome-copy{position:relative;z-index:2;padding:0 0 30px 3%}.welcome-copy h1{font-size:clamp(51px,5.2vw,78px);line-height:1.04;letter-spacing:-3.7px;margin:19px 0 16px;font-weight:1000}.welcome-copy h1>span{display:block;color:#ff897d}.title-period{color:#ffbd61}.welcome-subtitle{font-size:clamp(22px,2.35vw,31px);font-weight:900;margin:0 0 12px;letter-spacing:-.7px}.welcome-subtitle strong{color:#8e77d0}.welcome-description{font-size:16px;line-height:1.68;color:var(--muted);max-width:410px;margin:0 0 24px;font-weight:700}.welcome-tags{display:flex;flex-wrap:wrap;gap:17px;margin-top:25px;font-weight:900;color:#918b9b;font-size:12px}.welcome-tags span{display:inline-flex;align-items:center;gap:7px}.tag-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.tag-dot.orange{background:#ffb879}.tag-dot.purple{background:#a799e5}.hero-scene{height:min(530px,calc(100svh - 144px));min-height:420px;position:relative;overflow:visible}.hero-backdrop{position:absolute;inset:8% 3% 4% 7%;background:linear-gradient(160deg,#fff8eb 0%,#fffef8 65%,#f7edfc 100%);border:5px solid #fff;border-radius:45% 52% 44% 50%/49% 45% 55% 50%;transform:rotate(-5deg);box-shadow:0 24px 45px #dfbfb454}.hero-rainbow{position:absolute;top:17%;left:14%;width:73%;height:75%;border-radius:50% 50% 0 0;overflow:hidden;opacity:.8}.hero-rainbow>span{position:absolute;inset:0;border:13px solid #f3b2a8;border-bottom:0;border-radius:50% 50% 0 0;transform:scale(.95,1)}.hero-rainbow>span:nth-child(2){inset:19px 19px 0;border-color:#ffdd98;transform:scale(.98,1)}.hero-rainbow>span:nth-child(3){inset:38px 38px 0;border-color:#b2dfd1;transform:scale(1,1)}.hero-mascot{position:absolute;z-index:2;left:50%;bottom:8%;width:min(62%,330px);height:77%;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 20px 12px #7f78672c);animation:mascot-bob 3.6s ease-in-out infinite}.hero-ground{position:absolute;bottom:6%;left:20%;right:18%;height:9%;border-radius:50%;background:#d8dfc3;filter:blur(10px);opacity:.67}.hero-float-letter{position:absolute;z-index:2;display:grid;place-items:center;border:5px solid #fff;border-radius:23px;color:#fff;font-weight:1000;font-size:59px;text-shadow:0 3px #00000012;box-shadow:0 9px 0 rgba(103,92,95,.14),0 14px 16px #00000013;animation:float 4.5s ease-in-out infinite}.letter-a{width:86px;height:91px;background:#ffa17f;left:8%;top:26%;transform:rotate(-17deg)}.letter-t{width:79px;height:85px;background:#9e90e3;right:5%;top:41%;animation-delay:1.6s;transform:rotate(14deg)}.letter-c{width:55px;height:58px;background:#8dddc4;right:15%;top:13%;font-size:38px;animation-delay:.8s;transform:rotate(10deg)}.hero-puff{position:absolute;z-index:1;width:81px;height:28px;background:white;border-radius:50px;opacity:.9}.hero-puff:before,.hero-puff:after{content:"";position:absolute;bottom:0;background:white;border-radius:50%}.hero-puff:before{width:38px;height:38px;left:10px}.hero-puff:after{width:48px;height:48px;right:8px}.puff-one{right:-1%;top:22%;transform:scale(.85)}.puff-two{left:1%;bottom:17%;transform:scale(.55)}.hero-sun{position:absolute;top:12%;right:25%;width:53px;height:53px;border-radius:50%;background:#ffdd88;box-shadow:0 0 0 12px #ffdd8850}.hero-caption{position:absolute;z-index:4;bottom:7%;right:3%;background:#fff;padding:13px 17px;border:3px solid #ffecda;border-radius:20px;transform:rotate(5deg);font-size:13px;font-weight:900;box-shadow:var(--soft-shadow)}.hero-caption svg{color:#f5b753;font-size:15px}.screen-bottom-deco{display:none}
/* Phonics */
.screen-heading{text-align:center;margin-bottom:22px}.screen-heading h2,.play-heading h2{font-size:clamp(29px,3vw,43px);letter-spacing:-1.6px;line-height:1.12;margin:8px 0}.screen-heading h2 span,.play-heading h2 span{color:#ef8b81}.screen-heading p{margin:6px auto;color:#9290a0;font-size:15px;font-weight:700}.phonics-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,.65fr);align-items:stretch;gap:20px;width:100%;max-width:1100px;margin:0 auto}.phonics-board{min-width:0;border:5px solid #fff;background:#fffcf7;border-radius:32px;box-shadow:var(--shadow);padding:20px 27px 24px;display:flex;flex-direction:column;align-items:center}.board-top{width:100%;display:flex;align-items:center;justify-content:space-between;margin:0 0 23px}.board-title{font-weight:900;color:#8d8793;font-size:13px}.pin{height:15px;width:15px;border-radius:50%;box-shadow:0 2px 0 #00000012}.pin-yellow{background:#ffc86d}.pin-pink{background:#f8a6ae}.blend-track{display:flex;align-items:center;justify-content:center;gap:clamp(6px,1.2vw,17px);width:100%;margin-bottom:24px}.sound-tile{position:relative;flex:1;min-width:0;max-width:150px;aspect-ratio:.95;border-radius:22px;border:4px solid white;background:#ffb98c;box-shadow:0 7px 0 #eaa47e,0 10px 18px #c7a6a338;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:transform .2s}.sound-tile:hover{transform:translateY(-4px)}.sound-tile:active{transform:translateY(2px)}.sound-tile>span{font-size:clamp(50px,5.8vw,81px);font-weight:1000;line-height:1}.sound-tile small{font-size:clamp(9px,1vw,12px);font-weight:900;white-space:nowrap}.sound-tile svg{position:absolute;top:8px;right:9px;font-size:17px;opacity:.9}.sound-tile-t{background:#a99ae9;box-shadow:0 7px 0 #9484d6,0 10px 18px #a095c038}.sound-tile-at{background:#8fd6bc;box-shadow:0 7px 0 #70bda2,0 10px 18px #a0c7b038;max-width:165px}.join-symbol{font-size:clamp(22px,2.3vw,34px);font-weight:1000;color:#bbaab3}.join-symbol.equals{color:#9ca3ad}.phonics-tip{display:flex;align-items:center;gap:11px;border:2px dashed #e6dfd5;background:#fff7e9;border-radius:18px;padding:11px 15px;color:#827b87;font-size:12px;line-height:1.5;font-weight:700;width:100%;margin:0 0 18px}.phonics-tip strong{color:#665e78}.mini-speaker{display:grid;place-items:center;flex:none;background:#ffdca0;border-radius:50%;height:35px;width:35px;color:#a36b44}.mini-speaker svg{width:21px;height:21px}.blend-button{font-size:12px;min-height:45px;border-radius:15px;padding:11px 20px}.blend-track.is-blending .sound-tile-a{animation:blend-left .8s ease-in-out}.blend-track.is-blending .sound-tile-t{animation:blend-right .8s ease-in-out}.blend-track.is-blending .sound-tile-at{animation:word-pop .8s ease .3s both}.coach-panel{min-width:0;background:linear-gradient(163deg,#f1ecfe,#f7effa);border:5px solid #fff;border-radius:32px;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 18px 23px;position:relative}.coach-panel img{display:block;height:clamp(150px,16vw,220px);width:auto;object-fit:contain;filter:drop-shadow(0 8px 5px #8671a31c);animation:mascot-bob 4s ease-in-out infinite}.coach-bubble{background:#fff;border-radius:21px;border:2px solid #e4dafa;box-shadow:0 5px 0 #e4daf4;padding:11px 17px;color:#8c73c6;font-size:15px;font-weight:1000;text-align:center;max-width:100%;transform:rotate(-2deg)}.coach-bubble small{display:block;color:#9490a2;font-size:10px;font-weight:800;line-height:1.7;margin-top:3px}.lets-play-button{width:100%;margin-top:10px;min-height:52px;font-size:14px}
/* Gameplay */
.screen-play{justify-content:center}.play-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 15px;padding:0 2px}.play-heading h2{font-size:clamp(26px,2.9vw,38px);margin:5px 0 0}.star-progress{background:#fffdfa;border:3px solid white;box-shadow:var(--soft-shadow);padding:10px 15px 12px;border-radius:20px;min-width:206px}.star-progress-label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px;color:#aea1a1;font-weight:900;letter-spacing:1.4px}.star-progress-label strong{font-size:13px;color:#a17fbd}.star-row{display:flex;justify-content:center;gap:7px;margin-top:5px}.star-row svg{width:21px;height:21px;color:#ddd8e4;filter:drop-shadow(0 2px 0 #f2edf1)}.star-row svg.earned{color:#ffc359;filter:drop-shadow(0 2px 0 #dca441);animation:star-pop .55s both}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:stretch;gap:18px;max-width:1170px;width:100%;margin:0 auto}.picture-panel,.challenge-panel{border:5px solid white;border-radius:30px;box-shadow:var(--shadow);min-width:0}.picture-panel{background:linear-gradient(165deg,#e1f4ed 0%,#f3fbea 82%);padding:16px 19px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.picture-panel:before{content:"";position:absolute;width:350px;height:350px;border:3px dashed #c8e7d8;border-radius:50%;left:50%;top:44%;transform:translate(-50%,-50%);pointer-events:none}.picture-panel:after{content:"";position:absolute;width:40px;height:40px;right:6%;top:24%;background:#fadd91;clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);opacity:.55;animation:float 4s infinite}.picture-panel-top,.picture-panel-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;z-index:1}.picture-badge{display:inline-flex;align-items:center;gap:7px;background:#fffefa;padding:8px 11px;border-radius:12px;font-size:10px;font-weight:1000;color:#6eaf9a;letter-spacing:1px}.picture-badge svg{font-size:14px}.picture-number{font-size:11px;color:#8bbbab;font-weight:900;letter-spacing:1px}.illustration-stage{flex:1;display:grid;place-items:center;min-height:260px;position:relative;z-index:1}.illustration-stage img{display:block;width:min(100%,445px);height:clamp(220px,31vh,320px);max-height:340px;object-fit:contain;filter:drop-shadow(0 14px 10px #7ba99719)}.illustration-stage.slide-in img{animation:image-appear .4s ease both}.picture-hint{color:#8ab6a9;font-size:13px;font-weight:900}.replay-button{display:inline-flex;align-items:center;gap:7px;min-height:43px;background:#fff;border:2px solid #d0e9df;border-radius:15px;color:#489f89;font-size:12px;font-weight:1000;padding:9px 13px;box-shadow:0 4px 0 #cae5da}.replay-button:hover{transform:translateY(-2px)}.replay-button svg{font-size:19px}
.challenge-panel{background:#fffdfa;padding:21px clamp(15px,2.2vw,30px) 20px;display:flex;flex-direction:column;position:relative}.challenge-head{display:flex;justify-content:space-between;align-items:center}.challenge-number{background:#f0eafe;border-radius:10px;color:#9277c7;letter-spacing:1.3px;font-size:10px;font-weight:1000;padding:8px 11px}.sparkle-small{color:#ffc16c;font-size:20px}.challenge-panel h3{margin:12px 0 5px;font-size:clamp(22px,2.2vw,29px);font-weight:1000;letter-spacing:-1px}.challenge-panel h3 span{color:#957acc}.challenge-subline{color:#9da0aa;font-size:12px;font-weight:700;line-height:1.5;margin:0}.word-slots{display:flex;justify-content:center;gap:clamp(10px,1.9vw,21px);margin:17px 0 17px}.letter-slot{height:clamp(79px,8.2vw,111px);width:clamp(77px,8.2vw,111px);border:3px solid white;border-radius:21px;position:relative;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 0 #ded8de,0 8px 12px #00000010;user-select:none}.letter-slot>span:first-child{font-size:clamp(44px,5vw,72px);font-weight:1000;line-height:1;color:#fff;text-shadow:0 3px rgba(74,61,70,.13)}.empty-slot{background:#f8f6f2;outline:3px dashed #d9c6d7;outline-offset:-12px;box-shadow:0 5px 0 #e2d9dc}.empty-slot>span:first-child{color:#c7b1ca;text-shadow:none;font-size:clamp(40px,4.8vw,64px)}.empty-slot.is-hovered{background:#fff5e5;outline-color:#ffbc79;transform:scale(1.05)}.empty-slot.filled{background:#ff9a80;outline:0;box-shadow:0 6px 0 #e88371}.empty-slot.filled>span:first-child{color:white}.fixed-slot.slot-a{background:#a494df;box-shadow:0 6px 0 #8172c4}.fixed-slot.slot-t{background:#81d3b5;box-shadow:0 6px 0 #67ba9d}.slot-caption{position:absolute;bottom:-18px;font-size:8px;color:#bbb6c0;font-weight:1000;letter-spacing:1.2px}.choice-label{text-align:center;color:#a296a0;font-size:10px;font-weight:900;letter-spacing:1.4px;margin:8px 0 12px}.choice-label>span{color:#ffb16d;font-size:15px}.letter-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(5px,.75vw,10px);padding:0 1px}.choice-tile{display:grid;place-items:center;position:relative;border:3px solid #fff;border-radius:14px;aspect-ratio:1/1;min-height:45px;width:100%;font-size:clamp(22px,2.7vw,37px);font-weight:1000;color:#fff;box-shadow:0 5px 0 var(--tile-shadow),0 8px 10px #83758218;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .17s,filter .17s;line-height:1}.choice-tile:hover:not(:disabled){transform:translateY(-4px) rotate(-3deg);filter:brightness(1.04)}.choice-tile:active:not(:disabled){transform:translateY(1px)}.choice-tile:disabled{opacity:.57;box-shadow:0 3px 0 var(--tile-shadow);transform:none}.choice-tile.is-chosen{opacity:1;filter:saturate(1.3);outline:3px solid #ffe3a7;outline-offset:1px}.choice-tile.is-wrong{animation:shake .43s ease-in-out}.choice-tile.is-dragging{opacity:.4}.drag-ghost{position:fixed;z-index:100;pointer-events:none;border:4px solid white;box-shadow:0 14px 22px #4c3d6054;transform:translate(-50%,-50%) rotate(-9deg);font-size:40px;font-weight:1000;color:white;width:76px;height:76px;display:grid;place-items:center;border-radius:18px}.feedback{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;margin:14px 0 10px;background:#f6f3ff;border-radius:13px;color:#8f79b6;font-size:12px;font-weight:900;padding:7px 9px;text-align:center;line-height:1.3}.feedback.good{background:#e7f7eb;color:#369d81}.feedback.try-again{background:#fff1e5;color:#c48650}.feedback-icon svg{width:17px;height:17px}.challenge-actions{display:flex;justify-content:space-between;gap:9px;align-items:center;margin-top:auto}.next-button{font-size:13px;min-height:46px;border-radius:14px;padding:11px 20px}.next-button svg{font-size:18px}.word-slots.bounce .empty-slot{animation:correct-bounce .65s ease}
/* Finish */
.screen-complete{align-items:center}.complete-card{width:min(100%,735px);text-align:center;background:#fffdf8;border:5px solid white;border-radius:38px;box-shadow:var(--shadow);padding:12px 38px 30px;position:relative;overflow:hidden}.complete-card:before,.complete-card:after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:#e4f4e9;z-index:-1}.complete-card:before{top:-140px;left:-75px}.complete-card:after{bottom:-145px;right:-45px;background:#f5e7f7}.complete-art{height:182px;max-width:420px;margin:0 auto 6px;position:relative}.trophy-halo{position:absolute;height:165px;width:165px;background:radial-gradient(#ffebac 15%,#ffefca 68%,transparent 70%);border-radius:50%;left:calc(50% - 100px);top:5px}.trophy-star{position:absolute;left:calc(50% - 87px);top:22px;transform:rotate(-12deg);color:#ffca56;filter:drop-shadow(0 7px 0 #eaaa45);animation:star-wiggle 3.2s infinite}.trophy-star svg{width:137px;height:137px}.complete-mascot{position:absolute;left:calc(50% + 28px);bottom:0;width:auto;height:155px;filter:drop-shadow(0 8px 8px #00000016);animation:mascot-bob 3s infinite}.finish-sparkle{position:absolute;color:#ec9bc7}.finish-sparkle svg{height:32px;width:32px}.finish-sparkle-one{left:15%;top:37%;animation:float 3s infinite}.finish-sparkle-two{right:10%;top:18%;color:#a9cfb2;animation:float 3.5s infinite}.complete-card h2{font-size:clamp(31px,3.3vw,45px);letter-spacing:-1.5px;line-height:1.2;margin:8px auto 9px;max-width:620px}.complete-card h2 span{color:#f48f86}.complete-subtitle{font-size:14px;color:#98909b;font-weight:700;margin:0 0 18px}.result-cards{display:flex;justify-content:center;gap:14px;max-width:450px;margin:0 auto 22px}.result-card{background:#fff5e6;border:2px solid #f9e8d6;border-radius:18px;flex:1;display:flex;align-items:center;flex-direction:column;gap:4px;padding:13px 7px}.result-card:nth-child(2){background:#f3eeff;border-color:#ebe4f9}.result-card>svg{color:#f5bd54;font-size:29px}.result-card strong{font-size:22px;font-weight:1000;letter-spacing:-.5px}.result-card>span:last-child{font-size:9px;letter-spacing:1px;color:#aaa0ad;font-weight:1000}.result-book{font-size:23px;line-height:30px;color:#a28bd1;font-weight:1000}.complete-actions{display:flex;gap:16px;justify-content:center}.complete-actions .button{min-width:160px;font-size:13px}
.confetti-layer{pointer-events:none;position:fixed;inset:0;overflow:hidden;z-index:20}.confetti-piece{position:absolute;top:-20px;width:9px;height:15px;border-radius:3px;transform:rotate(var(--turn));animation:confetti-fall var(--duration) linear var(--delay) forwards}.toast-star{position:absolute;pointer-events:none;color:#ffce57;animation:burst-star .9s ease-out forwards;z-index:15}.toast-star svg{width:100%;height:100%}
/* Accessible animation system */
.animate-in{animation:fade-up .5s ease-out both}.animate-in-delayed{animation:fade-up .7s ease-out .1s both}@keyframes fade-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes float{0%,100%{translate:0 0}50%{translate:0 -11px}}@keyframes drift{0%,100%{translate:0 0}50%{translate:19px 7px}}@keyframes mascot-bob{0%,100%{translate:0 0}50%{translate:0 -9px}}@keyframes word-pop{0%{transform:scale(.84)}65%{transform:scale(1.14)}100%{transform:scale(1)}}@keyframes blend-left{50%{transform:translateX(11px)}}@keyframes blend-right{50%{transform:translateX(-11px)}}@keyframes correct-bounce{0%,100%{transform:translateY(0)}30%{transform:translateY(-18px) rotate(-5deg)}60%{transform:translateY(2px) rotate(3deg)}}@keyframes star-pop{0%{transform:scale(0) rotate(-80deg)}70%{transform:scale(1.4) rotate(10deg)}100%{transform:scale(1) rotate(0)}}@keyframes image-appear{from{opacity:.2;transform:translateY(15px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}@keyframes star-wiggle{0%,100%{rotate:-8deg}50%{rotate:8deg}}@keyframes confetti-fall{from{transform:translate3d(0,-20px,0) rotate(var(--turn));opacity:1}to{transform:translate3d(var(--drift),110svh,0) rotate(calc(var(--turn) + 650deg));opacity:.8}}@keyframes burst-star{0%{opacity:1;transform:translate(0,0) scale(.25)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1.2)}}
/* Tablet and narrow laptops */
@media(max-width:1020px){.screen{padding-inline:20px}.welcome-copy h1{font-size:clamp(45px,5.8vw,66px)}.hero-scene{min-height:370px}.letter-a{left:1%}.phonics-layout{grid-template-columns:minmax(0,1.5fr) minmax(0,.73fr)}.phonics-board{padding:17px 15px}.play-layout{gap:12px}.picture-panel{padding:12px}.challenge-panel{padding:16px}.challenge-panel h3{font-size:23px}.word-slots{margin:16px 0 17px}.picture-panel:before{height:300px;width:300px}}
@media(max-width:780px){.topbar{padding:14px 17px 7px}.screen{padding:18px 16px 22px}.welcome-layout{grid-template-columns:1fr;text-align:center;gap:3px}.welcome-copy{order:1;padding:6px 0 10px;display:flex;flex-direction:column;align-items:center}.welcome-copy h1{font-size:clamp(39px,8vw,62px);margin:8px 0}.welcome-copy h1>span{display:block}.welcome-description{font-size:14px;margin-bottom:15px}.welcome-tags{margin-top:17px;justify-content:center}.hero-scene{order:0;min-height:0;height:clamp(230px,43vw,355px);max-width:520px;width:100%;margin:0 auto}.hero-mascot{height:84%;width:60%;bottom:1%}.hero-caption{font-size:11px;right:3%;bottom:0;padding:8px}.hero-float-letter{font-size:39px;border-width:3px;border-radius:16px}.letter-a{width:60px;height:63px}.letter-t{width:60px;height:63px}.letter-c{width:44px;height:46px;font-size:28px}.hero-rainbow{top:8%;height:82%}.game-footer{font-size:8px;letter-spacing:1px;padding:8px 17px 15px}.screen-heading{margin-bottom:16px}.phonics-layout{grid-template-columns:1fr;max-width:640px;gap:12px}.coach-panel{display:grid;grid-template-columns:90px 1fr;grid-template-rows:auto auto;align-items:center;padding:12px 18px;gap:7px 15px}.coach-panel img{grid-column:1;grid-row:1/3;height:124px}.coach-bubble{font-size:13px}.lets-play-button{grid-column:2;margin:0;min-height:44px}.phonics-board{padding:16px}.sound-tile{max-width:138px}.play-heading{align-items:center}.play-layout{grid-template-columns:1fr;max-width:630px}.picture-panel{min-height:0;max-height:none}.illustration-stage{min-height:195px}.illustration-stage img{height:220px}.picture-panel:before{height:230px;width:230px}.challenge-panel{padding:17px}.word-slots{margin:13px 0 16px}.letter-slot{height:85px;width:85px}.letter-slot>span:first-child{font-size:57px}.letter-choices{max-width:460px;margin:0 auto;width:100%}.choice-tile{font-size:31px}.feedback{margin:15px 0 9px}}
@media(max-width:450px){.brand-icon{width:35px;height:35px;border-radius:12px}.brand-icon svg{height:19px;width:19px}.brand-copy strong{font-size:16px}.brand-copy small{font-size:7px;letter-spacing:2px}.icon-button{padding:6px 9px;font-size:11px;min-height:37px;border-radius:12px;gap:5px}.icon-button svg{font-size:17px}.screen{padding:10px 13px 17px}.welcome-copy h1{font-size:clamp(38px,11vw,49px);letter-spacing:-2px}.welcome-subtitle{font-size:22px}.welcome-description{font-size:13px;line-height:1.5}.hero-scene{height:clamp(213px,58vw,280px)}.hero-caption{display:none}.welcome-copy .eyebrow{font-size:9px}.button-xl{min-height:57px;padding:12px 20px;font-size:15px}.welcome-tags{font-size:10px}.phonics-header h2{font-size:28px}.phonics-header p{font-size:12px}.phonics-board{padding:12px 9px 16px;border-radius:24px}.board-top{margin-bottom:15px}.sound-tile{border-radius:15px;border-width:3px}.sound-tile>span{font-size:clamp(37px,12vw,57px)}.sound-tile small{font-size:8px}.sound-tile svg{font-size:11px;right:5px;top:5px}.blend-track{gap:4px;margin-bottom:18px}.join-symbol{font-size:18px}.phonics-tip{padding:7px;font-size:11px}.mini-speaker{width:30px;height:30px}.coach-panel{grid-template-columns:78px 1fr;gap:6px}.coach-panel img{height:110px}.coach-bubble{font-size:12px}.coach-bubble small{font-size:9px}.play-heading{flex-wrap:wrap;gap:8px;margin-bottom:10px}.play-heading h2{font-size:26px}.play-heading .eyebrow{font-size:9px}.star-progress{min-width:0;padding:6px 10px;flex:1}.star-progress-label{font-size:8px;gap:4px}.star-row{gap:4px}.star-row svg{width:17px;height:17px}.play-layout{gap:10px}.picture-panel,.challenge-panel{border-radius:22px;border-width:4px}.picture-panel{padding:8px 10px}.illustration-stage{min-height:165px}.illustration-stage img{height:180px}.picture-panel:before{height:180px;width:180px}.picture-panel-bottom{padding-bottom:3px}.picture-hint{font-size:11px}.replay-button{font-size:11px;min-height:36px;padding:6px 9px;border-radius:10px}.replay-button svg{font-size:16px}.picture-badge{font-size:8px;padding:7px}.picture-number{font-size:9px}.challenge-panel{padding:12px 13px}.challenge-panel h3{font-size:23px;margin:9px 0 3px}.challenge-subline{font-size:11px}.word-slots{gap:16px;margin:12px 0 17px}.letter-slot{height:68px;width:68px;border-radius:15px}.letter-slot>span:first-child{font-size:45px}.empty-slot{outline-offset:-10px}.slot-caption{font-size:7px;bottom:-16px}.choice-label{font-size:9px;margin:6px 0 8px}.choice-tile{font-size:24px;border-width:2px;border-radius:11px;min-height:43px}.feedback{margin:10px 0 7px;font-size:11px;min-height:32px}.challenge-actions .button{min-height:41px;font-size:12px;padding:8px 10px}.next-button svg{font-size:15px}.complete-card{padding:5px 14px 23px;border-radius:25px}.complete-art{height:143px}.trophy-star svg{width:112px;height:112px}.trophy-star{left:calc(50% - 80px)}.trophy-halo{width:135px;height:135px;left:calc(50% - 90px)}.complete-mascot{height:130px;left:calc(50% + 17px)}.complete-card h2{font-size:28px}.complete-subtitle{font-size:12px}.result-cards{gap:9px}.result-card strong{font-size:19px}.complete-actions{gap:9px}.complete-actions .button{min-width:0;flex:1;padding:10px;font-size:11px}.game-footer{font-size:7px}.footer-dots{display:none}}
@media(max-height:730px) and (min-width:781px){.screen{padding-block:4px 8px}.hero-scene{height:475px;min-height:0}.welcome-copy h1{font-size:clamp(49px,5.25vw,70px);margin-block:10px}.welcome-description{margin-bottom:15px}.welcome-tags{margin-top:18px}.screen-heading{margin-bottom:12px}.phonics-board{padding-top:14px;padding-bottom:15px}.board-top{margin-bottom:16px}.blend-track{margin-bottom:19px}.phonics-tip{margin-bottom:12px}.coach-panel img{height:175px}.play-heading{margin-bottom:11px}.play-heading h2{font-size:30px}.picture-panel{padding-block:10px}.illustration-stage{min-height:200px}.illustration-stage img{height:255px}.challenge-panel{padding-block:14px}.challenge-panel h3{margin-top:8px}.word-slots{margin-block:12px 15px}.letter-slot{height:90px;width:90px}.letter-slot>span:first-child{font-size:60px}.choice-label{margin:7px 0 8px}.choice-tile{font-size:31px}.feedback{margin:9px 0 7px}.complete-art{height:145px}.trophy-halo{width:140px;height:140px}.trophy-star svg{width:117px;height:117px}.complete-mascot{height:139px}.complete-card{padding-bottom:16px}.complete-card h2{font-size:33px}.complete-subtitle{margin-bottom:12px}.result-cards{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.confetti-piece,.toast-star{display:none!important}}
/* Keep star progress legible on narrow phones instead of compressing it. */
@media(max-width:450px){
  .play-heading{flex-direction:column;align-items:stretch;gap:7px}
  .star-progress{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:6px 12px;flex:none}
  .star-progress-label{display:flex;align-items:center;justify-content:flex-start;gap:10px}
  .star-row{margin:0;justify-content:flex-end}
}
@media(max-width:350px){
  .top-actions .icon-button span{display:none}
  .top-actions .icon-button{width:38px;height:38px;padding:7px;justify-content:center}
}

/* LEARNING CAMEL CLIENT UPDATE · FOREGROUND GAMEPLAY ONLY
   Original .game-shell background, decorations and welcome/phonics/finish visuals unchanged. */
body[data-screen="play"] .brand { visibility: hidden; }
body[data-screen="play"] .game-footer { visibility: hidden; padding-block: 0; height: 0; overflow: hidden; }
.screen-play { padding-top: 4px; padding-bottom: 12px; justify-content: center; }
.screen-play .play-heading {
  width: min(100%, 815px); margin: 0 auto 9px; padding: 0 3px;
  display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px;
}
.screen-play .challenge-number { background: #fffefa; color: #957cc4; padding: 7px 13px; font-size: 12px; border-radius: 13px; letter-spacing: .3px; box-shadow: 0 3px 10px #665c7315; }
.screen-play .star-progress { min-width: 0; border: 0; border-radius: 15px; padding: 7px 11px; display: flex; align-items: center; gap: 10px; box-shadow: 0 3px 12px #665c7317; }
.screen-play .star-progress-label { display: flex; align-items: center; }
.screen-play .star-progress-label strong { font-size: 13px; white-space: nowrap; }
.screen-play .star-row { margin: 0; gap: 3px; }
.screen-play .star-row svg { width: 18px; height: 18px; }
.screen-play .play-layout {
  display: flex; flex-direction: column; align-items: center;
  width: min(100%, 815px); max-width: 815px; gap: 8px; margin: 0 auto;
}
.screen-play .picture-panel {
  position: relative; display: flex; justify-content: center; align-items: center;
  width: 100%; height: clamp(235px, 37vh, 330px); min-height: 0;
  padding: 6px 56px; border: 4px solid #fff; border-radius: 30px;
  background: linear-gradient(165deg,#e1f4ed 0%,#f3fbea 82%);
}
.screen-play .picture-panel::before { width: min(36vh, 310px); height: min(36vh, 310px); top: 48%; }
.screen-play .illustration-stage { width: 100%; min-height: 0; height: 100%; flex: 1; }
.screen-play .illustration-stage img { height: 100%; max-height: 100%; width: 100%; max-width: 530px; object-fit: contain; }
.screen-play .replay-button {
  position: absolute; z-index: 4; top: 12px; right: 13px;
  height: 44px; width: 44px; min-height: 44px; display: grid; place-items: center;
  padding: 0; border-radius: 50%; font-size: 22px;
}
.screen-play .replay-button svg { font-size: 22px; }
.screen-play .challenge-panel {
  width: 100%; display: flex; align-items: center; justify-content: flex-start;
  background: #fffdfa; border: 4px solid white; border-radius: 27px;
  padding: 12px clamp(12px, 2.5vw, 30px) 13px;
}
.screen-play .word-slots {
  margin: 0 0 14px; width: 100%; gap: clamp(10px, 1.9vw, 18px);
}
.screen-play .letter-slot {
  width: clamp(79px, 8.4vw, 104px); height: clamp(79px, 8.4vw, 104px);
  border-radius: 21px;
}
.screen-play .letter-slot > span:first-child,
.screen-play .choice-tile, .screen-play .drag-ghost {
  font-family:var(--lc-ui-font);
  font-weight: 700; text-transform: lowercase;
}
.screen-play .letter-slot > span:first-child { font-size: clamp(55px, 6vw, 77px); }
.screen-play .empty-slot > span:first-child { font-size: clamp(51px, 5.8vw, 70px); }
.screen-play .letter-choices {
  width: min(100%, 620px); max-width: 620px;
  margin: 0 auto; padding: 0; display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 13px);
}
.screen-play .choice-tile {
  min-width: 0; min-height: 0; width: 100%; aspect-ratio: 1;
  border-radius: 17px; border-width: 3px; font-size: clamp(36px, 4.2vw, 58px);
}
.screen-play .feedback {
  width: 100%; max-width: 620px; min-height: 28px; margin: 9px auto 6px;
  font-size: 12px; line-height: 1.3;
}
.screen-play .feedback.is-empty { background: transparent; color: transparent; }
.screen-play .challenge-actions { width: 100%; max-width: 620px; margin: 0 auto; }
.screen-play .challenge-actions .button { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.drag-ghost { text-transform: lowercase; font-family:var(--lc-ui-font); }
@media (max-width:780px) {
  .screen-play { padding: 7px 12px 14px; }
  .screen-play .play-heading { flex-direction: row; align-items: center; flex-wrap: nowrap; margin-bottom: 8px; }
  .screen-play .play-layout { max-width: 610px; gap: 8px; }
  .screen-play .picture-panel { height: clamp(220px, 35vh, 315px); }
  .screen-play .challenge-panel { padding: 12px 12px 14px; }
  .screen-play .letter-slot { width: clamp(72px, 13vw, 94px); height: clamp(72px, 13vw, 94px); }
  .screen-play .letter-slot > span:first-child { font-size: clamp(51px, 9vw, 69px); }
  .screen-play .choice-tile { font-size: clamp(34px, 7.2vw, 51px); }
}
@media (max-width:450px) {
  .screen-play { padding: 4px 9px 12px; }
  .screen-play .challenge-number { font-size: 11px; padding: 6px 8px; }
  .screen-play .star-progress { gap: 7px; width: auto; flex: 0 0 auto; padding: 6px; }
  .screen-play .star-progress-label strong { font-size: 11px; }
  .screen-play .star-row svg { width: 15px; height: 15px; }
  .screen-play .picture-panel { height: clamp(205px, 31vh, 272px); padding: 7px 39px; border-radius: 23px; }
  .screen-play .picture-panel::before { height: 205px; width: 205px; }
  .screen-play .replay-button { top: 7px; right: 8px; width: 39px; height: 39px; min-height: 39px; }
  .screen-play .challenge-panel { padding: 12px 8px; border-radius: 22px; }
  .screen-play .word-slots { margin-bottom: 13px; gap: 12px; }
  .screen-play .letter-slot { width: clamp(68px, 20vw, 85px); height: clamp(68px, 20vw, 85px); border-radius: 16px; }
  .screen-play .letter-slot > span:first-child { font-size: clamp(50px, 14vw, 66px); }
  .screen-play .choice-tile { font-size: clamp(31px, 9.5vw, 43px); border-radius: 13px; min-height: 0; }
  .screen-play .letter-choices { gap: 5px; }
  .screen-play .feedback { margin: 9px 0 7px; font-size: 11px; }
  .screen-play .challenge-actions .button { min-height: 42px; font-size: 12px; }
}
@media (max-width:350px) {
  .screen-play .letter-choices { gap: 4px; }
  .screen-play .picture-panel { height: 185px; }
  .screen-play .star-row { gap: 1px; }
  .screen-play .star-row svg { width: 13px; height: 13px; }
}
@media (max-height:740px) and (min-width:781px) {
  .screen-play { padding-top: 0; padding-bottom: 5px; }
  .screen-play .play-heading { margin-bottom: 6px; }
  .screen-play .picture-panel { height: clamp(210px, 34vh, 268px); }
  .screen-play .challenge-panel { padding-top: 9px; padding-bottom: 9px; }
  .screen-play .letter-slot { height: 84px; width: 84px; }
  .screen-play .letter-slot > span:first-child { font-size: 63px; }
  .screen-play .word-slots { margin-bottom: 10px; }
  .screen-play .letter-choices { max-width: 560px; }
  .screen-play .choice-tile { font-size: 45px; }
  .screen-play .feedback { min-height: 25px; margin: 6px 0 5px; }
}
/* Keep the SVG itself inside the picture frame rather than allowing its natural
   480:350 aspect ratio to grow beyond the frame in grid intrinsic sizing. */
.screen-play .illustration-stage img {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain;
}
/* The picture frame must be centered, including 781–1020px laptop/tablet widths. */
.screen-play .play-layout, .screen-play .play-heading { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   FINAL LEARNING CAMEL REVISION - FOREGROUND ONLY
   The approved .game-shell gradients, clouds, stars, and welcome remain intact.
   -------------------------------------------------------------------------- */
body[data-screen="play"] .game-footer { visibility:hidden; padding:0; height:0; overflow:hidden; }
body[data-screen="play"] .brand { visibility:hidden; }
body[data-screen="play"] .top-actions { margin-left:auto; }
body[data-screen="play"] .icon-button { box-shadow:0 4px 14px rgba(90,80,112,.11); }

.screen-play { padding-top:3px; padding-bottom:9px; justify-content:center; }
.screen-play .play-heading { width:min(100%,860px); margin:0 auto 7px; padding:0 4px; }
.screen-play .challenge-number { padding:5px 11px; font-size:11px; }
.screen-play .star-progress { padding:5px 10px; }
.screen-play .play-layout {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:min(100%,860px); max-width:860px; gap:9px; margin:0 auto;
}
.screen-play .picture-panel {
  width:100%; height:clamp(180px,34vh,288px); min-height:0;
  padding:7px 54px; border-radius:28px; border-width:4px;
}
.screen-play .illustration-stage { width:100%; height:100%; min-height:0; position:relative; }
.screen-play .illustration-stage img {
  position:absolute; inset:0; margin:auto;
  width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain;
}
.screen-play .challenge-panel {
  position:relative; display:flex; flex-direction:column; justify-content:center; align-items:center;
  width:100%; padding:11px 19px 9px; border-radius:27px; border:4px solid #fff;
  background:#fffdfa;
}
.screen-play .word-slots {
  width:auto; max-width:100%; display:flex; align-items:center; justify-content:center;
  gap:clamp(12px,2vw,20px); margin:0 auto 12px;
}
/* ONLY these three upper tiles become larger. Lower choice sizes remain untouched. */
.screen-play .letter-slot {
  flex:none; width:clamp(108px,10.2vw,139px); height:clamp(108px,10.2vw,139px);
  border-radius:24px; transition:box-shadow .18s ease,background-color .18s ease,transform .18s ease;
}
.screen-play .letter-slot > span:first-child,
.screen-play .choice-tile,
.drag-ghost {
  font-family:var(--lc-ui-font);
  font-weight:800; text-transform:lowercase;
}
.screen-play .letter-slot > span:first-child { font-size:clamp(72px,7.7vw,103px); line-height:1; }
.screen-play .empty-slot > span:first-child { font-size:clamp(67px,7.4vw,94px); }
.screen-play .choice-divider {
  width:100%; height:2px; flex:none; border-radius:2px;
  background:linear-gradient(90deg,transparent,#dedbe8 8%,#dedbe8 92%,transparent);
  margin:0 auto 14px;
}
/* Preserve the pre-existing lower choice tile dimensions and font scale. */
.screen-play .letter-choices {
  width:min(100%,620px); max-width:620px; margin:0 auto; padding:0;
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(6px,1.2vw,13px);
}
.screen-play .choice-tile {
  min-width:0; min-height:0; width:100%; aspect-ratio:1;
  border-radius:17px; border-width:3px; font-size:clamp(36px,4.2vw,58px);
}
.screen-play .feedback {
  width:100%; max-width:620px; min-height:20px; margin:4px auto 0;
  font-size:12px; line-height:1.3;
}
.screen-play .feedback.is-empty { background:transparent; color:transparent; }
/* Synchronize three isolated phonemes and the complete spoken word. */
.screen-play .letter-slot.is-sounding,
.screen-play .word-slots.is-sounding-word .letter-slot {
  background:#fff1c9; border-color:#ffc86d;
  box-shadow:0 0 0 5px rgba(255,196,90,.29),0 9px 22px rgba(227,165,70,.19);
  transform:translateY(-3px);
}
@media(max-width:780px) {
  .screen-play { padding:5px 12px 13px; }
  .screen-play .play-heading { margin-bottom:7px; flex-direction:row; }
  .screen-play .play-layout { max-width:620px; gap:8px; }
  .screen-play .picture-panel { height:clamp(205px,34vh,296px); }
  .screen-play .challenge-panel { padding:11px 12px 10px; }
  .screen-play .word-slots { gap:clamp(11px,2.5vw,17px); margin-bottom:12px; }
  .screen-play .letter-slot { width:clamp(91px,16vw,124px); height:clamp(91px,16vw,124px); }
  .screen-play .letter-slot > span:first-child { font-size:clamp(65px,11.5vw,90px); }
  .screen-play .empty-slot > span:first-child { font-size:clamp(64px,11vw,85px); }
  .screen-play .choice-divider { margin-bottom:11px; }
  .screen-play .choice-tile { font-size:clamp(34px,7.2vw,51px); }
}
@media(max-width:450px) {
  .screen-play { padding:3px 9px 9px; }
  .screen-play .play-heading { margin-bottom:5px; }
  .screen-play .picture-panel { height:clamp(190px,30vh,258px); padding:4px 35px; border-radius:22px; }
  .screen-play .challenge-panel { padding:10px 8px 9px; border-radius:22px; }
  .screen-play .word-slots { gap:clamp(9px,2.7vw,12px); margin-bottom:10px; }
  .screen-play .letter-slot { width:clamp(83px,24vw,106px); height:clamp(83px,24vw,106px); border-radius:17px; }
  .screen-play .letter-slot > span:first-child { font-size:clamp(59px,17.5vw,79px); }
  .screen-play .empty-slot > span:first-child { font-size:clamp(56px,16.5vw,73px); }
  .screen-play .choice-divider { margin-bottom:10px; }
  .screen-play .letter-choices { gap:5px; }
  .screen-play .choice-tile { font-size:clamp(31px,9.5vw,43px); border-radius:13px; }
  .screen-play .feedback { min-height:19px; font-size:11px; margin-top:4px; }
  .screen-play .replay-button { top:6px; right:7px; }
  body[data-screen="play"] .top-actions .icon-button { width:40px; height:40px; min-height:40px; padding:7px; justify-content:center; }
  body[data-screen="play"] .top-actions .icon-button span { display:none; }
}
@media(max-width:350px) {
  .screen-play .picture-panel { height:clamp(152px,27vh,190px); }
  .screen-play .letter-slot { width:clamp(78px,25vw,85px); height:clamp(78px,25vw,85px); }
  .screen-play .letter-slot > span:first-child { font-size:58px; }
  .screen-play .letter-choices { gap:4px; }
}
@media(max-height:740px) and (min-width:781px) {
  .screen-play { padding:0 18px 5px; }
  .screen-play .play-heading { margin-bottom:5px; }
  .screen-play .picture-panel { height:clamp(178px,32vh,249px); }
  .screen-play .challenge-panel { padding:9px 15px 7px; }
  .screen-play .letter-slot { width:clamp(100px,9.8vw,126px); height:clamp(100px,9.8vw,126px); }
  .screen-play .letter-slot > span:first-child { font-size:clamp(69px,7.5vw,91px); }
  .screen-play .word-slots { margin-bottom:9px; }
  .screen-play .choice-divider { margin-bottom:10px; }
  .screen-play .letter-choices { max-width:560px; }
  .screen-play .choice-tile { font-size:45px; }
  .screen-play .feedback { min-height:20px; margin:3px auto 0; }
}
/* Put the challenge close to the top on tall portrait displays, rather than
   leaving a large blank band above the picture. Desktop remains centered. */
@media(max-width:780px) {
  .screen-play { justify-content:flex-start; padding-top:clamp(12px,3vh,30px); }
}

/* --------------------------------------------------------------------------
   LEARNING CAMEL · CLIENT SPACING PASS · 04 NOV 2026
   Layout only. Audio, animations, background, and all letter dimensions untouched.
   Keep the two existing progress indicators in the unused header area.
   -------------------------------------------------------------------------- */
.topbar .play-heading { display:none; }
body[data-screen="play"] .brand { display:none; }
body[data-screen="play"] .topbar {
  padding-top:14px; padding-bottom:9px;
  gap:clamp(10px,2vw,24px);
}
body[data-screen="play"] .topbar .play-heading {
  display:flex; flex:1 1 auto; min-width:0;
  justify-content:flex-start; align-items:center; gap:clamp(9px,1.4vw,17px);
  margin:0; padding:0;
}
body[data-screen="play"] .topbar .challenge-number {
  flex:none; background:#fffefa; color:#957cc4; padding:5px 10px;
  font-size:10px; border-radius:13px; letter-spacing:.3px;
  font-weight:900; box-shadow:0 3px 10px #665c7315;
}
body[data-screen="play"] .topbar .star-progress {
  flex:none; display:flex; align-items:center; min-width:0; gap:6px;
  padding:5px 8px; border:0; border-radius:15px;
  box-shadow:0 3px 12px #665c7317;
}
body[data-screen="play"] .topbar .star-progress-label strong {
  font-size:11px; white-space:nowrap;
}
body[data-screen="play"] .topbar .star-row { margin:0; gap:2px; }
body[data-screen="play"] .topbar .star-row svg { width:15px; height:15px; }
body[data-screen="play"] .top-actions { flex:none; margin-left:auto; }
/* Use the freed space above the illustration to enlarge the frame. */
.screen-play .play-layout { gap:9px; }
.screen-play .picture-panel {
  height:clamp(260px,42vh,325px);
}
/* Keep the existing upper/lower tile dimensions, background, and colors. */
.screen-play .word-slots { margin-bottom:22px; }
.screen-play .choice-divider { margin-bottom:12px; }
/* Preserve the complete existing feedback bar; only separate it from choices. */
.screen-play .feedback { margin:24px auto 0; }

@media(max-height:740px) and (min-width:781px) {
  .screen-play .picture-panel { height:clamp(240px,39vh,290px); }
  .screen-play .word-slots { margin-bottom:18px; }
  .screen-play .choice-divider { margin-bottom:11px; }
  .screen-play .feedback { margin-top:22px; }
}
@media(max-width:780px) {
  body[data-screen="play"] .topbar { padding:9px 12px 7px; }
  body[data-screen="play"] .topbar .play-heading {
    flex-direction:column; align-items:flex-start; justify-content:center; gap:3px;
  }
  body[data-screen="play"] .topbar .challenge-number { padding:2px 7px; font-size:9px; }
  body[data-screen="play"] .topbar .star-progress { padding:2px 6px; gap:5px; }
  body[data-screen="play"] .topbar .star-row svg { width:13px; height:13px; }
  .screen-play { padding-top:7px; }
  .screen-play .picture-panel { height:clamp(235px,38vh,355px); }
  .screen-play .word-slots { margin-bottom:20px; }
  .screen-play .choice-divider { margin-bottom:12px; }
  .screen-play .feedback { margin-top:20px; }
}
@media(max-width:450px) {
  body[data-screen="play"] .topbar { padding:7px 9px 6px; }
  body[data-screen="play"] .topbar .play-heading { gap:2px; }
  body[data-screen="play"] .topbar .star-progress { gap:4px; }
  body[data-screen="play"] .topbar .star-row svg { width:12px; height:12px; }
  .screen-play { padding-top:4px; }
  .screen-play .picture-panel { height:clamp(205px,34vh,288px); }
  .screen-play .word-slots { margin-bottom:17px; }
  .screen-play .choice-divider { margin-bottom:10px; }
  .screen-play .feedback { margin-top:18px; }
}
@media(max-width:350px) {
  body[data-screen="play"] .topbar .star-row svg { width:11px; height:11px; }
  .screen-play .picture-panel { height:clamp(165px,32vh,245px); }
  .screen-play .word-slots { margin-bottom:12px; }
  .screen-play .feedback { margin-top:14px; }
}
@media(max-height:600px) {
  /* Very short landscape devices can vertically scroll if required. */
  .screen-play .picture-panel { height:clamp(155px,31vh,215px); }
  .screen-play .word-slots { margin-bottom:11px; }
  .screen-play .feedback { margin-top:13px; }
}

/* PHONICS ONLY: highlight the two AT-family tiles together during /æt/.
   Existing layout, dimensions, backgrounds and other states stay unchanged. */
.screen-play .word-slots.is-sounding-ending .slot-a,
.screen-play .word-slots.is-sounding-ending .slot-t {
  background: #fff1c9; border-color: #ffc86d;
  box-shadow: 0 0 0 5px rgba(255,196,90,.29),0 9px 22px rgba(148,98,36,.2);
}

/* Learning Camel: gesture-only answering and neutral one-time drag guidance.
   Original palette, letter dimensions, and backgrounds are unchanged. */
.drag-ghost.is-returning {
  pointer-events:none;
  transition:left .26s ease-out,top .26s ease-out,opacity .26s ease-out,transform .26s ease-out;
}
.drag-guide {
  position:fixed;
  z-index:105;
  width:48px;
  height:64px;
  opacity:0;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 5px 5px rgba(70,60,95,.18));
  will-change:transform,opacity;
}
.drag-guide[hidden] { display:none; }
.drag-guide svg { width:100%;height:100%;display:block; }
.drag-guide.is-playing { animation:camel-guide-move 2.65s ease-in-out both; }
.empty-slot.is-guiding:not(.filled) { animation:camel-guide-glow 1.4s ease-in-out 2; }
@keyframes camel-guide-move {
  0%,8% { opacity:0;transform:translate(0,0) scale(.94); }
  20% { opacity:.66;transform:translate(0,0) scale(1); }
  75% { opacity:.7;transform:translate(var(--guide-dx),var(--guide-dy)) scale(1); }
  95%,100% { opacity:0;transform:translate(var(--guide-dx),var(--guide-dy)) scale(.94); }
}
@keyframes camel-guide-glow {
  0%,100% { box-shadow:0 5px 0 #e2d9dc; }
  50% { box-shadow:0 5px 0 #e2d9dc,0 0 0 7px rgba(255,194,101,.24); }
}
@media(prefers-reduced-motion:reduce) {
  .drag-guide, .drag-guide.is-playing { display:none!important;animation:none!important; }
  .empty-slot.is-guiding:not(.filled) { animation:none!important; }
  .drag-ghost.is-returning { transition:none!important; }
}

/* ========================================================================
   LEARNING CAMEL · CVC VOWEL MENU + LARGE TRANSPARENT WORD ART
   The original cream background, cloud decorations, mascot and letter colors
   are deliberately untouched. Only the five authorized presentation changes.
   ======================================================================== */
/* Keep the approved bold treatment across the game interface. */
.game-shell, .game-shell * {
  font-family:var(--lc-ui-font);
  font-weight:700 !important;
}

/* Use the original rainbow/camel scene in a compact new menu composition. */
.screen-welcome {
  justify-content:flex-start;
  padding:2px clamp(16px,3.3vw,44px) 8px;
}
.screen-welcome .welcome-layout {
  width:min(100%,1180px); flex:0 0 auto; margin:0 auto;
  grid-template-columns:minmax(0,1.22fr) minmax(280px,.78fr);
  gap:clamp(10px,2.4vw,28px); height:206px; align-items:center;
}
.screen-welcome .welcome-copy { padding:0 0 0 12px; }
.screen-welcome .welcome-copy h1 {
  font-size:clamp(44px,4.3vw,61px); line-height:1.09;
  margin:9px 0 9px; letter-spacing:-2.1px;
}
.screen-welcome .welcome-subtitle { font-size:clamp(16px,1.65vw,22px); margin:0; color:#8772bc; }
.screen-welcome .hero-scene { height:204px; min-height:0; width:100%; max-width:430px; margin:0 auto; }
.screen-welcome .hero-mascot { width:min(62%,240px); height:83%; bottom:6%; }
.screen-welcome .hero-float-letter { border-width:3px; border-radius:14px; font-size:30px; }
.screen-welcome .letter-a { width:51px; height:52px; }
.screen-welcome .letter-t { width:48px; height:50px; }
.screen-welcome .letter-c { width:35px; height:36px; font-size:22px; }
.screen-welcome .hero-caption { bottom:1%; right:2%; padding:6px 11px; font-size:10px; }
.screen-welcome .hero-sun { transform:scale(.7); }

.family-menu {
  width:min(100%,1190px); margin:5px auto 12px;
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(8px,1.1vw,14px); align-items:stretch;
}
.vowel-card {
  --card-accent:#ef987f; --card-tint:#fff1eb; --card-stroke:#f7d4c5;
  min-width:0; background:linear-gradient(155deg,#fffdf9,var(--card-tint));
  border:3px solid #fff; border-radius:25px;
  box-shadow:0 7px 0 rgba(148,123,135,.09),0 11px 20px rgba(130,99,115,.065);
  padding:13px 11px 16px;
}
.vowel-e {--card-accent:#65b69f; --card-tint:#e9f8ee; --card-stroke:#c4e8d8;}
.vowel-i {--card-accent:#9883d4; --card-tint:#f0edff; --card-stroke:#ded7f3;}
.vowel-o {--card-accent:#dc88a8; --card-tint:#fff0f7; --card-stroke:#f2d4e3;}
.vowel-u {--card-accent:#70a7d7; --card-tint:#eef6ff; --card-stroke:#d3e6f5;}
.vowel-heading {
  margin:0 0 12px; display:flex; align-items:center; gap:9px;
  color:#465066; font-size:clamp(15px,1.43vw,19px);
  line-height:1.2; white-space:nowrap; letter-spacing:-.4px;
}
.vowel-bubble {
  display:grid; place-items:center; flex:none;
  height:clamp(37px,3.6vw,46px); width:clamp(37px,3.6vw,46px);
  background:var(--card-accent); color:#fff;
  border:3px solid white; border-radius:16px;
  box-shadow:0 4px 0 var(--card-stroke);
  font-size:clamp(20px,2.2vw,29px); text-shadow:0 1px rgba(69,54,76,.13);
}
.family-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.family-option {
  min-width:0; min-height:42px; padding:6px 4px;
  border:2px solid var(--card-stroke); border-radius:13px;
  background:#fffefa; color:#686478; font-size:clamp(13px,1.15vw,16px);
  text-align:center; line-height:1.15; box-shadow:0 3px 0 rgba(103,93,117,.05);
}
.family-option.is-upcoming { opacity:.66; cursor:default; }
.family-option.is-available {
  background:#ff8a73; border-color:#f07067; color:white; cursor:pointer;
  box-shadow:0 4px 0 #d86c63,0 7px 15px rgba(204,101,92,.21);
  transition:transform .18s ease,box-shadow .18s ease;
}
.family-option.is-available:hover { transform:translateY(-2px); box-shadow:0 6px 0 #d86c63,0 9px 16px rgba(204,101,92,.22); }
.family-option.is-available:active { transform:translateY(1px); box-shadow:0 2px 0 #d86c63; }

/* Remove ONLY the illustrated picture's green card and adornments. */
.screen-play .picture-panel {
  height:clamp(290px,46vh,370px); min-height:0;
  background:transparent !important; background-image:none !important;
  border:0 !important; box-shadow:none !important;
  border-radius:0 !important; padding:0 48px !important;
  overflow:visible; position:relative;
}
.screen-play .picture-panel::before,
.screen-play .picture-panel::after { content:none !important; display:none !important; }
.screen-play .illustration-stage { height:100%; width:100%; min-height:0; }
.screen-play .illustration-stage img {
  display:block; width:100%; max-width:640px;
  height:100%; max-height:none; object-fit:contain;
  object-position:center center;
}
/* Four equally sized listening options, with the current colors/tile styling. */
.screen-play .letter-choices {
  grid-template-columns:repeat(4,minmax(0,1fr));
  width:min(100%,480px); max-width:480px;
  gap:clamp(9px,1.25vw,15px);
}
.screen-play .choice-tile { font-size:clamp(37px,4.2vw,58px); }

@media(max-width:1040px) {
  .screen-welcome .welcome-layout { height:185px; grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr); }
  .screen-welcome .hero-scene { height:185px; }
  .family-menu { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:800px; gap:12px; }
  .vowel-card { padding:14px; }
  .vowel-heading { font-size:18px; }
  .vowel-bubble { width:43px;height:43px;font-size:26px; }
  .family-option { font-size:16px; min-height:43px; }
}
@media(max-width:780px) {
  .screen-welcome { padding:6px 12px 14px; }
  .screen-welcome .welcome-layout {
    height:158px; grid-template-columns:minmax(0,1fr) minmax(130px,.8fr);
    gap:0; text-align:left;
  }
  .screen-welcome .welcome-copy { order:0; padding:0 0 0 4px; display:block; text-align:left; }
  .screen-welcome .welcome-copy h1 { font-size:clamp(31px,5.3vw,45px); letter-spacing:-1px; margin:9px 0 6px; }
  .screen-welcome .welcome-copy h1 > span { display:block; }
  .screen-welcome .welcome-copy .eyebrow { font-size:9px; letter-spacing:.8px; }
  .screen-welcome .welcome-subtitle { font-size:clamp(12px,2.5vw,17px); line-height:1.25; }
  .screen-welcome .hero-scene { order:1; height:156px; width:100%; max-width:320px; margin:0; }
  .screen-welcome .hero-mascot { height:80%; width:76%; bottom:8%; }
  .screen-welcome .hero-caption { display:none; }
  .screen-welcome .hero-backdrop { border-width:3px; }
  .screen-welcome .hero-float-letter { font-size:23px; }
  .screen-welcome .letter-a,.screen-welcome .letter-t { width:35px;height:36px; }
  .screen-welcome .letter-c { width:28px;height:30px;font-size:18px; }
  .family-menu { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:620px; margin-top:6px; gap:11px; }
  .vowel-card { border-radius:21px; padding:11px; }
  .vowel-heading { font-size:clamp(15px,3.8vw,20px); gap:7px; margin-bottom:10px; }
  .vowel-bubble { width:clamp(36px,10vw,44px);height:clamp(36px,10vw,44px);font-size:clamp(21px,6vw,27px); }
  .family-option { font-size:clamp(14px,3.6vw,17px); min-height:43px; }
  .vowel-card:last-child { grid-column:1/-1; }
  .vowel-card:last-child .family-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .screen-play .picture-panel { height:clamp(220px,37vh,330px); padding:0 10px !important; }
  .screen-play .letter-choices { max-width:420px; gap:clamp(8px,2vw,12px); }
}
@media(max-width:450px) {
  .screen-welcome .welcome-layout { height:138px; grid-template-columns:minmax(0,1fr) minmax(128px,.78fr); }
  .screen-welcome .welcome-copy h1 { font-size:clamp(28px,7.2vw,33px); }
  .screen-welcome .hero-scene { height:137px; }
  .screen-welcome .hero-mascot { width:88%; height:84%; }
  .screen-welcome .hero-rainbow > span { border-width:9px; }
  .screen-welcome .hero-rainbow > span:nth-child(2) { inset:13px 13px 0; }
  .screen-welcome .hero-rainbow > span:nth-child(3) { inset:26px 26px 0; }
  .vowel-card { padding:10px 8px 12px; border-radius:17px; }
  .vowel-heading { font-size:15px; gap:5px; }
  .vowel-bubble { width:33px;height:34px;font-size:19px;border-radius:11px; }
  .family-options { gap:6px; }
  .family-option { font-size:14px; padding:6px 3px; min-height:41px; border-radius:11px; }
  .screen-play .picture-panel { height:clamp(205px,36vh,285px); padding:0 5px !important; }
  .screen-play .letter-choices { width:min(100%,350px); gap:8px; }
  .screen-play .choice-tile { font-size:clamp(32px,8.9vw,45px); }
}
@media(max-width:350px) {
  .screen-welcome .welcome-layout { height:121px; grid-template-columns:minmax(0,1fr) 120px; }
  .screen-welcome .welcome-copy h1 { font-size:26px; }
  .screen-welcome .hero-scene { height:120px; }
  .screen-welcome .welcome-subtitle { font-size:11px; }
  .family-menu { gap:7px; }
  .vowel-heading { font-size:13px; }
  .family-option { font-size:13px; }
  .screen-play .picture-panel { height:clamp(175px,31vh,215px); }
}
@media(max-height:630px) and (min-width:781px) {
  .screen-welcome .welcome-layout { height:138px; }
  .screen-welcome .hero-scene { height:136px; }
  .screen-welcome .welcome-copy h1 { font-size:42px; }
  .family-option { min-height:36px; }
  .vowel-card { padding:9px; }
  .vowel-heading { margin-bottom:7px; }
  .screen-play .picture-panel { height:clamp(200px,36vh,270px); }
}
/* 1280×720 landscape: keep the illustration enlarged but the entire lesson visible. */
@media (min-width:781px) and (max-height:760px) {
  .screen-play .picture-panel { height:clamp(242px,39vh,295px); }
  .screen-play .word-slots { margin-bottom:15px; }
  .screen-play .challenge-panel { padding-top:9px; padding-bottom:10px; }
  .screen-play .feedback { margin-top:16px; }
}


/* Client-approved spacing refinements (homepage + gameplay only).
   Keep original typography, tile dimensions, audio, colors and backgrounds. */
@media (min-width:781px) {
  /* The introductory line stays in place; only the five-card menu moves. */
  .screen-welcome .family-menu { margin-top:32px; }
}
@media (max-width:780px) {
  .screen-welcome .family-menu { margin-top:clamp(20px,3.1vh,28px); }
}
/* Put breathing room between the question-mark row and listening tiles.
   The white panel grows only by the height of real usable content. */
.screen-play .choice-divider { margin-top:20px; }
/* Short laptop windows need slightly less growth to protect top navigation. */
@media (min-width:781px) and (max-height:800px) {
  .screen-play .choice-divider { margin-top:21px; }
}
@media (max-width:450px) {
  .screen-play .choice-divider { margin-top:18px; }
}
@media (max-width:350px), (max-height:630px) and (min-width:781px) {
  .screen-play .choice-divider { margin-top:14px; }
}
/* All six transparent SVGs are always contained, not covered by overflow
   clipping or forced cropping at mobile breakpoints. */
.screen-play .illustration-stage { overflow:visible; }
.screen-play .illustration-stage img {
  object-fit:contain; object-position:50% 50%; overflow:visible;
}

/* Preserve the complete 720–800px laptop viewport after adding real row spacing. */
@media (min-width:781px) and (max-width:1100px) and (max-height:800px) {
  .screen-play .picture-panel {
    max-height:max(240px,min(330px,calc(100svh - 428px)));
  }
}

/* Learning Camel Short a expansion: show lowercase menu without altering cards. */
.screen-welcome .vowel-bubble, .screen-welcome .family-option, .screen-welcome .vowel-heading { text-transform:none !important; }

/* Extended ell family: four grapheme tiles, matching existing tile style. */
.word-slots[data-family="ell"][data-legacy-four-boxes="true"] { gap:clamp(5px,1.2vw,13px); }
.word-slots[data-family="ell"][data-legacy-four-boxes="true"] .letter-slot { width:clamp(53px,6.3vw,83px); height:clamp(65px,7vw,88px); }
.word-slots[data-family="ell"][data-legacy-four-boxes="true"] .letter-slot>span:first-child { font-size:clamp(39px,4.6vw,58px); }
@media(max-width:450px){.word-slots[data-family="ell"][data-legacy-four-boxes="true"]{gap:7px}.word-slots[data-family="ell"][data-legacy-four-boxes="true"] .letter-slot{width:clamp(49px,16vw,65px);height:clamp(59px,17vw,70px)}.word-slots[data-family="ell"][data-legacy-four-boxes="true"] .letter-slot>span:first-child{font-size:clamp(36px,11vw,45px)}}
/* Hide the unused fourth slot outside the ell spelling family. */
.word-slots .fixed-slot[hidden] { display:none !important; }
/* Ell uses an extra fixed grapheme: a fully colored, clearly visible fourth tile. */
.screen-play .fixed-slot.slot-extra { background:#81d3b5; box-shadow:0 6px 0 #67ba9d; }
.screen-play .word-slots.is-sounding-ending .slot-extra {
  background:#fff1c9; border-color:#ffc86d;
  box-shadow:0 0 0 5px rgba(255,196,90,.29),0 9px 22px rgba(148,98,36,.2);
}

/* Client-approved: small camel head replaces ONLY the branding star. */
.brand-icon img { display:block; width:34px; height:34px; object-fit:contain; transform:rotate(9deg); }
/* Breathing space below branding; keep the hero and family menu dimensions. */
.screen-welcome .welcome-copy > .eyebrow { margin-top:18px; }
@media(max-width:780px) { .screen-welcome .welcome-copy > .eyebrow { margin-top:12px; } }
@media(max-width:450px) { .screen-welcome .welcome-copy > .eyebrow { margin-top:9px; } }


/* Three-stage recorded phonics introduction — no change to tile sizes or palette. */
.screen-play .letter-choices.is-introducing .choice-tile { cursor:wait; }
.screen-play .letter-choices.is-introducing .choice-tile:disabled {
  opacity:1; filter:none; transform:none;
}
.screen-play .word-slots .letter-slot {
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
/* Use the existing yellow audio highlight design for every ending, including ell. */
.screen-play .word-slots.is-sounding-ending .fixed-slot {
  background:#fff1c9; border-color:#ffc86d;
  box-shadow:0 0 0 5px rgba(255,196,90,.29),0 9px 22px rgba(148,98,36,.2);
  transform:translateY(-3px);
}
/* Exact uploaded happy/confused camels with nonblocking, responsive reactions. */
.brand-icon { background:transparent; box-shadow:none; transform:none; }
.brand-icon img { width:100%; height:100%; object-fit:contain; transform:none; }
.camel-reaction {
  position:fixed; z-index:106; pointer-events:none; user-select:none;
  opacity:0; visibility:hidden; transform:translateY(12px) scale(.87);
  transition:opacity .26s ease,transform .31s cubic-bezier(.2,.78,.24,1),visibility .26s;
  filter:drop-shadow(0 10px 13px rgba(81,54,65,.15));
}
.camel-reaction[hidden] { display:none !important; }
.camel-reaction.is-visible { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.camel-reaction > img { width:100%;height:100%;object-fit:contain;display:block; }
.camel-reaction.is-happy.is-visible > img { animation:camel-happy-bounce .75s cubic-bezier(.22,.68,.23,1) both; }
.camel-reaction.is-confused.is-visible > img { animation:camel-confused-welcome .55s cubic-bezier(.2,.8,.25,1) both; }
.reaction-sparkle {
  position:absolute; display:none; font-size:20px; color:#ffc85d;
  text-shadow:0 2px 0 #e5a643; filter:drop-shadow(0 2px 3px #eed095aa);
}
.camel-reaction.is-happy .reaction-sparkle { display:block; }
.reaction-sparkle-one { top:4%;right:0;animation:camel-sparkle 1.1s ease-in-out infinite alternate; }
.reaction-sparkle-two { top:26%;left:-9%;font-size:14px;animation:camel-sparkle 1.35s ease-in-out infinite alternate-reverse; }
@keyframes camel-happy-bounce { 0%{transform:translateY(15px) scale(.90)}55%{transform:translateY(-6px) scale(1.025)}100%{transform:translateY(0) scale(1)} }
@keyframes camel-confused-welcome { 0%{transform:translateY(8px) scale(.95)}100%{transform:translateY(0) scale(1)} }
@keyframes camel-sparkle { from{opacity:.5;transform:scale(.8) rotate(-13deg)}to{opacity:1;transform:scale(1.12) rotate(8deg)} }
@media(max-width:450px) {
  .brand-icon img { width:100%;height:100%; }
  .reaction-sparkle { font-size:14px; }
}
@media(prefers-reduced-motion:reduce) {
  .camel-reaction,.camel-reaction img,.reaction-sparkle {animation:none!important;transition:none!important;}
}


/* === Approved five-part client revision: visual menu, result mascot, intro lead-in === */
/* The completion star, sparkles and existing mascot animation are unchanged. */
.screen-complete .complete-mascot {
  object-fit:contain;
  object-position:center bottom;
  /* Client's optimized smiling reaction artwork, next to the existing trophy. */
}
/* All active family buttons take the EXACT existing vowel-bubble accent of their card. */
.screen-welcome .vowel-card .family-option.is-available {
  background:var(--card-accent);
  border-color:color-mix(in srgb,var(--card-accent) 75%,#42364b);
  color:#1e2938;
  box-shadow:0 4px 0 color-mix(in srgb,var(--card-accent) 69%,#42364b),
             0 7px 15px color-mix(in srgb,var(--card-accent) 25%,transparent);
}
.screen-welcome .vowel-card .family-option.is-available:hover {
  box-shadow:0 6px 0 color-mix(in srgb,var(--card-accent) 69%,#42364b),
             0 9px 16px color-mix(in srgb,var(--card-accent) 28%,transparent);
}
.screen-welcome .vowel-card .family-option.is-available:active {
  box-shadow:0 2px 0 color-mix(in srgb,var(--card-accent) 69%,#42364b);
}
/* Increase only individual family names, not headings or card/button dimensions. */
.screen-welcome .family-option {
  font-size:clamp(15.3px,1.357vw,18.9px);
  white-space:nowrap;
  line-height:1.12;
}
/* Move both hero and family cards as one visual section. Branding/header/footer remain fixed. */
@media(min-width:1050px) and (min-height:690px) {
  .screen-welcome .welcome-layout,
  .screen-welcome .family-menu { position:relative; top:24px; }
}
@media (max-width:1040px) and (min-width:781px) {
  .screen-welcome .family-option {font-size:18.9px;}
}
@media (max-width:780px) {
  .screen-welcome .family-option {font-size:clamp(16.5px,4.25vw,20px);}
}
@media (max-width:450px) {
  .screen-welcome .family-option {font-size:clamp(16.0px,4.35vw,17.0px);}
}
@media (max-width:350px) {
  .screen-welcome .family-option {font-size:15.3px;}
}


/* AT-only second-round pilot; existing game and homepage remain unchanged. */
.screen-round-transition { align-items:center;justify-content:center; }
.round-transition-card {
  width:min(100%,630px);padding:clamp(24px,4vw,48px);text-align:center;
  background:#fffdfa;border:5px solid white;border-radius:36px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;align-items:center;gap:17px;
}
.round-transition-card .round-transition-star { color:#ffc763;filter:drop-shadow(0 5px #dfa54e); }
.round-transition-card .round-transition-star svg { width:84px;height:84px; }
.round-transition-card h2 { font-size:clamp(30px,4vw,52px);line-height:1.13;color:var(--ink);margin:0; }
.round-transition-card p { font-size:clamp(14px,1.7vw,19px);color:#88829a;margin:0 0 8px; }
.round-transition-card .button { min-width:min(100%,290px); }
/* First letter is visible and fixed in Round 2 vowel/final-letter puzzles. */
.screen-play .word-slots[data-round="2"] .fixed-slot.slot-initial {
  background:#ffa283;box-shadow:0 6px 0 #df8069;
}
/* The ending highlight is applied to positions 1 and 2, including an empty slot. */
.screen-play .word-slots[data-round="2"] .letter-slot.is-sounding,
.screen-play .word-slots[data-round="2"].is-sounding-word .letter-slot {
  background:#fff1c9;border-color:#ffc86d;
  box-shadow:0 0 0 5px rgba(255,196,90,.29),0 9px 22px rgba(148,98,36,.2);
  transform:translateY(-3px);
}
@media(max-width:450px){
 .round-transition-card{border-radius:25px;padding:27px 14px;gap:13px;}
 .round-transition-card .round-transition-star svg{width:68px;height:68px;}
 .round-transition-card .button{min-width:0;width:100%;}
}

button.vowel-bubble { appearance:none; padding:0; font-family:inherit; font-weight:inherit; line-height:inherit; letter-spacing:inherit; cursor:pointer; }
.screen-play #wordIllustration[hidden], .screen-play #matchWord[hidden],
.screen-play .is-matching .word-slots, .screen-play .is-matching .choice-divider { display:none; }
.screen-play #matchWord { position:absolute; inset:0; display:grid; place-items:center; font-size:clamp(71.44px,13.40vw,139.91px); }
.screen-play .is-matching .letter-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
.screen-play .is-matching .choice-tile { font-size:clamp(23px,5vw,40px); touch-action:manipulation; text-transform:none; }
.screen-play .is-matching .word-choice { font-size:clamp(34.23px,7.44vw,59.54px); }
.screen-play .is-matching .choice-tile img { width:100%; height:100%; min-height:0; object-fit:contain; }

@media (hover:hover) and (pointer:fine) {
  button.vowel-bubble:hover { filter:brightness(1.08); }
}
button.vowel-bubble:focus-visible { outline:3px solid var(--card-stroke); outline-offset:3px; }
button.vowel-bubble:active { filter:brightness(.94); box-shadow:0 2px 0 var(--card-stroke); }


#sentenceSlots:not([hidden]), .screen-play .sentence-round .letter-choices {
  display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(3px,1vw,9px); width:100%;
}
#sentenceSlots:not([hidden]) { margin-bottom:10px }
.screen-play .sentence-round .sentence-slot,
.screen-play .sentence-round .sentence-tile {
  width:clamp(49.6px,14.16vw,90.9px); height:clamp(49.6px,11.8vw,73.2px); min-width:0; min-height:0;
  font-size:clamp(22px,4.88vw,34.2px); padding:0; text-transform:none;
}
.screen-play .sentence-round .sentence-slot {display:grid;place-items:center}
.screen-play .sentence-round .sentence-slot .sentence-tile {width:100%;height:100%}
.screen-play .sentence-round .sentence-tile {touch-action:none}
.sentence-ghost {pointer-events:none;font-size:24px}

/* The round picker shares the toolbar button height. Its native menu opens over the page. */
#atRoundNav { position:relative; gap:4px; padding-inline:10px; }
#atRoundSelect { font:inherit; color:inherit; background:transparent; border:0; cursor:pointer; }
#atRoundNav:focus-within { outline:4px solid #6658c6; outline-offset:2px; }
@media (max-width:780px) {
  body[data-screen="play"] #atRoundNav { padding-inline:4px; width:auto; min-width:38px; }
  #atRoundSelect { width:100%; height:100%; }
  #atRoundNav .round-prefix { display:none; }
}
@media (max-width:375px) {
  .topbar:has(#atRoundNav:not([hidden])) { gap:3px; }
  .top-actions:has(#atRoundNav:not([hidden])) { gap:2px; }
  .top-actions:has(#atRoundNav:not([hidden])) button.icon-button { width:32px; padding-inline:4px; }
}

#sentenceSlots.is-complete { position:relative; }
#sentenceSlots.is-complete .sentence-slot { visibility:hidden; }
#sentenceSlots .completed-sentence {
  position:absolute; inset:0; display:grid; place-content:center;
  text-align:center; font-size:clamp(18px,4vw,28px); line-height:1.15;
}
.drag-ghost.sentence-ghost { text-transform:none; }

.screen-play .at-match-drop .illustration-stage {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);
  align-items:center; justify-items:center; gap:clamp(5px,2vw,24px);
}
.screen-play .at-match-drop #matchDrop {
  width:min(100%,clamp(68px,15vw,180px)); aspect-ratio:1; height:auto;
  grid-column:1; grid-row:1; padding:6px; font-size:clamp(26px,5vw,56px);
}
.screen-play .at-match-drop #matchWord, .screen-play .at-match-drop #wordIllustration {
  position:relative; inset:auto; grid-column:2; grid-row:1; max-width:100%; min-width:0;
}
.screen-play .at-match-drop #matchWord {font-size:clamp(42px,12vw,139px)}
.screen-play .at-match-drop .choice-tile {touch-action:none}
.screen-play .at-match-drop .choice-tile img {pointer-events:none}
#matchDrop img, .match-ghost img {width:100%; height:100%; object-fit:contain}
.match-ghost {pointer-events:none; font-size:clamp(34px,7.44vw,60px)}

.screen-play .at-match-drop .illustration-stage { grid-template-rows:minmax(0,1fr); }
.screen-play .at-match-drop #wordIllustration {
  position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:auto;
  object-fit:contain; object-position:center;
}
.screen-play .at-match-drop #matchDrop { position:relative; min-height:0; max-height:100%; }
.screen-play .at-match-drop #matchDrop img {
  position:absolute; inset:6px; width:calc(100% - 12px); height:calc(100% - 12px);
  margin:0; object-fit:contain; scale:1;
}
.match-picture-preview {
  position:fixed; z-index:100; transform:translate(-50%,-50%); object-fit:contain;
  pointer-events:none; max-width:none; max-height:none;
}
#sentenceSlots .completed-sentence {font-size:clamp(22px,4.88vw,34.2px); width:100%;}
.completed-sentence .spoken-word { background:#ffe3a7; color:#372d38; border-radius:.18em; }
#downloadTest:not([hidden]) { margin-bottom:10px; }

.copied-match-card { display:grid;place-items:center;box-sizing:border-box;position:absolute;top:50%;left:50%;pointer-events:none;overflow:hidden; }
.moving-match-card { position:fixed;z-index:100;transform:translate(-50%,-50%); }
.screen-play .at-match-drop #matchDrop:has(.copied-match-card) {background:transparent;outline:0;border-color:transparent;box-shadow:none;}
.screen-play .at-match-drop #matchDrop .copied-match-card img,.copied-match-card img {position:static;inset:auto;max-width:none;max-height:none;object-fit:contain;margin:auto;}
#downloadTest {text-decoration:none;}

.screen-play .is-matching .letter-choices.two-matches {grid-template-columns:repeat(2,minmax(0,1fr));max-width:min(100%,320px);}

/* The AT menu entry is shared, so only its own label is selected here. */
@media (max-width:600px) {
  /* Reserve the upper strip even between reactions. The existing replay
     control occupies the opposite end, above the picture and drop target. */
  .at-phone-play .screen-play .picture-panel {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    --previous-strip:clamp(58px,16vw,78px);
    --reaction-strip:clamp(98px,min(34vw,18vh),152px);
    --panel-base:clamp(220px,37vh,330px);
    --upper-gap:clamp(0px,calc((100vh - 620px) * .055),14px);
    height:calc(var(--panel-base) + var(--reaction-strip) - var(--previous-strip) + var(--upper-gap));
    grid-template-rows:calc(var(--reaction-strip) + var(--upper-gap)) minmax(0,1fr);
    row-gap:6px;
  }
  .at-phone-play #atReactionDock {
    grid-row:1;
    justify-self:start;
    align-self:end;
    height:var(--reaction-strip);
    aspect-ratio:136 / 154;
    margin-inline-start:max(4px,env(safe-area-inset-left,0px));
    padding:6px 3px 9px;
  }
  .at-phone-play #atReactionDock .camel-reaction {
    position:relative;
    inset:auto !important;
    width:100% !important;
    height:100% !important;
  }
  .at-phone-play #illustrationStage {grid-row:2; min-width:0;}
  .at-phone-play .screen-play .at-match-drop .picture-panel {
    min-height:calc(var(--reaction-strip) + var(--upper-gap) + 6px + clamp(180px,55vw,250px));
  }
  .at-phone-play .screen-play .at-match-drop #illustrationStage {
    grid-template-columns:minmax(0,0.95fr) minmax(0,1.75fr);
    gap:clamp(6px,2vw,12px);
  }
  .at-phone-play .screen-play .at-match-drop #matchDrop {
    width:min(100%,clamp(84px,25vw,145px));
    max-height:100%;
  }
  .at-phone-play .screen-play .at-match-drop #matchWord {
    font-size:clamp(50px,15vw,82px);
    line-height:1.1;
  }
  .at-phone-play #sentenceSlots.is-complete {
    display:grid;
    place-items:center;
    min-height:clamp(50px,15vw,80px);
  }
  .at-phone-play #sentenceSlots.is-complete .sentence-slot {display:none;}
  .at-phone-play #sentenceSlots .completed-sentence {
    position:static;
    display:block;
    min-width:0;
    font-size:clamp(28px,7.6vw,40px);
    line-height:1.2;
    white-space:normal;
  }
}

@media (max-width:450px) {
  .at-phone-play .screen-play .picture-panel { --panel-base:clamp(205px,36vh,285px); }
}
@media (max-width:350px) {
  .at-phone-play .screen-play .picture-panel { --panel-base:clamp(175px,31vh,215px); }
}
@media (max-width:600px) {
  .at-phone-play .sentence-round .picture-panel { --reaction-strip:clamp(92px,min(31vw,16vh),138px); }
  @supports (height:100svh) {
    .at-phone-play .screen-play .picture-panel {
      --reaction-strip:clamp(98px,min(34vw,18svh),152px);
      --upper-gap:clamp(0px,calc((100svh - 620px) * .055),14px);
    }
    .at-phone-play .sentence-round .picture-panel { --reaction-strip:clamp(92px,min(31vw,16svh),138px); }
  }
}

/* 2026-11 iOS layout compatibility: normalize the browser's native button
   content box without changing the approved font, tile palette or dimensions.
   Grid centering is already used for all answer choices. */
.screen-play .choice-tile {
  -webkit-appearance:none;
  appearance:none;
  padding:0;
  line-height:1;
  text-align:center;
}

/* Round 5: filled word buttons live inside grid-based answer slots.
   Explicitly size the grid track to the slot's interior; an implicit auto
   track may otherwise size to the word's min-content width in WebKit.
   Keep existing responsive slot dimensions and flexible row wrapping. */
.screen-play .sentence-round .sentence-slot {
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  flex:0 0 auto;
}
.screen-play .sentence-round .sentence-slot > .sentence-tile {
  display:grid;
  place-items:center;
  box-sizing:border-box;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}
.screen-play .sentence-round .letter-choices > .sentence-tile {
  flex:0 0 auto;
}


/* Sam is a proper name; only the S of that word is uppercase. */
.screen-play .word-slots[data-proper-name="sam"] .letter-slot[data-position="0"] > span:first-child,
.screen-play .choice-tile.sam-initial, .screen-play .drag-ghost.sam-initial { text-transform:none; }

.screen-play #matchDrop > .copied-match-card { text-transform:none; }

/* Short E: grouped graphemes occupy one standard tile. */
.screen-play .word-slots[data-proper-name]:not([data-proper-name=""]) .letter-slot[data-position="0"] > span:first-child { text-transform:none; }
.screen-play .word-slots .letter-slot.grouped-letter > span:first-child { font-size:clamp(34px,9vw,65px); letter-spacing:-.06em; }
.screen-play .letter-choices .choice-tile.grouped-letter { font-size:clamp(24px,6.5vw,44px); letter-spacing:-.04em; }

/* Selection controls follow the existing vowel-card palette, rounded corners and soft depth. */
.mixed-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 7px; margin-top:15px; padding-top:12px; border-top:1px solid var(--card-stroke); }
.mixed-control { min-width:0; min-height:43px; padding:8px 5px; font:inherit; font-size:clamp(11px,1.02vw,14px); line-height:1.2; font-weight:800; color:#36404f; border:2px solid var(--card-stroke); background:#fffefa; border-radius:13px; cursor:pointer; box-shadow:0 3px 0 color-mix(in srgb,var(--card-stroke) 80%,#c0acaa); transition:background .16s,transform .16s,box-shadow .16s; }
.mixed-control:hover:not(:disabled){ background:var(--card-tint); transform:translateY(-1px); }
.mixed-control:active:not(:disabled){ transform:translateY(2px); box-shadow:0 1px 0 var(--card-stroke); }
.mixed-control:focus-visible, .family-option:focus-visible { outline:2px solid #51406d; outline-offset:3px; }
.mixed-control:disabled { opacity:.48; cursor:default; box-shadow:none; }
.mixed-control.mixed-all,.mixed-control.mixed-start { background:var(--card-accent); color:#1e2938; border-color:color-mix(in srgb,var(--card-accent) 75%,#42364b); box-shadow:0 3px 0 color-mix(in srgb,var(--card-accent) 69%,#42364b); }
.mixed-control.mixed-all:hover:not(:disabled),.mixed-control.mixed-start:hover:not(:disabled){background:color-mix(in srgb,var(--card-accent) 83%,white);}
.mixed-control:disabled { box-shadow:none; }
.mixed-summary { grid-column:1/-1; text-align:center; margin:3px 0; font-weight:800; font-size:13px; line-height:1.3; color:#465066; }
.screen-welcome .vowel-card.is-selecting .family-option.is-available { position:relative; background:#fffefa; color:#36404f; border-color:var(--card-stroke); box-shadow:0 3px 0 var(--card-stroke); }
.screen-welcome .vowel-card.is-selecting .family-option.is-available.is-selected { background:color-mix(in srgb,var(--card-accent) 43%,white); border-color:color-mix(in srgb,var(--card-accent) 76%,#42364b); box-shadow:0 3px 0 color-mix(in srgb,var(--card-accent) 64%,#42364b); }
.screen-welcome .family-option.is-selected::after { content:"✓"; position:absolute; display:grid; place-items:center; top:-5px; right:-4px; width:19px; height:19px; border:2px solid #fff; border-radius:50%; background:#365c50; color:white; font-size:11px; font-family:Arial,sans-serif; font-weight:900; line-height:1; box-shadow:0 2px 4px #36404f22; pointer-events:none; }
body[data-screen="welcome"] .game-footer { padding:20px clamp(22px,4.5vw,58px) 26px; gap:12px; flex-wrap:wrap; }
body[data-screen="welcome"] .game-footer > span:last-child { margin-left:auto; text-align:right; }
.screen-welcome .family-menu { margin-bottom:26px; }
@media(min-width:1050px) and (min-height:690px){ .screen-welcome .family-menu { margin-bottom:48px; } }
@media(max-width:600px){ .mixed-tools{gap:9px 5px;margin-top:12px;padding-top:10px} .mixed-control{font-size:11px;min-height:44px;padding:7px 3px;border-radius:11px} .mixed-summary{font-size:11px} body[data-screen="welcome"] .game-footer{padding:18px 18px 23px;gap:9px;font-size:8px;letter-spacing:.8px} }
@media(max-width:350px){body[data-screen="welcome"] .game-footer{justify-content:center;text-align:center}body[data-screen="welcome"] .game-footer > span:last-child{margin-left:0;text-align:center}}
@media(prefers-reduced-motion:reduce){.mixed-control{transition:none}}

/* Adjacent vowel sections share the grid row height. Controls sit at the bottom;
   a single-column layout / independent grid row naturally keeps its intrinsic height. */
.screen-welcome .vowel-card { display:flex; flex-direction:column; }
.screen-welcome .vowel-card.has-mixed-tools .family-options { margin-bottom:15px; }
.screen-welcome .vowel-card .mixed-tools { margin-top:auto; }
@media(max-width:600px) { .screen-welcome .vowel-card.has-mixed-tools .family-options { margin-bottom:12px; } }
