body {
  background: linear-gradient(135deg, #ffe6f2, #fff0ff);
  font-family: 'Spirit', 'Trebuchet MS', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

@font-face {
    font-family: "Spirit"; 
    src: url(/fonts/Spirit.ttf);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

h2 {
  font-family: 'Spirit', 'Trebuchet MS', sans-serif;
  color: #ed82db;
  text-shadow: 1px 1px 2px #fff;
  margin-bottom: 1rem;
}

h3 {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #e59ae5;
  text-shadow: 0.5px 0.5px 1px #ffe6f2;
}

.pair {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.char-card {
  position: relative;
  cursor: pointer;
  text-align: center;
  border-radius: 20px;
  padding: 0.5rem;
  width: 200px;
  height: auto;
  background: linear-gradient(145deg, #fff0f8, #ffe6f2);
  box-shadow: 0 6px 12px rgba(255, 182, 193, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 3px solid;
  border-image: linear-gradient(45deg, #f2a6ea, #e4a5d9) 1;
}

.char-card:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 24px rgba(255, 182, 193, 0.6);
}

.char-card img,
.result-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 15px;
  border: 2px solid #ec93e7;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 8px rgba(255, 182, 193, 0.3);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1rem;
}

.result-card {
  position: relative;
  text-align: center;
  border-radius: 20px;
  padding: 0.5rem;
  width: 200px;
  background: linear-gradient(145deg, #fff0f8, #ffe6f2);
  box-shadow: 0 6px 12px rgba(255, 182, 193, 0.4);
  border: 3px solid;
  border-image: linear-gradient(45deg, #f2a6ea, #e4a5d9) 1;
}

.result-card div {
  position: absolute;
  top: -10px;
  left: -10px;
  background: linear-gradient(45deg, #ff9ad8, #ff6fa1);
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(255,105,180,0.4);
  font-size: 0.9rem;
}

.text-gray {
  color: #aa6699;
  font-size: 0.85rem;
}

button {
  background: linear-gradient(135deg, #ff9ad8, #ff6fa1);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(255, 105, 180, 0.4);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 105, 180, 0.5);
}

/* ---------- tag filters ---------- */
#tag-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#tag-form div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#tag-form label {
  cursor: pointer;
  background: #ffe6f2;
  border-radius: 12px;
  padding: 0.3rem;
  font-size: 0.9rem;
  transition: background 0.2s;
}

#tag-form input[type="checkbox"] {
  margin-right: 0.3rem;
}

#tag-form label:hover {
  background: #ffd0ea;
}

/* ---------- scrollbar ---------- */

::-webkit-scrollbar {
width: 14px;
height: 10px;
}

::-webkit-scrollbar-thumb {
background: linear-gradient(90deg, rgba(238,238,238,1) 38%, rgba(206,206,206,1) 62%);
border: 1.5px solid #888888;
border-radius: 5px;
}

::-webkit-scrollbar-track {
background: linear-gradient(90deg, rgba(230,230,230,1) 6%, rgba(240,240,240,1) 18%);
}

::-webkit-scrollbar-button {
display: block;
width: 14px;
height: 16px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
background: white;
background-image: url("https://dl.dropbox.com/s/vtnpkuealr2f7u4/whc8iy3_d.png");
border: 1.5px solid #888888;
border-radius: 5px;
}

::-webkit-scrollbar-button:vertical:start:increment {
display: none;
}

::-webkit-scrollbar-button:vertical:end:decrement {
display: none;
}

::-webkit-scrollbar-button:vertical:end:increment {
background: white;
background-image: url("https://dl.dropbox.com/s/vtnpkuealr2f7u4/whc8iy3_d.png");
border: 1.5px solid #888888;
border-radius: 5px;
}