/* ==========================================================================
   Zoom Zoom Dash - CSS Stylesheet
   Chunky cartoon styling with responsive centered viewport.
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #1a102f;
  background-image:
    radial-gradient(circle at 50% 30%, #2f1d52 0%, #150a27 80%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0.02) 20px, transparent 20px, transparent 40px);
  font-family: "Trebuchet MS", "Comic Sans MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

#gameCanvas {
  display: block;
  /* 450x750 aspect ratio = 3 / 5 = 0.6 */
  aspect-ratio: 450 / 750;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  background-color: #2b1b4d;
  box-shadow:
    0 12px 0 #120921,
    0 24px 45px rgba(0, 0, 0, 0.6);
  border-radius: 18px;
  cursor: pointer;
  image-rendering: auto;
}

@media (max-aspect-ratio: 450/750) {
  #gameCanvas {
    width: 100vw;
    height: auto;
    border-radius: 0;
  }
}

@media (min-aspect-ratio: 450/750) {
  #gameCanvas {
    height: 100vh;
    width: auto;
  }
}
