:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #05070d;
  color: #e8ecf8;
}

.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hud h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.hud-actions {
  display: flex;
  gap: 8px;
}

button {
  border: 1px solid #2a3347;
  background: #0f1422;
  color: #e8ecf8;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #151d31;
}

.stage-wrap {
  border: 1px solid #212a3d;
  border-radius: 14px;
  overflow: hidden;
  background: #070c18;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
}
