*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#11172e;color:#f6f7ff;font-family:ui-rounded,system-ui,sans-serif}body{display:flex;flex-direction:column;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;font-weight:800;color:inherit;border:1px solid #ffffff30;background:#303b61;border-radius:16px;padding:12px 17px;cursor:pointer}button:active{transform:scale(.96);background:#57648e}button:focus-visible,a:focus-visible{outline:3px solid #ffe18b}header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px max(12px,env(safe-area-inset-right));font-size:12px}header a{color:#b5c4e6;text-decoration:none}header strong{letter-spacing:1px}header button{padding:9px 12px}main{position:relative;flex:1;min-height:0;overflow:hidden}canvas{width:100%;height:100%;display:block}#hud{position:absolute;top:12px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:800;font-size:13px}#hud button{padding:9px 12px;background:#1b2548c9}#tip{position:absolute;bottom:14px;left:0;width:100%;text-align:center;font-size:13px;color:#d6e5ff;pointer-events:none}section{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(450px,94%);max-height:96%;overflow:auto;touch-action:pan-y;text-align:center;padding:25px 22px;border:1px solid #ffffff26;border-radius:28px;background:#17213bed;box-shadow:0 25px 100px #0007}h1{font-size:clamp(30px,6vw,50px);line-height:1.05;margin:14px 0}h1 span{color:#84efcf}p{color:#bbcce7;line-height:1.5;font-size:15px}.badge{font-size:11px;letter-spacing:3px;color:#ffe19c;font-weight:900}.primary{background:#8ef1d1;color:#112f35;border:0;font-size:19px;padding:15px 26px;box-shadow:0 5px 0 #418e81}.help{font-size:12px;margin:20px 0 14px}#grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}#grid button{padding:11px 4px}#grid button:disabled{opacity:.35;cursor:default}#grid .beat{color:#8ef1d1;border-color:#8ef1d1}#save{font-size:11px;margin-bottom:0}footer{display:flex;justify-content:space-between;gap:15px;padding:12px 18px max(14px,env(safe-area-inset-bottom));background:#11172e}footer div{display:flex;gap:12px}footer button{touch-action:none;height:70px;min-width:75px;font-size:25px;box-shadow:0 5px 0 #070d21}#jump{background:#ac99f6;color:#191b39;min-width:125px;font-size:18px}#jump span{font-size:26px;margin-left:8px}[hidden]{display:none!important}@media(max-height:500px){header{padding:5px 12px}footer{padding:6px 16px 10px}footer button{height:48px}section{padding:12px 20px}h1{font-size:28px;margin:8px}section p{margin:8px}.help{display:none}#grid button{padding:7px}#hud{top:5px}}
