/* ============================================================
   ARCANA — タロット占い スタイルシート
   ============================================================ */

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

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: rgba(201, 168, 76, 0.15);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-pale: rgba(124, 58, 237, 0.15);
  --pink: #ec4899;
  --bg-dark: #050010;
  --text: #e8e0f0;
  --text-dim: rgba(232, 224, 240, 0.6);
  --border: rgba(201, 168, 76, 0.2);
  --card-bg: rgba(10, 0, 30, 0.85);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.4);
  --glow-gold: 0 0 20px rgba(201, 168, 76, 0.3);
  --font-title: 'Cinzel Decorative', serif;
  --font-serif: 'Cinzel', serif;
  --font-body: 'Noto Serif JP', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* ============================================================
   星空キャンバス
   ============================================================ */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   ローディング
   ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050010;
  transition: opacity 0.8s ease;
}

#loading-screen.fade-out { opacity: 0; pointer-events: none; }

.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-symbol {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold);
  animation: loadingPulse 2s ease-in-out infinite;
  letter-spacing: 0.5em;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 40px var(--gold); }
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-light), var(--gold));
  transition: width 0.2s ease;
  box-shadow: 0 0 10px var(--gold);
}

.loading-text {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

/* ============================================================
   メインアプリ
   ============================================================ */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#app.visible { opacity: 1; }

/* ============================================================
   ヘッダー
   ============================================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-symbol {
  font-size: 1.2rem;
  color: var(--gold);
  animation: twinkle 3s ease-in-out infinite;
}

.logo-symbol:last-child { animation-delay: 1.5s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; text-shadow: 0 0 20px var(--gold); }
}

.logo-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.3em;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.5);
  font-weight: 700;
}

.logo-sub {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.header-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 0 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

.divider-icon {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.6;
}

/* ============================================================
   シーン
   ============================================================ */
#main-content { flex: 1; }

.scene {
  display: none;
  padding: 60px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
  animation: sceneFadeIn 0.6s ease forwards;
}

.scene.active { display: block; }

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

.scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.scene-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold-light);
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.4);
}

.scene-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.05em;
}

/* ============================================================
   月デコレーション
   ============================================================ */
.moon-decoration {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: -10px;
}

.moon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f8e9b0, #c9a84c 60%, #7c4f00);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset -8px -4px 20px rgba(0,0,0,0.4), 0 0 40px rgba(201, 168, 76, 0.3);
  animation: moonFloat 6s ease-in-out infinite;
}

.moon-glow {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15), transparent 70%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}

/* ============================================================
   スプレッド選択
   ============================================================ */
.spread-selection {
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.spread-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.spread-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.spread-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.spread-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(201, 168, 76, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spread-btn:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3), var(--glow-gold);
}

.spread-btn:hover::before { opacity: 1; }

.spread-btn.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--glow-gold);
}

.spread-btn.active::before { opacity: 1; }

.spread-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spread-card-preview {
  display: flex;
  gap: 4px;
  align-items: center;
}

.spread-card-preview.single {
  width: 24px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 3px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.spread-card-preview.three div,
.spread-card-preview.five div {
  width: 18px;
  height: 28px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  border: 1px solid rgba(201, 168, 76, 0.5);
}

.spread-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.spread-desc-small {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================
   質問入力
   ============================================================ */
.question-area { width: 100%; max-width: 500px; }

.question-input-wrap {
  position: relative;
}

#question-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 0, 30, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

#question-input::placeholder { color: rgba(232, 224, 240, 0.3); }

#question-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2), 0 0 20px rgba(201, 168, 76, 0.1);
}

.input-glow {
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#question-input:focus + .input-glow { opacity: 0.2; }

/* ============================================================
   ボタン
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(201, 168, 76, 0.2));
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(201, 168, 76, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4), var(--glow-gold);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
  animation: btnPulse 1s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(124, 58, 237, 0.6); }
}

.btn-icon {
  font-size: 0.8rem;
  opacity: 0.7;
  animation: twinkle 2s ease-in-out infinite;
}

.btn-secondary {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

.btn-secondary:hover {
  color: var(--text);
  text-decoration-color: var(--text-dim);
}

.hidden { display: none !important; }

/* ============================================================
   カードデッキ（選択画面）
   ============================================================ */
.card-deck-container {
  width: 100%;
  max-width: 800px;
  padding: 20px 0;
}

.card-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  perspective: 1000px;
}

.deck-card {
  width: 64px;
  height: 96px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  position: relative;
  opacity: 0;
}

.deck-card.card-entrance {
  animation: cardEntrance 0.4s ease forwards;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px) rotateY(15deg); }
  to { opacity: 1; transform: translateY(0) rotateY(0); }
}

.deck-card:hover {
  transform: translateY(-8px) rotateY(-5deg) scale(1.05);
  z-index: 10;
}

.deck-card.selected {
  transform: translateY(-12px) scale(1.1);
  z-index: 20;
}

