/* Shared controls for online matches and the solo tournament. */
.touch-controls{display:none}
.touch-controls .direction-pad,.touch-controls button{pointer-events:auto}
.touch-left,.touch-actions{opacity:.8}
.touch-left:has(.pressed),.touch-actions:has(.pressed){opacity:1}
.touch-left{position:relative;width:140px;flex-shrink:0}
.control-caption{font:6px monospace;letter-spacing:1.3px;color:#8ca1bb;text-align:center;white-space:nowrap}
.control-caption span{color:#475d77;padding:0 2px}
.touch-left>.control-caption{position:absolute;left:50%;bottom:-4px;transform:translateX(-50%)}
.direction-pad{position:relative;width:120px;height:104px;margin:auto;touch-action:none;filter:drop-shadow(0 5px 7px #0007)}
.direction-pad button,.pad-center{position:absolute;border:1px solid #536b87;background:linear-gradient(145deg,#344b66,#18293e);color:#bcd4ee;box-shadow:inset 0 1px 0 #b6d6ff24,0 3px 0 #050c16;touch-action:none}
.direction-pad button{font-size:16px;border-radius:8px;display:grid;place-items:center;padding:0}
.direction-pad .pad-up{top:0;left:39px;width:42px;height:40px;border-bottom:0;border-radius:8px 8px 0 0}
.direction-pad .pad-down{bottom:0;left:39px;width:42px;height:40px;border-top:0;border-radius:0 0 8px 8px}
.direction-pad .pad-left{left:0;top:32px;width:43px;height:40px;border-right:0;border-radius:8px 0 0 8px}
.direction-pad .pad-right{right:0;top:32px;width:43px;height:40px;border-left:0;border-radius:0 8px 8px 0}
.pad-center{top:33px;left:40px;width:40px;height:38px;border:0;box-shadow:none;background:#22374f;pointer-events:none}
.pad-center:after{content:'';position:absolute;inset:13px;border:1px solid #6c89aa;border-radius:50%;background:#101f31}
.touch-actions{display:flex;align-items:center;gap:12px;position:relative;padding-bottom:5px}
.touch-actions button{border-radius:50%;height:76px;width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;touch-action:none;box-shadow:inset 0 2px #ffffff30,0 5px #030b13,0 7px 22px #0008;border:1px solid #ffffff38}
.touch-actions button>span{font-size:29px;font-weight:700;line-height:1}
.touch-actions small{font:700 7px monospace;letter-spacing:1.1px}
.touch-actions .touch-attack{position:relative;width:85px;height:85px;background:linear-gradient(145deg,#e3ffa4,#acd95e);color:#20330b;border-color:#e0ffaa}
.attack-cooldown{display:none;position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);pointer-events:none;transform:rotate(-90deg);fill:none;stroke-width:5}
.attack-cooldown .cooldown-track{stroke:#ffffff20}
.attack-cooldown .cooldown-remaining{stroke:#ffd17f;stroke-dasharray:100;stroke-linecap:round}
.touch-actions .touch-attack.cooling-down{background:linear-gradient(145deg,#36463c,#1e2b25);color:#ffe1a7;border-color:#a58c63}
.touch-attack.cooling-down .attack-cooldown{display:block}
.touch-attack.cooling-down small{font-size:10px;font-variant-numeric:tabular-nums}
.touch-actions .touch-special{background:linear-gradient(145deg,#c5b0ff,#7568bc);color:#21163f;border-color:#b5a0ee}
.touch-actions .touch-emote{width:48px;height:48px;background:linear-gradient(145deg,#304963,#142539);color:#9ab6d7;margin-right:2px;align-self:flex-end;margin-bottom:8px}
.touch-actions .touch-emote>span{font-size:17px}.touch-actions .touch-emote small{font-size:5px}
.touch-actions>.control-caption{position:absolute;bottom:-5px;right:0;font-size:5px;letter-spacing:1px}
.touch-controls button.pressed{filter:brightness(1.25);transform:translateY(3px);box-shadow:inset 0 0 16px #ffffff33,0 1px #030b13}
.touch-controls.inactive{opacity:.32;pointer-events:none}
.touch-controls.inactive .direction-pad,.touch-controls.inactive button{pointer-events:none}
