* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050508;
  color: #c8f0c8;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: 0.5em;
  color: #66ccff;
  text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
}

.subtitle {
  font-size: 0.85rem;
  color: #6a8a6a;
  letter-spacing: 0.1em;
}

#canvas-wrap {
  cursor: none;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(100, 200, 255, 0.15), 0 0 80px rgba(0, 0, 0, 0.8);
  width: min(560px, 100vw);
  aspect-ratio: 1;
}

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

#controls {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.85rem;
  color: #8aaa8a;
}

#controls label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#speedSlider {
  accent-color: #66ccff;
  width: 120px;
}

#speedVal {
  color: #66ccff;
  min-width: 16px;
  text-align: right;
}

#restartBtn {
  background: transparent;
  color: #66ccff;
  border: 1px solid #334433;
  padding: 6px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s;
}

#restartBtn:hover {
  border-color: #66ccff;
  color: #aaeeff;
}

.hint {
  font-size: 0.75rem;
  color: #3a4a3a;
  letter-spacing: 0.05em;
}

@media (max-width: 560px) {
  h1 {
    font-size: 1.6rem;
  }

  #controls {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 0 16px;
    width: 100%;
  }
}
