html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Spirit', 'Poppins', 'Arial', sans-serif;
  background: linear-gradient(180deg, #0f0c29 0%, #302b63 100%);
  color: #ffffff;
  text-align: center;
  min-height: 100vh;
}

#compare-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 32px 0;
  position: relative;
}

.draw-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.draw-button button {
  padding: 12px 24px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg,#a78bfa,#4fc3f7);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Spirit', 'Poppins', sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.draw-button button:hover {
  opacity:0.9;
  transform:scale(1.05);
}

.char-card {
  width: 200px;
  text-align: center;
  border-radius: 16px;
  border: 3px solid #7f5fff;
  background: #1b1030;
  padding: 8px;
  box-shadow: 2px 2px 10px rgba(127, 95, 255, 0.5);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 2px 4px 16px rgba(127, 95, 255, 0.7);
}

.char-card img {
  width: 100%;
  height: 200px;
  border: 1px solid #7f5fff;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  flex-shrink: 0;
}

.char-name {
  font-weight:700;
  color:#a78bfa;
  margin-top:6px;
  font-family:'Spirit', 'Poppins', sans-serif;
}

.char-tag {
  font-size:0.9rem;
  color:#4fc3f7;
  font-style:italic;
  margin-bottom:4px;
}

#progress-container {
  width:100%;
  background:#2a1a4f;
  border-radius:12px;
  height:28px;
  margin-bottom:12px;
}

#progress-bar {
  width:0%;
  height:100%;
  background:linear-gradient(90deg,#a78bfa,#4fc3f7);
  border-radius:12px;
  text-align:center;
  color:white;
  font-weight:700;
  line-height:28px;
  font-family:'Spirit', 'Poppins', sans-serif;
}

.rank-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #a78bfa;
  color: white;
  padding: 4px 6px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

#restart-btn {
  margin-top: 24px;
  padding: 10px 20px;
  background: linear-gradient(135deg,#a78bfa,#4fc3f7);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Spirit', 'Poppins', sans-serif;
}

#restart-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

@font-face {
    font-family: "Spirit"; 
    src: url(/fonts/Spirit.ttf);
}