/* ============================================
   Tarot Reading System
   ============================================ */

/* --- Reading Page Layout --- */
.reading-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 占卜页品牌头：比其他页更收敛（用户反馈标题占高过多） */
.reading-page .page-brand-header { padding: 32px 24px 10px; }
.reading-page .page-title-zh { font-size: 2rem; margin-bottom: 8px; }
.reading-page .page-subtitle-en { margin-bottom: 16px; }

.reading-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 48px 100px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Spread Selection --- */
.spread-select-header {
  text-align: center;
  margin-bottom: 24px;
}

.spread-select-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.spread-select-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.spread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 500px;
}

.spread-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.spread-option:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.07);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.5s ease;
}

.spread-option.selected,
.spread-option.selected:hover {
  border-width: 3px;
  border-color: var(--sel-border);
  box-shadow: var(--shadow-card);
}

.spread-option.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.spread-option-name {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.spread-option.disabled .spread-option-name {
  color: var(--text-muted);
}

.spread-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spread-option-suit {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.6;
}

.spread-option-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spread-option-badge.available {
  color: var(--accent-light);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.spread-option-badge.coming {
  color: var(--gold-dim);
  border-color: rgba(var(--gold-rgb), 0.2);
}

.spread-option-cards {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* --- Begin Button --- */
.reading-begin-area {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.reading-begin-btn {
  padding: 14px 48px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.45s ease;
  text-transform: uppercase;
}

.reading-begin-btn:hover {
  background: var(--accent);
  color: var(--white-warm);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.2);
}

/* ============================================
   Card Table — where cards are dealt
   ============================================ */

.card-table {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 440px;
}

/* --- Mahjong-style manual shuffle — FULL SCREEN --- */
.shuffle-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  overflow: hidden;
  cursor: default;
}

.shuffle-full-area {
  position: absolute;
  inset: 0 0 140px 0;  /* leave bottom 140px for overlay */
  cursor: default;
}

.shuffle-full-area.stirring {
  cursor: grabbing;
}

.shuffle-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 32px;
  background: linear-gradient(transparent, rgba(var(--bg-deep-rgb), 0.92) 35%, var(--bg-deep));
  z-index: 10;
  pointer-events: none;
}

.shuffle-overlay > * {
  pointer-events: auto;
}

.shuffle-mahjong-card {
  position: absolute;
  width: 82px;
  height: 116px;
  border-radius: 6px;
  background-image: var(--deck-back-image, url('../rider-waite/720px/Cover.jpg'));
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  transform-origin: center center;
  will-change: transform, left, top;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Shuffle hint text --- */
.shuffle-hint {
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
  animation: hint-pulse 2.5s ease-in-out infinite;
}

.shuffle-hint.minimal {
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: none;
  opacity: 0.55;
  text-align: center;
}

.shuffle-hint.complete {
  color: var(--accent-light);
  animation: none;
  opacity: 0.85;
  font-size: 0.85rem;
}

.shuffle-stir-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.shuffle-stir-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
  transition: all 0.4s ease;
}

.shuffle-stir-dot.done {
  background: var(--accent-light);
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.6);
}

.shuffle-continue-btn {
  margin-top: 20px;
  padding: 14px 40px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.35s ease;
  display: none;
}

.shuffle-continue-btn.visible {
  display: inline-flex;
}

.shuffle-continue-btn:hover {
  border-color: var(--accent-light);
  color: var(--white-warm);
  box-shadow: 0 0 32px rgba(var(--accent-rgb),0.2);
}

.shuffle-skip-btn {
  margin-top: 10px;
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.shuffle-skip-btn:hover {
  opacity: 0.7;
  color: var(--text-secondary);
}

/* ============================================
   Draw Stage — Left Panel + Right Fan
   ============================================ */

.draw-fullscreen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
}

/* ---- Left Panel: drawn cards + progress ---- */
.draw-panel {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px;
}

.draw-progress-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.draw-selected-area {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 130px;
  align-items: center;
}

