.scc,
.scc * { box-sizing: border-box; }

.scc {
  --scc-accent: #e248a0;
  --scc-accent-dark: #c92d86;
  --scc-soft: #fff5fb;
  --scc-soft-2: #f9f4ff;
  --scc-ink: #302833;
  --scc-muted: #746b75;
  --scc-line: #eddde7;
  --scc-white: #fff;
  max-width: 920px;
  margin: 1.6em auto 2.2em;
  color: var(--scc-ink);
  font-family: inherit;
}

.scc [hidden] { display: none !important; }

.scc__card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--scc-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 4%, rgba(226,72,160,.10), transparent 28%),
    radial-gradient(circle at 4% 96%, rgba(163,113,255,.08), transparent 28%),
    var(--scc-white);
  box-shadow: 0 16px 48px rgba(76, 38, 65, .08);
}

.scc__intro { text-align: center; margin-bottom: 26px; }
.scc__eyebrow,
.scc__section-kicker {
  margin: 0 0 6px;
  color: var(--scc-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.scc__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--scc-ink) !important;
  font-size: clamp(24px, 4vw, 34px) !important;
  line-height: 1.35 !important;
  text-align: center;
}

.scc__title::before,
.scc__title::after { display: none !important; }

.scc__lead {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--scc-muted);
  font-size: 15px;
  line-height: 1.8;
}

.scc__sign-group {
  min-width: 0;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--scc-line);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
}

.scc__sign-group legend {
  padding: 0 8px;
  color: var(--scc-ink);
  font-size: 16px;
  font-weight: 800;
}

.scc__step {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: var(--scc-accent);
  color: #fff;
  font-size: 13px;
}

.scc__sign-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.scc__sign {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border: 1px solid #eee3ea;
  border-radius: 13px;
  background: #fff;
  color: #433844;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.scc__sign:hover {
  border-color: #e9b7d4;
  background: var(--scc-soft);
  transform: translateY(-1px);
}