.deck-card.selected .deck-card-back {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.6), 0 8px 30px rgba(124, 58, 237, 0.4);
}

.deck-card.card-select-pulse .deck-card-back {
  animation: selectPulse 0.6s ease;
}

@keyframes selectPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.8); }
  100% { box-shadow: 0 0 0 20px rgba(201, 168, 76, 0); }
}

.deck-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.deck-card.flipping .deck-card-inner {
  animation: cardFlip 0.6s ease forwards;
}

@keyframes cardFlip {
  0% { transform: rotateY(0); }
  50% { transform: rotateY(90deg); }
  100% { transform: rotateY(0); opacity: 0.3; }
}

.deck-card-back {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, #1a0040, #0d0025);
  border: 1px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-back-pattern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-back-border {
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(124, 58, 237, 0.03) 4px,
    rgba(124, 58, 237, 0.03) 8px
  );
}

.card-back-symbol {
  font-size: 1.2rem;
  color: rgba(167, 139, 250, 0.5);
  z-index: 1;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.selected-indicator {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  padding: 10px 24px;
  background: rgba(10, 0, 30, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ============================================================
   結果カード
   ============================================================ */
.result-inner { gap: 40px; }

.question-display {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 0, 30, 0.4);
}

.q-label { color: var(--gold); margin-right: 8px; }
.q-text { font-style: italic; }

.result-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  width: 100%;
}

.result-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 240px;
  opacity: 0;
}

.result-card-wrap.result-entrance {
  animation: resultEntrance 0.8s ease forwards;
}

@keyframes resultEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.result-position-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.result-card {
  width: 150px;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(160deg, #15003a, #0a001f);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), transparent);
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4), var(--glow-gold);
}

.result-card.reversed .result-card-face { transform: rotate(180deg); }

.result-card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.result-card-symbol {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 15px currentColor);
  animation: symbolGlow 3s ease-in-out infinite;
}

.result-card-img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

@keyframes symbolGlow {
  0%, 100% { filter: drop-shadow(0 0 10px currentColor); }
  50% { filter: drop-shadow(0 0 25px currentColor); }
}

.result-card-number {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
}

.result-card-name-jp {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
}

.result-card-name-en {
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.reversed-badge {
  position: absolute;
  bottom: 8px;
  font-size: 0.62rem;
  color: #f87171;
  letter-spacing: 0.15em;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.result-card-glow {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.6;
}

.result-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.keyword-tag {
  font-size: 0.65rem;
  padding: 3px 10px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 999px;
  color: var(--purple-light);
  letter-spacing: 0.05em;
  background: rgba(124, 58, 237, 0.1);
}

.keyword-tag.large {
  font-size: 0.75rem;
  padding: 4px 14px;
}

.result-card-meaning {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

.btn-detail {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-detail:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ============================================================
   サマリー
   ============================================================ */
.result-summary { width: 100%; max-width: 600px; }

.summary-inner {
  text-align: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
}

.summary-divider {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
  animation: twinkle 3s ease-in-out infinite;
}

.summary-message {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  line-height: 2;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.result-actions { margin-top: 16px; }

/* ============================================================
   モーダル
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.visible .modal-overlay { opacity: 1; }

.modal-inner {
  position: relative;
  background: linear-gradient(160deg, #100025, #0a001a);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.3);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-inner::-webkit-scrollbar { width: 4px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.modal.visible .modal-inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.modal-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.modal-symbol {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px currentColor);
}

.modal-card-img {
  width: 80px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.modal-number {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.4em;
  margin-bottom: 4px;
}

.modal-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  line-height: 1.4;
}

.modal-name-en {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.rev-label {
  font-size: 0.7em;
  color: #f87171;
  vertical-align: middle;
}

.modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modal-section p {
  font-size: 0.88rem;
  line-height: 2;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.modal-section.advice {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.advice-text {
  color: var(--purple-light) !important;
  font-style: italic;
}

/* ============================================================
   パーティクル
   ============================================================ */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  animation: particleFloat 1.2s ease-out forwards;
  font-size: 14px;
}

@keyframes particleFloat {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* ============================================================
   フッター
   ============================================================ */

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 640px) {
  .spread-cards { gap: 12px; }
  .spread-btn { min-width: 120px; padding: 18px 14px; }

  .deck-card { width: 52px; height: 78px; }
  .card-back-symbol { font-size: 1rem; }

  .result-card { width: 130px; height: 190px; }
  .result-card-symbol { font-size: 2rem; }

  .modal-inner { padding: 28px 20px; }
  .modal-name { font-size: 1.2rem; }

  .logo-title { letter-spacing: 0.15em; }
}

@media (max-width: 400px) {
  .deck-card { width: 44px; height: 66px; }
  .card-deck { gap: 7px; }
}

/* ============================================================
   スクロールバー
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #05000f; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.6); }

/* ============================================================
   テキスト選択
   ============================================================ */
::selection { background: rgba(124, 58, 237, 0.3); color: var(--text); }