.draw-selected-card {
  width: 88px;
  aspect-ratio: 3.5 / 2.5;
  border-radius: 6px;
  background-image: var(--deck-back-image, url('../rider-waite/720px/Cover.jpg'));
  background-size: cover;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-card);
  animation: draw-selected-in 0.35s ease-out both;
}

@keyframes draw-selected-in {
  from { transform: translateX(-50px) scale(0.6); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

.draw-review-btn {
  padding: 13px 40px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.35s ease;
  opacity: 0.3;
  pointer-events: none;
}

.draw-review-btn.enabled {
  border-color: var(--accent-light);
  color: var(--white-warm);
  opacity: 1;
  pointer-events: auto;
}

.draw-review-btn.enabled:hover {
  box-shadow: 0 0 32px rgba(var(--accent-rgb),0.25);
}

/* ---- Overlay in draw-progress mode: minimal ---- */
.shuffle-overlay.draw-mode {
  background: linear-gradient(transparent, rgba(var(--bg-deep-rgb), 0.65) 40%, var(--bg-deep));
}

.shuffle-hint.draw-progress {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  opacity: 0.42;
  animation: none;
  margin-top: 8px;
}

.draw-progress-dot {
  opacity: 0.3;
  margin-right: 2px;
  transition: opacity 0.5s ease;
}

.draw-progress-dot.done {
  opacity: 0.55;
  color: var(--accent-light);
}

/* Drawn card resting in tray — subtle elevation */
.shuffle-mahjong-card[style*="z-index: 300"] {
  box-shadow: 0 3px 16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
}
/* ============================================
   Dealt Card — with 3D flip
   ============================================ */

.dealt-cards-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
}

/* V2 牌陣並列：≤5 張的陣單行並列。
   grid 列 minmax(0,1fr) 讓每張牌自適應縮小（手機上寧小勿換行）；
   牌本體寬 100% 上限 160px（桌面不變大）。>5 張大陣走上面的 flex 換行 */
.dealt-cards-area.dealt-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--card-cols, 3), minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: clamp(10px, 2.5vw, 40px);
  padding: 20px 12px;
}

.dealt-row .dealt-card-wrapper {
  width: 100%;
}

.dealt-row .tarot-card-3d {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 2.5 / 3.5;
}

.dealt-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: card-deal-in 0.7s cubic-bezier(0.22, 0.1, 0.18, 1) both;
}

@keyframes card-deal-in {
  from { opacity: 0; transform: translateY(60px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 3D card container */
.tarot-card-3d {
  width: 160px;
  max-width: 42vw;
  aspect-ratio: 2.5 / 3.5;
  height: auto;
  perspective: 800px;
  cursor: pointer;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.22, 0.08, 0.15, 1);
}

.tarot-card-inner.flipped {
  transform: rotateY(180deg);
}

.tarot-card-inner.flipped.reversed {
  transform: rotateY(180deg) rotateZ(180deg);
}

.tarot-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
}

/* Card Back */
.tarot-card-back {
  background-image: var(--deck-back-image, url('../rider-waite/720px/Cover.jpg'));
  background-size: cover;
  background-position: center;
  z-index: 2;
}

/* Card Front */
.tarot-card-front {
  transform: rotateY(180deg);
  z-index: 1;
}

.tarot-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card position label */
.card-position-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* Card name (shown after flip) */
.card-name-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 160px;
}

.card-orientation {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-orientation.upright { color: var(--gold-dim); }
.card-orientation.reversed-label { color: var(--accent-light); }

/* ============================================
   Interpretation Area
   ============================================ */

.interpretation-area {
  margin-top: 56px;
  text-align: center;
}

.interpretation-waiting {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* Breathing animation for cards during AI thinking */
.dealt-card-wrapper.breathing .tarot-card-3d {
  animation: card-breathe 3s ease-in-out infinite;
}

@keyframes card-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

/* AI Interpretation result */
.interpretation-result {
  margin-top: 40px; width: 100%; max-width: 640px;
  display: flex; flex-direction: column; gap: 20px;
}

.interp-block {
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.035); padding: 22px 26px;
}

.interp-block-title {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}

.interp-block-content {
  font-size: 0.88rem; font-weight: 400; color: var(--text-secondary);
  line-height: 1.8; white-space: pre-wrap;
}

.reading-retry-area {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}

/* ============================================
   Reading actions
   ============================================ */

.reading-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.reading-action-btn {
  padding: 10px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.reading-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-secondary);
}

