/* タッチデバイス（iPad/iPhone等）でのみ表示するバーチャルパッド */
.touch-controls { display: none; }
html.touch-device .touch-controls { display: flex; }
html.touch-device .hint { display: none; }
html.touch-device .wrap { padding-bottom: 170px; }

.dpad {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: 148px;
  height: 148px;
  z-index: 50;
}

.dpad button {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #ff8ac1;
  background: rgba(255, 255, 255, 0.55);
  color: #d63384;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  padding: 0;
}

.dpad button:active { background: rgba(255, 138, 193, 0.75); color: #fff; }

.dpad .dpad-up    { left: 50px; top: 0; }
.dpad .dpad-down  { left: 50px; top: 100px; }
.dpad .dpad-left  { left: 0;    top: 50px; }
.dpad .dpad-right { left: 100px; top: 50px; }

.action-pad {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.action-pad button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ff8ac1;
  background: rgba(255, 255, 255, 0.55);
  color: #d63384;
  font-weight: bold;
  font-size: 0.75rem;
  line-height: 1.2;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  padding: 2px;
}

.action-pad button:active { background: rgba(255, 138, 193, 0.75); color: #fff; }

.action-pad button.wide { width: 76px; height: 76px; font-size: 0.85rem; }
