/* Reset and lock viewport */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;                 /* no scrollbars */
  overscroll-behavior: none;        /* block bounce/pull-to-refresh */
  -webkit-overflow-scrolling: auto; /* disable iOS momentum scroll */
  background: #111;
  color: #eee;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Fix body in place so it cannot scroll */
body {
  position: fixed;
  inset: 0;                         /* lock to viewport edges */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* App container also blocks gestures */
#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;               /* disable default touch gestures */
}

h1 {
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

canvas {
  background: #1a1a1a;
  border: 2px solid #4caf50;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.35);
  touch-action: none;               /* block pinch/scroll on canvas */
}

p {
  margin: 10px 0;
}

button {
  margin-top: 10px;
  padding: 6px 12px;
  background: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  transition: background 120ms ease;
}

button:hover {
  background: #45a049;
}

.controls {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.controls button {
  font-size: 20px;
  padding: 10px;
}
