/* style.css — Castle Ruins Runner */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f172a;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  cursor: none;
  outline: none;
}

/* Light theme support */
@media (prefers-color-scheme: light) {
  body {
    background: #e2e8f0;
  }
}

[data-theme="light"] body {
  background: #e2e8f0;
}

[data-theme="dark"] body {
  background: #0f172a;
}

/* Focus for keyboard accessibility */
canvas:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 4px;
}
