* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #0b0e17; height: 100%; }
body {
  font-family: "Segoe UI", Verdana, sans-serif;
  color: #d9e8ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#wrap { width: 960px; max-width: 98vw; }
#hud {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 4px; font-size: 14px; letter-spacing: 1px; font-weight: 700;
}
#hud-level { color: #35dde0; }
#hud-shards { color: #ffe58a; }
#hud-time { color: #d9e8ff; }
#hud-deaths { color: #ff5265; }
#hud-score { color: #f05ab8; }
#stage { position: relative; width: 960px; max-width: 98vw; aspect-ratio: 960 / 600; }
#game { width: 100%; height: 100%; display: block; background: #101522; border: 2px solid #26324a; border-radius: 8px; }
#overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; border-radius: 8px;
}
#overlay.hidden { display: none; }
#overlay h1 {
  font-size: 52px; letter-spacing: 6px; color: #d9e8ff;
  text-shadow: 0 0 18px rgba(53, 221, 224, 0.55), 0 0 42px rgba(240, 90, 184, 0.35);
}
#overlay h1 .cy { color: #35dde0; }
#overlay h1 .mg { color: #f05ab8; }
#overlay h2 { font-size: 26px; letter-spacing: 3px; margin-bottom: 10px; }
#overlay p { font-size: 16px; line-height: 1.55; max-width: 640px; color: #b9c8e8; margin: 6px 0; }
#overlay .tag { font-size: 14px; letter-spacing: 4px; color: #ffe58a; font-weight: 700; }
#overlay .big { font-size: 20px; color: #d9e8ff; font-weight: 700; }
#overlay button {
  margin-top: 18px; padding: 12px 28px; font-size: 17px; font-weight: 700;
  letter-spacing: 2px; color: #101522; background: #35dde0; border: none;
  border-radius: 6px; cursor: pointer;
}
#overlay button:hover { background: #f05ab8; color: #fff; }
#overlay .stars { font-size: 34px; letter-spacing: 6px; color: #ffe58a; margin: 8px 0; }
#hint { text-align: center; color: #7e8db0; font-size: 13px; padding: 8px 0 0; }
