#touch-controls{--touch-size:1;--touch-opacity:.7;position:absolute;inset:0;z-index:2;pointer-events:none;color:#fff2d6;user-select:none;-webkit-user-select:none;touch-action:none}
#touch-controls button{pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;min-width:calc(5.2cqw * var(--touch-size));min-height:calc(5.2cqw * var(--touch-size));padding:.3cqw;border:1.5px solid #f6d9a8;background:#411724;color:inherit;border-radius:50%;font:700 calc(1.05cqw * var(--touch-size))/1 'Palatino Linotype',Georgia,serif;text-transform:uppercase;letter-spacing:.02em;opacity:var(--touch-opacity);box-shadow:inset 0 2px 8px #fff3,0 3px 9px #0008;text-shadow:0 2px 2px #000;transition:transform .08s,background .08s}
#touch-controls button.pressed{background:#bb7039;transform:scale(.94);opacity:1}
.touch-movement,.touch-attacks{position:absolute;bottom:max(2.4cqw,calc(env(safe-area-inset-bottom) + 1cqw));display:grid;gap:.35cqw;align-items:center;justify-items:center}
.touch-movement{left:max(2cqw,env(safe-area-inset-left));grid-template-columns:repeat(3,calc(5.2cqw * var(--touch-size)));grid-template-rows:repeat(3,calc(5.2cqw * var(--touch-size)))}
.touch-movement [data-touch=up]{grid-column:2;grid-row:1}.touch-movement [data-touch=left]{grid-column:1;grid-row:2}.touch-movement [data-touch=down]{grid-column:2;grid-row:3}.touch-movement [data-touch=right]{grid-column:3;grid-row:2}
.touch-attacks{right:max(2cqw,env(safe-area-inset-right));grid-template-columns:repeat(2,calc(6.5cqw * var(--touch-size)));grid-template-rows:repeat(3,calc(5.2cqw * var(--touch-size)))}
.touch-attacks button{width:100%;height:100%;border-radius:35%}#touch-controls .special{grid-column:1/3;justify-self:center;width:calc(5.3cqw * var(--touch-size));height:calc(4cqw * var(--touch-size));min-height:0;font-size:calc(.8cqw * var(--touch-size));background:#7d4d26}
#touch-controls .touch-attacks button:not(.special){font-size:calc(.82cqw * var(--touch-size))}
#cabinet[data-screen=match]:has(#touch-controls:not([hidden])) .pause-icon{z-index:3;top:16%;left:calc(50% - 2.4cqw);width:4.8cqw;height:4.8cqw;min-width:44px;min-height:44px;font-size:2cqw;opacity:.85;background:#29151b99;color:#ffe8b8;touch-action:manipulation}
.settings-card .setting-row small{grid-column:1/-1;color:var(--muted);font-size:.78cqw}
@media(max-width:800px){#touch-controls button{min-width:calc(5.8cqw * var(--touch-size));min-height:calc(5.8cqw * var(--touch-size))}.touch-movement{grid-template-columns:repeat(3,calc(5.8cqw * var(--touch-size)));grid-template-rows:repeat(3,calc(5.8cqw * var(--touch-size)))}.touch-attacks{grid-template-columns:repeat(2,calc(7cqw * var(--touch-size)));grid-template-rows:repeat(3,calc(5.8cqw * var(--touch-size)))}}
