.touch-game body{height:100dvh;position:relative}.touch-game #game-viewport{top:env(safe-area-inset-top,0px);right:env(safe-area-inset-right,0px);left:env(safe-area-inset-left,0px);bottom:calc(244px + env(safe-area-inset-bottom,0px))}#touch-controls{display:none}.touch-game #touch-controls:not([hidden]){z-index:15;inset:auto 0 env(safe-area-inset-bottom,0px);pointer-events:none;-webkit-user-select:none;user-select:none;height:244px;font-family:system-ui,sans-serif;display:block;position:fixed}.touch-button{box-sizing:border-box;color:#dedee4;pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;background:#27282f;border:1px solid #55565e;border-bottom:3px solid #131419;border-radius:12px;width:48px;height:48px;padding:0;font:600 20px system-ui,sans-serif}.touch-button.pressed{background:#484b5c;border-color:#a6a8be;transform:translateY(2px)}.touch-button:focus-visible{outline-offset:2px;outline:2px solid #e7c981}.touch-left,.touch-right{width:148px;position:absolute;bottom:48px}.touch-left{left:max(12px, env(safe-area-inset-left,0px))}.touch-right{right:max(12px, env(safe-area-inset-right,0px))}.touch-shoulders{justify-content:space-between;margin-bottom:10px;display:flex}.touch-shoulders .touch-button{border-radius:10px;width:68px;height:40px;font-size:14px}.touch-dpad,.touch-face{grid-template:repeat(3,48px)/repeat(3,48px);gap:2px;display:grid}.touch-face .touch-button{border-radius:50%;font-size:28px}.touch-button.up{grid-area:1/2}.touch-button.left{grid-area:2/1}.touch-button.right{grid-area:2/3}.touch-button.down{grid-area:3/2}.touch-button.triangle{color:#72d6ac}.touch-button.square{color:#de98c6}.touch-button.circle{color:#f09089}.touch-button.cross{color:#95baff}.touch-center{gap:16px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%)}.touch-center .touch-button{border-radius:18px;width:72px;height:40px;font-size:11px}.touch-hint{text-align:center;color:#92939e;width:100%;font-size:11px;line-height:20px;position:absolute;bottom:0}@media (orientation:landscape){.touch-game #game-viewport{left:calc(164px + env(safe-area-inset-left,0px));right:calc(164px + env(safe-area-inset-right,0px));bottom:calc(52px + env(safe-area-inset-bottom,0px))}.touch-game #touch-controls:not([hidden]){height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.touch-left,.touch-right{bottom:max(24px,50% - 99px)}.touch-center{bottom:4px}.touch-hint{display:none}}
