@charset "UTF-8";
:root{font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;color:#fff;background:#0878ee;font-synthesis:none;--ink:#092959;--teal:#00c95b;--cream:#fff;--gold:#ffda14;--line:#ffffff40;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}button,select,input{font:inherit}button{color:inherit;cursor:pointer;border:0;background:transparent;-webkit-tap-highlight-color:transparent;font-weight:850}button:disabled{cursor:default;opacity:.5}button:focus-visible,select:focus-visible,input:focus-visible{outline:4px solid #ffeb00;outline-offset:4px}button:active:not(:disabled){transform:translateY(3px)}svg{width:24px;height:24px;vertical-align:middle;flex:none}h1,h2,h3,p{margin:0}button,select{min-height:44px}button svg{pointer-events:none}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#app{position:relative;width:100%;height:100%;isolation:isolate}#scene{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#ui{position:relative;height:100%}.loading{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;font-size:32px;font-weight:950;gap:12px}.loading span{font-size:15px}
.home-screen,.result-screen{height:100%;max-width:450px;margin:0 auto;padding:calc(10px + var(--safe-top)) 22px calc(14px + var(--safe-bottom));display:flex;flex-direction:column;gap:10px;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:none}
.topbar{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:44px;gap:10px}.brand{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:900;text-shadow:0 2px 0 #07317b}.brand-mark{height:23px;width:23px;display:grid;place-items:center;border:2px solid #fff;border-radius:8px;background:#ffce00;color:var(--ink);font-size:17px;line-height:1;text-shadow:none}.language-button{font-size:12px;width:44px;min-height:44px;border:3px solid #fff;border-radius:15px;background:#145ace;box-shadow:0 4px 0 #083687}
.title{flex:none;text-align:center;position:relative;padding:5px 0 4px}.title h1{font-family:"Arial Rounded MT Bold","Hiragino Kaku Gothic ProN",system-ui,sans-serif;font-size:58px;line-height:1.04;font-weight:1000;letter-spacing:-3px;transform:rotate(-5deg);color:#ffde10;-webkit-text-stroke:7px #082962;paint-order:stroke fill;text-shadow:0 6px 0 #092959,3px 9px 0 #0044b3}.title h1 span{display:block;color:#fff;letter-spacing:-3px;font-size:1.03em}html[lang="en"] .title h1{font-size:62px;line-height:.9}
#hero-space{min-height:0;flex:1;position:relative}
.course-card{flex:none;display:grid;grid-template-columns:1fr 48px;gap:2px 8px;align-items:center;background:#0b46b2;border:3px solid #fff;border-radius:18px;padding:7px 10px 7px 14px;box-shadow:0 5px 0 #052978;min-height:66px}.course-eyebrow{font-size:13px;letter-spacing:1.3px;font-weight:950;color:#ffe628}.course-name{font-size:13px;font-weight:850;line-height:1.5}.course-open{min-height:44px;min-width:44px;border:2px solid #6ebdff;background:#087be5;border-radius:12px;grid-column:2;grid-row:1/3;display:flex;align-items:center;justify-content:center}.course-stars{display:inline-flex;gap:2px;margin-left:6px;vertical-align:middle}.star{color:#244e94;width:17px;height:17px;filter:drop-shadow(0 1px 0 #082962)}.star.filled{color:#ffdf10}
.primary{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:64px;border:3px solid #fff;border-radius:22px;background:linear-gradient(#29eb5d 0 48%,#06bd45 49%);box-shadow:0 6px 0 #00672f,0 9px 0 #062c6966,inset 0 3px 0 #91ff9c;font-size:23px;font-weight:950;flex:none;margin:1px 0 5px;text-shadow:0 2px 0 #027b33}.primary:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #00672f}.primary svg{width:32px;height:32px;filter:drop-shadow(0 2px 0 #007333)}.secondary{border:3px solid #fff;background:linear-gradient(#168dff 0 48%,#075dcc 49%);border-radius:15px;padding:9px 12px;min-height:48px;font-size:14px;box-shadow:0 4px 0 #073181;text-shadow:0 2px 0 #0747a1}
.footer-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;flex:none;padding-top:3px}.footer-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;border-radius:18px;min-height:64px;background:#1252c5;border:3px solid #fff;box-shadow:0 5px 0 #072e84;padding:5px 2px}.footer-actions button:first-child{background:#8245ed;box-shadow:0 5px 0 #422497}.footer-actions svg{width:27px;height:27px}.storage-notice{font-size:10px;line-height:1.5;color:#fff;background:#ae243c;padding:7px 9px;border:2px solid #fff;border-radius:10px;flex:none}
.hud{position:absolute;z-index:2;top:calc(10px + var(--safe-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:630px;margin:0 auto;display:flex;flex-direction:column;gap:9px}.hud-top{display:grid;grid-template-columns:auto minmax(50px,1fr) 48px;gap:12px;align-items:center}.crew-badge{display:flex;gap:5px;align-items:center;min-height:53px;padding:5px 9px;background:#087afa;border:3px solid #fff;border-radius:18px;box-shadow:0 4px 0 #07348c}.crew-badge svg{width:24px;height:27px;color:#ffdf00}.crew-number{display:block;font-family:"Arial Rounded MT Bold",system-ui,sans-serif;line-height:1.1;font-size:31px;font-weight:950;font-variant-numeric:tabular-nums;text-shadow:0 3px 0 #083b91;transform-origin:center}.crew-number.growing{color:#ffed00}
.route-badge{align-self:center;min-width:0}.route-label{display:flex;align-items:center;justify-content:space-between;color:#fff;font-size:18px;font-weight:950;line-height:1.3;text-shadow:0 2px 0 var(--ink);-webkit-text-stroke:3px var(--ink);paint-order:stroke fill}.route-label span{font-size:23px;color:#ffea00}.progress-track{height:11px;border:2px solid #fff;box-shadow:0 2px 0 #09295950;border-radius:12px;background:#173d89;overflow:hidden}.progress-track>span{display:block;width:0;height:100%;background:#ffdc16;border-radius:8px}
.icon-button{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:46px;border:3px solid #fff;border-radius:16px;background:#1164da;box-shadow:0 4px 0 #07348c}.battle-bar{background:#e8223c;border:3px solid #fff;box-shadow:0 4px 0 #9b1431;border-radius:15px;padding:5px 10px 8px;display:flex;flex-direction:column;gap:4px}.battle-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:950;text-shadow:0 2px 0 #9c1538}.battle-line>span{overflow-wrap:anywhere}.enemy-number{font-size:22px;white-space:nowrap}.enemy-track{height:7px;background:#841b3c;border-radius:5px;overflow:hidden}.enemy-track span{display:block;background:#ffdf15;height:100%}
.phase-message{position:absolute;z-index:1;left:50%;transform:translate(-50%,-50%) rotate(-4deg);text-align:center;max-width:calc(100% - 24px);width:max-content;pointer-events:none}.phase-message h2{font-family:"Arial Rounded MT Bold",system-ui,sans-serif;font-size:43px;line-height:1.2;font-weight:1000;color:#ffde00;-webkit-text-stroke:6px #092959;paint-order:stroke fill;text-shadow:0 5px 0 #092959;white-space:nowrap}.phase-message p{font-size:14px;font-weight:950;margin-top:5px;-webkit-text-stroke:4px #092959;paint-order:stroke fill}.phase-message p:empty{display:none}.phase-message[data-kind="lose"] h2{font-size:34px;color:#ff4650}.phase-message[data-kind="encounter"] h2{color:#ffde14}.phase-message[data-kind="cleared"] h2{color:#fff}
.result-screen{gap:10px}.result-heading{text-align:center;flex:none}.result-eyebrow{font-size:12px;letter-spacing:1px;font-weight:900;color:#c9ecff;margin-bottom:5px}.result-heading h1{font-size:29px;letter-spacing:-1px;line-height:1.3;font-weight:1000;color:#ffdf13;-webkit-text-stroke:5px #092959;paint-order:stroke fill;text-shadow:0 4px 0 #092959}.result-heading p{font-size:12px;color:#fff;margin-top:5px;line-height:1.5;font-weight:800;text-shadow:0 1px 0 var(--ink)}.result-art{flex:1;min-height:0;max-height:170px}.result-stars{display:flex;justify-content:center;gap:12px;margin-top:-3px}.result-stars svg{width:38px;height:38px}.result-stats{background:#0748bb;border:3px solid #fff;border-radius:22px;padding:10px 16px;text-align:center;flex:none;box-shadow:0 5px 0 #07317e}.survivor-label{font-size:10px;font-weight:850;letter-spacing:1px;color:#c7f0ff}.survivors{font-size:41px;line-height:1.25;font-weight:1000;color:#ffdd16;text-shadow:0 3px 0 #092959;font-family:"Arial Rounded MT Bold",system-ui,sans-serif}.survivors small{font-size:13px;font-weight:700;margin-left:5px;color:#fff}.stats-row{display:flex;justify-content:space-between;gap:8px;margin-top:6px;padding-top:6px;border-top:1px solid #ffffff40;font-size:10px}.stats-row strong{margin-left:5px;font-size:14px;color:#ffef77}.result-note{font-size:12px;line-height:1.5;text-align:center;flex:none}.progress-note{display:flex;flex-direction:column;gap:2px}.progress-note>strong{font-size:12px}.progress-note>span{font-size:10px;color:#cff3ff}.progress-note.new-unlock>strong{color:#ffef00}.progress-note:has(strong:empty){display:none}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:none}.save-status{font-size:10px;line-height:1.4;text-align:center;min-height:14px;flex:none;color:#e2f4ff}.save-status.error{color:#ffeb88}.save-retry{font-size:12px;text-decoration:underline;min-height:36px;padding:0 8px}
dialog{position:fixed;margin:auto;max-width:min(440px,calc(100vw - 28px));width:100%;max-height:calc(100dvh - 34px - var(--safe-top) - var(--safe-bottom));padding:0;border:4px solid #fff;border-radius:26px;background:#1254bf;color:#fff;box-shadow:0 8px 0 #062966,0 0 0 4px #092959;overflow:hidden}dialog::backdrop{background:#052048b8;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 10px;background:#0c3d98;border-bottom:3px solid #ffffff40}.dialog-head h2{font-size:20px;line-height:1.3;font-weight:950}.dialog-head .icon-button{background:#f33349;box-shadow:0 3px 0 #9d1236;min-height:44px;min-width:44px}.dialog-body{padding:16px;overflow-y:auto;max-height:calc(100dvh - 143px - var(--safe-top) - var(--safe-bottom));overscroll-behavior:none}.dialog-body p{font-size:13px;line-height:1.8}.dialog-body h3{font-size:14px;margin:20px 0 6px;color:#ffde20}.dialog-body h3:first-child{margin-top:0}.dialog-actions{display:flex;flex-direction:column;gap:14px;margin-top:16px}.dialog-actions .primary{font-size:19px;min-height:56px}.dialog-actions .secondary{width:100%}.pause-art{display:flex;justify-content:center;margin:4px 0 12px}.pause-art canvas{width:84px;height:auto;transform:rotate(-6deg)}.dialog-note{font-size:11px!important;color:#c6e4ff;text-align:center;margin-top:12px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:63px;border-bottom:1px solid var(--line);font-size:14px;font-weight:800}.settings-row input{width:25px;height:25px;accent-color:#ffda14;cursor:pointer}.settings-row select{color:#fff;background:#063b92;border:2px solid #fff;border-radius:12px;padding:8px;font-size:13px;max-width:150px}.setting-error{color:#ffdf8b;font-size:11px!important;margin-top:12px}
.world-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.5px;font-weight:900;margin:6px 0 10px;color:#d1edff}.world-heading:not(:first-child){margin-top:22px}.course-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.course-button{border:3px solid #fff;border-radius:17px;padding:9px 2px;background:#167cf0;box-shadow:0 4px 0 #063785;font-size:25px;font-weight:950;display:flex;flex-direction:column;align-items:center;gap:5px;min-height:77px}.course-button.selected{background:#00bd58;border-color:#fff574;box-shadow:0 4px 0 #006c46}.course-button .course-stars{margin:0}.course-button .star{width:12px;height:12px}.course-button:disabled{background:#385b97;opacity:.65;box-shadow:0 4px 0 #092959}.course-button:disabled svg{width:17px;height:17px}.course-goal{font-size:11px!important;text-align:center;margin-top:16px}
.workshop-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px;padding:7px 9px;background:#0b378e;border:2px solid #70baff;border-radius:12px}.workshop-summary>div{display:flex;flex-direction:column;gap:2px}.workshop-summary span{font-size:10px;font-weight:800;color:#cbf3ff}.workshop-summary strong{font-size:21px;color:#ffdc14}.workshop-summary small{font-size:11px;font-weight:700;color:#fff}.workshop-note{font-size:11px!important;line-height:1.5!important;margin-bottom:8px}dialog:has(.bot-grid) .dialog-body{padding:8px 10px 12px}.bot-grid{display:grid;grid-template-columns:1fr;gap:5px}.bot-card{border:2px solid #86d1ff;background:#1265bf;border-radius:10px;padding:0 9px 0 3px;display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:56px}.bot-card canvas{display:block;width:54px;height:48px;object-fit:contain}.bot-info{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}.bot-info>strong{font-size:13px;font-weight:950;text-shadow:0 2px 0 #074594;overflow-wrap:anywhere}.bot-rarity{font-size:10px;font-weight:950;border:1px solid #bcd6ff;background:#16458e;border-radius:5px;padding:3px 5px;color:#d2e6ff;flex:none}.bot-card[data-rarity="R"] .bot-rarity{color:#5cffff;border-color:#5cffff}.bot-card[data-rarity="SR"] .bot-rarity{color:#ffb9ff;border-color:#ec85ff;background:#7632a6}.bot-card[data-rarity="SSR"] .bot-rarity{color:#ffed69;border-color:#ffe333;background:#88561a}.bot-status{font-size:12px;color:#ffdf14;font-weight:950;min-width:42px;text-align:right}.bot-card.locked{background:#244a87;border-color:#537aaf}.bot-card.locked .bot-status{color:#e5f5ff}.course-grid{grid-template-columns:repeat(var(--columns,4),minmax(0,1fr))}.course-pages{display:flex;justify-content:space-between;align-items:center;padding:0 4px 5px}.course-pages button{width:48px;font-size:31px;border-radius:12px;background:#1379ec}.boss-course>span{color:#ffe840}
#toast{position:absolute;z-index:5;bottom:calc(20px + var(--safe-bottom));left:50%;transform:translateX(-50%);background:#092959;color:#fff;padding:12px 16px;border:2px solid #fff;border-radius:14px;font-size:12px;max-width:calc(100% - 30px);width:max-content;pointer-events:none}
@media(max-height:590px){.home-screen,.result-screen{padding-top:calc(5px + var(--safe-top));padding-bottom:calc(9px + var(--safe-bottom));gap:7px}.title{padding:3px 0}.title h1{font-size:45px;line-height:1.02;-webkit-text-stroke-width:6px}html[lang="en"] .title h1{font-size:51px}.course-card{padding:5px 8px 5px 12px;min-height:60px}.course-eyebrow{font-size:11px}.course-name{font-size:12px}.primary{min-height:55px;font-size:21px}.footer-actions button{min-height:57px;font-size:10px}.footer-actions svg{width:23px;height:23px}.result-screen{gap:6px}.result-heading h1{font-size:25px}.result-stats{padding:7px 14px}.survivors{font-size:34px}.result-stars svg{width:28px;height:28px}.result-heading p{margin-top:3px}.result-eyebrow{margin-bottom:3px}.progress-note>strong{font-size:11px}.progress-note>span{font-size:9px}.result-note{font-size:11px}.stats-row{margin-top:4px;padding-top:4px}.phase-message h2{font-size:37px}.phase-message[data-kind="lose"] h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}html[data-reduced="true"] button:active{transform:none}

.phase-message[data-kind="recruit"]{transform:translate(-50%,-50%)}.phase-message[data-kind="recruit"] h2{font-size:clamp(25px,7vw,36px);color:#fff}.phase-message[data-kind="recruit"] p{color:#ffeb31;font-size:17px}.bot-card.locked .bot-status{font-size:10px;white-space:nowrap}
