/* Existing touch-control region, clearer action identity and actual availability.
   Specific selectors intentionally win over portal.css's generic manipulation rule. */
.raid-portal .touch-skills button[data-action]{
 touch-action:none;min-width:44px;min-height:44px;height:44px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
 border-radius:10px;padding:3px 1px;line-height:1.15;overflow:hidden;
 color:#e6f3eb;background:#18332cf5;border:1px solid #759e8b;
 -webkit-user-select:none;user-select:none;
}
.raid-portal .touch-skills .action-label{font-size:10px;font-weight:700;pointer-events:none;white-space:nowrap}
.raid-portal .touch-skills .action-status{font-size:9px;font-variant-numeric:tabular-nums;color:#c3d8cf;pointer-events:none;white-space:nowrap}
.raid-portal .touch-skills button.touch-attack[data-action]{height:94px;border-radius:15px;background:#426f5bef}
.raid-portal .touch-skills .touch-attack .action-label{font-size:13px}
.raid-portal .touch-skills button[data-action-state="ready"]{border-color:#a1d6bc}
.raid-portal .touch-skills button[data-action-state="guarding"]{border-color:#d2f5df;background:#376650}
.raid-portal .touch-skills button[data-action-state="cooldown"],
.raid-portal .touch-skills button[data-action-state="charge"],
.raid-portal .touch-skills button[data-action-state="inactive"],
.raid-portal .touch-skills button[data-action-state="empty"],
.raid-portal .touch-skills button[data-action-state="full"]{border-color:#5a7268;background:#1c2b28f5}
.raid-portal .touch-skills button[data-action-state="range"],
.raid-portal .touch-skills button[data-action-state="immune"]{border-style:dashed;border-color:#bca079}
.raid-portal .touch-skills button[data-action-state="range"] .action-status,
.raid-portal .touch-skills button[data-action-state="immune"] .action-status{color:#efd7b3}
.raid-portal .touch-skills button:active{background:#4e7d65;border-color:#d1f7e5}
.raid-portal .skill[data-action-state="range"],.raid-portal .skill[data-action-state="immune"]{border-style:dashed;border-color:#bca079}
.raid-portal .skill[data-action-state="guarding"]{border-color:#d2f5df;background:#376650}
.raid-portal .touch-skills button[data-action-state="riposte"],.raid-portal .skill[data-action-state="riposte"]{border-color:#ffd28a;box-shadow:inset 0 0 0 1px #ffd28a}
@media(max-width:720px), (max-height:550px) and (orientation:landscape){
 .raid-portal .touch-controls{left:12px;right:12px;min-height:94px;gap:10px}
 .raid-portal .touch-skills{width:208px;flex:0 0 208px;grid-template-columns:repeat(4,minmax(44px,1fr));gap:6px}
 .raid-portal .touch-skills button[data-action]{height:44px;min-height:44px}
 .raid-portal .touch-skills button.touch-attack[data-action]{height:94px}
}
@media(max-width:380px){
 .raid-portal .touch-controls{left:10px;right:10px;gap:6px}
 .raid-portal #joystick{width:76px;height:76px;flex:0 0 76px}
 .raid-portal #joystick-thumb{left:18px;top:18px}
}
@media(max-height:550px) and (orientation:landscape){
 .raid-portal .game-top{height:48px;min-height:48px}
 .raid-portal .touch-controls{height:94px;bottom:max(10px,env(safe-area-inset-bottom))}
}
