/* Mobile controls & forced landscape - touch devices only */
#mc-run-btn {
  display: none;
}
#mc-rotate-hint {
  display: none;
}

@media (pointer: coarse) {
  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
  }
  #game-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
  }
  #game-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
  }
  #mc-run-btn {
    display: flex;
    position: absolute;
    right: max(1.2rem, env(safe-area-inset-right));
    bottom: max(1.6rem, env(safe-area-inset-bottom));
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 0.25rem solid rgba(255, 215, 0, 0.85);
    color: #ffd700;
    font-weight: 700;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.1rem;
    z-index: 900;
    touch-action: none;
    text-shadow: 1px 1px 0 #000;
  }
  #mc-run-btn:active {
    background: rgba(255, 215, 0, 0.55);
    transform: scale(0.94);
  }
  #mc-run-btn .mc-arrow {
    font-size: 1.8rem;
    line-height: 1;
  }
}

@media (pointer: coarse) and (orientation: portrait) {
  #game-container {
    position: fixed !important;
    top: 0 !important;
    left: 100vw !important;
    width: 100vh !important;
    height: 100vw !important;
    transform: rotate(90deg) !important;
    transform-origin: 0 0 !important;
  }
}
