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

h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  letter-spacing: 0.1em;
}

#game {
  background: linear-gradient(#1e1e3f, #4a2545);
  border: 2px solid #555;
  display: block;
}

#hud {
  display: flex;
  gap: 40px;
  margin-bottom: 8px;
  font-size: 18px;
}

.player-info {
  display: flex;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  background: #222;
  min-width: 200px;
  justify-content: space-between;
}

#p1-info { border-left: 4px solid #e74c3c; }
#p2-info { border-left: 4px solid #3498db; }

.damage { font-weight: bold; font-variant-numeric: tabular-nums; }
.stocks { color: #ff6b6b; }

.bar-group {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-self: center;
}
.shield-bar, .super-bar {
  display: inline-block;
  width: 70px;
  height: 6px;
  background: #444;
  border-radius: 3px;
  overflow: hidden;
}
.shield-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #80d8ff, #4fc3f7);
  transition: width 80ms linear;
}
.super-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffd86b, #ff8b3d);
  transition: width 80ms linear;
}
.super-fill.ready {
  background: linear-gradient(90deg, #fff, #ffd86b);
  box-shadow: 0 0 8px #ffd86b;
}
.super-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.super-count {
  font-size: 10px;
  color: #ffb060;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

#controls {
  margin-top: 10px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  line-height: 1.6;
}

#message {
  margin-top: 12px;
  font-size: 24px;
  font-weight: bold;
  height: 32px;
  color: #ffd86b;
}
