html,body,#game{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;background:#2f2f2f}body{font-family:Noto Sans JP,Noto Sans,system-ui,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}*{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.mobile-controls{touch-action:none}canvas{display:block;margin:0 auto;image-rendering:auto}:root{--action-h: clamp(52px, 8vh, 72px);--status-h: clamp(120px, 21vh, 176px);--ad-extra: 0px;--btn: clamp(40px, calc((100dvh - var(--status-h) - 56.25vw - var(--action-h) - 80px - var(--ad-extra)) / 3), min(27vw, 120px));--bar-h: calc(var(--btn) * 3 + var(--action-h) + 80px + var(--ad-extra) + env(safe-area-inset-bottom))}html.has-ad{--ad-extra: 70px}.mobile-controls{display:none}.mobile-dialog{position:fixed;inset:0;z-index:10;background:#000a;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.mobile-dialog-panel{width:100%;max-width:620px;max-height:100%;overflow-y:auto;padding:20px;box-sizing:border-box;border:4px solid #1a1a1a;background:#fff;color:#1a1a1a;text-align:center}.mobile-dialog h2{color:#e60012;margin:0 0 16px;font-size:22px;overflow-wrap:anywhere}.mobile-dialog p{white-space:pre-wrap;font-size:16px;line-height:1.6;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.mobile-dialog button,.mobile-controls button{min-height:48px;border:2px solid #e60012;background:#5b6472;color:#fff;font:700 16px system-ui,sans-serif;touch-action:none}.mobile-dialog button{display:block;width:100%;margin-top:12px;padding:12px;overflow-wrap:anywhere}.mobile-kiosk .mobile-dialog-panel{border:8px solid #5b6472;background:#fcdada}.mobile-kiosk button{background:#e60012}html.mobile-layout .mobile-controls{display:flex;flex-direction:column;align-items:center;gap:28px;position:fixed;left:0;right:0;bottom:0;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:#1a1a1a;border-top:3px solid #e60012;z-index:2;box-sizing:border-box}html.mobile-layout .mobile-top{display:flex;gap:12px;width:100%}html.mobile-layout .mobile-action{flex:1;min-height:var(--action-h);background:#e60012;font-size:28px}html.mobile-layout .mobile-sound{width:96px;min-height:var(--action-h);font-size:26px}html.mobile-layout .mobile-pad{display:grid;grid-template-columns:repeat(3,var(--btn));grid-template-rows:repeat(3,var(--btn));gap:8px;padding:8px;background:#000}html.mobile-layout .mobile-pad button{min-height:0;font-size:calc(var(--btn) * .45)}html.mobile-layout .move-up{grid-area:1 / 2}html.mobile-layout .move-left{grid-area:2 / 1}html.mobile-layout .move-right{grid-area:2 / 3}html.mobile-layout .move-down{grid-area:3 / 2}html.mobile-layout .mobile-ad{width:100%;height:60px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:1px dashed #5d7a94;color:#8fa9bf;font-size:14px}html.mobile-layout #game{height:calc(100% - var(--bar-h))}html.touch-side{--side-margin: calc((100vw - 177.78vh)/2) ;--btn-side: clamp(52px, calc((var(--side-margin) - 24px) / 3), 92px)}@media(orientation:portrait){html.touch-side{--btn-side: clamp(44px, min(19vw, calc((100vw - 76px) / 4.7)), 100px)}html.touch-side .mobile-top{right:max(14px,env(safe-area-inset-right))}}html.touch-side .mobile-controls{display:block;position:fixed;inset:0;pointer-events:none;background:none;border:0;padding:0;z-index:2}html.touch-side .mobile-pad{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));pointer-events:auto;display:grid;grid-template-columns:repeat(3,var(--btn-side));grid-template-rows:repeat(3,var(--btn-side));gap:6px;padding:6px;background:#0e1b284d}html.touch-side .mobile-pad button{min-height:0;font-size:calc(var(--btn-side) * .45);opacity:.6}html.touch-side .move-up{grid-area:1 / 2}html.touch-side .move-left{grid-area:2 / 1}html.touch-side .move-right{grid-area:2 / 3}html.touch-side .move-down{grid-area:3 / 2}html.touch-side .mobile-top{position:fixed;right:max(24px,env(safe-area-inset-right));bottom:max(34px,env(safe-area-inset-bottom));width:auto;display:block;pointer-events:auto}html.touch-side .mobile-action{width:calc(var(--btn-side) * 1.7);height:calc(var(--btn-side) * 1.7);min-height:0;border-radius:50%;background:#e60012;border:4px solid #e60012;font-size:calc(var(--btn-side) * .3);opacity:.65}html.touch-side .mobile-sound,html.touch-side .mobile-ad,.mobile-status{display:none}html.mobile-layout .mobile-status{display:block;position:fixed;top:0;left:0;right:0;height:var(--status-h);box-sizing:border-box;padding:8px 14px;background:#1a1a1a;color:#fff;font-size:15px;z-index:2;overflow-y:auto}html.mobile-layout .mobile-status h2{font-size:clamp(20px,3.5vh,28px);margin:4px 0;padding-right:76px}html.mobile-layout .mobile-status p,html.mobile-layout .mobile-status div{font-size:clamp(14px,2.3vh,18px);line-height:1.4;margin:4px 0;color:#fff}html.mobile-layout .layout-toggle{position:absolute;top:8px;right:10px;min-height:36px;padding:0 12px;border:2px solid #e60012;background:#5b6472;color:#fff;font:700 14px system-ui,sans-serif}html.mobile-layout .title-back{position:absolute;top:52px;right:10px;min-height:32px;padding:0 10px;border:2px solid #e60012;background:#5b6472;color:#fff;font:700 12px system-ui,sans-serif}html.mobile-layout #game:has(~.mobile-status){position:absolute;top:var(--status-h);height:min(56.25vw,calc(100% - var(--status-h) - var(--bar-h)))}.mobile-title{display:none}html:is(.mobile-layout,.touch-side) .mobile-title{display:flex;flex-direction:column;justify-content:flex-start;gap:8px;position:fixed;inset:12px;padding:14px;box-sizing:border-box;overflow-y:auto;background:#fff;color:#1a1a1a;border:4px solid #1a1a1a;border-radius:20px;z-index:3;text-align:center}html:is(.mobile-layout,.touch-side) .mobile-title>h1{margin-top:auto}html:is(.mobile-layout,.touch-side) .mobile-title>:last-child{margin-bottom:auto}html:is(.mobile-layout,.touch-side) .mobile-title h1{color:#e60012;font-size:26px;margin:0}html:is(.mobile-layout,.touch-side) .mobile-title p{font-size:14px}html:is(.mobile-layout,.touch-side) .mobile-title button.primary{background:#e60012}html:is(.mobile-layout,.touch-side) .mobile-title .title-lang-label{color:#e60012;font-weight:700;font-size:18px;margin:6px 0 0}html:is(.mobile-layout,.touch-side) .mobile-title .title-logo{display:block;width:132px;align-self:flex-start}html:is(.mobile-layout,.touch-side) .mobile-title .title-logo img{display:block;width:100%;height:auto;border-radius:6px}html:is(.mobile-layout,.touch-side) .mobile-title button.title-sound.title-volume{right:100px;background:#5b6472}html:is(.mobile-layout,.touch-side) .mobile-title button.title-sound{display:block;position:absolute;top:8px;right:8px;min-height:64px;width:84px;font-size:28px;z-index:1}html:is(.mobile-layout,.touch-side) .mobile-title button{min-height:96px;flex-shrink:0;border:0;border-radius:16px;background:#1a1a1a;color:#fff;font-size:24px}.volume-row{display:flex;align-items:center;gap:12px;margin:18px 0}.volume-row label{min-width:96px;text-align:left;font-weight:700}.volume-row input[type=range]{flex:1;height:40px;accent-color:#e60012;touch-action:pan-x}.volume-row output{width:44px;text-align:right;font-weight:700}.mobile-dialog .volume-row button{width:auto;flex:1;margin:0}html.mobile-layout .volume-btn{position:absolute;top:8px;right:124px;min-height:36px;width:44px;border:2px solid #e60012;background:#5b6472;color:#fff;font:700 18px system-ui,sans-serif}.volume-btn{display:none}.mobile-dialog-panel,.mobile-title{touch-action:pan-y;overscroll-behavior:contain}.mobile-dialog button[data-selected=true]{background:#b8000e;outline:3px solid #e60012;outline-offset:2px}html:is(.mobile-layout,.touch-side) .mobile-title select.title-lang-select{flex-shrink:0;min-height:72px;border:3px solid #1a1a1a;border-radius:16px;background:#fff;color:#1a1a1a;font-size:24px;padding:0 16px;text-align:center;text-align-last:center}html:is(.mobile-layout,.touch-side) .mobile-title .title-art{display:block;width:100%;aspect-ratio:16 / 9;object-fit:cover;border-radius:12px;flex-shrink:0}html:is(.mobile-layout,.touch-side) .mobile-title{overflow:hidden;gap:6px;justify-content:center}html:is(.mobile-layout,.touch-side) .mobile-title .title-art{flex:0 1 auto;min-height:0;max-height:34vh}html:is(.mobile-layout,.touch-side) .mobile-title button{min-height:clamp(44px,8.5vh,80px);font-size:clamp(16px,3vh,24px)}html:is(.mobile-layout,.touch-side) .mobile-title select.title-lang-select{min-height:clamp(44px,8vh,72px);font-size:clamp(16px,3vh,24px)}html:is(.mobile-layout,.touch-side) .mobile-title .title-lang-label{margin:0;font-size:clamp(12px,2.2vh,16px)}@media(orientation:landscape){html:is(.mobile-layout,.touch-side) .mobile-title{padding:10px 12px;align-items:flex-end;justify-content:flex-end}html:is(.mobile-layout,.touch-side) .mobile-title .title-art{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;border-radius:16px;z-index:0}html:is(.mobile-layout,.touch-side) .mobile-title>*{position:relative;z-index:1;width:40%}html:is(.mobile-layout,.touch-side) .mobile-title>:is(button,select){min-height:clamp(36px,7.5vh,56px)}html:is(.mobile-layout,.touch-side) .mobile-title>.title-art{position:absolute;width:100%;z-index:0}html:is(.mobile-layout,.touch-side) .mobile-title>.title-logo{position:absolute;left:12px;bottom:10px;width:96px;z-index:2}html:is(.mobile-layout,.touch-side) .mobile-title>button.title-sound{position:absolute;width:84px;z-index:2}html:is(.mobile-layout,.touch-side) .mobile-title>.title-lang-label{color:#fff;text-shadow:0 1px 3px #000}}@media(orientation:landscape){html:is(.mobile-layout,.touch-side) .mobile-title{--art-w: min(100vw, 177.78vh);--art-m: calc((100vw - var(--art-w)) / 2);inset:0;border:0;border-radius:0;background:#2f2f2f;padding:10px calc(var(--art-m) + 12px) 10px calc(var(--art-m) + 12px)}html:is(.mobile-layout,.touch-side) .mobile-title .title-art{position:absolute;top:0;bottom:0;left:var(--art-m);width:var(--art-w);height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;border-radius:0}html:is(.mobile-layout,.touch-side) .mobile-title>*{width:calc(var(--art-w) * .4)}html:is(.mobile-layout,.touch-side) .mobile-title>.title-art{width:var(--art-w)}html:is(.mobile-layout,.touch-side) .mobile-title>.title-logo{left:calc(var(--art-m) + 12px);bottom:10px;width:96px}html:is(.mobile-layout,.touch-side) .mobile-title button.title-sound{right:calc(var(--art-m) + 8px)}html:is(.mobile-layout,.touch-side) .mobile-title button.title-sound.title-volume{right:calc(var(--art-m) + 100px)}}.stage-select .mobile-dialog-panel{max-width:720px;display:flex;flex-direction:column;gap:8px;padding:14px}.stage-select h2{margin:0 0 4px;font-size:20px}.stage-select .stage-card{flex-shrink:0;display:block;text-align:left;min-height:0;padding:8px 12px;border:0;border-radius:12px;background:#5b6472;color:#fff;font-size:14px}.stage-select .stage-card:hover,.stage-select .stage-card:focus-visible{background:#b8000e}.stage-select .stage-card strong{display:block;font-size:16px}.stage-select .stage-card .done{float:right;color:#a8f0a8;font-size:13px}.stage-select .stage-card .desc{display:block;margin-top:2px;font-size:12px;opacity:.92}.stage-select .stage-back{flex-shrink:0;min-height:0;padding:10px;border:0;border-radius:12px;background:#1a1a1a;color:#fff;font-size:15px}.stage-select .mobile-dialog-panel{touch-action:none;-webkit-overflow-scrolling:touch}.stage-select .scroll-hint{position:sticky;bottom:-14px;flex-shrink:0;margin:-6px -14px -14px;padding:14px 0 6px;text-align:center;font-size:22px;line-height:1;color:#e60012;pointer-events:none;background:linear-gradient(#fff0,#fff 70%);animation:scroll-hint-bob 1.1s ease-in-out infinite}@keyframes scroll-hint-bob{0%,to{transform:translateY(0)}50%{transform:translateY(4px)}}
