/* ========================================
   星詠みミラージュ - スタイルシート
   パステル × ゴールド・親しみ路線（B案）
   ======================================== */

/* ===== カラーパレット & トークン（パステル × ゴールド・親しみ路線 B案） ===== */
:root {
  --bg-base: #fdf7ff;
  --bg-lavender: #f5e4ff;
  --bg-pink: #ffe0ee;
  --bg-cream: #fff7ec;

  --text-main: #1a1430;
  --text-soft: #3d3552;
  --text-muted: #5e5670;
  --text-on-gold: #3a2c1a;

  --accent-violet: #b89cd9;
  --accent-pink: #f0a8c5;
  --accent-rose: #e58aa8;

  --gold: #c9a66b;
  --gold-light: #e5cc8a;
  --gold-deep: #a78448;

  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(201, 166, 107, 0.28);
  --card-shadow: 0 8px 28px rgba(184, 156, 217, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-heading: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* リセット & 基本 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-base);
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(245, 228, 255, 0.95), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 224, 238, 0.85), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 247, 236, 0.75), transparent 65%),
    linear-gradient(180deg, #fdf7ff 0%, #fbeaf6 45%, #ffeaf2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.75;
  letter-spacing: 0.03em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ===== 背景の光の粒・オーラ ===== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(245, 197, 224, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 32% 68%, rgba(229, 204, 138, 0.55), transparent 65%),
    radial-gradient(2px 2px at 52% 38%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 82%, rgba(184, 156, 217, 0.5), transparent 65%),
    radial-gradient(2px 2px at 86% 14%, rgba(245, 197, 224, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 56%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(1.5px 1.5px at 16% 86%, rgba(229, 204, 138, 0.5), transparent 65%),
    radial-gradient(3px 3px at 60% 26%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 26% 50%, rgba(184, 156, 217, 0.45), transparent 65%),
    radial-gradient(2px 2px at 76% 64%, rgba(245, 197, 224, 0.55), transparent 60%);
  background-size: 100% 100%;
  animation: petals-float 9s ease-in-out infinite alternate;
}

.stars--slow {
  background-image:
    radial-gradient(2.5px 2.5px at 6% 12%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 32%, rgba(229, 204, 138, 0.55), transparent 65%),
    radial-gradient(2px 2px at 56% 92%, rgba(245, 197, 224, 0.6), transparent 60%),
    radial-gradient(3px 3px at 80% 46%, rgba(184, 156, 217, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 95% 76%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(2px 2px at 14% 60%, rgba(245, 197, 224, 0.5), transparent 60%);
  animation: petals-float 14s ease-in-out infinite alternate-reverse;
  opacity: 0.75;
}

@keyframes petals-float {
  0%   { opacity: 0.55; transform: translateY(0); }
  100% { opacity: 1;    transform: translateY(-6px); }
}

/* ふんわり光るオーラに置き換え（旧月） */
.moon {
  position: fixed;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(255, 248, 230, 0.85) 0%,
    rgba(229, 204, 138, 0.45) 35%,
    rgba(184, 156, 217, 0.32) 65%,
    transparent 75%);
  filter: blur(8px);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  box-shadow: none;
  animation: aura-pulse 8s ease-in-out infinite alternate;
}

@keyframes aura-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.85; transform: scale(1.06); }
}

@media (max-width: 480px) {
  .moon {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -40px;
  }
}

/* ===== レイアウト ===== */
.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.6s ease both;
}