/* ============================================
   Reading Wizard — 7-Step Flow
   ============================================ */

/* --- Wizard Container --- */
.reading-wizard {
  max-width: 600px; margin: 0 auto; width: 100%;
  position: relative; perspective: 1200px;
  min-height: 480px; display: flex; align-items: center; justify-content: center;
}

/* --- Step Panels --- */
.reading-step {
  display: none; flex-direction: column; align-items: center;
  width: 100%; gap: 18px;
  animation: reading-step-in 0.5s cubic-bezier(0.22, 0.1, 0.18, 1);
}

.reading-step.active { display: flex; }

@keyframes reading-step-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Step Header --- */
.reading-step-header {
  text-align: center; margin-bottom: 4px;
}

.reading-step-title {
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 400;
  color: var(--text-primary); letter-spacing: 0.05em;
}

.reading-step-sub {
  font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 4px;
}

/* --- Step Progress --- */
.reading-progress {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 8px;
}

.reading-progress-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s ease;
}

.reading-progress-dot.done  { background: var(--accent-light); }
.reading-progress-dot.current { background: var(--text-primary); }

.reading-progress-line {
  width: 20px; height: 1px; background: rgba(255,255,255,0.06);
  transition: background 0.3s ease;
}

.reading-progress-line.done { background: rgba(var(--accent-rgb),0.35); }

/* ============================================
   Step 1 — Target Selection
   ============================================ */

.target-options {
  display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 340px;
}

.target-option {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.05);
  background: var(--bg-card); cursor: pointer;
  transition: all 0.35s ease;
}

.target-option:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.5s ease;
}

.target-option.selected {
  border-width: 3px;
  border-color: var(--sel-border);
  box-shadow: var(--shadow-card);
}

.target-option-icon {
  font-size: 1.25rem; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
}

.target-option-info { flex: 1; }

.target-option-name {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 400;
  color: var(--text-primary); letter-spacing: 0.03em;
}

.target-option-desc {
  font-size: 0.72rem; color: var(--text-muted); margin-top: 2px;
}

/* Character cards for selection */
.target-char-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; width: 100%; max-width: 500px;
}

.target-char-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.04);
  background: var(--bg-card); cursor: pointer;
  transition: all 0.35s ease;
}

.target-char-card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.target-char-card.selected {
  border-width: 2px;
  border-color: var(--sel-border);
}

.target-char-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 200;
  color: rgba(255,255,255,0.15); flex-shrink: 0;
}

.target-char-info { flex: 1; min-width: 0; }

.target-char-name {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 400;
  color: var(--text-primary); letter-spacing: 0.02em;
}

.target-char-world {
  font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.04em;
}

.target-create-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,0.06);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 300;
  color: var(--text-muted); text-decoration: none;
  transition: all 0.3s ease; width: 100%; max-width: 500px;
}

.target-create-link:hover {
  border-color: rgba(255,255,255,0.14);
  color: var(--text-secondary);
}

/* ============================================
   Step 3b — Mode Selection
   ============================================ */

.mode-options {
  display: flex;
  gap: 20px;
  max-width: 440px;
  width: 100%;
}

.mode-option {
  flex: 1;
  padding: 28px 20px;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  background: var(--bg-card);
  cursor: pointer;
  text-align: center;
  transition: all 0.35s ease;
  position: relative;
}

.mode-option:hover {
  border-color: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.5s ease;
}

