html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Spirit', 'Poppins', 'Arial', sans-serif;
  background: linear-gradient(180deg, #f7f2ff 0%, #ede3ff 100%);
  background-attachment: fixed;
  color: #a56cff;
  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, #c7a6ff, #a674ff);
  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 #b08cff;
  background: #f4efff;
  padding: 8px;
  box-shadow: 2px 2px 10px rgba(176, 140, 255, 0.4);
  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(176, 140, 255, 0.6);
}

.char-card img {
  width: 100%;
  height: 200px;
  border: 1px solid #b08cff;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  flex-shrink: 0;
}

.char-name {
  font-weight: 700;
  color: #955fff;
  margin-top: 6px;
  font-family: 'Spirit', 'Poppins', sans-serif;
  line-height: 1.2;
}

.char-tag {
  font-size: 0.9rem;
  color: #b284ff;
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 4px;
  font-family: 'Spirit', 'Poppins', sans-serif;
}

#progress-container {
  width: 100%;
  background: #efe0ff;
  border-radius: 12px;
  height: 28px;
  margin-bottom: 12px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c3a4ff, #a478ff);
  border-radius: 12px;
  text-align: center;
  color: white;
  font-weight: 700;
  line-height: 28px;
  font-family: 'Spirit', 'Poppins', sans-serif;
  transition: width 0.3s ease;
}

.rank-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #a674ff;
  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, #c7a6ff, #a674ff);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Spirit', 'Poppins', sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#restart-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

@font-face {
  font-family: "Spirit";
  src: url(/fonts/Spirit.ttf);
}