.scc__sign[aria-pressed="true"] {
  border-color: var(--scc-accent);
  background: linear-gradient(145deg, #fff4fa, #fdf8ff);
  color: var(--scc-accent-dark);
  box-shadow: 0 5px 16px rgba(226,72,160,.14), inset 0 0 0 1px rgba(226,72,160,.12);
}

.scc__sign:focus-visible,
.scc button:focus-visible,
.scc a:focus-visible,
.scc summary:focus-visible {
  outline: 3px solid rgba(226,72,160,.28);
  outline-offset: 2px;
}

.scc__symbol {
  color: var(--scc-accent);
  font-size: 22px;
  line-height: 1;
}

.scc__selected-summary {
  display: flex;
  max-width: 560px;
  min-height: 48px;
  margin: 5px auto 12px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #faf7f9;
  color: #625864;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.scc__heart { color: var(--scc-accent); font-size: 20px; }
.scc__form-message { min-height: 1.4em; margin: 0 0 8px; color: #c0396e; font-size: 13px; text-align: center; }

.scc__check-button {
  display: flex;
  width: min(100%, 430px);
  min-height: 58px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--scc-accent), #d9378f);
  box-shadow: 0 10px 24px rgba(226,72,160,.23);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.scc__check-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(226,72,160,.28); }
.scc__check-button:active { transform: translateY(0); }
.scc__button-arrow { font-size: 20px; }

.scc__loading {
  min-height: 320px;
  scroll-margin-top: 84px;
  padding: 56px 12px;
  text-align: center;
}

.scc__orbit {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border: 1px dashed rgba(226,72,160,.35);
  border-radius: 50%;
  animation: scc-spin 2.4s linear infinite;
}

.scc__orbit::before {
  content: "♡";
  position: absolute;
  inset: 50% auto auto 50%;
  color: var(--scc-accent);
  font-size: 35px;
  transform: translate(-50%, -50%);
  animation: scc-counter-spin 2.4s linear infinite;
}

.scc__orbit span { position: absolute; color: var(--scc-accent); font-size: 16px; }
.scc__orbit span:nth-child(1) { top: -8px; left: 46px; }
.scc__orbit span:nth-child(2) { right: -7px; bottom: 20px; }
.scc__orbit span:nth-child(3) { left: 2px; bottom: 6px; }

.scc__loading-main { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.scc__loading-sub { margin: 0; color: var(--scc-muted); font-size: 13px; }

@keyframes scc-spin { to { transform: rotate(360deg); } }
@keyframes scc-counter-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }

.scc__result { animation: scc-result-in .38s ease both; }
@keyframes scc-result-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.scc__result-hero {
  position: relative;
  padding: 26px clamp(16px, 4vw, 34px);
  border: 1px solid #f0dce8;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff7fb, #fcf9ff);
  text-align: center;
}

.scc__pair { margin: 0 0 14px; color: var(--scc-accent-dark); font-size: 14px; font-weight: 800; }
.scc__overall {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 13px;
  padding: 7px 13px;
  border: 1px solid #efd8e5;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #776a75;
  font-size: 12px;
}
.scc__overall strong { color: var(--scc-accent-dark); font-size: 24px; line-height: 1; }
.scc__overall-label { margin-right: 5px; font-weight: 700; }
.scc__type-kicker { margin: 0 0 6px; color: #887986; font-size: 12px; font-weight: 700; }
.scc__result-title { margin: 0 !important; color: var(--scc-ink); font-size: clamp(21px, 4vw, 29px) !important; line-height: 1.45 !important; }
.scc__summary { max-width: 700px; margin: 13px auto 0; color: #504650; font-size: 15px; line-height: 1.9; }

.scc__result-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.scc__chart-card,
.scc__scores {
  border: 1px solid #eee4ea;
  border-radius: 18px;
  background: #fff;
}
.scc__chart-card { padding: 16px; }
.scc__chart-wrap { position: relative; width: 100%; min-height: 330px; }
.scc__chart-note { margin: 5px 4px 0; color: #887e86; font-size: 11px; line-height: 1.6; text-align: center; }

.scc__scores { overflow: hidden; }
.scc__score { border-bottom: 1px solid #f0e8ed; }
.scc__score:last-child { border-bottom: 0; }
.scc__score summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  list-style: none;
  cursor: pointer;
}
.scc__score summary::-webkit-details-marker { display: none; }
.scc__score-name { font-size: 14px; font-weight: 800; }
.scc__score-value { color: var(--scc-accent-dark); font-size: 18px; font-weight: 800; }
.scc__meter { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #f3edf1; }
.scc__meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2a3ca, var(--scc-accent)); }
.scc__score-help { margin: 0; padding: 0 15px 14px; color: #70666f; font-size: 12px; line-height: 1.75; }
.scc__score-comment { display: block; margin-top: 4px; color: #4b414a; font-weight: 600; }

.scc__alt {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #e6def0;
  border-radius: 18px;
  background: var(--scc-soft-2);
}
.scc__alt-kicker { margin: 0 0 5px; color: #8059a0; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.scc__alt h3 { margin: 0 0 7px !important; font-size: 18px !important; }
.scc__alt p { margin: 0; color: #5e5360; font-size: 13px; line-height: 1.8; }
.scc__alt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.scc__alt-tag { padding: 5px 9px; border-radius: 999px; background: #fff; color: #66536e; font-size: 11px; font-weight: 700; }

.scc__related { margin-top: 28px; }
.scc__section-heading { margin-bottom: 12px; text-align: center; }
.scc__section-heading h3 { margin: 0 !important; font-size: 21px !important; }
.scc__section-heading > p:last-child { margin: 6px 0 0; color: var(--scc-muted); font-size: 12px; }
.scc__related-list { display: grid; gap: 9px; }
.scc__related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid #eedee8;
  border-radius: 14px;
  background: #fff;
  color: #413742 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.scc__related-link:hover { border-color: #e6a9cb; background: var(--scc-soft); transform: translateX(2px); }
.scc__related-link::after { content: "→"; flex: 0 0 auto; color: var(--scc-accent); font-size: 18px; }
.scc__related-loading { padding: 14px; color: var(--scc-muted); font-size: 12px; text-align: center; }

.scc__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 26px; }
.scc__action {
  min-height: 45px;
  padding: 10px 17px;
  border: 1px solid #e5d8e1;
  border-radius: 999px;
  background: #fff;
  color: #514651;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.scc__action--primary { border-color: var(--scc-accent); background: var(--scc-accent); color: #fff; }
.scc__toast { min-height: 1.4em; margin: 8px 0 0; color: var(--scc-accent-dark); font-size: 11px; text-align: center; }
.scc__disclaimer { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #f0e8ed; color: #938991; font-size: 10.5px; line-height: 1.7; }

@media (max-width: 767px) {
  .scc { margin: 1.2em auto 1.8em; }
  .scc__card { border-radius: 19px; padding: 18px 13px 20px; }
  .scc__intro { margin-bottom: 20px; }
  .scc__lead { font-size: 13px; }
  .scc__sign-group { padding: 13px 10px 12px; border-radius: 15px; }
  .scc__sign-group legend { font-size: 14px; }
  .scc__sign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .scc__sign { min-height: 57px; padding: 6px 2px; border-radius: 11px; font-size: 10.5px; }
  .scc__symbol { font-size: 20px; }
  .scc__selected-summary { gap: 7px; padding: 9px 10px; border-radius: 13px; font-size: 11.5px; }
  .scc__check-button { min-height: 54px; font-size: 15px; }
  .scc__result-hero { padding: 21px 13px; }
  .scc__summary { font-size: 13.5px; line-height: 1.85; }
  .scc__result-grid { grid-template-columns: 1fr; gap: 12px; }
  .scc__chart-wrap { min-height: 300px; }
  .scc__chart-card { padding: 10px 5px 12px; }
  .scc__score summary { padding: 12px 13px; }
  .scc__score-help { padding: 0 13px 13px; }
  .scc__alt { padding: 15px; }
  .scc__related-link { padding: 12px 13px; font-size: 12.5px; }
  .scc__actions { flex-direction: column; }
  .scc__action { width: 100%; }
}

@media (max-width: 390px) {
  .scc__sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .scc *, .scc *::before, .scc *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.scc__chart-fallback {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 24px;
  border-radius: 14px;
  background: #faf7f9;
  color: #776d75;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
