html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* Mobile optimizations */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Prevent browser zoom */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Ensure proper scaling */
  zoom: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  /* Prevent browser gestures */
  touch-action: none;
}

#rt-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  /* Ensure canvas is properly sized */
  max-width: 100vw;
  max-height: 100vh;
  /* Prevent any scaling */
  zoom: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  /* Prevent browser gestures */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Mobile-specific styles */
.mobile-device #rt-canvas {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide UI elements that might interfere with touch on mobile */
.mobile-device .ui-container {
  pointer-events: auto;
}

/* Larger touch targets for mobile */
.mobile-device button {
  min-height: 44px;
  min-width: 44px;
}
