body {
  font-family: -apple-system, "Hiragino Sans", sans-serif;
  background: #14101f;
  color: #eee;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0 0 10px 0;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: #ffd86b;
  text-shadow: 0 2px 0 #00000060;
}

#hud {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
  width: 960px;
  font-size: 13px;
  box-sizing: border-box;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #221b33;
  border-radius: 6px;
}
.stat .label { color: #aaa; font-size: 11px; letter-spacing: 0.08em; }
.stat .num   { font-variant-numeric: tabular-nums; font-weight: bold; }

.stat.hp     { flex: 1; border-left: 4px solid #5ad65a; }
.stat.wave   { border-left: 4px solid #ffd86b; }
.stat.score  { border-left: 4px solid #4fc3f7; }
.stat.combo  { border-left: 4px solid #ff7fb0; }
.stat.weapon { border-left: 4px solid #d8a866; }

.bar {
  flex: 1;
  display: inline-block;
  height: 12px;
  background: #3a3250;
  border-radius: 6px;
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b6f15a, #5ad65a);
  transition: width 120ms linear;
}

#stage-wrap { position: relative; }

#game {
  display: block;
  border: 2px solid #463a5e;
  border-radius: 4px;
  background: #0e0a18;
  cursor: crosshair;
}

#message {
  position: absolute;
  top: 38%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: #ffd86b;
  text-shadow: 0 3px 0 #00000080, 0 0 18px #ffd86b40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms;
}
#message.show { opacity: 1; }
#message .sub { display: block; font-size: 18px; color: #ddd; margin-top: 10px; font-weight: normal; }

#controls {
  margin-top: 12px;
  font-size: 13px;
  color: #aab;
  text-align: center;
  line-height: 1.7;
}
#controls b {
  color: #ffd86b;
  background: #2a2240;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: bold;
}
#controls .hint { margin-top: 6px; color: #8a86a0; font-size: 12px; }
