@charset "UTF-8";
body, html {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: linear-gradient(to bottom, #87CEEB, #4682B4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}

main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}

.bars {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

.player-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar {
  width: 40vw;
  height: 1.5rem;
  background: #ccc;
  border: 0.2rem solid #000;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.5);
  position: relative;
}

.fill {
  height: 100%;
  transition: width 0.3s ease;
}

.health-fill {
  background: linear-gradient(to right, #00ff00, #ffff00);
}

.stamina-fill {
  background: linear-gradient(to right, #0000ff, #00ffff);
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: bold;
  line-height: 1.5rem;
  text-shadow: 0 0 0.2rem #000;
  font-size: 0.8rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.overlay button {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  margin: 0.5rem;
  background: #FFD700;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.5);
}

.overlay button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.grid-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  place-items: center;
  margin-bottom: 2rem;
}

.fighter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.fighter-box.selected {
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

.fighter-box img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.fighter-box span {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 0.2rem #000;
}

.difficulty {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.difficulty button {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  background: #FFD700;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.difficulty button.selected {
  background: #FFA500;
}

.sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sound-toggle label::before {
  content: "🎵";
  font-size: 1.2rem;
}

.sound-toggle input:not(:checked) + label::before {
  content: "🎵̶";
}

.game-sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 10;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.game-sound-toggle label::before {
  content: "🎵";
  font-size: 1.2rem;
}

.game-sound-toggle input:not(:checked) + label::before {
  content: "🎵̶";
}
/*# sourceMappingURL=styles.css.map */