body {
  background: #0d0a1b;
  font-family: "Press Start 2P", cursive;
  overflow-x: hidden;
  min-height: 100vh;
  color: #e0e0ff;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(77, 57, 170, 0.15) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(140, 120, 255, 0.1) 0%,
      transparent 20%
    );
}

.pixel-text {
  font-family: "Press Start 2P", cursive;
  letter-spacing: -0.5px;
}

.warrior-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid #4d39aa;
  background: linear-gradient(135deg, #1d1939, #161329);
  border-radius: 8px;
}

.warrior-card:hover {
  transform: translateY(-8px);
  border-color: #8c78ff;
  box-shadow: 0 5px 25px rgba(140, 120, 255, 0.3);
}

.warrior-card.selected {
  border-color: #8c78ff;
  background: linear-gradient(135deg, #281c5e, #1c1546);
  box-shadow: 0 0 30px rgba(140, 120, 255, 0.5);
}

.skin-option {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
}

.skin-option:hover {
  transform: scale(1.05);
  border-color: #4d39aa;
}

.skin-option.selected {
  border: 2px solid #8c78ff;
  box-shadow: 0 0 10px rgba(140, 120, 255, 0.5);
}

.warrior-image {
  transition: all 0.3s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
}

.stat-bar {
  height: 10px;
  background: rgba(45, 35, 120, 0.7);
  border-radius: 5px;
  overflow: hidden;
}

.stat-value {
  height: 100%;
  border-radius: 5px;
}

.pixel-border {
  border: 4px solid;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M4,0 L12,0 L16,4 L16,12 L12,16 L4,16 L0,12 L0,4 Z' fill='none' stroke='%238c78ff' stroke-width='2'/%3E%3C/svg%3E")
    8 stretch;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #8c78ff;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.glow {
  text-shadow: 0 0 8px #8c78ff, 0 0 15px #5a46c1;
}

.pixel-corner::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #8c78ff;
}

.pixel-corner-top-left::before {
  top: -6px;
  left: -6px;
}

.pixel-corner-top-right::before {
  top: -6px;
  right: -6px;
}

.pixel-corner-bottom-left::before {
  bottom: -6px;
  left: -6px;
}

.pixel-corner-bottom-right::before {
  bottom: -6px;
  right: -6px;
}

.ability-block {
  background: rgba(45, 35, 120, 0.5);
  position: relative;
  overflow: hidden;
  border: 2px solid #4d39aa;
  border-radius: 6px;
  padding: 12px;
  transition: all 0.3s ease;
}

.ability-block:hover {
  transform: translateX(5px);
  background: rgba(77, 57, 170, 0.6);
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.select-btn {
  position: relative;
  overflow: hidden;
  transform: skew(-10deg);
  transition: all 0.3s ease;
  border: 3px solid #8c78ff;
  background: linear-gradient(45deg, #4d39aa, #6a53ff);
  box-shadow: 0 5px 15px rgba(77, 57, 170, 0.4);
  font-size: 16px;
  padding: 15px 30px;
}

.select-btn:hover {
  transform: skew(-10deg) translateY(-3px);
  box-shadow: 0 8px 20px rgba(140, 120, 255, 0.6);
  background: linear-gradient(45deg, #563fc5, #7a66ff);
}

.select-btn:active {
  transform: skew(-10deg) translateY(0);
  box-shadow: 0 2px 8px rgba(140, 120, 255, 0.4);
}

.warrior-type {
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 8px;
}

.warrior-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.character-preview {
  animation: float 3s infinite ease-in-out;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 5px rgba(140, 120, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(140, 120, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(140, 120, 255, 0.5);
  }
}

/* Custom alert styles */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 10, 27, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-alert.active {
  opacity: 1;
  pointer-events: all;
}

.custom-alert-content {
  background: linear-gradient(135deg, #1d1939, #161329);
  border: 3px solid #8c78ff;
  border-radius: 8px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(140, 120, 255, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.custom-alert.active .custom-alert-content {
  transform: scale(1);
}

.custom-alert-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #8c78ff;
  text-shadow: 0 0 8px #8c78ff;
}

.custom-alert-message {
  margin-bottom: 30px;
  line-height: 1.5;
}

.custom-alert-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.custom-alert-btn {
  padding: 10px 25px;
  border: 2px solid;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.custom-alert-btn-confirm {
  background: linear-gradient(45deg, #4d39aa, #6a53ff);
  border-color: #8c78ff;
  color: white;
}

.custom-alert-btn-confirm:hover {
  background: linear-gradient(45deg, #563fc5, #7a66ff);
  box-shadow: 0 0 15px rgba(140, 120, 255, 0.5);
}

.custom-alert-btn-cancel {
  background: transparent;
  border-color: #8c78ff;
  color: #8c78ff;
}

.custom-alert-btn-cancel:hover {
  background: rgba(140, 120, 255, 0.2);
  box-shadow: 0 0 15px rgba(140, 120, 255, 0.3);
}

/* Selection screens */
.selection-screen {
  display: none;
}

.selection-screen.active {
  display: block;
}

.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(140, 120, 255, 0.2);
  border: 2px solid #8c78ff;
  color: #8c78ff;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.back-btn:hover {
  background: rgba(140, 120, 255, 0.4);
  box-shadow: 0 0 10px rgba(140, 120, 255, 0.5);
}
