/* ホルモン・マトリックス診断 — Tailwindで書きにくい部分のみ最小限。
   配色・レイアウトは Tailwind ユーティリティ＋ tailwind.config 側で定義。
   ここは: 多層放射グラデ背景 / グロー / canvasサイズ / 一部アニメ・トランジション。 */

body {
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(122, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 600px at 110% 10%, rgba(22, 224, 200, 0.14), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(255, 77, 141, 0.12), transparent 60%),
    #07070f;
  -webkit-font-smoothing: antialiased;
}

/* グラデ文字（bg-clip-text と併用） */
.grad-text {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 称号カードの内側グロー */
.title-glow {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 50px rgba(122, 92, 255, 0.18) inset;
}

/* レーダー canvas: 親(aspect-square)に追従 */
.radar-canvas { display: block; width: 100%; height: 100%; }

/* プログレスバー / 通知表バー: 幅トランジション */
.bar-grow { transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.progress-grow { transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

/* トースト */
.toast {
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 軽いタップ縮小（Tailwindのactive:scaleでも可だが共通化） */
.tap:active { transform: scale(0.98); }

/* 性別セレクト（選択状態を持つ繰り返しコンポーネント） */
.gender-opt {
  flex: 1 1 90px;
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(120, 130, 200, 0.18);
  background: rgba(30, 30, 56, 0.55);
  color: #9aa0c8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.gender-opt[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #16e0c8 0%, #7a5cff 100%);
  box-shadow: 0 6px 18px rgba(22, 224, 200, 0.3);
}

/* 選択肢ボタン（ウィザード・結果のバーは JS 生成、状態ありなので CSS 定義） */
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(120, 130, 200, 0.18);
  border-radius: 12px;
  background: rgba(30, 30, 56, 0.55);
  color: #eef0ff;
  font-size: 15.5px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:active { transform: scale(0.99); }
.option.selected {
  border-color: #7a5cff;
  background: rgba(122, 92, 255, 0.16);
  box-shadow: 0 0 0 1px #7a5cff inset;
}
.option-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid #6b6f96;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: transparent;
}
.option.selected .option-mark {
  border-color: #7a5cff;
  background: #7a5cff;
  color: #fff;
}
