@media (pointer: coarse) {
  .touch { left: max(20px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(66px + env(safe-area-inset-bottom)); pointer-events: none; }
  .touch > * { pointer-events: auto; }
  .touch-stick { --hit-padding: 20px; --ring-size: clamp(116px, min(38vw, 40dvh), 160px); position: relative; display: grid; place-items: center; width: calc(var(--ring-size) + 2 * var(--hit-padding)); aspect-ratio: 1; margin: calc(-1 * var(--hit-padding)); touch-action: none; user-select: none; }
  .touch-stick::before { content: ''; position: absolute; inset: var(--hit-padding); background: #10191cd9; border: 2px solid #e6ca82; border-radius: 50%; box-shadow: inset 0 0 0 7px #0004, 0 2px 6px #0007; pointer-events: none; }
  .touch-stick::after { content: 'MOVE'; position: absolute; bottom: calc(var(--hit-padding) + 5%); color: #fff0c8; font: bold .53rem system-ui; letter-spacing: .14em; pointer-events: none; }
  [data-stick-knob] { display: block; position: relative; width: calc(.36 * var(--ring-size)); aspect-ratio: 1; border: 2px solid #fff0bf; border-radius: 50%; background: #b59055; box-shadow: inset 0 0 0 4px #735c34, 0 2px 5px #0009; pointer-events: none; }
  #touch-use, #touch-jump { width: 54px; height: 49px; color: #fff1cd; font: bold .73rem system-ui; }
  #touch-use { right: 0; bottom: 56px; }
  #touch-jump { right: 0; bottom: 0; }
  #shortcuts button { margin-bottom: env(safe-area-inset-bottom); }
}
