body {
  background: linear-gradient(to bottom, #b1d7f3 0%, #e6e9f5 100%);
  margin: 0;
  font-family: Arial, sans-serif;
}
#battle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 10px;
}
.pokemon-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}
.pokemon-panel.enemy {
  margin-bottom: 80px;
}
.name-hp {
  display: flex;
  justify-content: space-between;
  width: 220px;
  font-size: 1rem;
  margin-bottom: 3px;
}
.hp-bar {
  width: 200px;
  height: 16px;
  background: #444;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 4px;
}
.hp-bar .current {
  height: 100%;
  background: linear-gradient(90deg, #0f0 60%, #ff0 100%);
  transition: width 0.5s;
}
.sprite {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  margin: 0 10px;
}
#battle-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
#moves {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
#moves button {
  pointer-events: auto;
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #aaa;
  background: #fffbe7;
  cursor: pointer;
  transition: background 0.2s;
}
#moves button:hover {
  background: #ffe066;
}
#switch {
  display: flex;
  gap: 8px;
}
#switch button {
  pointer-events: auto;
  padding: 5px 14px;
  font-size: 0.95rem;
  border-radius: 5px;
  border: 1px solid #aaa;
  background: #eef;
  cursor: pointer;
  transition: background 0.2s;
}
#switch button:hover {
  background: #cce;
}
#battle-canvas {
  display: block;
  width: 100vw;
  height: 60vh;
  margin: 0 auto;
}
#battle-canvas {
  display: block;
  width: 100%;
  height: 100vh;
}
#battle-ui {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
}