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)}}.tro-logos .mobile-dialog-panel{max-width:720px}.tro-logos h2{margin:0 0 6px;font-size:20px}.tro-logos p{margin:0 0 10px;font-size:14px}.tro-logos .tro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:12px}.tro-logos figure{margin:0;padding:8px;border:2px solid #d4d8de;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:6px}.tro-logos figure img{max-width:100%;height:44px;object-fit:contain}.tro-logos figcaption{font-size:11px;color:#5b6472;text-align:center}.tro-logos .tro-link{min-height:0;margin-bottom:8px;padding:8px 12px;border:0;background:transparent;color:#0b57d0;text-decoration:underline;font-size:14px}.mobile-title .title-utility{display:flex;gap:8px;flex-shrink:0}.mobile-title .title-utility button{flex:1 1 0}.share-panel .mobile-dialog-panel{max-width:420px;display:flex;flex-direction:column;gap:8px;padding:14px}.share-panel h2{margin:0 0 4px;font-size:20px}.share-panel .share-btn{min-height:0;padding:12px;border:0;border-radius:12px;color:#fff;font-size:16px;font-weight:700}.share-panel .share-btn:focus-visible{outline:3px solid #e60012;outline-offset:2px}.share-panel .share-back{min-height:0;padding:10px;border:0;border-radius:12px;background:#1a1a1a;color:#fff;font-size:15px}.share-icons{display:flex;gap:8px;align-items:center;justify-content:center}.share-icon{width:var(--share-size, 38px);height:var(--share-size, 38px);min-height:0;padding:0;border:2px solid rgba(255,255,255,.85);border-radius:50%;color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:calc(var(--share-size, 38px) * .5);line-height:1}.share-icon svg{width:56%;height:56%}.share-icon .share-glyph{font-weight:800;font-size:calc(var(--share-size, 38px) * .45)}.share-icon .share-glyph.small{font-size:calc(var(--share-size, 38px) * .28);letter-spacing:-.5px}.share-icon.share-copy{background:#5b6472}.share-bar{position:fixed;z-index:6;transform:translate(-50%,-50%)}.mobile-title .title-utility .share-icons{flex:1 1 0}.mobile-title .title-utility .share-icon{--share-size: clamp(32px, 6.5vh, 46px);width:var(--share-size);height:var(--share-size);flex:0 0 auto}.stage-select .mobile-dialog-panel{scrollbar-width:none;-ms-overflow-style:none}.stage-select .mobile-dialog-panel::-webkit-scrollbar{display:none}.stage-select .stage-card:hover,.stage-select .stage-card:focus{background:#122d6e;outline:3px solid #d2aa50;outline-offset:-3px}.stage-select .stage-back:hover,.stage-select .stage-back:focus{background:#122d6e;outline:3px solid #d2aa50;outline-offset:-3px}#game-ad{position:fixed;left:0;right:0;bottom:0;height:var(--game-ad-h, 90px);z-index:1;background:#2f2f2f;overflow:hidden}#game-ad.preview{display:flex;align-items:center;justify-content:center;border-top:1px dashed #8a93a0;color:#8a93a0;font:12px system-ui,sans-serif}html.has-game-ad #game{height:calc(100dvh - var(--game-ad-h, 90px))}html.has-game-ad.touch-side .mobile-pad{bottom:calc(var(--game-ad-h, 90px) + 24px)}html.has-game-ad.touch-side .mobile-top{bottom:calc(var(--game-ad-h, 90px) + 34px)}.log-panel{z-index:20}.log-panel .mobile-dialog-panel{max-width:640px;text-align:left;scrollbar-width:none;-ms-overflow-style:none;touch-action:none}.log-panel .mobile-dialog-panel::-webkit-scrollbar{display:none}.log-panel h2{margin:0 0 10px;font-size:18px}.log-entry{padding:8px 10px;margin-bottom:8px;border-left:4px solid #e60012;background:#f3f4f6;border-radius:6px}.log-entry h3{margin:0 0 4px;font-size:14px;color:#1a1a1a}.log-entry p{margin:0;font-size:13px;line-height:1.5;white-space:pre-line;color:#1a1a1a}.log-choice{margin-top:6px;font-size:13px;font-weight:700;color:#0b3b8f}.log-empty{color:#5b6472;font-size:14px}.log-panel .log-back{width:100%;margin-top:4px;min-height:0;padding:10px;border:0;border-radius:12px;background:#1a1a1a;color:#fff;font-size:15px}.mobile-dialog-panel .log-link{float:right;min-height:0;margin:0 0 6px 8px;padding:4px 8px;border:0;border-radius:8px;background:#5b6472;color:#fff;font-size:12px}html.touch-side .share-bar-title,html.mobile-layout .share-bar-title,html:not(.on-title) .share-bar-title{display:none!important}.mobile-title .title-utility{gap:6px;flex-wrap:nowrap}.mobile-title .title-utility>button{flex:1 1 auto;min-width:0;padding-left:8px;padding-right:8px}.mobile-title .title-utility .share-icons{flex:0 0 auto;gap:6px}.mobile-title .title-utility .share-icon{--share-size: clamp(30px, min(6.5vh, 8.2vw), 44px)}html:is(.mobile-layout,.touch-side) .mobile-title .title-utility .share-icon{width:var(--share-size);height:var(--share-size);min-height:var(--share-size);flex:0 0 auto;padding:0;border-radius:50%}.mobile-dialog-panel>*{flex-shrink:0}.share-panel .share-btn{flex-shrink:0;line-height:1.3}@media(pointer:coarse){.mobile-dialog-panel{scrollbar-width:none;-ms-overflow-style:none}.mobile-dialog-panel::-webkit-scrollbar{display:none}}.clear-ad{position:fixed;z-index:5;overflow:hidden;visibility:hidden;background:#1a1a1a59;border-radius:6px}.clear-ad.off{display:none!important}.clear-ad.preview{display:flex;align-items:center;justify-content:center;border:1px dashed #8a93a0;color:#cfd6de;font:12px system-ui,sans-serif}.tro-logos .mobile-dialog-panel{max-width:860px;padding:22px 24px}.tro-logos h2{font-size:26px;margin:0 0 10px}.tro-logos p{font-size:18px;line-height:1.55;margin:0 0 14px}.tro-logos .tro-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:16px}.tro-logos figure{padding:12px 10px;gap:8px}.tro-logos figure img{height:60px}.tro-logos figcaption{font-size:15px;line-height:1.35;color:#3b4452}.tro-logos .tro-link{font-size:18px;padding:10px 14px;margin-bottom:12px}.tro-logos .tro-next{font-size:20px;padding:14px}@media(max-width:700px),(max-height:560px){.tro-logos.mobile-dialog{padding:8px}.tro-logos .mobile-dialog-panel{padding:10px 12px;border-width:3px}.tro-logos h2{font-size:17px;margin:0 0 6px}.tro-logos p{font-size:12.5px;line-height:1.4;margin:0 0 8px}.tro-logos .tro-grid{grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:6px;margin-bottom:8px}.tro-logos figure{padding:5px 4px;gap:3px;border-width:1px}.tro-logos figure img{height:clamp(18px,4.5vh,30px)}.tro-logos figcaption{font-size:9.5px;line-height:1.2}.tro-logos .tro-link{font-size:12.5px;padding:4px 8px;margin:0 0 4px}.tro-logos .tro-next{font-size:15px;padding:8px;min-height:40px;margin-top:4px}}[dir=rtl] .stage-select .stage-card{text-align:right}[dir=rtl] .stage-select .stage-card .done{float:left}[dir=rtl] .log-panel .mobile-dialog-panel{text-align:right}.share-icon.share-logo{background:transparent;border:0;border-radius:0;overflow:visible}.share-icon.share-logo img{width:100%;height:100%;display:block;object-fit:contain}.share-icon.share-logo-glyph{background:#fff}.share-icon.share-logo-glyph img{width:66%;height:66%;display:block;object-fit:contain}@media(pointer:coarse){.share-icon.share-line{width:max(var(--share-size, 38px),40px);height:max(var(--share-size, 38px),40px);flex:0 0 auto}}.share-panel .share-panel-icons{--share-size: 52px;flex-wrap:wrap;gap:12px;padding:8px 0}.share-panel .share-icon:focus-visible{outline:3px solid #e60012;outline-offset:2px}.share-panel .share-panel-icons{width:100%}.mobile-dialog.share-panel .share-panel-icons button.share-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--share-size);height:var(--share-size);min-height:0;margin:0;padding:0;flex:0 0 auto}.share-bar:not(.share-bar-title){background:#000000e6;padding:6px 16px;border-radius:999px;box-shadow:0 2px 8px #00000073}
