:root{--ink:#26324d;--muted:#61708e;--blue:#4b8df8;--deep-blue:#4666df;--yellow:#ffd75e;--white:#fff;--panel:rgba(255,255,255,.94);--shadow:0 18px 50px rgba(54,85,155,.18);--radius:30px}
*{box-sizing:border-box}
html{min-height:100%;background:#c8efff}
body{margin:0;min-width:280px;min-height:100vh;min-height:100dvh;overflow-x:hidden;color:var(--ink);font-family:"Fredoka","Trebuchet MS",system-ui,sans-serif;background:linear-gradient(165deg,#bfeaff 0%,#e1f5ff 48%,#fff1ba 100%);padding:clamp(10px,2vw,24px);padding-left:max(clamp(10px,2vw,24px),env(safe-area-inset-left));padding-right:max(clamp(10px,2vw,24px),env(safe-area-inset-right))}
button,a,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:4px solid #172554;outline-offset:4px}
.world{position:fixed;inset:0;overflow:hidden;pointer-events:none}.cloud{position:absolute;width:170px;height:54px;border-radius:60px;background:rgba(255,255,255,.72);filter:drop-shadow(0 12px 15px rgba(61,104,148,.08));animation:drift 18s ease-in-out infinite}.cloud:before,.cloud:after{content:"";position:absolute;border-radius:50%;background:inherit}.cloud:before{width:76px;height:76px;left:25px;bottom:8px}.cloud:after{width:100px;height:100px;right:20px;bottom:3px}.cloud-one{top:14%;left:-45px}.cloud-two{right:-25px;top:62%;animation-delay:-7s;transform:scale(.7)}.bubble{position:absolute;border:5px solid rgba(255,255,255,.42);border-radius:50%;animation:float 8s ease-in-out infinite}.bubble-one{width:60px;height:60px;left:9%;bottom:12%}.bubble-two{width:32px;height:32px;right:12%;top:16%;animation-delay:-3s}.bubble-three{width:78px;height:78px;right:4%;bottom:8%;animation-delay:-5s}.star{position:absolute;color:#fff3a6;font-size:30px;text-shadow:0 3px 10px #eab308;animation:twinkle 3s ease-in-out infinite}.star-one{top:24%;left:4%}.star-two{right:4%;top:42%;animation-delay:-1s}
.app-shell{position:relative;z-index:1;max-width:1100px;min-height:calc(100vh - clamp(20px,4vw,48px));min-height:calc(100dvh - clamp(20px,4vw,48px));margin:auto;background:var(--panel);border:3px solid rgba(255,255,255,.65);border-radius:clamp(22px,4vw,42px);box-shadow:var(--shadow);overflow:hidden;isolation:isolate}.app-shell:after{content:"";position:absolute;inset:auto -10% -130px;height:230px;background:radial-gradient(ellipse,#bce998 0 50%,transparent 51%);z-index:-1}
.topbar{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px clamp(14px,3vw,28px);border-bottom:2px solid #e9f1ff;background:rgba(255,255,255,.88)}.catalog-link,.mini-brand{display:flex;align-items:center;gap:8px}.catalog-link{color:#405376;text-decoration:none;font-weight:700}.mini-brand{font-size:clamp(14px,2vw,19px)}.mini-brand>span{font-size:28px}.global-controls{display:flex;gap:7px}.round-button,.small-control{display:grid;place-items:center;border:0;border-radius:50%;background:#edf5ff;box-shadow:inset 0 -3px rgba(58,91,150,.1);transition:.18s transform,.18s background}.round-button{width:44px;height:44px;font-size:19px}.round-button:hover,.small-control:hover{background:#dceaff;transform:translateY(-2px)}
.screen{display:none;min-height:calc(100vh - 130px);min-height:calc(100dvh - 130px);padding:clamp(24px,5vw,60px);animation:screenIn .35s ease}.screen.active{display:flex}.eyebrow{margin:0 0 10px;color:#526ee5;font-size:clamp(13px,2vw,16px);font-weight:700;letter-spacing:.08em;text-transform:uppercase}.lead{font-size:clamp(18px,3vw,25px);color:var(--muted);line-height:1.45}.primary-button,.secondary-button,.danger-button,.next-button{min-height:54px;border:0;border-radius:18px;padding:14px 24px;font-weight:700;box-shadow:0 8px 0 rgba(49,65,130,.14);transition:.16s transform,.16s box-shadow}.primary-button{color:#fff;background:linear-gradient(135deg,#5b8ff9,#635ee7)}.secondary-button{background:#fff;color:#43547a;border:2px solid #d7e5ff}.danger-button{color:#fff;background:#dc4761}.primary-button:hover,.secondary-button:hover,.danger-button:hover,.next-button:hover{transform:translateY(-3px)}.primary-button:active,.secondary-button:active,.danger-button:active,.next-button:active{transform:translateY(4px);box-shadow:0 3px 0 rgba(49,65,130,.14)}.text-button,.back-button{border:0;background:transparent;color:#4c61bd;font-weight:700;text-decoration:underline;text-underline-offset:3px}.back-button{position:absolute;left:clamp(20px,4vw,45px);top:25px;text-decoration:none}
.welcome-screen{position:relative;align-items:center;justify-content:center;gap:clamp(25px,6vw,80px)}.welcome-copy{max-width:550px}.welcome-copy h1{margin:0;font-size:clamp(40px,7vw,76px);line-height:.96;letter-spacing:-.04em}.welcome-copy h1 span{display:block;color:#5f6fe8;text-shadow:3px 4px 0 #dce2ff}.welcome-actions{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0}.best-card{display:inline-block;margin:0;padding:11px 16px;border-radius:99px;background:#fff7cf;color:#7a5915}.mascot-stage{position:relative;width:clamp(280px,38vw,410px);height:390px}.rainbow{position:absolute;inset:15px 0 auto;width:100%;height:220px;border-radius:220px 220px 0 0;background:#ef6363;overflow:hidden;box-shadow:0 12px 30px rgba(86,72,125,.14);animation:float 5s ease-in-out infinite}.rainbow i{position:absolute;left:6%;right:6%;bottom:-3px;height:86%;border-radius:200px 200px 0 0;background:#f7a53c}.rainbow i:nth-child(2){left:13%;right:13%;height:70%;background:#ffe15b}.rainbow i:nth-child(3){left:21%;right:21%;height:52%;background:#55c777}.rainbow i:nth-child(4){left:30%;right:30%;height:33%;background:#6c83ec}.palette{position:absolute;left:80px;bottom:15px;width:240px;height:190px;border-radius:48% 52% 47% 53%;background:#ffe7b2;border:8px solid #fff;box-shadow:0 18px 35px rgba(50,72,138,.2);transform:rotate(-4deg)}.palette:after{content:"";position:absolute;width:58px;height:58px;border-radius:50%;background:#fff;right:18px;bottom:22px}.palette-face{position:absolute;left:75px;top:83px;font-size:35px;font-weight:700}.paint{position:absolute;width:38px;height:38px;border-radius:50%;border:4px solid rgba(255,255,255,.72)}.paint.red{background:#ef4444;left:26px;top:35px}.paint.blue{background:#3b82f6;left:84px;top:20px}.paint.yellow{background:#facc15;right:55px;top:35px}.paint.green{background:#22c55e;left:34px;bottom:34px}.paint.purple{background:#9333ea;right:43px;bottom:75px}.brush{position:absolute;right:4px;bottom:25px;width:52px;height:185px;border-radius:28px;background:#f0a04a;border:6px solid #fff;transform:rotate(22deg);transform-origin:bottom;animation:wave 2.6s ease-in-out infinite}.brush:before{content:"";position:absolute;left:-6px;top:-50px;width:52px;height:70px;border-radius:60% 60% 35% 35%;background:#6d4b35;border:6px solid #fff}.brush span{position:absolute;left:-6px;top:20px;width:52px;height:32px;background:#c7d2e9;border:6px solid #fff}.brush i{position:absolute;right:-24px;top:-75px;color:#fff5a4}.welcome-screen>.text-button{position:absolute;left:50%;bottom:16px;transform:translateX(-50%)}
.level-screen,.complete-screen{position:relative;flex-direction:column;align-items:center;text-align:center}.level-screen h2,.complete-screen h2{font-size:clamp(34px,5vw,56px);margin:6px 0}.level-screen>p:not(.eyebrow){color:var(--muted);margin:0 0 32px}.level-cards{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:12px}.level-card{position:relative;min-height:300px;display:flex;flex-direction:column;align-items:center;text-align:center;border:3px solid #e6edff;border-radius:28px;background:#fff;padding:28px 20px;box-shadow:0 13px 30px rgba(71,91,154,.12);transition:.2s transform,.2s border}.level-card:not([disabled]):hover{transform:translateY(-7px);border-color:#8ca9ff}.level-card[disabled]{filter:grayscale(.35);opacity:.68;cursor:not-allowed}.level-icon{display:grid;place-items:center;width:94px;height:94px;border-radius:30px;background:linear-gradient(145deg,#fff0a8,#ffb68e);font-size:48px}.level-card:nth-child(2) .level-icon{background:linear-gradient(145deg,#c8f8dd,#98d6ff)}.level-card:nth-child(3) .level-icon{background:linear-gradient(145deg,#e5ccff,#ffb9df)}.level-card h3{font-size:25px;margin:18px 0 6px}.level-card p{color:var(--muted);line-height:1.45;margin:0}.level-card .level-meta{margin-top:auto;padding-top:18px;color:#5369c8;font-weight:700}.lock{position:absolute;right:16px;top:15px;font-size:25px}.best-label{font-size:13px;margin-top:8px;color:#805f23}
.game-screen{padding:20px clamp(14px,3vw,34px) 30px;flex-direction:column}.game-toolbar{display:flex;align-items:center;gap:clamp(8px,2vw,20px);flex-wrap:wrap}.stat{min-width:64px}.stat small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.stat strong{font-size:20px}.streak-stat strong{color:#e76623}.game-actions{display:flex;gap:7px;margin-left:auto}.small-control{width:40px;height:40px;font-size:20px}.progress-track{width:100%;height:13px;margin:14px 0 10px;border-radius:99px;background:#dfeaff;overflow:hidden}.progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#51d39c,#4d91fa,#9368e7);transition:width .45s ease}.timer-wrap{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:14px}.timer-wrap>div{flex:1;height:7px;border-radius:99px;background:#e6ecf8;overflow:hidden}.timer-wrap i{display:block;height:100%;width:100%;background:#f19d3b;transition:width 1s linear}.question-card{flex:1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:clamp(18px,4vw,48px);align-items:center;background:linear-gradient(150deg,#fff 40%,#f4f7ff);border:3px solid #e8effe;border-radius:30px;padding:clamp(18px,4vw,40px);box-shadow:0 14px 34px rgba(69,91,151,.1)}.question-area{text-align:center}.question-area h2{font-size:clamp(25px,4vw,43px);margin:4px 0 6px}.object-stage{display:flex;align-items:center;justify-content:center;height:clamp(210px,34vh,340px);padding:12px}.object-stage svg{width:min(100%,340px);height:100%;overflow:visible;filter:drop-shadow(0 16px 14px rgba(54,73,113,.2));animation:objectIn .4s cubic-bezier(.2,1.4,.5,1)}.object-stage.bounce svg{animation:bounce .65s ease}.feedback{min-height:32px;font-size:clamp(17px,2vw,22px);font-weight:700;color:#52627e}.feedback.success{color:#16884e}.feedback.try{color:#b74a4f}.hint{display:inline-block;margin:6px 0;padding:8px 13px;border-radius:12px;background:#fff7c9;color:#6e571b}.next-button{margin-top:7px;background:#27b273;color:#fff}.answer-grid{display:grid;grid-template-columns:1fr;gap:14px}.answer-button{position:relative;min-height:76px;display:flex;align-items:center;gap:17px;border:3px solid #e2e9f7;border-radius:22px;background:#fff;padding:12px 18px;font-size:clamp(18px,2.4vw,23px);font-weight:700;text-align:left;box-shadow:0 7px 0 #dce5f5;transition:.15s transform,.15s border-color}.answer-button:hover{transform:translateY(-3px);border-color:#9bb0dd}.answer-button:active{transform:translateY(4px);box-shadow:0 3px 0 #dce5f5}.swatch{width:45px;height:45px;flex:0 0 auto;border-radius:50%;border:3px solid rgba(38,50,77,.2);box-shadow:inset 0 0 0 3px rgba(255,255,255,.25)}.answer-button.correct{border-color:#20ae69;background:#eafff3}.answer-button.wrong{border-color:#ec6b76;background:#fff0f1;animation:shake .38s ease}.answer-mark{margin-left:auto;font-size:25px}.answer-button:disabled{cursor:default}.answer-button:not(.correct):disabled{opacity:.66}.score-pop{animation:scorePop .4s ease}
.complete-screen{justify-content:center}.trophy{font-size:92px;filter:drop-shadow(0 12px 10px rgba(145,101,18,.2));animation:bounce 1s ease}.complete-screen>p:not(.eyebrow){font-size:20px;color:var(--muted)}.result-grid{width:min(700px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:24px 0}.result-grid>div{display:flex;flex-direction:column;gap:5px;padding:18px 10px;border-radius:20px;background:#f4f7ff;border:2px solid #e3eafd}.result-grid span{font-size:28px}.result-grid small{color:var(--muted)}.result-grid strong{font-size:25px}.complete-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px}.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.confetti i{position:absolute;top:-25px;width:12px;height:24px;border-radius:4px;animation:confettiFall 3.4s linear forwards}
.pause-overlay{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:rgba(34,47,77,.62);backdrop-filter:blur(8px)}.pause-overlay[hidden]{display:none}.pause-card{width:min(420px,100%);text-align:center;border-radius:28px;background:#fff;padding:38px;box-shadow:var(--shadow)}.pause-card>span{font-size:65px}.pause-card h2{font-size:35px;margin:12px 0}.pause-card p{color:var(--muted)}
.modal{width:min(600px,calc(100% - 28px));border:0;border-radius:28px;padding:0;background:transparent}.modal::backdrop{background:rgba(34,47,77,.62);backdrop-filter:blur(7px)}.modal-card{position:relative;background:#fff;border-radius:28px;padding:clamp(26px,5vw,44px);box-shadow:var(--shadow)}.modal-card h2{font-size:34px;margin:0 0 14px}.modal-card p,.modal-card li{color:#52627b;line-height:1.5}.close-button{position:absolute;right:18px;top:14px;width:42px;height:42px;border:0;border-radius:50%;font-size:29px;background:#edf3ff}.timer-setting{display:flex;gap:10px;align-items:center;padding:14px;border-radius:14px;background:#edf7ff;margin:20px 0}.timer-setting input{width:22px;height:22px}.reset-confirm{padding:15px;margin-top:14px;border-radius:16px;background:#fff0f2}.reset-confirm .secondary-button{margin-left:7px;padding:10px 17px;min-height:44px}.reset-confirm .danger-button{padding:10px 17px;min-height:44px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes drift{50%{transform:translateX(45px)}}@keyframes float{50%{transform:translateY(-18px)}}@keyframes twinkle{50%{opacity:.3;transform:scale(.7)}}@keyframes wave{0%,100%{transform:rotate(22deg)}50%{transform:rotate(35deg)}}@keyframes screenIn{from{opacity:0;transform:translateY(12px)}}@keyframes objectIn{from{opacity:0;transform:scale(.6) rotate(-5deg)}}@keyframes bounce{30%{transform:translateY(-22px) scale(1.04)}60%{transform:translateY(4px) scale(.98)}}@keyframes shake{25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-4px)}}@keyframes scorePop{50%{transform:scale(1.35);color:#15a05b}}@keyframes confettiFall{to{transform:translateY(105vh) rotate(760deg)}}
@media(max-width:800px){.welcome-screen{flex-direction:column;text-align:center;padding-bottom:55px}.welcome-copy{order:2}.mascot-stage{height:260px;transform:scale(.72);margin:-60px 0 -40px}.welcome-actions{justify-content:center}.level-cards{grid-template-columns:1fr}.level-card{min-height:230px}.question-card{grid-template-columns:1fr}.object-stage{height:220px}.answer-grid{grid-template-columns:repeat(2,1fr)}.screen{min-height:auto}.game-screen{min-height:calc(100dvh - 80px)}.result-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){body{padding:0}.app-shell{min-height:100dvh;border:0;border-radius:0}.topbar{min-height:64px}.mini-brand strong{display:none}.round-button{width:39px;height:39px;font-size:17px}.catalog-link span{display:none}.screen{padding:25px 14px}.welcome-copy{width:100%;min-width:0}.welcome-copy h1{font-size:40px;overflow-wrap:anywhere}.welcome-actions{flex-direction:column}.welcome-actions button{width:100%}.mascot-stage{width:280px}.game-screen{padding:12px 9px 20px}.game-toolbar{gap:9px}.stat{min-width:48px}.stat strong{font-size:17px}.stat:nth-child(4),.streak-stat{display:none}.question-card{padding:15px 11px;gap:10px;border-radius:22px}.object-stage{height:195px}.answer-grid{gap:10px}.answer-button{min-height:66px;padding:9px;font-size:17px;gap:8px;border-radius:17px}.swatch{width:34px;height:34px}.answer-mark{font-size:18px}.level-screen{padding-top:70px}.result-grid{gap:8px}.result-grid>div{padding:12px 5px}.result-grid strong{font-size:21px}}
@media(max-width:350px){.answer-grid{grid-template-columns:1fr}.global-controls{gap:3px}.round-button{width:35px;height:35px}.question-area h2{font-size:22px}.object-stage{height:170px}}
@media(orientation:landscape) and (max-height:620px){.screen{min-height:auto}.welcome-screen{flex-direction:row}.mascot-stage{height:270px;transform:scale(.7);margin:-30px}.game-screen{min-height:calc(100dvh - 70px)}.question-card{grid-template-columns:1.1fr .9fr;padding:12px 25px}.object-stage{height:190px}.question-area h2{font-size:27px}.feedback{min-height:25px}.answer-button{min-height:58px}.answer-grid{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.confetti i{display:none}}
