/* V0.4 Fix 7 — mobile QC + stability polish */
:root{--tap-target:44px}
button,.btn,.nav-item,.back-link,.icon-btn,.auto-choice,.v04-stage-node,[role="button"]{
  min-height:var(--tap-target);
}
.bottom-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}
.v04-stage-rail{
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  scroll-padding-inline:calc(50% - 27px);
  overscroll-behavior-x:contain;
}
.v04-fix5-panel,.v04-fix5-battle,.v04-formation-panel{
  scroll-margin-top:max(8px,env(safe-area-inset-top));
  scroll-margin-bottom:calc(88px + env(safe-area-inset-bottom));
}
.auto-hunt-overlay{
  min-height:100dvh;
  height:100dvh;
}
.auto-hunt-overlay .auto-hunt-dialog{
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top)) - max(24px,env(safe-area-inset-bottom)));
}
@media(max-width:520px){
  .app-shell{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
  .v04-campaign-head{position:relative}
  .v04-stage-node{flex-basis:56px;width:56px}
  .v04-stage-detail>.btn-block{min-height:48px}
  .auto-hunt-actions .btn{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}

/* V0.4 Final RC — Cộng Xu shop controls */
.wallet-main{display:flex;align-items:center;justify-content:space-between;gap:14px}
.wallet-main>div{display:grid;gap:2px}
.add-xu-btn{flex:0 0 auto;min-height:42px;border:1px solid rgba(101,229,189,.28);border-radius:13px;background:rgba(101,229,189,.12);color:var(--accent);padding:9px 13px;font-weight:900;font-size:11px;touch-action:manipulation}
.topup-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 14px}
.topup-options button{min-height:58px;border:1px solid var(--line);border-radius:14px;background:rgba(15,38,56,.92);color:var(--text);display:grid;place-items:center;gap:1px;padding:8px;touch-action:manipulation}
.topup-options button span{font-weight:900;font-size:13px;color:var(--accent)}
.topup-options button b{font-size:10px;color:var(--muted)}
@media(max-width:420px){.add-xu-btn{padding-inline:10px}.topup-options{gap:6px}.topup-options button{min-height:54px}}
