*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#302c28;background:#faf5ed}body{background:radial-gradient(ellipse at 50% 0,#fff 0,#faf5ed 65%)}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #2496cb;outline-offset:4px}main{max-width:1280px;margin:auto;padding:28px 32px 18px}header{text-align:center;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:4px;font-weight:900;color:#9f8a74}h1{font-size:clamp(32px,5vw,64px);font-weight:1000;letter-spacing:-3px;line-height:1.15;margin:10px 0 8px}h1 span{color:#f56615}.dot{margin-left:-10px}header p{font-size:12px;color:#84715e;letter-spacing:2px;margin:12px 0 0}.game{position:relative;overflow:hidden;border:3px solid #453d36;border-radius:23px;box-shadow:0 12px 0 #e6d9c7,0 25px 50px #59462915;background:#f9eddc}.hud{position:absolute;z-index:2;top:16px;left:18px;right:18px;display:flex;gap:10px;align-items:center}.stage,.timer,.hud button{background:#fff8ed;border:2px solid #66513d;border-radius:12px;padding:9px 14px;box-shadow:0 3px 0 #54423024;font-size:12px;font-weight:800}.stage strong{font-size:29px;color:#f46716;margin-left:8px}.timer strong{font-size:24px;font-variant-numeric:tabular-nums}.timer{font-size:24px}.progress{height:13px;background:#fff9ef;border:3px solid #fff9ef;border-radius:12px;width:24%;margin:auto;box-shadow:0 0 0 1px #bea082;position:relative}.progress span{display:block;height:100%;width:0;background:#ff962e;border-radius:10px;transition:width .1s}.progress i{position:absolute;right:-12px;top:-25px;color:#ef661c;font-size:35px;font-style:normal}.hud button{font-size:23px;width:46px;height:46px;padding:0}.hud button.off{opacity:.55}canvas{display:block;width:100%;height:530px}.status{position:absolute;z-index:2;top:92px;left:50%;transform:translateX(-50%);background:#fff9efeb;border:1px solid #d7bea1;border-radius:30px;padding:9px 22px;font-size:13px;font-weight:800;white-space:nowrap;box-shadow:0 3px 8px #0000000a}.status.warn{background:#fff1bf;color:#915800}.status.danger{background:#ffe2da;color:#bc321e}.controls{padding:19px 24px;display:flex;gap:24px;align-items:center;background:#fff8ed;border-top:2px solid #e8c9a7;position:relative;z-index:3}.instruction{flex:1}.instruction b{color:#f46616;font-size:16px}.instruction b span{color:#302c28}.instruction small{display:block;font-size:10px;color:#9a8670;margin-top:7px}.primary{border:2px solid #b84610;border-radius:50px;background:linear-gradient(#ff8c39,#fa5a0c);box-shadow:inset 0 0 0 3px #ffb576,0 5px 0 #c64c13;color:white;font-weight:900;letter-spacing:1px;padding:18px 30px;font-size:22px;user-select:none;-webkit-user-select:none}.primary span{margin-left:18px}.primary:active,.primary.pressed{transform:translateY(4px);box-shadow:inset 0 0 0 3px #ffb576,0 1px 0 #c64c13}.primary:disabled{filter:grayscale(.6);cursor:default}.tip{font-size:12px;line-height:1.8;border:1px solid #eac29a;border-radius:15px;padding:8px 16px}.overlay{position:absolute;z-index:4;inset:0 0 107px;display:flex;justify-content:center;align-items:center;background:#24180a20;backdrop-filter:blur(2px)}.overlay.hidden{display:none}.panel{background:#fffaf0f5;border:2px solid #6c5740;border-radius:22px;text-align:center;padding:30px 38px;box-shadow:0 9px 0 #55412925;max-width:90%}.tag{font-size:11px;font-weight:bold;color:#cc682a;letter-spacing:1px}h2{font-size:28px;line-height:1.5;margin:12px 0}.panel p{font-size:13px;line-height:1.9;color:#76614e;margin:0 0 22px}.panel .primary{font-size:17px;padding:14px 22px}.panel small{display:block;font-size:11px;color:#9b8067;margin-top:19px}footer{display:flex;justify-content:space-between;font-size:10px;color:#9e8b76;margin:24px 4px;gap:12px}@media(max-width:700px){main{padding:17px 10px 10px}header{margin-bottom:16px}.eyebrow{font-size:8px;letter-spacing:2px}h1{font-size:39px;letter-spacing:-2px}header p{font-size:10px;letter-spacing:1px}.game{border-radius:19px;border-width:2px}canvas{height:min(58vh,540px);min-height:330px}.hud{top:10px;left:9px;right:9px;gap:6px}.stage,.timer{padding:6px 8px;border-radius:9px;font-size:10px}.stage strong{font-size:23px;margin-left:3px}.timer strong{font-size:21px}.timer{font-size:19px}.hud button{width:35px;height:35px;font-size:19px}.progress{position:absolute;top:58px;left:25%;width:50%;height:10px}.progress i{font-size:25px;top:-18px}.status{top:96px;font-size:11px;padding:7px 15px}.controls{padding:12px 15px 16px;display:flex;flex-direction:column;gap:11px}.controls .primary{width:100%;font-size:23px;padding:15px}.instruction{order:2;text-align:center}.instruction b{font-size:12px}.instruction small{display:none}.tip{display:none}.overlay{bottom:119px}.panel{padding:24px 20px}h2{font-size:25px}.panel p{font-size:12px}footer{flex-direction:column;text-align:center;margin:20px 0 10px;font-size:9px}}@media(max-height:600px) and (min-width:701px){header{display:none}main{padding:10px 24px}canvas{height:65vh}.controls{padding:10px 20px}.overlay{bottom:85px}footer{margin:15px}}