.screen--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ファーストビュー ===== */
.hero {
  padding: 40px 8px 16px;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  margin-bottom: 28px;
  opacity: 0.95;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 32px;
  color: var(--text-main);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero__title span {
  display: block;
}

.hero__title--accent {
  background: linear-gradient(120deg, #5a3d8a 0%, var(--gold-deep) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-top: 6px;
}

.hero__lead {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 44px;
  line-height: 2;
}

.hero__note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
  letter-spacing: 0.2em;
}

.hero-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hero-points {
  margin: 18px auto 0;
  width: min(100%, 360px);
  list-style: none;
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(201, 166, 107, 0.18);
  box-shadow: 0 8px 18px rgba(184, 156, 217, 0.08);
}

.hero-progress {
  margin: 22px auto 0;
  padding: 16px;
  width: min(100%, 380px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 166, 107, 0.18);
  box-shadow: 0 10px 26px rgba(184, 156, 217, 0.10);
}

.hero-progress__title {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
}

.hero-progress__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-progress__item {
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
}

.hero-progress__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-progress__value {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: var(--text-main);
}

/* ===== ボタン ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 15px;
  letter-spacing: 0.2em;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--gold) 55%, var(--gold-light) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 10px 28px rgba(120, 96, 168, 0.30),
    0 4px 12px rgba(201, 166, 107, 0.22);
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(60, 44, 92, 0.22);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 14px 36px rgba(120, 96, 168, 0.40),
    0 6px 18px rgba(201, 166, 107, 0.32);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(184, 156, 217, 0.14);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  border: 1px solid rgba(184, 156, 217, 0.35);
}

.btn--ghost:hover {
  background: rgba(245, 228, 255, 0.5);
  color: var(--text-main);
}

.btn--locked {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-muted);
  border: 1px dashed rgba(184, 156, 217, 0.45);
  font-size: 13px;
  cursor: not-allowed;
  letter-spacing: 0.3em;
}

.btn--block {
  display: flex;
  width: 100%;
  margin-top: 8px;
}

.btn--xl {
  padding: 18px 36px;
  font-size: 16px;
  letter-spacing: 0.3em;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-light) 50%, #fff5dc 100%);
  color: var(--text-on-gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 10px 28px rgba(201, 166, 107, 0.35),
    0 4px 12px rgba(229, 204, 138, 0.25);
  font-weight: 600;
  letter-spacing: 0.25em;
}

.btn--gold:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 14px 36px rgba(201, 166, 107, 0.45),
    0 6px 18px rgba(229, 204, 138, 0.4);
  transform: translateY(-1px);
}

.btn--reset {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  border-color: rgba(184, 156, 217, 0.3);
}

.input-guide {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(201, 166, 107, 0.16);
  color: var(--text-soft);
  font-size: 13px;
}

/* ボタンの光 */
.btn__shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%   { left: -120%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* ===== ページヘッダー ===== */
.page-head {
  text-align: center;
  padding: 12px 0 24px;
  position: relative;
}

.back {
  position: absolute;
  top: 4px;
  left: 0;
  font-size: 13px;
  color: var(--text-soft);
  padding: 8px 12px;
  letter-spacing: 0.15em;
}

.back:hover {
  color: var(--text-main);
}

.page-head__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin-top: 32px;
  line-height: 1.7;
  background: linear-gradient(120deg, #5a3d8a 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-head__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.15em;
}

.page-head__date {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.4em;
  margin-top: 4px;
}

/* ===== カード ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  animation: cardIn 0.7s ease both;
}

.screen--active .card:nth-child(2) { animation-delay: 0.05s; }
.screen--active .card:nth-child(3) { animation-delay: 0.1s; }
.screen--active .card:nth-child(4) { animation-delay: 0.15s; }
.screen--active .card:nth-child(5) { animation-delay: 0.2s; }
.screen--active .card:nth-child(6) { animation-delay: 0.25s; }
.screen--active .card:nth-child(7) { animation-delay: 0.3s; }
.screen--active .card:nth-child(8) { animation-delay: 0.35s; }
.screen--active .card:nth-child(9) { animation-delay: 0.4s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card__label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-main);
}

.card__body {
  font-size: 14px;
  line-height: 2;
  color: var(--text-soft);
}

.card__body--center {
  text-align: center;
}

/* ===== フォーム ===== */
.form {
  padding: 28px 22px;
}

.field {
  margin-bottom: 24px;
}

.field--theme {
  border: none;
}

.field__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-main);
  margin-bottom: 12px;
  font-weight: 600;
}

