.compat-form {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px 0;
}
.compat-picker {
  text-align: center;
}
.compat-picker label {
  display: block;
  color: #ffd700;
  font-family: "Cinzel", serif;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.compat-picker .shio-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 250px;
}
.compat-picker .shio-pick {
  background: rgba(20, 5, 5, 0.8);
  border: 1px solid #5a0000;
  border-radius: 10px;
  padding: 10px 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
  color: #fce3b6;
}
.compat-picker .shio-pick:hover {
  border-color: #ffd700;
  background: rgba(80, 10, 10, 0.8);
  transform: scale(1.05);
}
.compat-picker .shio-pick.selected {
  border-color: #ffd700;
  background: rgba(80, 10, 10, 0.8);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}
.compat-picker .shio-pick .pick-icon {
  font-family: "Cinzel", "Noto Serif TC", "Georgia", serif;
  font-size: 1.6rem;
  display: block;
  background: linear-gradient(135deg, #ffd700, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  font-weight: bold;
  line-height: 1;
}
.compat-picker .shio-pick .pick-name {
  font-family: "Cinzel", serif;
  font-weight: bold;
  font-size: 0.7rem;
  display: block;
  margin-top: 6px;
}
.compat-vs {
  font-size: 2.5rem;
  color: #ffd700;
  font-family: "Cinzel", serif;
  font-weight: 700;
  align-self: center;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.compat-submit {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  border: none;
  padding: 12px 35px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Cinzel", serif;
  transition: all 0.3s;
  margin-top: 15px;
}
.compat-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.compat-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.compat-result {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 30px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
}
.compat-header {
  text-align: center;
  margin-bottom: 25px;
}
.compat-pair {
  font-size: 2.5rem;
  margin-bottom: 5px;
}
.compat-rel-type {
  color: #ffd700;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
}
.score-bar-wrapper {
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
}
.score-label {
  text-align: center;
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: "Cinzel", serif;
}
.circular-chart-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
.circular-chart {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}
.circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition:
    stroke-dasharray 1.5s ease-out,
    stroke 0.5s ease-out;
  filter: drop-shadow(0 0 8px currentColor);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.circular-chart-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.percentage {
  color: #ffd700;
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.circle.high {
  stroke: #4caf50;
}
.circle.mid {
  stroke: #ffca28;
}
.circle.low {
  stroke: #ff6b6b;
}
.compat-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .compat-sections {
    grid-template-columns: 1fr;
  }
}
.compat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
}
.compat-box h4 {
  color: #ffd700;
  font-family: "Cinzel", serif;
  margin: 0 0 8px;
  font-size: 1rem;
}
.compat-box h4 i {
  margin-right: 6px;
}
.compat-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.compat-box.drama {
  grid-column: 1 / -1;
  border-left: 3px solid #ff6b6b;
}
.compat-box.tips {
  grid-column: 1 / -1;
  border-left: 3px solid #ffd700;
}
.compat-vs-icon {
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
  font-size: 1.2em;
}
.compat-submit-container {
  text-align: center;
}
@media (max-width: 600px) {
  #comp-form > div {
    flex-direction: column;
    gap: 10px !important;
  }
}
