* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  touch-action: none;
  font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
}

#gameCanvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: 100lvh;
  cursor: crosshair;
}

/* Portrait mode warning */
#rotateWarning {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.97);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-size: 20px;
}

.rotate-content {
  padding: 40px;
}

.rotate-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: rotateAnim 1.5s ease-in-out infinite alternate;
}

@keyframes rotateAnim {
  from { transform: rotate(-15deg); }
  to   { transform: rotate(15deg); }
}

@media (orientation: portrait) {
  #rotateWarning {
    display: flex;
  }
}
