*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0%,#294c83,#11132e 65%);color:#fff;font-family:system-ui,Arial,sans-serif}header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(12px,4vw,45px);gap:10px}header a{color:#fff;text-decoration:none;font-weight:700}header strong{font-size:clamp(12px,2vw,19px);color:#ffe786}header button{background:#252955;color:#fff;border:1px solid #8e9ee3;padding:9px 12px;border-radius:12px;cursor:pointer}main{max-width:1000px;margin:auto;padding:0 12px 24px}.game-shell{position:relative;max-width:800px;margin:auto;border:5px solid #ffe68c;border-radius:24px;overflow:hidden;box-shadow:0 18px 70px #0008;background:#64cfe3}.hud{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;justify-content:space-between;gap:8px;padding:12px 15px;font-weight:900;background:linear-gradient(#111b48b0,transparent);text-shadow:0 2px 4px #0009}.hud span{white-space:nowrap}canvas{display:block;width:100%;height:auto;touch-action:none}.overlay{position:absolute;inset:0;z-index:10;background:#081634a8;display:grid;place-items:center;padding:14px;overflow-y:auto}.overlay.hidden{display:none}.panel{text-align:center;background:linear-gradient(155deg,#fff6c9,#f6c7e9);border:5px solid #fff;border-radius:28px;max-width:480px;width:100%;padding:18px;color:#38236d;box-shadow:0 12px 40px #0007}.panel img{height:110px;width:auto;object-fit:contain}.panel h1{font-size:clamp(24px,5vw,38px);margin:5px 0}.panel p{font-size:15px;line-height:1.45}.panel button{border:0;border-radius:40px;padding:14px 28px;background:#e3318f;color:#fff;font-size:20px;font-weight:900;cursor:pointer;box-shadow:0 6px 0 #922460}.panel small{display:block;margin-top:14px;font-size:12px}.controls{position:absolute;bottom:10px;left:10px;right:10px;z-index:6;display:flex;justify-content:space-between;gap:7px;pointer-events:none}.controls button{pointer-events:auto;min-width:62px;min-height:53px;border-radius:16px;background:#17265ab8;border:2px solid #ffffff99;color:white;font-weight:900;font-size:15px;touch-action:manipulation}.instructions{text-align:center;font-size:13px;color:#e4dcff;line-height:1.6}@media(max-width:450px){.controls button{min-width:49px;min-height:47px;font-size:12px}.hud{font-size:12px;padding:8px}.panel img{height:80px}.panel{padding:12px}}