.field__req {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #b03a5b;
  background: rgba(229, 138, 168, 0.18);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-weight: 600;
}

.field__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(184, 156, 217, 0.4);
  border-radius: 12px;
  color: var(--text-main);
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.field__input:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}

.field__input::placeholder {
  color: var(--text-muted);
}

.field__error {
  font-size: 12px;
  color: #b03a5b;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

.field__opt {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  background: rgba(184, 156, 217, 0.18);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-weight: 500;
}

.field__help {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

/* テーマ選択 */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.theme-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-chip__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(184, 156, 217, 0.35);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.theme-chip__icon {
  font-size: 18px;
  color: var(--accent-rose);
  width: 24px;
  text-align: center;
}

.theme-chip__label {
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--text-main);
  font-weight: 500;
}

.theme-chip input:checked + .theme-chip__inner {
  background: linear-gradient(135deg, rgba(240, 168, 197, 0.35) 0%, rgba(229, 204, 138, 0.30) 100%);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 6px 18px rgba(229, 138, 168, 0.22);
}

.theme-chip input:checked + .theme-chip__inner .theme-chip__icon {
  color: var(--gold-deep);
  text-shadow: 0 0 8px rgba(229, 204, 138, 0.5);
}

/* 10種テーマ用：縦長 + 小さめ */
.theme-grid--wide .theme-chip__inner {
  padding: 10px 8px;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-height: 60px;
}

.theme-grid--wide .theme-chip__icon {
  font-size: 18px;
  width: auto;
}

.theme-grid--wide .theme-chip__label {
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* 気分グリッド（5列x2） */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 420px) {
  .mood-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mood-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.mood-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-chip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(184, 156, 217, 0.32);
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 44px;
}

.mood-chip input:checked + .mood-chip__inner {
  background: linear-gradient(135deg, rgba(240, 168, 197, 0.35) 0%, rgba(229, 204, 138, 0.30) 100%);
  border-color: var(--gold);
  color: var(--gold-deep);
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 6px 18px rgba(229, 138, 168, 0.22);
}

.concern-grid {
  display: grid;
  gap: 10px;
}

.concern-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.concern-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.concern-chip__inner {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(201, 166, 107, 0.22);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.concern-chip input:checked + .concern-chip__inner {
  background: linear-gradient(135deg, rgba(184,156,217,0.92), rgba(201,166,107,0.88));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(120, 96, 168, 0.22);
  transform: translateY(-1px);
}

/* カードグリッド（3列x4） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 420px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tarot {
  position: relative;
  display: block;
  cursor: pointer;
  aspect-ratio: 2 / 3;
}

.tarot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tarot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 240, 250, 0.55), transparent 70%),
    linear-gradient(160deg, rgba(245, 228, 255, 0.85) 0%, rgba(255, 224, 238, 0.85) 100%);
  border: 1px solid rgba(201, 166, 107, 0.35);
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tarot__inner::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 166, 107, 0.20);
  border-radius: 6px;
  pointer-events: none;
}

.tarot__symbol {
  font-size: 28px;
  color: var(--gold-deep);
  text-shadow: 0 0 8px rgba(229, 204, 138, 0.4);
  line-height: 1;
}

.tarot__name {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-main);
  font-weight: 500;
}

.tarot input:checked + .tarot__inner {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 247, 220, 0.7), transparent 70%),
    linear-gradient(160deg, rgba(229, 204, 138, 0.6) 0%, rgba(240, 168, 197, 0.55) 100%);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 6px 24px rgba(201, 166, 107, 0.35),
    0 0 36px rgba(229, 204, 138, 0.25);
  transform: translateY(-2px);
}

.tarot input:checked + .tarot__inner .tarot__symbol {
  color: #6e4a18;
  text-shadow: 0 0 12px rgba(255, 240, 200, 0.7);
}

.tarot input:checked + .tarot__inner .tarot__name {
  color: var(--text-on-gold);
  font-weight: 600;
}

/* ===== スコア ===== */
.card--score {
  text-align: center;
  padding: 32px 22px;
}

.score {
  margin: 16px 0 18px;
  display: flex;
  justify-content: center;
}

.score__ring {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 250, 0.92) 50%, transparent 71%),
    conic-gradient(from -90deg,
      var(--gold-light) 0%,
      var(--gold-deep) var(--score-deg, 0deg),
      rgba(184, 156, 217, 0.18) var(--score-deg, 0deg),
      rgba(184, 156, 217, 0.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow:
    0 8px 28px rgba(184, 156, 217, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.score__ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 166, 107, 0.35);
  pointer-events: none;
}

.score__num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(120deg, #5a3d8a, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.score__suffix {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.2em;
  margin-top: 6px;
}

.score__rank {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.score__oneline {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 2;
  padding: 0 6px;
}

/* 今日の一言（独立カード） */
.card--oneline {
  text-align: center;
  background: linear-gradient(160deg, rgba(245, 228, 255, 0.55) 0%, rgba(255, 247, 236, 0.7) 100%);
}

.oneline {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, #5a3d8a 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding: 8px 0;
}

/* 選んだカードのメッセージ */
.card--card-msg {
  text-align: center;
  background: linear-gradient(160deg, rgba(245, 228, 255, 0.6) 0%, rgba(255, 240, 248, 0.7) 100%);
  border-color: rgba(201, 166, 107, 0.32);
}

.chosen-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 28px;
  margin: 8px auto 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 247, 220, 0.7), transparent 70%),
    linear-gradient(160deg, rgba(229, 204, 138, 0.45) 0%, rgba(184, 156, 217, 0.45) 100%);
  border: 1px solid var(--gold);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 6px 24px rgba(201, 166, 107, 0.30);
}

