/* 結果画面の下の共通エリア（保存・シェア／Polaris 付きフォロー／次の診断）。src/components/common/result-actions/。
 * 色は診断ごとにテーマで切り替える（.ra--agency＝事務所相性診断のアクア・ラベンダー・クリスタル／.ra--astria＝ASTRIA 共通のピンク・ラベンダー・水色）。
 * 主役は結果なので、ここは控えめに: ポップアップ・固定表示・自動で出る案内は使わない。 */
.ra {
  --ra-ink: #3a2a4c;
  --ra-ink-soft: #5f4f72;
  --ra-accent: #a83b7c;
  --ra-glow-1: #f6b8d6;
  --ra-glow-2: #cdbcf3;
  --ra-glow-3: #a9dcf2;
  --ra-btn-from: #e06aa6;
  --ra-btn-to: #9a6fe0;
  --ra-btn-shadow: rgba(160, 80, 170, 0.8);
  --ra-line: #e3d6f0;
  position: relative;
  margin-top: 16px;
  padding: 22px 18px;
  border-radius: 22px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--ra-glow-3) 22%, rgba(255, 255, 255, 0.88)), color-mix(in srgb, var(--ra-glow-2) 26%, rgba(255, 255, 255, 0.86)));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px -22px rgba(43, 58, 134, 0.5);
  color: var(--ra-ink);
  text-align: center;
}
.ra--agency {
  --ra-ink: #1d2550;
  --ra-ink-soft: #4d5683;
  --ra-accent: #6a4fb5;
  --ra-glow-1: #cfe7fa;
  --ra-glow-2: #dccff8;
  --ra-glow-3: #bfe3f7;
  --ra-btn-from: #4a6fd6;
  --ra-btn-to: #7a5fe0;
  --ra-btn-shadow: rgba(74, 80, 200, 0.9);
  --ra-line: #d9def0;
}
.ra__eyebrow { font-family: var(--font-label, inherit); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--ra-accent); }
.ra__title { margin-top: 4px; font-size: 20px; font-weight: 800; line-height: 1.5; text-wrap: balance; }
.ra__lead { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: var(--ra-ink-soft); text-wrap: balance; }
.ra__line { display: block; }
/* 文節の区切り。区切りの途中では折り返さない（「どうだっ／た」「結果画／像」にならない） */
.ra__phrase { display: inline-block; }
.ra__note { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--ra-ink-soft); text-wrap: balance; }
.ra__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 52px;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(110deg, var(--ra-btn-from), var(--ra-btn-to));
  box-shadow: 0 12px 24px -14px var(--ra-btn-shadow);
  transition: transform 0.15s ease;
}
.ra__btn:active { transform: scale(0.98); }

/* Polaris（既存画像をそのまま使う。大きさだけこの場に合わせて小さく） */
.ra-polaris { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.ra-polaris__figure { position: relative; flex: none; width: 104px; }
.ra-polaris__figure img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.ra-polaris__halo {
  position: absolute;
  inset: -14% -20% -4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(closest-side at 30% 60%, color-mix(in srgb, var(--ra-glow-3) 85%, transparent), transparent 80%),
    radial-gradient(closest-side at 72% 40%, color-mix(in srgb, var(--ra-glow-2) 85%, transparent), transparent 80%);
  filter: blur(2px);
}
.ra-polaris__spark { position: absolute; z-index: 2; line-height: 1; color: var(--ra-accent); }
.ra-polaris__spark--1 { left: -12%; top: 14%; font-size: 13px; }
.ra-polaris__spark--2 { right: -10%; top: 2%; font-size: 10px; color: var(--ra-btn-from); }
.ra-polaris__spark--3 { right: -14%; top: 54%; font-size: 12px; }
.ra-polaris__bubble {
  position: relative;
  max-width: 13em;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ra-line);
  box-shadow: 0 8px 18px -14px rgba(43, 58, 134, 0.6);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}
.ra-polaris__bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: inherit;
  border-left: 1px solid var(--ra-line);
  border-bottom: 1px solid var(--ra-line);
  transform: rotate(45deg);
}

/* 次の診断 */
.ra-next__list { display: grid; gap: 12px; margin-top: 14px; padding: 0; list-style: none; }
.ra-next__item {
  position: relative;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ra-line);
}
.ra-next__badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-family: var(--font-label, inherit);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ra-ink-soft);
  background: color-mix(in srgb, var(--ra-glow-2) 45%, #fff);
}
.ra-next__title { margin-top: 8px; font-size: 18px; font-weight: 800; line-height: 1.45; }
.ra-next__subtitle { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--ra-ink-soft); }
.ra-next__name { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ra-accent); }
.ra-next__item .ra__btn { margin-top: 12px; min-height: 48px; font-size: 14.5px; }
.ra-next__item--soon { background: rgba(255, 255, 255, 0.6); border-style: dashed; }

/* 診断リンクのコピー（文字のボタン） */
.ra-copy { margin-top: 8px; }
.ra-copy__button {
  min-height: 44px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ra-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ra-copy__note { font-size: 12px; color: var(--ra-ink-soft); }
.ra-copy__status { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--ra-accent); }
.ra-copy__status:empty { display: none; }
.ra-copy__manual { margin-top: 8px; font-size: 12.5px; color: var(--ra-ink-soft); text-align: left; }
.ra-copy__manual[hidden] { display: none; }
.ra-copy__manual input { display: block; width: 100%; margin-top: 4px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--ra-line); font: inherit; font-size: 14px; color: var(--ra-ink); background: #fff; }

/* 「今すぐ遊べる」紹介カード（PlayNowCard.astro）。DREAM TYPE のパステルピンク・ラベンダーときらめき */
.pn {
  position: relative;
  margin-top: 16px;
  padding: 22px 16px 20px;
  border-radius: 22px;
  background:
    radial-gradient(70% 40% at 15% 0%, rgba(255, 214, 234, 0.85), transparent 70%),
    radial-gradient(60% 40% at 90% 20%, rgba(222, 210, 250, 0.85), transparent 70%),
    linear-gradient(170deg, #fff7fb, #f6f0ff);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px -22px rgba(140, 70, 150, 0.55);
  color: #3a2a4c;
  text-align: center;
}
.pn__label { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: #fff; background: linear-gradient(110deg, #e06aa6, #9a6fe0); box-shadow: 0 6px 14px -8px rgba(160, 80, 170, 0.8); }
.pn__title { margin-top: 10px; font-size: 20px; font-weight: 800; line-height: 1.5; text-wrap: balance; }
.pn__name { margin-top: 2px; font-family: var(--font-label, inherit); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: #a8336b; }
.pn__visual { display: block; width: 100%; max-width: 360px; margin: 14px auto 0; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 30px -18px rgba(120, 60, 150, 0.6); }
.pn__visual img { display: block; width: 100%; height: auto; }
.pn__desc { margin-top: 14px; font-size: 14.5px; line-height: 1.75; text-wrap: balance; }
.pn__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(110deg, #e06aa6, #9a6fe0);
  box-shadow: 0 12px 24px -14px rgba(160, 80, 170, 0.8);
}
.pn__btn:active { transform: scale(0.98); }

@media (max-width: 374px) {
  .ra { padding: 20px 14px; }
  .pn { padding: 20px 12px 18px; }
  .pn__title { font-size: 18px; }
  .ra__title { font-size: 18px; }
  .ra-polaris__figure { width: 92px; }
  .ra-polaris__bubble { font-size: 13px; padding: 9px 12px; }
}
@media (min-width: 720px) {
  .ra-polaris__figure { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ra__btn { transition: none; }
}

