:root {
  --bg: #0e1726;
  --panel: #111b2e;
  --accent: #4cc9f0;
  --accent-2: #4895ef;
  --text: #e6e6e6;
  --muted: #9fb0c1;
  --success: #80ed99;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 1200px at 70% -200px, #1b2a41 0%, var(--bg) 50%, #0b1321 100%);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #348feb; /* 蓝底 */
  color: #ffffff; /* 白字 */
  border-bottom: none;
  font-size: 1.8rem; /* 放大约一倍 */
}

.brand { font-weight: 800; letter-spacing: 0.5px; color: #ffffff; }

.hud {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hud-item { color: #ffffff; }

.score-card { color: #ffffff; font-weight: 900; }

.desktop-only {
  display: none;
}

@media (min-width: 900px) {
  .desktop-only { display: inline-block; }
}

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

canvas#game {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: linear-gradient(#5cc3ff 0%, #348feb 45%, #1560bd 60%, #0c3a6e 100%);
  box-shadow: none;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 9, 20, 0.55);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.overlay.hidden { display: none; }

.panel {
  width: min(92vw, 520px);
  background: linear-gradient(180deg, var(--panel), #0e1726);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.panel.center { text-align: center; }

/* 深蓝底色的目标达成/通关面板 */
.panel.dark {
  background: #0b1e3d;
  border-color: rgba(255,255,255,0.12);
}

.title { margin: 8px 0 6px; }
.desc { color: var(--muted); margin: 0 0 18px; }

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1a2b;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  margin-right: 10px;
}

.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border: none; color: #00223b; font-weight: 800; }

.tips { color: var(--muted); line-height: 1.7; }

.footer {
  display: none;
}