.chosen-card__symbol {
  font-size: 38px;
  color: var(--gold-deep);
  text-shadow: 0 0 14px rgba(255, 240, 200, 0.7);
  line-height: 1;
}

.chosen-card__name {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--text-on-gold);
  font-weight: 600;
}

/* ラッキーナンバー */
.lucky-item--num {
  text-align: center;
}

.lucky-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(120deg, #5a3d8a, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-top: 4px;
}

/* 避けたいことカード */
.card--avoid {
  background: linear-gradient(160deg, rgba(255, 230, 235, 0.6) 0%, rgba(245, 228, 255, 0.65) 100%);
  border-color: rgba(229, 138, 168, 0.25);
}

/* 明日へのメッセージ */
.card--tomorrow {
  background: linear-gradient(160deg, rgba(228, 240, 255, 0.6) 0%, rgba(245, 228, 255, 0.65) 100%);
  border-color: rgba(140, 165, 220, 0.30);
}

/* 連続鑑定バッジ */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(229, 204, 138, 0.45) 0%, rgba(255, 240, 200, 0.30) 100%);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(201, 166, 107, 0.25);
}

.streak-badge__icon {
  color: var(--gold-deep);
  text-shadow: 0 0 6px rgba(255, 240, 200, 0.7);
}

.streak-inline {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 8px;
}

/* 未来カード（少し特別感） */
.card--future {
  background: linear-gradient(160deg, rgba(245, 228, 255, 0.65) 0%, rgba(255, 247, 236, 0.7) 100%);
  border-color: rgba(184, 156, 217, 0.40);
}

.card--advice {
  background: linear-gradient(160deg, rgba(255, 247, 236, 0.65) 0%, rgba(255, 230, 240, 0.55) 100%);
  border-color: rgba(229, 204, 138, 0.40);
}

/* ===== ラッキー ===== */
.card--lucky {
  padding: 22px;
}

.lucky-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.lucky-item {
  flex: 1;
}

.lucky-item__label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 10px;
}

.lucky-color {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lucky-color__dot {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 0 0 2px rgba(255, 255, 255, 0.7) inset;
  flex-shrink: 0;
}

.lucky-color__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-main);
}

.lucky-action {
  border-top: 1px dashed rgba(184, 156, 217, 0.40);
  padding-top: 16px;
}

