/* The final cascade defines readable sizes; controls never move their hit area. */
#load-overlay{isolation:isolate;background:#08121e;overflow:hidden;text-align:left;align-items:flex-start;justify-content:flex-end;padding:clamp(28px,6vw,96px);gap:13px}
#load-overlay:before{content:"";position:absolute;inset:0;z-index:-2;background:none center/cover no-repeat;animation:load-camera 16s ease-in-out infinite alternate}
#load-overlay:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#040b16 0%,#071222c9 35%,#07122215 100%)}
#load-overlay .load-sigil{width:62px;height:75px;object-fit:contain;margin:0;filter:drop-shadow(0 0 13px #5dcfe345)}
#load-overlay h2{font-size:clamp(25px,3vw,42px);margin:0;color:#f7e7c2;letter-spacing:.12em}
#load-overlay p{font:15px/1.8 system-ui,sans-serif;margin:0;color:#cbdce5}
#load-overlay .load-track{width:min(680px,85vw);height:5px;margin:0;background:#b4c8d62e;overflow:hidden}
#load-overlay .load-track i{animation:none!important;width:0;display:block;height:100%;background:linear-gradient(90deg,#55b6cc,#f7d89e);transition:width .12s linear}
.load-meta{display:flex;align-items:center;justify-content:space-between;width:min(680px,85vw);gap:24px}.load-meta strong{font:24px/1 system-ui;color:#f1d6a5}.load-quote{max-width:610px;min-height:56px;animation:quote-breathe 6s ease-in-out infinite;color:#d5c6ad!important}
#loading-error{margin-top:15px;min-height:44px;font-size:15px}
@keyframes load-camera{from{transform:scale(1.015) translateX(-.5%)}to{transform:scale(1.065) translateX(.5%)}}
@keyframes quote-breathe{0%,100%{opacity:.66}50%{opacity:1}}

#app .title-brand .eyebrow{font-size:clamp(12px,1.05vw,19px);letter-spacing:.23em;color:#d5e5ee}
#app .title-footer button,#app .title-footer small,#app .title-footer a{font-size:12px}
#app .voyage-heading span{font-size:13px;line-height:1.5}#app .title-heroes button span,#app .voyage-modes button span{font-size:13px}
#app .voyage-panel{width:clamp(320px,30vw,480px)}
#app .page-sub,#app .gear-note,#app .modal-lead{font-size:15px;line-height:1.8}
#app .setting{font-size:15px;min-height:50px}#app .setting select{font-size:14px;min-height:38px}
#app .gear-card>span:not(.gear-icon),#app .gear-shop-card p,#app .achievement-card p{font-size:13px;line-height:1.65}
#app .gear-icon i{background-image:none;background-size:600% 2100%;inset:10%;background-repeat:no-repeat}
#app .gear-icon.large i{inset:11%}
#app .weapon-card img,#app .weapon-visual{object-fit:contain;background-size:contain;background-repeat:no-repeat;background-position:center}
#app .achievement-emblem svg{width:52px;height:52px;stroke-width:1.45;filter:drop-shadow(0 0 7px #b9955733)}
#app .achievement-card{min-height:150px}

#app.battle #hud{inset:0;--hud-text:14px}
#app.battle .hero-hud{top:64px;left:18px;width:370px;padding:15px 18px;gap:14px;min-height:142px;box-sizing:border-box}
#app.battle #hud .hero-hud:before{display:none}
#app.battle #hud .hero-hud,#app.battle #hud .objective,#app.battle #hud .combat-bottom{background:linear-gradient(115deg,#081727f2,#0b1d2be6);border:1px solid #af986b9c;border-image:none;box-shadow:inset 0 1px #edd49a25,0 5px 22px #0005;border-radius:3px}
#app.battle #hud .hero-hud{border-left:3px solid #c7ab75}
#app.battle .tiny{height:86px;width:72px;min-width:72px}
#app.battle #hud-portrait img{z-index:1;object-fit:cover;object-position:center;width:76%;height:76%;left:12%;top:12%;border-radius:50%}
#app.battle .hud-name{margin-bottom:7px;align-items:baseline;flex-wrap:wrap}
#app.battle .hud-name b{font-size:19px}#app.battle .hud-name small{font-size:12px}
#app.battle .hud-name b,#app.battle .hud-name small{line-height:1.3}
#app.battle .bar.health{height:25px}#app.battle .bar.resonance{height:19px;margin-top:7px}
#app.battle .bar span{font:600 14px/23px system-ui,sans-serif}#app.battle .bar.resonance span{font-size:12px;line-height:17px}
#app.battle #hud-weapon{font-size:12px;line-height:1.5;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:5px}
#app.battle .heat-track{height:6px;margin-top:7px;overflow:hidden;border-radius:3px;background:#4b485755}
#heat-status{display:block;font:12px/1.5 system-ui;color:#dcc7a6;margin-top:3px}
#app.battle .objective{left:50%;top:64px;transform:translateX(-50%);width:min(32vw,440px);padding:10px 14px;min-height:84px;box-sizing:border-box}
#app.battle .objective b{font-size:17px;line-height:1.6}#app.battle .objective>small{font-size:12px!important;line-height:1.6}
#app.battle #map-hud{right:18px;top:64px;width:280px;height:170px}#app.battle #hud #minimap{width:280px;height:150px;background:#071727e8;border:1px solid #ad966a99;box-shadow:inset 0 1px #f0d59d25;border-radius:3px}
#app.battle #mini-content{inset:9px}#app.battle #room-label{font-size:12px!important;line-height:1.8;top:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app.battle #mini-content .expedition-map{width:100%;height:100%;max-width:none;display:block;object-fit:fill}
#app.battle #boss-hud{top:177px;left:30%;width:40%;padding:10px 20px}#app.battle #boss-name{font-size:18px}#app.battle #boss-phase{font-size:13px}#app.battle #boss-hud .bar{height:18px}
#app.battle .combat-bottom{left:18px;right:18px;bottom:14px;gap:14px;min-height:70px;padding:9px 14px;box-sizing:border-box;justify-content:space-between}
#app.battle .key-row{gap:8px;display:flex}#app.battle .key-row button{min-height:47px;padding:7px 10px;font-size:13px;gap:5px}#app.battle .key-row .painted-icon{width:25px;height:25px}#app.battle .key-row kbd{font-size:12px;min-width:20px}
#app.battle .supply-hotbar{gap:7px}#app.battle .supply-hotbar button{width:44px;height:44px}#app.battle .supply-hotbar kbd,#app.battle .supply-hotbar b{font-size:12px}
#app.battle .battle-inventory{min-height:44px;font-size:14px;padding:8px 13px}
#app.battle .resource-row{font-size:14px;gap:15px}#app.battle .resource-row .morality{font-size:13px;display:flex;align-items:center;gap:6px}#app.battle .resource-row .painted-icon{width:24px;height:24px}#app.battle .resource-row button{font-size:13px;padding:9px}
#app.battle #hint{bottom:107px;font-size:16px;line-height:1.6;max-width:min(790px,64vw);padding:10px 17px}
#app.battle #ultimate-control{bottom:111px;right:20px;width:220px;min-height:73px}#app.battle #ultimate-control b{font-size:18px}#app.battle #ultimate-control small,#app.battle #ultimate-control em{font-size:13px}
#field-coach{position:absolute;left:24px;top:235px;width:360px;max-width:35vw;padding:17px 20px;border:1px solid #9cd5e66b;border-left:3px solid #a0e9f3;background:linear-gradient(110deg,#051625f5,#0d2235d9);box-shadow:0 10px 40px #0004;pointer-events:none}
#field-coach span{display:block;font:13px/1.5 system-ui;color:#9bdce6;letter-spacing:.08em}#field-coach b{display:block;font:500 17px/1.7 "SoulArt",serif;color:#f1eddf;margin:8px 0 12px}#field-coach em{font:600 15px/1.4 system-ui;font-style:normal;color:#f3d9a0}
#app .defeat-result .result-grid{margin:24px 0}#app .result-grid{gap:12px}#app .result-grid div{font-size:14px}#app .result-grid b{font-size:24px}
.story-intro{animation:story-camera 15s ease-in-out infinite alternate}.story-character{position:absolute;right:10%;bottom:24%;height:42vh;width:28vw;display:flex;align-items:end;justify-content:center;transition:opacity .25s,transform .5s;filter:drop-shadow(0 18px 22px #0009)}.story-character img{width:auto;height:100%;object-fit:contain;border-radius:40% 40% 8% 8%;mask-image:linear-gradient(#000 75%,transparent)}.speaker-right .story-character{transform:translateX(-4vw)}
@keyframes story-camera{from{background-position:48% center}to{background-position:52% center}}
@media(min-width:1700px){#app.battle .hero-hud{width:410px}#app.battle .hud-name b{font-size:21px}#app.battle .bar span{font-size:16px}#app.battle .key-row button{font-size:15px;min-height:53px}#app.battle .resource-row{font-size:16px}#app.battle #map-hud,#app.battle #minimap{width:320px}#app.battle #minimap{height:180px}}
@media(max-width:1200px){#app.battle .hero-hud{width:310px;padding:12px;gap:10px}#app.battle .tiny{width:55px;min-width:55px;height:72px}#app.battle .hud-name b{font-size:16px}#app.battle #map-hud,#app.battle #minimap{width:220px}#app.battle #minimap{height:122px}#app.battle .objective{width:31vw;left:53%;padding:8px}#app.battle .objective b{font-size:14px}#app.battle .key-row button{padding:7px;font-size:12px}#app.battle .key-row .painted-icon{display:none}#app.battle .resource-row{gap:8px;font-size:12px}#app.battle .resource-row .morality{font-size:12px}#app.battle .combat-bottom{gap:8px;padding:7px}#app.battle .supply-hotbar button{width:36px;height:36px}}
@media(max-width:800px), (max-height:570px) and (orientation:landscape){
 #app.battle .hero-hud{left:7px;top:7px;width:245px;min-height:97px;padding:8px;gap:8px}#app.battle .tiny{height:53px;min-width:42px;width:42px}#app.battle .hud-name{margin:0}#app.battle .hud-name b{font-size:14px}#app.battle .hud-name small{font-size:10px}#app.battle .bar.health{height:21px}#app.battle .bar.resonance{height:15px;margin-top:3px}#app.battle .bar span{font-size:12px;line-height:19px}#app.battle .bar.resonance span{font-size:10px;line-height:13px}#app.battle #hud-weapon{display:none}#heat-status{font-size:10px}#app.battle .heat-track{margin-top:4px;height:4px}
 #app.battle #map-hud{top:6px;right:7px;width:145px}#app.battle #minimap{width:145px;height:79px}#app.battle #mini-content{inset:6px}#app.battle #room-label{font-size:10px}
 #app.battle .objective{top:8px;left:calc(50% + 40px);width:27vw;min-height:65px;padding:5px}#app.battle .objective b{font-size:12px}#app.battle .objective>small{font-size:10px!important}#host-status,#mission-state,#checkpoint-status{display:none!important}
 #app.battle .key-row{display:none}#app.battle .combat-bottom{left:27%;right:25%;bottom:4px;min-height:34px;padding:3px;gap:5px}#app.battle .resource-row{font-size:11px;gap:5px}#app.battle .resource-row .morality{font-size:11px;gap:3px}#app.battle .resource-row .painted-icon{width:17px;height:17px}#app.battle .resource-row button{font-size:10px;padding:5px}#app.battle .supply-hotbar{display:none}#app.battle .battle-inventory{min-height:30px;padding:4px;font-size:11px}
 #app.battle #ultimate-control{width:165px;right:8px;bottom:125px;min-height:51px}#app.battle #ultimate-control b{font-size:13px}#app.battle #ultimate-control small,#app.battle #ultimate-control em{font-size:10px}#app.battle #ultimate-control kbd{font-size:10px}
 #app.battle #boss-hud{top:112px;left:32%;width:42%;padding:6px 9px}#app.battle #boss-name{font-size:13px}#app.battle #boss-phase{font-size:10px}
 #app.battle #hint{bottom:67px;font-size:12px;padding:6px 9px;max-width:50vw}
 #field-coach{left:12px;top:112px;width:260px;max-width:36vw;padding:9px 12px}#field-coach span{font-size:11px}#field-coach b{font-size:13px;margin:3px 0 6px;line-height:1.6}#field-coach em{font-size:12px}
 #app .touch-actions button{width:47px;height:47px}#app .touch-actions button span{font-size:10px}#app .touch-actions .fire{width:62px;height:62px}#app .touch-move button{width:63px;height:63px}
}
@media(max-width:540px) and (orientation:portrait){
 #app .voyage-panel{width:calc(100% - 24px)}#app .title-heroes button span,#app .voyage-modes button span{font-size:12px}#app .title-footer{flex-wrap:wrap;gap:10px}#app .title-footer button,#app .title-footer a,#app .title-footer small{font-size:10px}
 #app.battle .hero-hud{top:53px;width:calc(100% - 24px);left:12px;min-height:88px;height:88px;padding:6px 9px;gap:8px}#app.battle .tiny{height:51px;width:43px;min-width:43px}#app.battle .hud-name b{font-size:13px;line-height:16px}#app.battle .hud-name{margin:0 0 2px}#app.battle .bar.health{height:20px}#app.battle .bar.resonance{height:13px;margin-top:3px}#app.battle .bar.resonance span{line-height:11px;font-size:10px}#app.battle #hud-weapon{display:none!important}#app.battle .heat-track{height:4px;margin-top:2px}#app.battle #heat-status{font-size:10px;line-height:13px;margin:2px 0 0}
 #app.battle #world{top:146px;height:auto;aspect-ratio:16/9}
 #app.battle #map-hud{top:calc(146px + 56.25vw + 6px);width:125px;right:12px}#app.battle #minimap{width:125px;height:75px}#app.battle .objective{top:calc(146px + 56.25vw + 6px);left:12px;transform:none;width:58%;text-align:left;min-height:77px}#app.battle .objective b{font-size:13px}
 #field-coach{top:calc(146px + 56.25vw + 92px);left:14px;width:calc(100% - 28px);max-width:none;padding:11px 14px}#field-coach b{font-size:14px}
 #app.battle #ultimate-control{bottom:166px;right:12px;width:163px}#app.battle .combat-bottom{left:12px;right:12px;bottom:132px;min-height:32px}#app.battle #hint{bottom:211px;font-size:12px;max-width:88vw}
 #app.battle #boss-hud{top:calc(146px + 56.25vw - 36px);left:10%;width:80%;padding:3px 9px}#app.battle #boss-hud .bar{height:10px}#app.battle #boss-name{font-size:11px}
 #app .touch-actions{bottom:12px;right:9px;gap:5px}#app .touch-actions button{width:42px;height:42px}#app .touch-actions .fire{width:57px;height:57px}#app .touch-move{left:10px;bottom:30px}#app .touch-move button{width:55px;height:55px}
 #app.battle.coaching #map-hud,#app.battle.coaching .objective,#app.battle.coaching #ultimate-control,#app.battle.coaching #hint{display:none!important}
 #app.battle.coaching #field-coach{top:calc(146px + 56.25vw + 10px);padding:10px 14px;min-height:99px}
 #app .touch-actions{display:grid;grid-template-columns:repeat(3,40px) 50px;grid-template-rows:repeat(2,42px);gap:5px;width:185px}
 #app .touch-actions button{width:40px;height:42px}#app .touch-actions .fire{grid-column:4;grid-row:1 / span 2;width:50px;height:89px}
}
@media(max-height:570px) and (orientation:landscape){#app.touch-mode.battle #topbar{display:none}#app.touch-mode.battle #world{top:0;height:100%;bottom:0}#app.battle.coaching #ultimate-control{display:none}}
@media(prefers-reduced-motion:reduce){#load-overlay:before,.load-quote,.story-intro{animation:none}.story-character{transition:none}}

#app .weapon-tile .gear-icon{display:block;width:100%;height:132px;background:none}#app .weapon-tile .gear-icon i{inset:8% 12%}
@media(max-width:800px), (max-height:570px) and (orientation:landscape){#app.battle #hud #minimap{width:100%;height:79px}#app.battle #map-hud{height:100px}#app.battle #room-label{top:79px}#app.battle .battle-inventory{white-space:nowrap;min-width:42px}}
@media(max-width:540px) and (orientation:portrait){#app.battle #hud #minimap{height:75px}#app.battle #room-label{top:75px}}
