html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #111;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
}

#hud {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 10px 12px;
  color: #0b0b0b;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  font-weight: 700;
  letter-spacing: 0.2px;
  user-select: none;
}

#overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.65);
}

.hidden { display: none !important; }

.panel {
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.panel h1 { margin: 0 0 10px; }
.panel p { margin: 8px 0; }

.row {
  display: flex;
  gap: 10px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}

button {
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

#btnContinue { background: #3a7cff; color: #fff; }
#btnRestart { background: #111; color: #fff; }
.hint { opacity: 0.75; font-weight: 600; font-size: 13px; }
