/* Tank Upgrade Arena (2D canvas, arcade-kit stage) */
#game-root .sim-controls-help { margin-top: 14px; }
#game-root .ak-pick.tua-locked { opacity: .5; }
#game-root .tua-garage-btn { margin-left: 10px; }
.tua-garage h3 { display: flex; justify-content: space-between; align-items: center; }
.tua-garage h4 { margin: 16px 0 6px; font-size: 15px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.tua-coins { font-size: 18px; background: rgba(250, 204, 21, .15); border-radius: 10px; padding: 3px 10px; }
.tua-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(148, 163, 184, .15); }
.tua-ic { font-size: 26px; width: 34px; text-align: center; flex: none; }
.tua-info { flex: 1; min-width: 0; }
.tua-info small { display: block; opacity: .75; font-size: 13px; }
.tua-lv { color: #facc15; letter-spacing: 1px; font-size: 13px; }
.tua-row .btn { flex: none; padding: 8px 12px; font-size: 14px; }
.tua-row .btn[disabled] { background: #334155; color: #94a3b8; box-shadow: none; cursor: default; }
.tua-max { flex: none; font-weight: 800; color: #22c55e; padding: 0 12px; }
.tua-wrap { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.tua-wrap .ak-stage { border-radius: 14px; overflow: hidden; touch-action: none; cursor: none; }
.tua-hud { position: absolute; inset: 0; pointer-events: none; font: 800 15px system-ui, sans-serif; color: #fff; }
.tua-hp { position: absolute; left: 12px; top: 10px; display: flex; align-items: center; gap: 8px; background: rgba(8, 16, 28, .7); border-radius: 12px; padding: 6px 10px; }
.tua-hpbar { width: 120px; height: 12px; background: rgba(255, 255, 255, .15); border-radius: 6px; overflow: hidden; }
.tua-hpbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #22c55e, #86efac); transition: width .15s; }
.tua-top { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; gap: 8px; }
.tua-top span { background: rgba(8, 16, 28, .7); border-radius: 12px; padding: 6px 12px; white-space: nowrap; }
.tua-hud .sim-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); }
.tua-tb { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.tua-tb button { background: rgba(8, 16, 28, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 6px 10px; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.tua-wbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; }
.tua-wbar button { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(8, 16, 28, .72); font-size: 22px; cursor: pointer; }
.tua-wbar button small { position: absolute; right: 3px; bottom: 1px; font: 800 10px system-ui, sans-serif; color: rgba(255, 255, 255, .7); }
.tua-wbar button.is-on { border-color: #facc15; background: rgba(250, 204, 21, .3); }
.tua-wbar button[disabled] { opacity: .25; cursor: default; }
.tua-pad { display: none; }
@media (max-width: 560px) {
  .tua-hpbar { width: 70px; }
  .tua-top { top: 52px; }
  .tua-wbar button { width: 40px; height: 40px; font-size: 19px; }
}
@media (pointer: coarse) {
  .tua-pad { display: flex; justify-content: space-between; margin-top: 10px; touch-action: none; }
  .tua-wbar { position: static; transform: none; justify-content: center; margin-top: 8px; }
  .tua-wbar button { border-color: rgba(148, 163, 184, .35); }
  .tua-stick { position: relative; width: 132px; height: 132px; border-radius: 50%; background: rgba(148, 163, 184, .16); border: 2px solid rgba(148, 163, 184, .45); touch-action: none; }
  .tua-stick span { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #22c55e; box-shadow: 0 3px 0 #15803d; pointer-events: none; }
  .tua-stick--aim span { background: #f97316; box-shadow: 0 3px 0 #c2410c; }
}
.tua-wrap > .sim-result { border-radius: 14px; }
.sim-result .tua-stars { font-size: 40px; color: #facc15; margin: 4px 0; letter-spacing: 4px; }
.sim-result .tua-tip { opacity: .8; font-size: 14px; }
