* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1a1510;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#gameCanvas {
  border: 2px solid #3a3228;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 120px rgba(40, 30, 20, 0.3);
  cursor: pointer;
  image-rendering: auto;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 999px) {
  body {
    min-height: 100dvh;
  }
  #gameCanvas {
    width: 100vw;
    height: auto;
    aspect-ratio: 960 / 540;
    max-height: 100dvh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 999px) and (orientation: portrait) {
  body {
    align-items: flex-start;
  }
  #gameCanvas {
    width: 100vw;
    height: auto;
    aspect-ratio: 960 / 540;
  }
}

@media (max-width: 999px) and (orientation: landscape) {
  #gameCanvas {
    height: 100dvh;
    width: auto;
    aspect-ratio: 960 / 540;
  }
}
