/* Hero garage follows the generated v10 landscape upgrade concept. */
.neon-game .management .training[hidden]{display:none!important}.neon-game .management .training{margin:0;display:grid;grid-template-columns:28% minmax(0,1fr);padding:12px;gap:16px;background:linear-gradient(120deg,#0b2950bb,#061224),url('game_assets_v1/backgrounds/mabini_night.png') center/cover;border:1px solid #36d7fb;border-radius:14px;overflow:hidden}
.hero-training-art{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate}.hero-training-art:before{content:"";position:absolute;inset:5% -15%;background:radial-gradient(ellipse,#26b8ff30,transparent 68%);z-index:-1}.hero-training-art>img{width:100%;height:280px;object-fit:contain;filter:drop-shadow(0 0 10px #0fcfff55)}.hero-training-art>strong{color:#ffe263;font-weight:950;font-style:italic;font-size:30px;line-height:1.2;text-shadow:2px 2px #113465}
.hero-training-content{min-width:0}.hero-training-content .panel-heading{margin:0 0 10px;color:#effcff}.hero-training-content .panel-heading h2{font-size:17px}.hero-training-content .panel-heading span{font-size:11px;color:#82c7e0}
.neon-game .training #upgrade-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hero-upgrade-card{position:relative;min-width:0;padding:10px;border:1px solid #43c8ee;border-radius:10px;background:linear-gradient(135deg,#103758,#071427);display:grid;grid-template-columns:42px minmax(0,1fr);gap:5px 8px;box-shadow:inset 0 0 13px #3dcfff13}.upgrade-icon{grid-column:1;grid-row:1/3;align-self:center;width:42px;height:42px;background:url('game_assets_v1/ui/runtime_v10/upgrade_icons.png') 0 0/200% 200%;filter:drop-shadow(0 0 5px #e6566133)}.stat-defense .upgrade-icon{background-position:100% 0}.stat-speed .upgrade-icon{background-position:0 100%}.stat-luck .upgrade-icon{background-position:100% 100%}
.hero-upgrade-label{grid-column:2;grid-row:1;min-width:0}.hero-upgrade-label h3{font-size:15px;line-height:1.2;color:#f6fbff}.hero-upgrade-label p{font-size:10px;line-height:1.35;color:#b5d8e9;margin-top:4px}.hero-upgrade-level{grid-column:2;grid-row:2;font-size:12px;color:#83dfff;font-weight:800}.hero-upgrade-level b{color:#ffe56e}.hero-upgrade-values{grid-column:1/-1;text-align:center;font-size:15px;font-weight:850;line-height:1.2}.hero-upgrade-values>span{color:#4fcde7;margin:0 8px}.hero-upgrade-values>strong{color:#fff3a5}.hero-upgrade-card>button{grid-column:1/-1;min-height:44px;border:1px solid #ffe878;border-radius:6px;background:linear-gradient(#ffe984,#ffc63a);color:#281a05;font-weight:900;font-size:13px;padding:5px;box-shadow:0 2px 0 #885113}.hero-upgrade-card>button:disabled{background:#243850;color:#8099b4;border-color:#365471;box-shadow:none}
.neon-game .training .weapon-equipped{padding:7px 9px;margin:10px 0 0;min-height:52px;border-radius:8px;align-items:center;gap:8px}.training .weapon-equipped img{width:34px;height:38px}.training .weapon-equipped>div{flex:1;min-width:0}.training .weapon-equipped strong{font-size:12px;margin:1px 0}.training .weapon-equipped span{display:none}.training-weapon-link{font-size:11px;min-height:44px;min-width:74px;border:1px solid #41c9ef;background:#0b2946;color:#a4ecff;border-radius:7px}
.management .collection-tabs{position:sticky;top:64px;z-index:3;background:#06152a;padding:5px 0;gap:5px;border-bottom:1px solid #265272}.management .collection-tabs .tab{flex:1;min-width:0;min-height:44px;border:1px solid #306080;border-radius:9px;padding:5px;font-size:13px;color:#bbdaed}.management .collection-tabs .tab.active{background:linear-gradient(140deg,#9b147e,#470e48);border-color:#ff75e5;color:white;box-shadow:0 0 9px #fc48d644,inset 0 0 10px #ff8de522}.management .collection-heading{padding:7px 0;min-height:0}.management .collection-heading p{font-size:11px}.management .save-status{margin:5px 0;text-align:right}.garage-coins{margin-left:auto;color:#ffe477;font-size:19px;white-space:nowrap}.management .drawer-top{gap:12px}.management .drawer-return{display:block}.management .drawer-return>button{width:100%;min-height:44px;background:linear-gradient(130deg,#571157,#941681);color:#ffeffc;border:1px solid #f080dd}
.hub-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hub-menu>button{min-height:44px;font-size:12px}.hub-battle-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 8px;padding-top:12px;border-top:1px solid #34516b}.hub-battle-actions>button{min-height:46px;border:1px solid #4f7899;background:#10243b;border-radius:8px;font-size:12px;color:#e6f7ff}.hub-battle-actions>#retreat-btn{border-color:#d8756a;color:#ffd5cc;background:#43232b}.hub-battle-actions>#retreat-btn:disabled{opacity:.4}
.neon-game .battle-controls{width:54px;min-width:54px;max-width:54px;padding:0;display:grid;grid-template-columns:1fr;right:82px;left:auto;gap:0}.neon-game .battle-controls>#battle-status{display:none}.neon-game .battle-controls>#speed-btn{width:54px;min-width:54px;min-height:44px;font-weight:900;font-size:13px}
.weapon-choice{position:relative}.weapon-tech-meter{display:block;height:3px;background:#123149;width:100%;border-radius:2px;overflow:hidden;margin-top:2px}.weapon-tech-meter i{display:block;width:0;height:100%;background:#72edff;transition:width .1s linear}.weapon-tech-description{padding:6px 7px;border-left:2px solid #dd6bee;background:#361c4433!important}.weapon-tech-description b{display:block;color:#f08de9;margin-bottom:3px}
.weapon-tech-banner{position:absolute;pointer-events:none;left:50%;bottom:91px;transform:translateX(-50%) skew(-6deg);z-index:14;max-width:90%;padding:5px 14px;color:#fff0a2;background:linear-gradient(90deg,#0a163400,#0a1634ea 14%,#0a1634ea 86%,#0a163400);border-bottom:2px solid #ffd751;font-weight:950;font-size:clamp(13px,2vw,22px);white-space:nowrap;text-shadow:0 1px 4px #050a19}.weapon-tech-banner[data-style=guard],.weapon-tech-banner[data-style=scan]{color:#a7f7ff;border-color:#4ee0f6}.weapon-tech-banner[data-style=chain],.weapon-tech-banner[data-style=sound]{color:#ffa1f6;border-color:#eb63eb}.weapon-tech-banner.show{animation:tech-name-in .22s cubic-bezier(.1,.8,.2,1)}
#hero-upgrade-pop{position:absolute;left:50%;top:30%;transform:translateX(-50%);pointer-events:none;white-space:nowrap;font-size:22px;font-weight:950;color:#fff19b;text-shadow:2px 2px #0c1730;z-index:2}.upgraded #hero-upgrade-pop{animation:upgrade-pop .8s ease-out both}.upgraded .hero-training-art>img{animation:upgrade-hero .4s ease-out}
@keyframes tech-name-in{from{opacity:0;transform:translateX(-65%) skew(-6deg) scale(.8)}to{opacity:1;transform:translateX(-50%) skew(-6deg) scale(1)}}@keyframes upgrade-pop{0%{opacity:0;transform:translate(-50%,20px) scale(.7)}20%{opacity:1;transform:translate(-50%,0) scale(1.1)}90%{opacity:1}100%{opacity:0;transform:translate(-50%,-25px)}}@keyframes upgrade-hero{40%{filter:drop-shadow(0 0 20px #5af1ff) brightness(1.25);transform:scale(1.025)}}
@media(min-width:640px) and (orientation:landscape){
 .landscape-play .arcade-grid>#weapon-quickbar{width:calc(100% - var(--crew-width) - 178px)}
 .landscape-play .battle-controls{width:54px;min-width:54px;max-width:54px;grid-template-columns:1fr;right:82px}
 .landscape-play .management{display:flex;flex-direction:column;overflow:hidden;padding:0 12px 8px;gap:0}.landscape-play .drawer-top{position:static;flex:none;margin:0;min-height:48px;padding:3px 0}.landscape-play .drawer-top small{display:none}
 .landscape-play .management .collection{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.landscape-play .management .collection-tabs{top:0;position:static;flex:none;min-height:49px}.landscape-play .management .collection-heading{flex:none;padding:3px 0}.landscape-play .management .collection-heading p{font-size:10px}
 .landscape-play #collection-content{overflow-y:auto;min-height:0;flex:1;padding-bottom:10px}.landscape-play .management .training{min-height:0;flex:1;overflow-y:auto;grid-template-columns:23% minmax(0,1fr);padding:8px;gap:10px}.landscape-play .hero-training-art>img{height:190px;max-height:80%}.landscape-play .hero-training-art>strong{font-size:24px}.landscape-play .hero-training-content .panel-heading{display:none}.landscape-play .hero-upgrade-card{padding:7px;gap:4px 6px;grid-template-columns:35px minmax(0,1fr)}.landscape-play .upgrade-icon{width:35px;height:35px}.landscape-play .hero-upgrade-label h3{font-size:13px}.landscape-play .hero-upgrade-label p{font-size:9px;margin-top:2px}.landscape-play .hero-upgrade-values{font-size:13px}.landscape-play .hero-upgrade-card>button{font-size:12px}
 .landscape-play .training .weapon-equipped{display:none}.landscape-play .management .save-status{font-size:9px;margin:3px 0}.landscape-play .management .drawer-return{position:static;flex:none;padding:4px 0 0;margin:0}.landscape-play .management .foot-stmt{display:none}.landscape-play .management .drawer-return>button{min-height:44px;margin:0}.landscape-play .training #upgrade-list{gap:7px}
}
@media(min-width:640px) and (orientation:landscape) and (max-height:430px){.landscape-play .hero-upgrade-label p{display:none}.landscape-play .hero-upgrade-card{grid-template-rows:16px 17px 44px;gap:3px 6px}.landscape-play .hero-upgrade-level{grid-column:2;grid-row:2;font-size:11px}.landscape-play .hero-upgrade-values{grid-column:1;grid-row:2;font-size:8px;white-space:nowrap}.landscape-play .hero-upgrade-values>span{margin:0 2px}.landscape-play .upgrade-icon{grid-row:1;width:20px;height:20px;justify-self:center}.landscape-play .hero-upgrade-card>button{grid-row:3;grid-column:1/-1}.landscape-play .hero-training-art>img{height:140px}.landscape-play .hero-training-art>strong{font-size:20px}.landscape-play .management .collection-heading{display:none}}
@media(max-width:639px){.hub-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.neon-game .management .training{grid-template-columns:1fr;padding:10px}.hero-training-art{height:135px;flex-direction:row;gap:10px}.hero-training-art>img{height:145px;width:130px}.hero-upgrade-label h3{font-size:12px}.hero-upgrade-label p{font-size:9px}.hero-upgrade-card{padding:7px;grid-template-columns:28px minmax(0,1fr);gap:5px}.upgrade-icon{width:28px;height:28px}.hero-upgrade-values{font-size:13px}.hero-upgrade-card>button{font-size:11px}.management .collection-tabs{top:58px;gap:3px}.management .collection-tabs .tab{font-size:11px}.management .collection-tabs .tab span{display:none}}
@media(prefers-reduced-motion:reduce){.weapon-tech-banner.show,.upgraded #hero-upgrade-pop,.upgraded .hero-training-art>img{animation:none}}
.motion-off .weapon-tech-banner.show,.motion-off .upgraded #hero-upgrade-pop,.motion-off .upgraded .hero-training-art>img{animation:none}
@media(min-width:640px) and (orientation:landscape) and (max-height:430px){
 .landscape-play .hero-upgrade-card{position:relative;grid-template-columns:24px minmax(0,1fr);grid-template-rows:14px 12px 44px;gap:2px 5px;padding:4px}
 .landscape-play .hero-upgrade-label{grid-column:2;grid-row:1}.landscape-play .hero-upgrade-label h3{font-size:11px;line-height:14px}
 .landscape-play .hero-upgrade-level{position:absolute;right:5px;top:4px;font-size:9px;line-height:14px;max-width:40%;white-space:nowrap}
 .landscape-play .hero-upgrade-values{grid-column:2;grid-row:2;font-size:10px;line-height:12px;justify-self:start}.landscape-play .upgrade-icon{grid-column:1;grid-row:1/3;width:24px;height:24px}.landscape-play .hero-upgrade-card>button{min-height:44px;font-size:11px}
 .landscape-play .management .training{padding:6px;gap:7px}.landscape-play .training #upgrade-list{gap:6px}.landscape-play .management .save-status{font-size:8px;margin:2px 0}
}
.neon-game .management{margin:0}
@media(min-width:640px) and (orientation:landscape){.landscape-play .management .save-status{line-height:1;margin:2px 0;font-size:8px}}
@media(min-width:640px) and (orientation:landscape) and (max-height:430px){.landscape-play .hero-upgrade-level{grid-area:auto;bottom:auto;top:4px;right:5px}.landscape-play .hero-upgrade-label h3{font-size:12px}}
@media(min-width:640px) and (orientation:landscape) and (max-height:430px){
 .landscape-play .hero-upgrade-card{padding:2px;gap:1px 5px}.landscape-play .training #upgrade-list{gap:4px}.landscape-play .hero-upgrade-level{top:2px;right:4px}.landscape-play .hero-training-art>img{height:134px}
}

/* v18: show the result of training before spending. */
#hero-batch-controls{display:flex;justify-content:flex-end;margin:0 0 6px}.upgrade-gain{display:block;color:#8df4d9;font-size:11px;line-height:1.6}.weapon-growth-preview{color:#a7f1dc!important}.hero-upgrade-values{white-space:normal}

#hero-batch-controls[hidden]{display:none}#hero-batch-controls{margin:0 0 0 12px;flex:none;align-items:center}#hero-batch-controls .batch-controls{margin:0}
@media(min-width:640px) and (orientation:landscape) and (max-height:430px){.upgrade-gain{display:inline;font-size:9px;line-height:12px;margin-left:6px}.landscape-play .hero-upgrade-values{white-space:nowrap}}
@media(max-width:639px){.management .drawer-top{flex-wrap:wrap}.management .drawer-top #hero-batch-controls{order:3;flex-basis:100%;justify-content:flex-end;margin:0}}
