/* css/result.css — 結果・相性結果画面 */

/* ── ページラベル ── */
.result-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(240,232,245,0.35);
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--sp-lg);
}

/* ── 結果メインカード ── */
.result-fish-wrap {
  text-align: center;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
}

.result-fish-img {
  width: 400px;
  height: 400px;
  object-fit: contain;
  margin: 0 auto var(--sp-lg);
  border-radius: var(--radius-md);
  background: rgba(219,89,151,0.05);
  border: 1px solid rgba(219,89,151,0.14);
  padding: var(--sp-md);
}

/* 魚名（グラデーション） */
.result-fish-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff, oklch(78% 0.22 338));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-catchcopy {
  font-size: 0.85rem;
  color: oklch(65% 0.18 338);
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-bottom: var(--sp-md);
  line-height: 1.6;
}

/* バッジ */
.result-badges {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* 区切り線 */
.result-divider {
  width: 48px;
  height: 1px;
  margin: var(--sp-lg) auto;
  background: linear-gradient(90deg, transparent, rgba(219,89,151,0.4), transparent);
}

/* タイプコード */
.result-typecode {
  background: rgba(219,89,151,0.06);
  border: 1px solid rgba(219,89,151,0.2);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.result-typecode__label {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(240,232,245,0.35);
  font-weight: 300;
  margin-bottom: 6px;
}

.result-typecode__code {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #f0e8f5;
  margin: var(--sp-xs) 0;
  text-shadow: 0 0 20px rgba(219,89,151,0.5);
}

.result-typecode__note {
  font-size: 0.72rem;
  color: rgba(240,232,245,0.32);
  font-weight: 300;
  line-height: 1.6;
}

/* ── 診断説明 ── */
.result-description {
  margin-top: var(--sp-lg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(219,89,151,0.18);
  padding: var(--sp-lg);
}

.desc-section {
  padding: var(--sp-sm) 0 var(--sp-md);
  border-top: 1px solid rgba(219,89,151,0.1);
}

.desc-section:first-child {
  border-top: none;
  padding-top: 0;
}

.desc-section:last-child {
  padding-bottom: 0;
}

.desc-section__title {
  font-size: 9px;
  font-weight: 600;
  color: oklch(65% 0.2 338);
  letter-spacing: 0.2em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

.desc-section p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(240,232,245,0.72);
  font-weight: 300;
}

/* ── アクションボタン群 ── */
.result-actions {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* Xシェアボタン */
.btn-share-x {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f0e8f5;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}

.btn-share-x:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
}

.btn-share-x__icon {
  font-size: 1.1rem;
}

/* 再診断ボタン */
.btn-retry {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: rgba(240,232,245,0.38);
  font-size: 0.85rem;
  font-weight: 300;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  text-align: center;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-retry:hover {
  border-color: rgba(219,89,151,0.3);
  color: rgba(240,232,245,0.7);
}

/* ── 相性結果 ── */
.compat-fish-pair {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.compat-fish-card {
  flex: 1;
  text-align: center;
}

.compat-fish-card__img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto var(--sp-sm);
  border-radius: var(--radius-md);
  background: rgba(219,89,151,0.05);
  border: 1px solid rgba(219,89,151,0.15);
  padding: var(--sp-sm);
}

.compat-fish-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0e8f5;
}

.compat-heart {
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* 相性ランク */
.compat-rank-card {
  text-align: center;
  padding: var(--sp-lg);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(219,89,151,0.18);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-lg);
}

.compat-rank {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-sm);
}

.compat-rank--great { color: oklch(68% 0.28 338); text-shadow: 0 0 24px rgba(219,89,151,0.5); }
.compat-rank--good  { color: oklch(72% 0.2 338); }
.compat-rank--ok    { color: rgba(240,232,245,0.45); }

.compat-type {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-md);
  background: rgba(219,89,151,0.1);
  border: 1px solid rgba(219,89,151,0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: oklch(75% 0.14 338);
  margin-bottom: var(--sp-md);
  letter-spacing: 0.04em;
}

.compat-comment {
  font-size: 0.88rem;
  color: rgba(240,232,245,0.68);
  line-height: 2;
  font-weight: 300;
}

/* ── タイプコード入力 ── */
.compat-input-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
}

.compat-input-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.compat-input-field__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(240,232,245,0.38);
  font-weight: 300;
}

.compat-code-input {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: var(--sp-md);
  border: 1px solid rgba(219,89,151,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  color: #f0e8f5;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: var(--font-family);
}

.compat-code-input:focus {
  outline: none;
  border-color: rgba(219,89,151,0.5);
}

.compat-code-input--readonly {
  background: rgba(219,89,151,0.06);
  color: oklch(72% 0.14 338);
  border-color: rgba(219,89,151,0.15);
  cursor: default;
}

/* ── TOPの相性診断リンク ── */
.top-compat-link {
  text-align: center;
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
}

.top-compat-link__text {
  font-size: 11px;
  color: rgba(240,232,245,0.32);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.08em;
}

/* ── 辛口モードリンク ── */
.top-reverse-link {
  text-align: center;
  margin-top: var(--sp-md);
}

.btn-reverse-mode {
  display: inline-block;
  font-size: 0.8rem;
  color: rgba(240,232,245,0.35);
  text-decoration: none;
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
  border: 1px dashed rgba(255,255,255,0.1);
  transition: color 0.2s, border-color 0.2s;
  font-weight: 300;
}

.btn-reverse-mode:hover {
  color: rgba(240,232,245,0.65);
  border-color: rgba(219,89,151,0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 11px 28px;
  background: transparent;
  color: oklch(72% 0.12 338);
  border: 1px solid rgba(219,89,151,0.3);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(219,89,151,0.1);
  border-color: rgba(219,89,151,0.5);
  text-decoration: none;
}
