
:root{--ink:#29413e;--green:#17845e;--yellow:#ffca3a;--blue:#8fddff;--paper:rgba(255,255,255,.94);--shadow:0 14px 36px rgba(41,65,62,.15)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ink)}
body{background:radial-gradient(circle at 8% 9%,rgba(255,255,255,.84) 0 75px,transparent 76px),radial-gradient(circle at 92% 7%,rgba(255,255,255,.74) 0 95px,transparent 96px),linear-gradient(155deg,#fff3c8,#dff8ff 58%,#f8e7ff)}
button,a{font:inherit}.page{width:min(1060px,100%);margin:auto;padding:13px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-radius:21px;background:rgba(255,255,255,.9);box-shadow:var(--shadow)}
.back{text-decoration:none;padding:10px 14px;border-radius:15px;background:#fff1aa;color:#695000;font-weight:950;box-shadow:0 5px 0 #d9b33a}.stats{display:flex;gap:9px;flex-wrap:wrap}.pill{padding:8px 12px;border-radius:999px;background:#eafff2;color:#176d50;font-weight:950}
.panel{margin-top:14px;padding:clamp(16px,3vw,27px);border-radius:28px;background:var(--paper);border:3px solid rgba(255,255,255,.96);box-shadow:var(--shadow)}h1{margin:0;text-align:center;color:var(--green);font-size:clamp(28px,5vw,46px)}.sub{text-align:center;font-weight:750;color:#58706b;line-height:1.55;margin:8px auto 0;max-width:800px}
.progress{height:14px;background:#e5f0f1;border:2px solid #d1e5e7;border-radius:999px;overflow:hidden;margin:14px auto;max-width:600px}.progress>div{height:100%;background:linear-gradient(90deg,#62d68c,#ffca3a);width:0;transition:.25s}
.stage{max-width:820px;margin:18px auto;padding:18px;border-radius:25px;background:#f9fcfd;border:2px solid #e0eef0;text-align:center}.scene{min-height:220px;display:grid;place-items:center}.question{font-size:clamp(20px,3vw,29px);font-weight:950;color:#315b54;margin:12px 0}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-width:820px;margin:16px auto}.choice{border:3px solid #d9edf1;background:#fff;border-radius:20px;padding:15px;cursor:pointer;box-shadow:0 6px 0 #d7e8eb;font-weight:950;font-size:18px;min-height:82px;display:flex;align-items:center;justify-content:center;gap:10px}.choice:hover{transform:translateY(-3px)}.choice.correct{background:#e8fff1;border-color:#5bd890}.choice.wrong{background:#fff0f0;border-color:#ff7777;animation:shake .34s}.message{min-height:42px;text-align:center;font-weight:950;color:var(--green);font-size:21px}.actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:13px}.btn{border:0;border-radius:17px;padding:12px 18px;background:var(--yellow);color:#604300;box-shadow:0 6px 0 #d49b00;font-weight:950;cursor:pointer}.btn.blue{background:var(--blue);box-shadow:0 6px 0 #4faec9;color:#164957}.btn.green{background:#78df9b;box-shadow:0 6px 0 #3ca964;color:#155b38}.footer{margin:17px 0 4px;padding:14px;text-align:center;border-radius:18px;background:rgba(255,255,255,.8);font-size:14px;font-weight:750}.footer a{margin:0 7px;color:#176d55}
.palette{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px auto}.swatch{width:52px;height:52px;border-radius:50%;border:5px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.18);cursor:pointer}.swatch.active{outline:5px solid #29413e}.paint-area{display:grid;grid-template-columns:repeat(3,90px);gap:10px;justify-content:center;margin:15px auto}.paint-part{width:90px;height:90px;border:4px solid #304b47;border-radius:18px;background:#fff;display:grid;place-items:center;font-size:40px;cursor:pointer}.target{font-size:16px;font-weight:900;padding:10px;border-radius:15px;background:#fff5ce;display:inline-block}
.puzzle{display:grid;gap:6px;justify-content:center;margin:16px auto}.tile{width:92px;height:92px;border:3px solid #fff;border-radius:14px;display:grid;place-items:center;font-size:42px;font-weight:950;cursor:pointer;box-shadow:0 4px 0 #cbdfe2;background:linear-gradient(145deg,#e8f8ff,#fff6d5)}.tile.selected{outline:5px solid #ffb52d}.tile small{display:block;font-size:12px}
.maze{display:grid;gap:2px;justify-content:center;margin:15px auto;background:#315b54;padding:5px;border-radius:14px;overflow:auto}.cell{width:34px;height:34px;background:#fff;display:grid;place-items:center;font-size:20px}.cell.wall{background:#315b54}.controls{display:grid;grid-template-columns:repeat(3,58px);gap:8px;justify-content:center}.ctrl{height:55px;border:0;border-radius:15px;background:#8fddff;font-size:25px;font-weight:950;box-shadow:0 5px 0 #4faec9}.ctrl.up{grid-column:2}.ctrl.left{grid-column:1}.ctrl.down{grid-column:2}.ctrl.right{grid-column:3}
.clock{width:260px;height:260px;border:12px solid #315b54;border-radius:50%;position:relative;margin:10px auto;background:#fff}.clock .num{position:absolute;transform:translate(-50%,-50%);font-weight:900}.hand{position:absolute;left:50%;bottom:50%;transform-origin:bottom center;border-radius:999px}.hour{width:8px;height:70px;background:#315b54}.minute{width:5px;height:95px;background:#e26d5a}.center{position:absolute;width:18px;height:18px;background:#ffca3a;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.sound-card{font-size:90px;margin:10px}.sound-btn{font-size:21px;padding:15px 22px;border:0;border-radius:20px;background:#ffca3a;box-shadow:0 6px 0 #d49b00;font-weight:950;cursor:pointer}
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-5px)}}
@media(max-width:650px){.choices{grid-template-columns:1fr}.paint-area{grid-template-columns:repeat(3,76px)}.paint-part{width:76px;height:76px}.tile{width:72px;height:72px}.cell{width:27px;height:27px}.clock{width:230px;height:230px}}
