:root {
  --bg: #070b14;
  --panel: rgba(8, 14, 28, 0.86);
  --line: rgba(120, 210, 255, 0.28);
  --cyan: #6cf0ff;
  --pink: #ff5d9c;
  --gold: #ffd36a;
  --text: #e8f4ff;
}

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

html, body {
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(80, 140, 255, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255, 70, 150, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#app {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 28px;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), #7d7bff 55%, var(--pink));
  box-shadow: 0 0 24px rgba(108, 240, 255, 0.35);
}

.brand h1 {
  font-size: 22px;
  letter-spacing: 2px;
}

.brand p {
  font-size: 11px;
  letter-spacing: 3px;
  color: #8fb4d8;
}

.stats {
  display: flex;
  gap: 10px;
}

.stat {
  min-width: 92px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 18, 36, 0.7);
}

.stat span {
  display: block;
  font-size: 11px;
  color: #8fb4d8;
  letter-spacing: 1px;
}

.stat strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.lives strong {
  letter-spacing: 2px;
  color: var(--pink);
}

.stage-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(80, 180, 255, 0.08);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #050814;
  cursor: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.35), rgba(4, 8, 18, 0.78));
  backdrop-filter: blur(2px);
}

.overlay.hidden { display: none; }

.panel {
  width: min(460px, calc(100% - 48px));
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.kicker {
  color: var(--cyan);
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

.panel h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.panel p {
  color: #c5d8ee;
  line-height: 1.6;
}

.hints {
  list-style: none;
  margin: 16px 0 22px;
  text-align: left;
  color: #9db6d0;
  font-size: 13px;
}

.hints li {
  padding: 6px 0 6px 18px;
  position: relative;
}

.hints li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 11px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #061018;
  background: linear-gradient(90deg, var(--cyan), #9aa6ff, var(--pink));
  box-shadow: 0 8px 24px rgba(108, 240, 255, 0.25);
}

button:hover { transform: translateY(-1px); }

footer {
  margin-top: 12px;
  text-align: center;
  color: #7391b0;
  font-size: 12px;
}

@media (max-width: 720px) {
  .hud { flex-direction: column; align-items: flex-start; }
  .stats { width: 100%; }
  .stat { flex: 1; }
  .panel h2 { font-size: 26px; }
}