.mode-option.selected {
  border-width: 3px;
  border-color: var(--sel-border);
  box-shadow: var(--shadow-card);
}

.mode-option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.35s ease;
}

.mode-option.selected .mode-option-icon {
  color: var(--accent-light);
}

.mode-option-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.35s ease;
}

.mode-option.selected .mode-option-name {
  color: var(--accent-light);
}

.mode-option-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================
   Step 3 — Question Input
   ============================================ */

.question-area {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px;
}

.question-input {
  width: 100%; min-height: 110px; resize: vertical;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 18px 20px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 300;
  color: var(--text-primary); letter-spacing: 0.02em; line-height: 1.7;
  outline: none; transition: border-color 0.4s ease;
}

.question-input::placeholder {
  color: rgba(255,255,255,0.12);
  font-style: italic;
}

/* 銀白主題：白底上輸入框本體與 placeholder 原本近乎不可見（V1 輸入態統一時一併修）。
   注意：必須放在 :focus 規則之前——特異性與 :focus 平手，靠源順序讓焦點態勝出 */
[data-theme="silver"] .question-input {
  background: #FAFAFB;
  border-color: rgba(46, 46, 51, 0.22);
}
[data-theme="silver"] .question-input::placeholder {
  color: #A2A2A8;
}

.question-input:focus {
  border-width: 2px;
  border-color: var(--sel-border);
  transition: border-color 0.25s ease;
}

.question-hint {
  font-size: 0.75rem; color: var(--text-muted);
  font-style: italic; line-height: 1.6; text-align: center;
}

.question-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

.question-chip {
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent; font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 300; color: var(--text-muted);
  cursor: pointer; transition: all 0.3s ease; letter-spacing: 0.03em;
}

.question-chip:hover {
  border-color: rgba(255,255,255,0.16);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.015);
}

/* ============================================
   Step 4 — Confirmation
   ============================================ */

.confirm-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.04); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 20px;
}

.confirm-row {
  display: flex; flex-direction: column; gap: 3px;
}

.confirm-label {
  font-family: var(--font-sans); font-size: 0.62rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
}

.confirm-value {
  font-size: 0.9rem; font-weight: 300; color: var(--text-primary);
  letter-spacing: 0.02em; line-height: 1.5;
}

.confirm-divider {
  height: 1px; background: rgba(255,255,255,0.035);
}

.confirm-begin-btn {
  padding: 14px 40px; border-radius: 100px;
  border: 1px solid var(--accent); background: transparent;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 400;
  color: var(--accent-light); letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.45s ease;
  text-transform: uppercase; align-self: center;
}

.confirm-begin-btn:hover {
  background: var(--accent); color: var(--white-warm);
  box-shadow: 0 4px 24px rgba(var(--accent-rgb),0.2);
}

/* ============================================
   Wizard navigation buttons
   ============================================ */

.wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 460px; gap: 12px;
  flex-wrap: wrap;
}

.wizard-nav-btn {
  padding: 10px 24px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent; font-family: var(--font-sans);
  font-size: 0.78rem; font-weight: 300; color: var(--text-muted);
  letter-spacing: 0.05em; cursor: pointer;
  transition: all 0.3s ease;
}

.wizard-nav-btn:hover {
  border-color: rgba(255,255,255,0.16); color: var(--text-secondary);
}

.wizard-nav-btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--white-warm);
}

.wizard-nav-btn.primary:hover {
  background: var(--accent-light);
}

.wizard-nav-btn:disabled {
  opacity: 0.25; cursor: not-allowed; pointer-events: none;
}

/* ============================================
   Follow-up Questions
   ============================================ */

.follow-up-header {
  text-align: center;
  margin-bottom: 14px;
}

.follow-up-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.follow-up-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  opacity: 0.5;
  margin-top: 2px;
}

.follow-up-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.follow-up-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-align: left;
  cursor: pointer;
  transition: all 0.35s ease;
}

.follow-up-btn:hover {
  border-color: rgba(255,255,255,0.14);
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
