* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #101820, #1d3557);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  padding: 20px;
}

.game-wrapper {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
}

.hud {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 20px;
  margin-bottom: 12px;
}

canvas {
  background: #0b1020;
  border: 3px solid #ffffff33;
  border-radius: 12px;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

button {
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  background: #ffd166;
  color: #222;
  font-weight: bold;
}

button:hover {
  transform: scale(1.03);
}

.info {
  margin-top: 14px;
  color: #dce6f2;
  line-height: 1.6;
}

.message {
  margin-top: 10px;
  font-size: 18px;
  color: #90f1ef;
  min-height: 28px;
}

.mode-box {
  margin-bottom: 12px;
  font-size: 18px;
  color: #fff;
}

.mode-box label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 12px;
}

.mode-box input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}