* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at center, #11152b 0%, #05060d 60%, #000 100%);
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

.game-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #05060d;
}

.panel {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  padding: 32px;
  border: 2px solid #00f5ff;
  border-radius: 22px;
  background: rgba(5, 8, 20, 0.88);
  box-shadow:
    0 0 24px rgba(0, 245, 255, 0.6),
    inset 0 0 24px rgba(0, 245, 255, 0.12);
  text-align: center;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.panel h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 7vw, 4rem);
  color: #00f5ff;
  text-shadow:
    0 0 10px #00f5ff,
    0 0 22px #00f5ff;
  letter-spacing: 2px;
}

.panel p {
  color: #d7fbff;
  line-height: 1.5;
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.2s;
}

button:hover {
  background: #ff00ff;
  color: #060612;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 26px rgba(255, 0, 255, 0.9);
}

.controls {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.hud span {
  padding: 10px 14px;
  border: 1px solid rgba(0, 245, 255, 0.7);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #bffcff;
  text-shadow: 0 0 8px #00f5ff;
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.25);
}

.pause {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #ff00ff;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: bold;
  text-shadow:
    0 0 14px #ff00ff,
    0 0 32px #ff00ff;
  z-index: 8;
}

.hidden {
  display: none;
}

@media (max-width: 650px) {
  .hud {
    flex-direction: column;
    align-items: flex-start;
  }

  .difficulty-grid {
    grid-template-columns: 1fr;
  }
}