*{box-sizing:border-box;margin:0;padding:0}html,body{color:#fff;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;background:#10202e;height:100%;font-family:Hiragino Kaku Gothic ProN,Hiragino Sans,Noto Sans JP,system-ui,sans-serif;overflow:hidden}body{justify-content:center;align-items:center;display:flex}#game{background:#9fd0f2;width:min(100vw,56.25dvh);height:min(100dvh,177.778vw);position:relative;overflow:hidden;container-type:size}#game canvas{width:100%;height:100%;display:block;position:absolute;inset:0}#drag-area{z-index:1;touch-action:none;cursor:grab;position:absolute;inset:0}#drag-area:active{cursor:grabbing}.hidden{opacity:0!important;pointer-events:none!important}#hud{z-index:2;padding-top:max(2.5cqh, env(safe-area-inset-top));pointer-events:none;flex-direction:column;align-items:center;transition:opacity .3s;display:flex;position:absolute;top:0;left:0;right:0}#level{letter-spacing:.1em;color:#fff;text-shadow:0 2px 4px #00000059;margin-bottom:1cqh;font-size:2.4cqh;font-weight:800}#wind{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);text-align:center;background:#0a1e328c;border:1px solid #fff3;border-radius:2cqh;min-width:46cqw;padding:1.2cqh 5cqw 1.4cqh}.wind-label{letter-spacing:.35em;opacity:.8;font-size:1.8cqh;font-weight:800}.wind-row{justify-content:center;align-items:center;gap:2cqw;display:flex}#wind-arrow{filter:drop-shadow(0 2px 3px #0006);width:6cqh;height:6cqh;transition:transform .4s}#wind-speed{font-variant-numeric:tabular-nums;font-size:4.6cqh;font-weight:900}#wind-desc{opacity:.85;font-size:1.8cqh}#wind-same{color:#ffe14d;margin-top:.6cqh;font-size:1.6cqh;font-weight:800;display:none}#wind-same.show{display:block}#stats{top:max(2.5cqh, env(safe-area-inset-top));z-index:2;text-shadow:0 1px 3px #00000080;pointer-events:none;font-size:1.9cqh;font-weight:700;position:absolute;left:4cqw}#levels{top:calc(max(2.5cqh, env(safe-area-inset-top)) + 3.6cqh);z-index:3;flex-direction:column;gap:.8cqh;transition:opacity .3s;display:flex;position:absolute;left:3cqw}#levels button{color:#fff;text-align:left;cursor:pointer;touch-action:manipulation;background:#0a1e3273;border:1px solid #ffffff80;border-radius:1.6cqh;min-width:11cqw;padding:.7cqh 2cqw;font:800 1.7cqh/1.2 inherit}#levels button.current{color:#1a3350;background:#ffe14d;border-color:#ffe14d}#levels button:disabled{opacity:.5;cursor:default}#hint{z-index:2;text-align:center;text-shadow:0 1px 4px #0009;pointer-events:none;font-size:2.1cqh;font-weight:700;line-height:1.4;transition:opacity .4s;animation:1.6s ease-in-out infinite hint-bob;position:absolute;bottom:17cqh;left:0;right:0}#hint small{opacity:.85;font-size:1.6cqh}@keyframes hint-bob{50%{transform:translate(2cqw)}}#drop-btn{left:50%;bottom:max(3.5cqh, env(safe-area-inset-bottom));z-index:3;color:#fff;letter-spacing:.2em;cursor:pointer;touch-action:manipulation;background:linear-gradient(#4fc3ff,#1a7fd6);border:none;border-radius:5cqh;width:62cqw;height:10cqh;font-size:4.4cqh;font-weight:900;transition:opacity .25s,transform 80ms;position:absolute;transform:translate(-50%);box-shadow:0 .8cqh #0f5a9c,0 1.4cqh 2.4cqh #00000059}#drop-btn:active{transform:translate(-50%)translateY(.6cqh);box-shadow:0 .2cqh #0f5a9c,0 .6cqh 1.2cqh #00000059}#result{z-index:4;padding-bottom:max(6cqh, env(safe-area-inset-bottom));pointer-events:none;opacity:0;flex-direction:column;justify-content:flex-end;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}#result.show{opacity:1}#result:before{content:"";z-index:-1;background:linear-gradient(#00142800,#0014288c);height:50%;position:absolute;bottom:0;left:0;right:0}#result-title{-webkit-text-stroke:.5cqh #102030;paint-order:stroke fill;text-shadow:0 1cqh 2cqh #00000059;font-size:10cqh;font-weight:900;line-height:1.1;transform:scale(.4)}#result.show #result-title{animation:.45s cubic-bezier(.2,1.8,.4,1) forwards pop}#result.good #result-title{color:#ffe14d}#result.near #result-title{color:#ffa24d}#result.bad #result-title{color:#fff}#result-sub{letter-spacing:.3em;text-shadow:0 2px 4px #0009;margin-top:1cqh;font-size:2.6cqh;font-weight:900}#result-detail{white-space:pre-line;text-align:center;text-shadow:0 2px 4px #000000b3;margin-top:.6cqh;font-size:2.2cqh;font-weight:700;line-height:1.5}@keyframes pop{to{transform:scale(1)}}#retry-btn{color:#1a5f9e;letter-spacing:.1em;cursor:pointer;opacity:0;pointer-events:none;touch-action:manipulation;background:linear-gradient(#fff,#d9ecfa);border:none;border-radius:4.5cqh;width:56cqw;height:8.5cqh;margin-top:3cqh;font-size:3.4cqh;font-weight:900;transition:opacity .3s,transform .3s;transform:translateY(2cqh);box-shadow:0 .7cqh #8fb6d6,0 1.2cqh 2cqh #00000059}#retry-btn.show{opacity:1;pointer-events:auto;transform:none}#flash{z-index:3;pointer-events:none;opacity:0;background:radial-gradient(circle,#ffffffe6,#b4e6ff00);position:absolute;inset:0}#flash.go{animation:.7s ease-out flash}@keyframes flash{0%{opacity:.9}to{opacity:0}}#title-screen{z-index:7;background:linear-gradient(#1446788c 0%,#14467826 45%,#0a1e32a6 100%);justify-content:center;align-items:center;animation:.6s ease-out title-in;display:none;position:absolute;inset:0}#title-screen.show{display:flex}.title-inner{text-align:center;flex-direction:column;align-items:center;padding:0 6cqw;display:flex}.title-drop{width:6cqh;height:8cqh;margin-bottom:2.4cqh;animation:1.8s ease-in infinite title-drip;position:relative}.title-drop:before{content:"";background:radial-gradient(circle at 40% 40%,#fff 0 10%,#a6e4ff 32%,#2f9be6 100%);border-radius:0 50% 50%;width:6cqh;height:6cqh;position:absolute;bottom:0;left:0;transform:rotate(45deg);box-shadow:0 0 0 .4cqh #ffffffb3,0 .8cqh 1.6cqh #0000004d}#title-main{letter-spacing:.04em;color:#fff;-webkit-text-stroke:.7cqh #0f4f86;paint-order:stroke fill;text-shadow:0 1cqh #0b3a63,0 1.6cqh 2.4cqh #0006;white-space:nowrap;font-size:min(12cqw,7.5cqh);font-weight:900;line-height:1.15}#title-sub{color:#0f4f86;background:#ffffffeb;border-radius:3cqh;margin-top:2.4cqh;padding:.9cqh 4cqw;font-size:min(4.6cqw,2.6cqh);font-weight:900;box-shadow:0 .6cqh 1.4cqh #00000040}#start-btn{color:#5a2d00;letter-spacing:.15em;cursor:pointer;touch-action:manipulation;background:linear-gradient(#ffe14d,#ffb01f);border:none;border-radius:5cqh;width:60cqw;height:10cqh;margin-top:7cqh;font-size:4.2cqh;font-weight:900;animation:1.4s ease-in-out infinite start-pulse;box-shadow:0 .8cqh #c77d00,0 1.4cqh 2.4cqh #00000059}#start-btn:active{transform:translateY(.6cqh);box-shadow:0 .2cqh #c77d00,0 .6cqh 1.2cqh #00000059}.title-howto{text-shadow:0 1px 4px #0009;opacity:.9;margin-top:2.4cqh;font-size:1.9cqh;font-weight:700}@keyframes title-in{0%{opacity:0}}@keyframes title-drip{0%{opacity:0;transform:translateY(-3cqh)scale(.6)}25%{opacity:1;transform:translateY(0)scale(1)}80%{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(2cqh)scale(.9,1.1)}}@keyframes start-pulse{50%{transform:scale(1.04)}}#allclear{z-index:5;padding-top:max(9cqh, env(safe-area-inset-top));pointer-events:none;background:radial-gradient(circle at 50% 42%,#ffdc5a59,#140a288c 70%);justify-content:center;align-items:flex-start;display:none;position:absolute;inset:0;overflow:hidden}#allclear.show{display:flex}.ac-rays{background:repeating-conic-gradient(#fff0a047 0 7deg, #fff0a000 7deg 20deg);width:180cqh;height:180cqh;margin:-90cqh 0 0 -90cqh;animation:12s linear infinite ac-spin;position:absolute;top:40%;left:50%;-webkit-mask:radial-gradient(circle,#000 10%,#0000 60%);mask:radial-gradient(circle,#000 10%,#0000 60%)}.ac-inner{text-align:center;flex-direction:column;align-items:center;display:flex;position:relative}.ac-crown{filter:drop-shadow(0 .6cqh 1cqh #0006);font-size:9cqh;line-height:1;animation:.9s cubic-bezier(.2,1.8,.4,1) both ac-crown,1.6s ease-in-out .9s infinite ac-bob}#ac-title{letter-spacing:.02em;white-space:nowrap;background:linear-gradient(90deg,#fff6a8,#ffcf3f,#ff8a3d,#ffcf3f,#fff6a8) 0 0/200% 100%;color:#0000;-webkit-text-stroke:.35cqh #7a3b00;filter:drop-shadow(0 .8cqh #7a3b00)drop-shadow(0 0 2.5cqh #ffd250e6);-webkit-background-clip:text;background-clip:text;margin-top:1cqh;padding:0 3cqw;font-size:min(11.5cqw,7cqh);font-style:italic;font-weight:900;animation:.8s cubic-bezier(.2,1.9,.4,1) .15s both ac-pop,1.6s linear infinite ac-shine}#ac-sub{color:#b3470b;background:#fffffff2;border-radius:3cqh;margin-top:2.2cqh;padding:.8cqh 4cqw;font-size:min(4.6cqw,2.6cqh);font-weight:900;animation:.5s ease-out .7s both ac-rise;box-shadow:0 .6cqh 1.4cqh #0000004d}#ac-stats{text-shadow:0 2px 5px #000000b3;margin-top:1.4cqh;font-size:2.4cqh;font-weight:900;animation:.5s ease-out .95s both ac-rise}#to-title-btn{left:50%;bottom:max(4cqh, env(safe-area-inset-bottom));color:#5a2d00;letter-spacing:.1em;cursor:pointer;touch-action:manipulation;opacity:0;pointer-events:none;background:linear-gradient(#ffe14d,#ffb01f);border:none;border-radius:4.5cqh;width:58cqw;height:9cqh;margin-left:-29cqw;font-size:3.4cqh;font-weight:900;transition:opacity .4s,transform .4s;position:absolute;transform:translateY(2cqh);box-shadow:0 .8cqh #c77d00,0 1.4cqh 2.4cqh #00000059}#to-title-btn.show{opacity:1;pointer-events:auto;transform:none}#flash.gold{background:radial-gradient(circle,#fffad2,#ffc83c99 50%,#fa00)}#flash.go.gold{animation:1.2s ease-out flash}#game.shake{animation:.5s ease-out shake}@keyframes ac-spin{to{transform:rotate(360deg)}}@keyframes ac-pop{0%{opacity:0;transform:scale(.2)rotate(-8deg)}to{opacity:1;transform:scale(1)rotate(-4deg)}}@keyframes ac-shine{to{background-position:-200% 0}}@keyframes ac-crown{0%{opacity:0;transform:translateY(-10cqh)scale(.3)}}@keyframes ac-bob{50%{transform:translateY(-1cqh)rotate(6deg)}}@keyframes ac-rise{0%{opacity:0;transform:translateY(2cqh)}}@keyframes shake{0%,to{transform:none}15%{transform:translate(-1.2cqw,.6cqh)}30%{transform:translate(1.2cqw,-.6cqh)}45%{transform:translate(-.8cqw,-.4cqh)}60%{transform:translate(.8cqw,.4cqh)}80%{transform:translate(-.3cqw)}}#confetti{z-index:6;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}#sound-btn{top:max(2cqh, env(safe-area-inset-top));z-index:6;cursor:pointer;touch-action:manipulation;background:#00000040;border:1px solid #fff6;border-radius:50%;width:5.2cqh;height:5.2cqh;font-size:2.6cqh;line-height:1;position:absolute;right:3cqw}#sound-btn.off{opacity:.6}#debug-panel{z-index:5;color:#7dffb0;pointer-events:none;white-space:pre;background:#0009;border-radius:1cqh;padding:1cqh 2cqw;font:1.45cqh/1.45 ui-monospace,monospace;display:none;position:absolute;top:21cqh;left:2cqw}#debug-panel.show{display:block}
