/* Prevent any scrolling */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}

body {
  font-family: "Arial", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 10px;
  box-sizing: border-box;
}

/* Game title - make it smaller on constrained screens */
h1 {
  margin: 5px 0;
  font-size: 2.5em;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  background: linear-gradient(45deg, #FFD700, #FFA500);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

/* Canvas - constrained to viewport */
canvas {
  border: 4px solid #2C3E50;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.1);
  max-width: 95vw;
  max-height: 65vh;
  display: block;
}

/* Buttons - make them more compact */
button {
  padding: 8px 16px;
  margin: 3px;
  font-size: 0.9em;
  min-width: 100px;
}

/* Make everything more compact on smaller screens */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8em;
    margin: 2px 0;
  }
  
  #timer {
    font-size: 1em;
    margin: 2px 0;
  }
  
  canvas {
    margin: 5px 0;
    max-height: 60vh;
  }
  
  .instructions {
    font-size: 0.9em;
    margin-top: 8px;
  }
}