:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #101827, #070b13 70%);
  color: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.app {
  width: min(900px, 100%);
  display: grid;
  gap: 16px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(10px);
}

.hud__title {
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffe145;
}

.hud__stats {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

.hud__buttons {
  display: flex;
  gap: 10px;
}

.btn {
  background: #ffe145;
  color: #111827;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 225, 69, 0.25);
}

.board {
  display: grid;
  place-items: center;
}

canvas {
  width: min(504px, 90vw);
  height: auto;
  background: #02040b;
  border: 6px solid #19213a;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hint {
  text-align: center;
  opacity: 0.75;
  font-size: 0.95rem;
}