.collect-hud{position:absolute;z-index:2;left:20px;top:91px;font-size:11px;font-weight:bold;background:#fff6e4e8;padding:8px 11px;border-radius:10px;color:#825626}.actions{display:flex;flex-direction:column;gap:7px}.actions button{border:1px solid #c4a27a;border-radius:10px;background:#fff2d8;color:#694b2b;padding:8px 12px;font-size:12px;font-weight:bold}.actions button[aria-pressed=true]{background:#d7ebdf;border-color:#6e9b7d}.actions button:disabled{opacity:.45;cursor:default}@media(max-width:700px){.collect-hud{top:128px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;padding:5px 9px}.controls{gap:9px}.actions{width:100%;flex-direction:row;order:1}.actions button{flex:1;min-height:38px;padding:6px 4px;font-size:11px}.instruction{order:2}.overlay{bottom:164px}.panel{padding:17px 16px}.panel p{margin-bottom:14px}.panel h2{font-size:22px}canvas{height:min(54vh,510px)}}

.controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px 18px;align-items:stretch}.controls #move,.controls #collect{grid-row:1;font-size:22px;min-height:70px;padding:15px 20px;width:100%}.controls #move{grid-column:1}.controls #collect{grid-column:2}.controls .instruction{grid-column:1/3;grid-row:2;text-align:center}.controls #quiet{grid-column:3;grid-row:1/3;align-self:center;border:1px solid #c4a27a;border-radius:14px;background:#fff2d8;color:#694b2b;padding:15px 12px;font-size:12px;font-weight:bold}.controls #quiet[aria-pressed=true]{background:#d7ebdf;border-color:#6e9b7d}.controls #collect:disabled{opacity:.65;filter:grayscale(.5)}.overlay{bottom:var(--controls-height,150px)}#move{touch-action:none}@media(max-width:700px){.controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.controls #move,.controls #collect{font-size:16px;letter-spacing:0;padding:14px 5px;min-height:66px}.controls #move span{margin-left:3px}.controls .instruction{grid-row:2;grid-column:1/3}.controls #quiet{grid-column:1/3;grid-row:3;padding:8px}.controls .instruction b{font-size:11px}canvas{height:min(51vh,490px)}}

