:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#14334e;background:#dff6ff}*{box-sizing:border-box}body{margin:0;min-width:300px;min-height:100vh;background:radial-gradient(circle at 12% 8%,#fff3a9,transparent 24%),linear-gradient(180deg,#ccefff,#ecffe9)}button,a{font:inherit}header{min-height:68px;padding:9px max(3%,calc((100vw - 1100px)/2));display:flex;align-items:center;gap:16px;background:#093b67;color:#fff}header a{color:#fff;text-decoration:none;border:1px solid #ffffff4f;border-radius:12px;padding:9px 13px;font-weight:900}header strong{font-size:1.2rem}header div{margin-inline-start:auto;display:flex;gap:8px}header span{background:#0f5689;padding:8px 11px;border-radius:11px}main{max-width:1100px;margin:auto;padding:18px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(125deg,#125b9a,#21a17c);border-radius:25px;color:#fff;padding:24px 32px;margin-bottom:15px}.intro small{color:#cfff86;font-weight:900}.intro h1{font-size:2rem;margin:5px 0}.intro p{margin:0;line-height:1.7}.intro button{border:0;border-radius:16px;background:#ffe267;color:#403400;padding:15px 24px;font-weight:900;white-space:nowrap}.game-shell{position:relative;border:5px solid #fff;border-radius:25px;overflow:hidden;background:#79d6ff;box-shadow:0 22px 45px #0a55712b;direction:ltr}canvas{display:block;width:100%;aspect-ratio:16/9;background:#72d5ff}.message{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);min-width:min(410px,82%);padding:25px;text-align:center;color:#fff;background:#082b58e8;border:2px solid #85dfff;border-radius:22px;pointer-events:none}.message.hidden{display:none}.message h2{font-size:2rem;color:#ffe26d;margin:0 0 8px}.message p{margin:0;line-height:1.7}.pause{position:absolute;top:14px;right:14px;border:0;border-radius:12px;width:45px;height:45px;background:#083a68d9;color:#fff;font-weight:900}.touch{display:none;position:absolute;inset:auto 12px 12px;justify-content:space-between;pointer-events:none}.touch button{pointer-events:auto;width:64px;height:64px;border:2px solid #ffffffb8;border-radius:50%;background:#083a68c7;color:#fff;font-size:1.7rem;touch-action:none}.touch button:nth-child(2){margin-right:auto;margin-left:9px}.touch .jump{background:#e09d16d9}.levels{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:15px}.level{border:1px solid #b5dae4;border-radius:16px;background:#fff;padding:12px;text-align:center;color:#34546c}.level.current{border:3px solid #1b9bc3}.level.done{background:#e4ffe2}.level.locked{opacity:.55}.level b,.level small{display:block}.level small{margin-top:4px}.tips{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:15px}.tips span{padding:12px;text-align:center;background:#fff;border-radius:14px;border:1px solid #d5eaeb}@media(pointer:coarse),(max-width:760px){.touch{display:flex}.pause{top:10px;right:10px}.intro{padding:18px;align-items:flex-start}.intro p{display:none}.levels{grid-template-columns:repeat(5,minmax(74px,1fr));overflow-x:auto}.tips{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){header strong{font-size:.95rem}header div span:first-child{display:none}main{padding:8px}.intro h1{font-size:1.45rem}.intro button{padding:11px}.game-shell{border-width:3px;border-radius:17px}.message{padding:17px}.message h2{font-size:1.45rem}.touch button{width:54px;height:54px}.tips{font-size:.82rem}}
