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

body {
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #eee;
}

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

#hud {
  display: flex;
  gap: 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #a0c4ff;
}

#canvas-wrapper {
  position: relative;
  width: 600px;
  height: 600px;
}

#gameCanvas {
  display: block;
  background: #52a047;
  border: 2px solid #4a90d9;
  border-radius: 4px;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(10, 20, 50, 0.88);
  border-radius: 4px;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #4ade80;
  text-shadow: 0 0 20px #4ade8088;
}

.overlay h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #f87171;
  text-shadow: 0 0 16px #f8717188;
}

.overlay .hint {
  font-size: 14px;
  color: #94a3b8;
}

.overlay .action {
  font-size: 15px;
  color: #fbbf24;
  animation: blink 1.2s ease-in-out infinite;
}

.overlay .result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  color: #e2e8f0;
  margin: 8px 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