[hidden]{display:none!important}.home{min-height:570px;display:grid;grid-template-columns:1fr 1fr;gap:28px;border:2px solid #dac5a9;border-radius:28px;background:radial-gradient(ellipse at 20% 45%,#fff0cd,#fffaf2 65%);overflow:hidden;box-shadow:0 10px 0 #e8ddcc}.hero-art{position:relative;display:flex;align-items:center;justify-content:center;padding:20px 0 45px;min-width:0}.hero-art img{width:100%;height:540px;object-fit:contain;filter:drop-shadow(0 12px 8px #6c46221b)}.hero-stamp{position:absolute;z-index:1;top:30px;left:24px;transform:rotate(-7deg);border:2px solid #d6b080;background:#fffdf6;border-radius:50%;padding:20px 18px;font-weight:900;font-size:15px;line-height:1.7}.art-caption{position:absolute;bottom:28px;font-size:12px;letter-spacing:1px;color:#9c7148}.home-menu{padding:38px 38px 30px 0}.home-menu h2{font-size:32px;letter-spacing:-1px;line-height:1.45;margin:12px 0}.menu-intro{font-size:12px;line-height:1.9;color:#89705a}.stage-list{display:flex;flex-direction:column;gap:10px;margin-top:22px}.stage-card{display:flex;align-items:center;gap:15px;text-align:left;padding:15px 17px;background:#fffdf8;border:2px solid #e3c7a4;border-radius:15px;color:#46382a;box-shadow:0 4px 0 #d9c4a64a;transition:transform .15s,border-color .15s}.stage-card:hover{transform:translateY(-2px);border-color:#f58430}.stage-card:active{transform:translateY(2px)}.stage-card:disabled{opacity:.55}.stage-no{color:#f37724;font-size:32px;font-weight:1000}.stage-card b{display:block;font-size:15px}.stage-card small{display:block;font-size:10px;color:#947b64;margin:5px 0}.stage-card em{font-style:normal;font-size:11px;color:#b57b27}.stage-card i{margin-left:auto;font-style:normal;color:#e67d33}.howto{margin-top:19px;font-size:11px;color:#806b57}.howto summary{cursor:pointer;font-weight:bold}.howto p{line-height:2}.back-menu{display:block;margin:18px auto 0;border:0;border-bottom:1px solid #b6a18a;background:none;color:#846b53;font-size:12px;padding:4px}.hud{gap:8px}@media(max-width:700px){.home{grid-template-columns:1fr;gap:0;border-radius:22px;min-height:0}.hero-art{padding:6px 0 22px;height:270px}.hero-art img{height:270px;width:280px}.hero-stamp{left:18px;top:20px;font-size:11px;padding:13px}.art-caption{font-size:10px;bottom:3px}.home-menu{padding:18px 19px 24px}.home-menu h2{font-size:24px;margin:7px 0}.home-menu h2 br{display:none}.menu-intro{font-size:11px;margin:7px 0}.stage-list{margin-top:15px}.stage-card{padding:11px 13px;gap:12px}.stage-card b{font-size:13px}.stage-no{font-size:27px}.hud{gap:4px}.hud button{width:31px}.timer{padding:5px}.stage{padding:5px}.stage strong{font-size:21px}.panel .back-menu{margin-top:11px}}

.title-header{padding:6px 0 3px}.title-header>.eyebrow{font-size:9px;letter-spacing:3px}.logo-kicker{display:inline-block;background:#fff4d1;border:1px solid #ebc48a;border-radius:30px;padding:6px 16px;margin-top:13px;font-size:11px;font-weight:900;letter-spacing:1px;color:#9d642d}.game-title{display:flex;justify-content:center;align-items:baseline;gap:2px;font-size:clamp(42px,6vw,76px);font-family:"Arial Rounded MT Bold","Hiragino Maru Gothic ProN","Yu Gothic",sans-serif;font-weight:1000;letter-spacing:-4px;margin:10px 0 4px;filter:drop-shadow(0 5px 0 #d9b98d);line-height:1.25}.game-title .logo-konko{color:#ff741e;transform:rotate(-4deg);display:inline-block;-webkit-text-stroke:1px #cf5714;text-shadow:2px 2px 0 #fff8df,-2px -2px 0 #fff8df}.game-title .logo-stop{color:#4a382d;transform:rotate(2deg);display:inline-block;text-shadow:2px 2px 0 #fff8df,-2px -2px 0 #fff8df}.game-title .dot{color:#ff741e}.logo-stripe{height:7px;width:min(350px,65%);margin:6px auto 0;background:repeating-linear-gradient(-55deg,#ff8c37 0 12px,transparent 12px 23px);border-radius:5px}.title-header p{margin-top:10px}.controls #collect{grid-column:1}.controls #move{grid-column:2}
@media(pointer:coarse){html,body{touch-action:pan-y}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button,a,summary{touch-action:manipulation}.controls button{touch-action:none}img,canvas{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none}canvas{touch-action:pan-y}}
@media(max-width:700px){.logo-kicker{font-size:9px;letter-spacing:0;padding:5px 11px;margin-top:9px}.game-title{font-size:clamp(34px,9.8vw,52px);letter-spacing:-2px;margin:8px 0 3px;gap:0}.title-header>.eyebrow{font-size:7px;letter-spacing:2px}.title-header p{font-size:9px;margin-top:9px}.logo-stripe{height:5px}.controls #collect{grid-column:1}.controls #move{grid-column:2}}

.guard-hud{position:absolute;top:137px;left:50%;transform:translateX(-50%);z-index:2;background:#142137ed;color:#fff3cf;padding:8px 17px;border:1px solid #e4c387;border-radius:20px;font-size:11px;font-weight:bold;white-space:nowrap;pointer-events:none}@media(max-width:700px){.guard-hud{top:156px;font-size:10px;padding:6px 10px}}
