/* Bright layered surfaces and motion that supports, rather than obscures, play. */
body{font-family:Outfit,system-ui,sans-serif}
body[data-style=blaster] .arena-hud,body[data-style=blocks] .arena-hud{display:none}
.game-top .round-label{font-weight:900;color:#8b5315;font-size:11px}
body[data-style=blaster] .number-choice{font-size:clamp(20px,4.5vw,28px);height:61px;padding-top:17px;font-weight:900;color:#173656}
body[data-style=blaster] .number-choice[aria-pressed=true]{transform:translateY(-4px);box-shadow:0 8px 0 #c39a29,0 12px 24px #9d72242e}
.number-choice,.game-footer button,.subject-switch button{transition:transform .17s ease,box-shadow .17s ease,background .17s ease}
.number-choice:active,.game-footer button:active,.primary-button:active{transform:translateY(3px) scale(.97)}
body[data-mode=words] .arena-wrap{background:radial-gradient(ellipse at 50% 55%,#fff9cf 0,transparent 58%),linear-gradient(155deg,#c2efff,#d7f8ed 75%)}
body[data-mode=words] #game{opacity:0}
.word-stage{justify-content:flex-start;padding:49px 15px 6px;perspective:800px}
.word-set-label{font-size:10px;font-weight:900;letter-spacing:2px;color:#3d6887}
.word-set-track{display:flex;align-items:center;gap:18px;margin:7px 0 10px}
.word-set-track span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;font-size:11px;font-weight:900;color:#4a7791;background:#ecfbff;border:2px solid white;box-shadow:0 3px 0 #9ec7d8;position:relative}
.word-set-track span+span:before{content:'';position:absolute;right:22px;width:18px;height:3px;background:#9bcadd}
.word-set-track .current{background:#ffdb66;color:#664c15;box-shadow:0 3px 0 #c69b32;transform:scale(1.14)}
.word-set-track .done{background:#9de3b1;color:#195d35}
.word-stage-heading{font-size:15px;font-weight:850;min-height:22px}
.word-picture{width:192px;height:168px;padding:8px;margin:10px auto 6px;border:3px solid white;border-radius:30px!important;background:linear-gradient(135deg,#fff,#dff4ff)!important;overflow:visible;box-shadow:0 7px 0 #9acbdf,0 14px 26px #26698e2e;transform:rotateY(-5deg) rotateX(4deg);position:relative;isolation:isolate}
.word-picture:before,.word-picture:after{content:'✦';position:absolute;color:#ffb82e;text-shadow:0 3px 0 #d9990c;font-size:31px;z-index:2;animation:word-sparkle 3s ease-in-out infinite;pointer-events:none}
.word-picture:before{left:-22px;top:28px}.word-picture:after{right:-20px;bottom:25px;animation-delay:1.2s;color:#2da8de;text-shadow:0 3px 0 #197baa}
.word-picture img{object-fit:contain;border-radius:23px;filter:drop-shadow(0 6px 5px #245e802a);animation:picture-float 4s ease-in-out infinite}
.word-listen{font-size:12px;padding:7px 14px;margin-top:2px;box-shadow:0 3px 0 #8cc4e4}
.word-practices{display:flex;gap:6px;margin:11px 0 4px;font-size:9px;font-weight:800}
.word-practices span{background:#e6f7ff;border:1px solid white;color:#507185;padding:4px 7px;border-radius:12px;box-shadow:0 2px 0 #aed3e1}
.word-practices .current{background:#ffe696;color:#715418}.word-practices .done{background:#c9eed4;color:#297147}
.word-slots{margin-top:10px;gap:7px;perspective:600px}
.word-slot{height:58px;max-width:58px;background:linear-gradient(#fff,#b9e5ff);box-shadow:0 2px 0 #fff inset,0 6px 0 #5c9dc1,0 10px 12px #36769825;color:#14476e;text-shadow:1px 2px 0 #fff;transform:rotateY(-5deg);animation:tile-arrive .38s ease both;animation-delay:calc(var(--tile)*35ms)}
.word-slot:nth-child(3n+2){background:linear-gradient(#fff,#ffe08c);box-shadow:0 6px 0 #ca9b32,0 10px 12px #36769825}
.word-slot:nth-child(3n){background:linear-gradient(#fff,#bceace);box-shadow:0 6px 0 #5eac7b,0 10px 12px #36769825}
.word-slot.missing{background:linear-gradient(#fffbe6,#ffda66);border:2px dashed #d89f29}
.word-stage.correct .word-slot{background:linear-gradient(#fff,#a9ecbf);color:#1b663d;box-shadow:0 6px 0 #439c65}
.word-stage.wrong .word-slot.missing,.word-stage[data-practice='3'].wrong .word-slot{background:linear-gradient(#fff0eb,#ffb6a5);color:#a52e29;box-shadow:0 6px 0 #d96d59}
.word-feedback{font-size:13px;font-weight:800;margin:13px 0 0;min-height:18px}
body[data-word-practice=recognize] .number-choice{letter-spacing:0;padding:10px 4px 0;text-transform:none}
.falling-letter{max-width:180px;width:auto;min-width:50px;padding:0 10px}
.launch-dialog{max-width:680px;width:calc(100% - 28px);padding:25px;border-radius:30px;max-height:88dvh;overflow:auto}
.launch-choices{display:grid;gap:13px;margin:20px 0 8px;perspective:1200px}
.launch-card{display:flex;align-items:center;gap:18px;border:3px solid white;padding:19px 18px;border-radius:22px;text-align:left;background:linear-gradient(135deg,#fff,#d7f0ff);color:#1d5478;box-shadow:0 6px 0 #9bc8dd,0 12px 25px #28618218;transform:translateZ(0);transition:transform .2s,box-shadow .2s;animation:card-arrive .3s ease both}
.launch-card:nth-child(2){background:linear-gradient(135deg,#fff,#ffe0d4);box-shadow:0 6px 0 #deb09d}.launch-card:nth-child(3){background:linear-gradient(135deg,#fff,#dcf3d3);box-shadow:0 6px 0 #a2c693}.launch-card:nth-child(4){background:linear-gradient(135deg,#fff,#e7dfff);box-shadow:0 6px 0 #b7a7d6}
.launch-card:hover{transform:translateY(-3px) rotateX(3deg)}.launch-card:active{transform:translateY(4px) scale(.985)}
.launch-card-icon{font-size:34px;font-weight:900;width:54px;flex:none;text-align:center;text-shadow:0 3px 0 white}
.launch-card b{display:block;font-size:20px}.launch-card small{display:block;font-size:12px;line-height:1.45;margin-top:5px;color:#4c7188}.launch-arrow{margin-left:auto;font-size:25px}
.launch-pattern{display:flex;gap:10px;margin-top:6px}.launch-pattern button{flex:1;border:2px solid #b8dced;border-radius:14px;background:white;color:#295c7a;padding:12px 5px;font-weight:800}.launch-pattern button[aria-pressed=true]{background:#ffdf74;border-color:#e1af29;color:#6c4f13}
#launchWords{margin-top:16px}#launchWords label{display:block;font-weight:800;margin-bottom:9px}#wordSetWheel{width:100%;border:2px solid #a9d6eb;border-radius:17px;background:#f2fbff;padding:6px;color:#255d7c;font:700 15px system-ui}#wordSetWheel option{padding:12px 9px;white-space:normal}#wordSetWheel option:checked{background:#ffdf70;color:#65501a}#launchWords p{font-size:13px;line-height:1.5;color:#57788d}#launchWordsPlay{width:100%}#launchBack{margin-top:20px}
.game-footer button{min-width:54px;font-size:19px;gap:5px}.game-footer #footerMode{background:#d9f1dd;border-color:#acd4b4;color:#2e6c43}.game-footer #footerLevels{min-width:94px}
@keyframes picture-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}
@keyframes word-sparkle{0%,100%{transform:scale(.8) rotate(-8deg)}50%{transform:scale(1.1) rotate(12deg)}}
@keyframes tile-arrive{from{opacity:0;transform:translateY(13px) rotateX(-35deg) scale(.85)}to{opacity:1;transform:rotateY(-5deg)}}
@keyframes card-arrive{from{opacity:0;transform:translateY(10px) rotateX(-8deg)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.launch-dialog{padding:20px}.launch-card{padding:15px 12px;gap:11px}.launch-card b{font-size:18px}.launch-card-icon{font-size:29px;width:44px}.game-footer{gap:4px;padding-left:5px;padding-right:5px}.game-footer button{flex:1;min-width:0;padding:3px 4px;flex-direction:column;gap:0;font-size:17px}.game-footer #footerLevels{min-width:75px}.game-footer button span{font-size:10px}.game-top .style-name{font-size:13px}.game-top .round-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.word-picture img,.word-picture:before,.word-picture:after,.word-slot,.launch-card{animation:none}.number-choice,.game-footer button,.launch-card{transition:none}.launch-card:hover{transform:none}}

/* Learning loop: visible progress for the child and a private grown-up summary. */
.home-mission{width:min(500px,calc(100vw - 36px));margin:-18px 0 22px;padding:14px;border-radius:22px;background:#ffffffdc;border:2px solid #fff;box-shadow:0 9px 24px #235b7e25;color:#24516f;text-shadow:none;backdrop-filter:blur(12px)}
.home-stats{display:flex;align-items:center;gap:13px}.home-stats>span{display:flex;align-items:baseline;gap:4px;font-weight:800}.home-stats b{font-size:18px;color:#184c70}.home-stats small{font-size:10px;color:#648398}.home-stats button{margin-left:auto;border:0;background:#e8f6ff;color:#1c668f;border-radius:11px;padding:8px 11px;font-size:12px;font-weight:800}
.home-quest{margin-top:11px}.home-quest>div:first-child,.progress-quest>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:12px}.home-quest span,.progress-quest span{color:#698699}.quest-track{height:8px;margin-top:7px;border-radius:20px;background:#d9eaf3;overflow:hidden}.quest-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#28b97c,#f5b82c);transition:width .3s ease}
.home-resume{width:100%;margin-top:12px;border:0;border-radius:15px;padding:10px 12px;background:linear-gradient(110deg,#166fa8,#318fbb);color:#fff;display:flex;align-items:center;gap:11px;text-align:left;box-shadow:0 4px 0 #10527b}.home-resume>span:first-child{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#ffffff25}.home-resume b,.home-resume small{display:block}.home-resume small{margin-top:2px;color:#d8f3ff;font-size:10px}.home-resume strong{margin-left:auto;font-size:20px}
.progress-dialog{max-width:760px!important}.progress-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin:22px 0}.progress-stats span{padding:14px 7px;border:1px solid #c7dce8;border-radius:16px;background:#f3fbff;text-align:center}.progress-stats b,.progress-stats small{display:block}.progress-stats b{font:800 23px Outfit;color:#1c638b}.progress-stats small{margin-top:3px;font-size:10px;color:#698699}.progress-quest{padding:15px;border-radius:17px;background:#f5fbf6;border:1px solid #cce7d3}.progress-recommendation{margin:14px 0 20px;padding:17px;border-radius:18px;background:linear-gradient(135deg,#e7f6ff,#eef9e8);border:1px solid #c7dfeb}.progress-recommendation>span{font-size:10px;letter-spacing:1.5px;font-weight:900;color:#3684a3}.progress-recommendation h3{margin:6px 0;color:#225d7a}.progress-recommendation p{margin:0;color:#577b8e;font-size:13px}.progress-timeline{display:grid;gap:8px}.progress-timeline>div{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:13px;background:#eff8fc}.progress-timeline>div>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d5f2e2;color:#20724c;font-weight:900}.progress-timeline p{margin:0}.progress-timeline b,.progress-timeline small{display:block}.progress-timeline b{font-size:13px;color:#315c73}.progress-timeline small{font-size:11px;color:#7690a0;margin-top:2px}.empty-progress{padding:15px;color:#748c9a;background:#f4f9fb;border-radius:13px;font-size:13px}.privacy-note{margin:18px 0 5px!important;padding:13px;border-radius:13px;background:#fff9df;color:#6d633d!important;font-size:11px!important;line-height:1.5}.danger-button{color:#a24e4e!important;margin:10px 0 0!important}
@media(max-width:700px){.home-mission{margin:-8px 0 13px;padding:10px 11px;border-radius:16px}.home-stats{gap:7px}.home-stats>span{gap:3px}.home-stats small{font-size:8px}.home-stats button{padding:7px 8px}.home-quest{margin-top:8px}.quest-track{height:6px}.home-resume{margin-top:8px;padding:8px 10px}.progress-stats{grid-template-columns:repeat(3,1fr)}.progress-stats span:nth-child(4),.progress-stats span:nth-child(5){grid-column:span 1}.home-content .home-kicker{margin-bottom:5px}.home-content h1{margin:5px 0 8px}.home-subtitle{font-size:19px}.home-credit{margin:6px 0 11px}.home-subjects button{padding:8px 3px}.home-subjects span{font-size:19px}.home-subjects b{font-size:15px}}