.lucky-action__body {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-top: 8px;
}

/* ===== シェア ===== */
.card--share {
  background: linear-gradient(160deg, rgba(255, 247, 236, 0.7) 0%, rgba(245, 228, 255, 0.65) 100%);
}

.share-text {
  font-size: 14px;
  line-height: 2;
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  border: 1px dashed rgba(201, 166, 107, 0.45);
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-actions .btn {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.15em;
}

.share-toast {
  text-align: center;
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 12px;
  padding: 8px;
  background: rgba(229, 204, 138, 0.30);
  border-radius: 8px;
  animation: toastIn 0.3s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* プレミアム */
.card--premium {
  background: linear-gradient(160deg, rgba(255, 247, 220, 0.7) 0%, rgba(245, 228, 255, 0.6) 100%);
  border-color: var(--gold);
}

.card--premium .card__title {
  font-family: var(--font-heading);
  color: var(--gold-deep);
}

/* CTA */
.card--cta {
  background: linear-gradient(160deg, rgba(245, 228, 255, 0.7) 0%, rgba(255, 247, 236, 0.7) 100%);
  text-align: center;
}

/* ===== モーダル（プレミアム） ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalIn 0.3s ease both;
}

.modal[hidden] {
  display: none;
}

@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 44, 92, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 204, 138, 0.30), transparent 60%),
    linear-gradient(160deg, rgba(255, 253, 250, 0.98) 0%, rgba(255, 247, 236, 0.98) 100%);
  border: 1px solid var(--gold);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 30px 80px rgba(60, 44, 92, 0.30),
    0 0 60px rgba(229, 204, 138, 0.20);
  text-align: center;
  animation: modalSlide 0.4s ease both;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-soft);
  background: rgba(184, 156, 217, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal__close:hover {
  background: rgba(184, 156, 217, 0.25);
  color: var(--text-main);
}

.modal__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #5a3d8a 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.modal__body {
  font-size: 14px;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.modal__list {
  list-style: none;
  padding: 16px 0;
  margin: 0 0 20px;
  border-top: 1px dashed rgba(201, 166, 107, 0.45);
  border-bottom: 1px dashed rgba(201, 166, 107, 0.45);
  text-align: left;
}

.modal__list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.modal__list li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  color: var(--gold-deep);
  text-shadow: 0 0 4px rgba(229, 204, 138, 0.5);
}

.modal__note {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 20px;
  letter-spacing: 0.2em;
}

/* ===== フッター ===== */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 40px;
  padding: 24px 12px;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.footer__copy {
  margin-top: 12px;
  opacity: 0.7;
}

/* ===== レスポンシブ補正 ===== */
@media (min-width: 481px) {
  .app {
    padding: 32px 24px 80px;
  }
  .hero__title {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: 22px;
  }
  .page-head__title {
    font-size: 18px;
  }
  .score__ring {
    width: 140px;
    height: 140px;
  }
  .score__num {
    font-size: 40px;
  }
}

/* =========================================================
   v3: 占術選択チップ（横スクロール）
   ========================================================= */
.ftype-bar {
  margin: 0 -20px 12px;
  padding: 0;
  position: relative;
  overflow: hidden;
  max-width: calc(100vw);
}
.ftype-bar::before,
.ftype-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
}
.ftype-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(253, 247, 255, 0.95), rgba(253, 247, 255, 0));
}
.ftype-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 234, 242, 0.95), rgba(255, 234, 242, 0));
}
.ftype-bar__scroll {
  display: flex;
  gap: 8px;
  padding: 8px 20px 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ftype-bar__scroll::-webkit-scrollbar { display: none; }

.ftype-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.ftype-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ftype-chip__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid rgba(201, 166, 107, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-weight: 500;
}
.ftype-chip__icon {
  font-size: 14px;
  opacity: 0.95;
}
.ftype-chip__label {
  font-weight: 500;
}
.ftype-chip:hover .ftype-chip__inner {
  border-color: var(--gold);
  background: rgba(255, 247, 236, 0.95);
}
.ftype-chip input:checked + .ftype-chip__inner {
  background: linear-gradient(135deg, rgba(229, 204, 138, 0.45), rgba(240, 168, 197, 0.35));
  border-color: var(--gold);
  color: var(--text-on-gold);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(201, 166, 107, 0.30), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.ftype-chip input:focus-visible + .ftype-chip__inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ftype-desc {
  margin: -4px 4px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-soft);
  text-align: center;
  letter-spacing: 0.02em;
  min-height: 1em;
}

/* 条件付き入力フィールド */
.field[data-show] {
  display: none;
}
.field.is-visible {
  display: block;
}
fieldset.field.is-visible {
  display: block;
}

/* スプレッド選択 */
.spread-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.spread-chip {
  position: relative;
  display: block;
  cursor: pointer;
}
.spread-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.spread-chip__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid rgba(201, 166, 107, 0.30);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  transition: all 0.18s ease;
}
.spread-chip__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
}
.spread-chip__sub {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.spread-chip input:checked + .spread-chip__inner {
  background: linear-gradient(160deg, rgba(229, 204, 138, 0.40), rgba(240, 168, 197, 0.30));
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201, 166, 107, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   v3: 結果タブバー
   ========================================================= */
.result-tabs {
  display: flex;
  gap: 4px;
  margin: 6px -4px 16px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 166, 107, 0.25);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.result-tabs::-webkit-scrollbar { display: none; }

.result-tab {
  flex: 1 0 auto;
  min-width: 64px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.result-tab:hover {
  color: var(--text-main);
}
.result-tab.is-active {
  background: linear-gradient(135deg, rgba(229, 204, 138, 0.5), rgba(240, 168, 197, 0.35));
  color: var(--text-on-gold);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(201, 166, 107, 0.30), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.result-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* タブパネル */
.tab-panel {
  display: none;
  animation: tabFade 0.3s ease;
}
.tab-panel.is-active {
  display: block;
}
@keyframes tabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* アコーディオン */
.accordion {
  margin: 16px 0 8px;
  padding: 0;
  border: 1px solid rgba(201, 166, 107, 0.30);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.accordion__summary {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.04em;
  position: relative;
}
.accordion__summary::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  opacity: 0.65;
  color: var(--gold-deep);
  transition: transform 0.2s;
}
.accordion[open] .accordion__summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__body {
  padding: 4px 16px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* =========================================================
   v3: 占術別メイン結果カード
   ========================================================= */
.card--main-result {
  text-align: center;
}
.card--main-result .card__label {
  margin-bottom: 8px;
}

.card--companion {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,247,236,0.88));
}

.guardian-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.guardian-emoji {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(184,156,217,0.20), rgba(201,166,107,0.28));
  font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

/* タロット結果（カード裏→表アニメ） */
.tarot-spread {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.tarot-card {
  flex: 0 0 auto;
  width: 88px;
  perspective: 800px;
  cursor: pointer;
}
.tarot-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1);
}
.tarot-card.is-flipped .tarot-card__inner {
  transform: rotateY(180deg);
}
.tarot-card__face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--gold);
  text-align: center;
  padding: 6px;
}
.tarot-card__back {
  background:
    radial-gradient(circle at 50% 30%, rgba(229, 204, 138, 0.45), transparent 70%),
    linear-gradient(160deg, #4a3878, #2e2148);
  color: var(--gold-light);
  font-size: 22px;
}
.tarot-card__back::before {
  content: "✦";
  font-size: 30px;
  opacity: 0.95;
}
.tarot-card__back::after {
  content: "MIRAGE";
  display: block;
  margin-top: 6px;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: rgba(229, 204, 138, 0.85);
}
.tarot-card__front {
  background: linear-gradient(160deg, rgba(255, 247, 236, 0.95), rgba(245, 228, 255, 0.92));
  color: var(--text-main);
  transform: rotateY(180deg);
  gap: 4px;
}
.tarot-card__symbol {
  font-size: 28px;
  color: var(--gold-deep);
  text-shadow: 0 0 8px rgba(229, 204, 138, 0.5);
}
.tarot-card__name {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-main);
}
.tarot-card__pos {
  font-size: 9px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tarot-card__pos--reversed {
  color: #6b4a8c;
}
.tarot-card__role {
  font-size: 10px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  margin-top: 6px;
}
.tarot-flip-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}
.tarot-meanings {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tarot-meaning {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(201, 166, 107, 0.30);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.tarot-meaning__role {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.tarot-meaning__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 6px;
}
.tarot-meaning__body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* どうぶつキャラ診断結果 */
.animal-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 12px;
}
.animal-emoji {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(184, 156, 217, 0.30));
  margin-bottom: 4px;
}
.animal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
  margin: 0;
}
.animal-color {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  font-weight: 600;
  text-transform: uppercase;
}
.animal-color--gold   { color: #a07c2a; }
.animal-color--silver { color: #5a6478; }
.animal-color--red    { color: #a04848; }
.animal-color--blue   { color: #3a5e92; }
.animal-color--green  { color: #4a7050; }
.animal-summary {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* 数秘術 */
.numero-result {
  text-align: center;
  padding: 4px 0 8px;
}
.numero-num {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #5a3d8a, var(--gold-deep), #5a3d8a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 18px rgba(90, 61, 138, 0.18);
}
.numero-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: -8px;
}
.numero-title {
  font-family: var(--font-heading);
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-main);
  font-weight: 700;
}

/* 星座 */
.zodiac-result {
  text-align: center;
}
.zodiac-symbol {
  font-size: 52px;
  color: var(--gold-deep);
  text-shadow: 0 0 14px rgba(229, 204, 138, 0.45);
}
.zodiac-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-top: 4px;
}
.zodiac-period {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* おみくじ */
.omikuji-result {
  text-align: center;
  padding: 8px 0;
}
.omikuji-rank {
  display: inline-block;
  padding: 8px 32px;
  border: 2px solid #cfa95c;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.95), rgba(245, 227, 177, 0.85));
  color: #4a2818;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-family: serif;
  box-shadow: 0 0 24px rgba(207, 169, 92, 0.4);
}
.omikuji-rank--good   { color: #8b1f1f; }
.omikuji-rank--mid    { color: #4a2818; }
.omikuji-rank--small  { color: #4a3818; }
.omikuji-rank--neutral{ color: #2a2a2a; }
.omikuji-rank--end    { color: #5a4848; }
.omikuji-rank--bad    { color: #3a1a1a; }
.omikuji-list {
  text-align: left;
  margin: 14px 0 0;
  padding: 0 4px;
  list-style: none;
}
.omikuji-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(201, 166, 107, 0.32);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}
.omikuji-list li:last-child { border-bottom: 0; }
.omikuji-list strong {
  display: inline-block;
  width: 60px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ルノルマン・オラクル・ルーン共通 */
.draw-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
.draw-card {
  flex: 0 0 auto;
  width: 80px;
  padding: 12px 6px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 247, 236, 0.95), rgba(245, 228, 255, 0.92));
  text-align: center;
  box-shadow: 0 4px 14px rgba(184, 156, 217, 0.18);
}
.draw-card__symbol {
  display: block;
  font-size: 28px;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.draw-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-main);
  font-weight: 600;
}
.draw-card__role {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-top: 2px;
  text-transform: uppercase;
}

/* オラクル（メッセージカード） */
.oracle-card {
  padding: 18px 16px;
  border: 1px solid rgba(184, 156, 217, 0.45);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(245, 228, 255, 0.5), rgba(255, 247, 236, 0.55));
  text-align: center;
}
.oracle-icon {
  font-size: 32px;
  color: var(--accent-violet);
  margin-bottom: 6px;
}
.oracle-keyword {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text-main);
  font-weight: 700;
  margin: 0 0 8px;
}
.oracle-message {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ルーン */
.rune-result {
  text-align: center;
}
.rune-symbol {
  font-size: 56px;
  color: var(--gold-deep);
  text-shadow: 0 0 16px rgba(229, 204, 138, 0.5);
  letter-spacing: 0.1em;
  font-family: "Noto Sans Symbols 2", "Segoe UI Symbol", sans-serif;
}
.rune-name {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--text-main);
  font-weight: 700;
  margin-top: 4px;
}
.rune-meaning {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

/* 月相 */
.moon-result {
  text-align: center;
  padding: 6px 0 12px;
}
.moon-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a2c5e 0%, #241a44 70%);
  border: 1px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 44, 92, 0.22);
}
.moon-disk {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5d8, var(--gold-light));
  box-shadow: inset 0 0 12px rgba(255, 250, 230, 0.7);
}
.moon-shadow {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #241a44;
  transform-origin: center;
}
.moon-phase-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
}
.moon-phase-sub {
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* スマホ最適化 */
@media (max-width: 420px) {
  .ftype-chip__inner {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .result-tab {
    min-width: 56px;
    padding: 9px 8px;
    font-size: 12px;
  }
  .tarot-card { width: 78px; }
  .animal-emoji { font-size: 56px; }
  .numero-num { font-size: 56px; }
  .omikuji-rank { font-size: 24px; padding: 6px 24px; }
}

/* =========================================================
   v3 修正: 横スクロール抑止＋タブ色分け
   ========================================================= */
/* アプリ本体に max-width 制約を入れる（はみ出し防止） */
.app {
  max-width: 100vw;
  overflow-x: clip;
}

/* タブのアイコン */
.result-tab__icon {
  display: inline-block;
  margin-right: 3px;
  font-size: 11px;
  opacity: 0.7;
  transform: translateY(-1px);
}
.result-tab.is-active .result-tab__icon {
  opacity: 1;
  color: var(--gold-deep);
}

/* テーマ別アドバイス */
.card--theme-advice {
  border-color: var(--gold);
  background:
    linear-gradient(160deg, rgba(229, 204, 138, 0.30), rgba(184, 156, 217, 0.20)),
    rgba(255, 255, 255, 0.6);
}
.card--theme-advice .card__label {
  color: var(--gold-deep);
}

/* 恋愛タブ専用のアクセント */
.card--love-hero {
  border-color: rgba(229, 138, 168, 0.45);
  background:
    linear-gradient(160deg, rgba(240, 168, 197, 0.28), rgba(229, 204, 138, 0.18)),
    rgba(255, 255, 255, 0.6);
}
.card--love-hero .card__label,
.card--love .card__label {
  color: #b03a5b;
}
.card--love {
  border-color: rgba(229, 138, 168, 0.32);
}

/* 仕事タブ専用のアクセント */
.card--work-hero {
  border-color: rgba(110, 140, 200, 0.45);
  background:
    linear-gradient(160deg, rgba(140, 165, 220, 0.25), rgba(184, 156, 217, 0.18)),
    rgba(255, 255, 255, 0.6);
}
.card--work-hero .card__label,
.card--work .card__label {
  color: #3a5e92;
}
.card--work {
  border-color: rgba(110, 140, 200, 0.30);
}

/* 結果タブのアコーディオン下に余白 */
.tab-panel .accordion {
  margin-top: 8px;
}

/* =========================================================
   v3.5: バイオリズム
   ========================================================= */
.bio-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.bio-card {
  padding: 12px 14px;
  border: 1px solid rgba(201, 166, 107, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}
.bio-card__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-main);
  font-weight: 600;
  margin: 0 0 6px;
}
.bio-bar {
  position: relative;
  height: 6px;
  background: rgba(184, 156, 217, 0.22);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 6px;
}
.bio-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(60, 44, 92, 0.30);
}
.bio-bar__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-violet), var(--gold));
  transition: width 0.5s ease;
}
.bio-card__value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0;
  letter-spacing: 0.04em;
}
.bio-card__phase {
  display: inline-block;
  margin-left: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  font-weight: 500;
  text-transform: uppercase;
}
.bio-card__comment {
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 4px 0 0;
}
