:root{font-family:'Arial Rounded MT Bold','PingFang TC','Microsoft JhengHei',system-ui,sans-serif;color:#fff3ce;background:#202923;font-synthesis:none;font-variant-numeric:tabular-nums}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;min-width:320px;overflow:hidden}button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible{outline:3px solid #ef9b3b;outline-offset:5px}.hidden{display:none!important}#app,main{width:100%;height:100dvh;overflow:hidden}#app:fullscreen{width:100vw;height:100dvh;background:#202923}.game-button,.primary-button,.small-button,.icon-button,.text-button{border:0;color:inherit;font-weight:800}.game-button,.primary-button{background:#f7ca58;color:#273024;padding:13px 25px;clip-path:polygon(4% 0,96% 0,100% 50%,96% 100%,4% 100%,0 50%);letter-spacing:.07em;transition:filter .15s,transform .15s}.game-button:hover,.primary-button:hover{filter:brightness(1.13);transform:translateY(-2px)}.game-button:active,.primary-button:active{transform:translateY(2px)}.game-button span{margin-left:20px}.game-button.compact{padding:10px 18px;font-size:12px}.icon-button{background:transparent;width:34px;height:34px;border:2px solid currentColor;border-radius:50%;font-size:17px}.icon-button:hover{background:#fff4cb44}.small-button,.text-button{background:#253229b0;padding:8px 12px;letter-spacing:.03em}.eyebrow{font-size:11px;letter-spacing:.2em;color:#f6cc69;font-weight:900}.overlay{position:fixed;inset:0;background:#15251de8;z-index:30;display:grid;place-items:center;padding:22px}.overlay-card{width:min(560px,100%);max-height:calc(100dvh - 44px);overflow-y:auto;padding:30px 38px;border-top:5px solid #e6bc5b;border-bottom:5px solid #e6bc5b;background:#29362d;box-shadow:0 0 0 6px #15251d,0 0 0 8px #bba369}.overlay-card h2{font-size:clamp(26px,4vw,42px);margin:12px 0}.overlay-card p{font-size:14px;line-height:1.7;color:#e2dec2}.stat-line{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:10px 0;border-top:1px solid #fff2c32b}.stat-line b{color:#f5ce74}.overlay-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.overlay-card .primary-button{font-size:13px}.help-list{font-size:13px;line-height:1.8;padding-left:18px}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#f4ce77;color:#263329;padding:12px 22px;font-size:13px;font-weight:800;z-index:40;max-width:90vw;text-align:center}.health-track{width:130px;height:8px;background:#17271d55;overflow:hidden}.health-track i{display:block;height:100%;background:#bfdf86;transition:width .2s}.hud-item{display:flex;align-items:center;gap:8px}.hud-combo strong{opacity:.35}.hud-combo strong.active{opacity:1;color:#ffc757}.drum{user-select:none;-webkit-user-select:none}.scene-keyhint{z-index:5;position:absolute;bottom:10px;left:32px;color:#ddd5af;font-size:10px;letter-spacing:.08em;pointer-events:none}.scene-canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.scene-screen{position:fixed;inset:0;overflow:hidden}.scene-topbar{position:absolute;z-index:3;inset:max(22px,env(safe-area-inset-top)) 32px auto;display:flex;justify-content:space-between;align-items:center;color:#28342a}.scene-brand{font-size:29px;font-weight:950;letter-spacing:.16em}.scene-brand small{display:block;font-size:11px;letter-spacing:.4em;margin-top:3px}.scene-status{display:flex;gap:15px;align-items:center;font-size:12px;font-weight:800}.game-dialogue{position:absolute;left:0;right:0;bottom:0;min-height:175px;z-index:4;background:#202d25f2;border-top:4px solid #b4a35d;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 5% 37px}.dialogue-kicker{font-size:12px;color:#f1c762;letter-spacing:.15em}.dialogue-copy h2{font-size:clamp(23px,2.4vw,34px);margin:6px 0 7px}.dialogue-copy p{font-size:13px;color:#ddd7b9;margin:0;line-height:1.5}.dialogue-copy #save-status{display:block;color:#929d83;font-size:9px;margin-top:8px}@media(max-width:650px){.scene-topbar{inset:max(15px,env(safe-area-inset-top)) 14px auto;align-items:flex-start}.scene-brand{font-size:19px}.scene-brand small{font-size:8px}.scene-status{gap:8px;font-size:9px;flex-wrap:wrap;justify-content:flex-end;max-width:58%}.icon-button{width:27px;height:27px;font-size:13px}.game-dialogue{min-height:190px;padding:18px 20px 31px;gap:12px;align-items:flex-start;flex-direction:column}.dialogue-copy h2{font-size:22px;margin:5px 0}.dialogue-copy p{font-size:11px}.dialogue-kicker{font-size:10px}.scene-keyhint{left:20px;bottom:9px;font-size:8px;z-index:5}.game-button,.primary-button{font-size:12px;padding:10px 19px}.overlay-card{padding:20px}.stat-line{font-size:11px}.game-button.compact{font-size:10px;padding:9px 12px}}@media(orientation:landscape) and (max-height:550px){.game-dialogue{min-height:115px;padding:14px 25px 25px;flex-direction:row;align-items:center}.dialogue-copy h2{font-size:21px}.dialogue-copy p{font-size:11px}.scene-topbar{top:12px}.scene-brand{font-size:20px}.scene-keyhint{font-size:8px}.icon-button{width:25px;height:25px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

.pika-pattern{display:flex;align-items:center;gap:5px}.pika-beat{display:inline-flex;align-items:center;gap:3px;padding:4px 5px;background:#fff3b711;border-bottom:2px solid #ddd0a2;white-space:nowrap}.pika-beat img{width:29px;height:29px;object-fit:contain;image-rendering:pixelated}.pika-beat>span{display:grid;text-align:center;color:#f7e0a0;font-size:10px;font-weight:900;line-height:1.1}.pika-beat small{font-size:9px;margin-top:3px}.type-pikachu{border-color:#efd26c}.type-charmander{border-color:#ed9b6d}.type-squirtle{border-color:#8fcbd6}.type-bulbasaur{border-color:#a6ce8c}.command-instruction{align-items:center}.command-instruction>span:first-child{font-size:12px;white-space:nowrap}.install-button{border:2px solid #41563e;background:#f3d174;color:#293c2d;font:inherit;font-size:11px;font-weight:900;padding:7px 10px;white-space:nowrap;cursor:pointer}.install-button:disabled{opacity:.6}.install-instructions li{margin-bottom:9px}
@media(max-width:650px){.pika-pattern{gap:3px}.pika-beat{padding:3px;gap:2px}.pika-beat img{width:23px;height:25px}.pika-beat>span{font-size:8px}.pika-beat small{font-size:8px}.command-instruction>span:first-child{font-size:10px}.install-button{font-size:9px;padding:5px 7px}.scene-brand{font-size:17px;letter-spacing:.09em}.scene-status{gap:6px}.overlay-card{padding:18px 14px}}

.update-ready{position:fixed;right:18px;bottom:18px;z-index:45;border:2px solid #f5cf70;background:#293f31;color:#fff1c4;padding:12px 18px;font:inherit;font-size:13px;font-weight:800}.build-label{font-size:9px;color:#a9b397;letter-spacing:.03em;margin-left:12px}
@media(max-width:380px){.command-instruction{flex-direction:column;align-items:flex-start;gap:7px}.command-instruction .pika-pattern{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}.command-instruction .pika-beat{min-width:0;justify-content:center;padding:3px 2px;gap:2px}.command-instruction .pika-beat img{width:21px}.command-instruction .pika-beat>span{font-size:8px}}

/* Expedition result screen and its exportable score print. */
.overlay-card.victory-result{width:min(890px,100%);padding:24px 30px}.victory-result>h2{margin:7px 0 19px;font-size:31px}.victory-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:27px;align-items:start}.share-preview{display:grid;justify-items:center;gap:9px}.share-preview canvas{display:block;width:100%;height:auto;max-width:350px;box-shadow:0 8px 24px #10261d66}.share-preview>small{font-size:9px;letter-spacing:.12em;color:#a7b99c}.result-details{min-width:0}.result-details>p:first-child{margin:0 0 12px;font-size:12px}.result-details>p strong{font-size:20px;color:#f4df9d}.result-time{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 0 13px}.result-time>span{font-size:12px;color:#c1cba9}.result-time>b{font-size:31px;color:#ffdb7c;letter-spacing:.03em}.result-judgments{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:12px 0;border-top:1px solid #fff2c32b}.result-judgments>span{font-size:10px;color:#c4e498}.result-judgments>span:nth-child(2){color:#f3d281}.result-judgments>span:nth-child(3){color:#edb097}.result-judgments b{display:block;font-size:24px;margin-top:4px;color:#fff0be}.result-details .stat-line{font-size:11px;padding:8px 0}.result-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.result-share-actions>button{padding:11px 8px;font-size:12px}.result-details .share-status{font-size:10px;line-height:1.6;min-height:32px;margin:8px 0}.share-copy{width:100%;min-height:130px;background:#193b30;color:#fff0c5;border:1px solid #b9c792;padding:10px;font:inherit;font-size:12px;line-height:1.6;resize:vertical;user-select:text}.judgment-help{font-size:10px;color:#b8c7aa}.judgment-help summary{cursor:pointer;width:fit-content}.judgment-help p{font-size:11px;margin:7px 0}.result-navigation{gap:8px;margin-top:15px;align-items:center}.result-navigation .primary-button{font-size:11px;padding:10px 14px}.result-navigation .small-button{font-size:11px;padding:8px}.share-preview canvas:focus-visible{outline:2px solid #f6d878}
@media(max-width:650px){.overlay-card.victory-result{padding:17px 14px}.victory-result>h2{font-size:25px;margin:6px 0 14px}.victory-layout{grid-template-columns:minmax(0,1fr);gap:16px}.share-preview canvas{width:min(65vw,230px)}.share-preview>small{font-size:8px}.result-details>p:first-child{font-size:11px;margin-bottom:7px}.result-details>p strong{font-size:17px}.result-time{padding-bottom:9px}.result-time>b{font-size:28px}.result-share-actions>button{font-size:11px}.result-navigation{justify-content:space-between}.result-navigation .primary-button{font-size:10px}.result-details .stat-line{font-size:10px}.result-judgments b{font-size:22px}}
@media(orientation:landscape) and (max-height:550px){.victory-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:20px}.share-preview canvas{width:min(100%,230px)}.overlay-card.victory-result{padding:16px 22px}.victory-result>h2{font-size:24px;margin:5px 0 12px}}
.result-mini-stats{display:none}
@media(max-width:650px) and (orientation:portrait){.victory-layout{display:block}.share-preview{float:left;width:44%;max-width:145px;margin:0 13px 12px 0;gap:6px}.share-preview canvas{width:100%}.share-preview>small{font-size:7px;line-height:1.5;text-align:center;letter-spacing:.03em}.result-details>p:first-child{font-size:9px;line-height:1.5;margin-bottom:7px}.result-details>p strong{font-size:15px}.result-time{flex-direction:column;gap:2px;padding:5px 0 9px;align-items:flex-start}.result-time>span{font-size:9px}.result-time>b{font-size:clamp(17px,5.7vw,24px);letter-spacing:0}.result-judgments{gap:3px;padding:8px 0}.result-judgments>span{font-size:7px;letter-spacing:0}.result-judgments b{font-size:20px}.result-secondary-stats{display:none}.result-mini-stats{display:block;clear:both;font-size:10px;color:#e4d39d;padding:6px 0 1px;border-top:1px solid #fff2c32b}.result-share-actions{clear:both;margin-top:13px}.result-details .share-status{min-height:27px;margin:7px 0}.result-navigation{margin-top:12px}.victory-result>h2{margin-bottom:16px}}

/* Allow translated command names to keep their portraits and timing order. */
.command-instruction{flex-direction:column;align-items:flex-start;gap:7px}
.command-instruction .pika-pattern{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.command-instruction .pika-beat{justify-content:center;min-width:0}
@media(max-width:650px){.command-instruction .pika-beat{flex-direction:column;white-space:normal}.command-instruction .pika-beat>span{overflow-wrap:anywhere}}
html[lang="ja"]{font-family:'Hiragino Maru Gothic ProN','Hiragino Sans','Noto Sans JP',system-ui,sans-serif}

.result-social-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px;clear:both}
.social-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 8px;border:1px solid #d9bf78;background:#243d31;color:#fff1bf;font-size:13px;font-weight:900;letter-spacing:.02em}
.social-button:hover{background:#3a5140}.social-button:active{transform:translateY(2px)}
.social-instagram{border-color:#e7ad91;box-shadow:inset 0 -3px #96596e}.social-threads{border-color:#c3d2b1;box-shadow:inset 0 -3px #7b9077}
.social-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.social-button .social-dot{fill:currentColor;stroke:none}
.threads-mark{font:900 23px/1 system-ui,sans-serif}
.result-social-actions+.result-share-actions{margin-top:8px}
.platform-share-guide{border-left:3px solid #d4b46d;background:#1e342b;padding:11px 12px;margin:10px 0}
.platform-share-guide strong{font-size:12px;color:#f6d27d}.platform-share-guide p{font-size:11px;line-height:1.6;margin:6px 0 9px;color:#c8d3b4}
.platform-share-actions{display:flex;flex-wrap:wrap;gap:6px}.platform-share-actions .small-button{font-size:10px;padding:8px;text-decoration:none;line-height:1.4}
@media(max-width:650px){.result-social-actions{gap:7px;margin-top:12px}.social-button{font-size:12px}.platform-share-guide{padding:9px}.platform-share-guide p{font-size:10px}}
