/* ===== Design System: Dark Luxe Editorial ===== */
/* Aesthetic Direction: Luxury/refined + Editorial/magazine fusion */
/* NOT any of the 3 default AI looks (no warm cream+terracotta, no near-black+acid, no broadsheet) */
/* Fonts: Noto Serif SC (display) + Noto Sans SC (body) — distinctive, not Inter/Roboto */
/* Icons: Inline SVG (Heroicons style, 24x24 viewBox, stroke-width=2) — no emoji */
/* Layout: Asymmetric 12-col grid, overlapping elements, mixed dark/light sections */

:root {
  /* Dominant palette — deep obsidian + warm ivory */
  --obsidian: #0E0E10;
  --obsidian-2: #16161A;
  --obsidian-3: #1E1E24;
  --ivory: #F5F2EC;
  --ivory-2: #EAE5DC;
  --surface: #FAFAF8;
  --surface-dark: #1A1A20;

  /* Accent palette — antique gold + oxblood dual-accent */
  --gold: #C9A961;
  --gold-light: #D4B876;
  --gold-dim: rgba(201,169,97,0.12);
  --oxblood: #7B2D26;
  --crimson: #B85450;
  --crimson-light: #C9716D;
  --crimson-dim: rgba(184,84,80,0.10);
  --sage: #6B8E7F;
  --sage-dim: rgba(107,142,127,0.10);

  /* Neutral text */
  --text-dark: #0E0E10;
  --text-light: #F5F2EC;
  --text-muted: #8B8680;
  --text-muted-dark: #6B6B6B;
  --text-dim: #5A5A5A;

  /* Lines & borders */
  --line-light: #DDD8CE;
  --line-dark: rgba(255,255,255,0.08);
  --line-dark-2: rgba(255,255,255,0.05);

  /* Typography */
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Radii — generous, luxurious */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 8px 32px -8px rgba(14,14,16,0.08);
  --shadow-card-hover: 0 16px 48px -12px rgba(14,14,16,0.15);
  --shadow-dark: 0 8px 32px -8px rgba(0,0,0,0.4);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--ivory);
  color: var(--text-dark);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  text-wrap: pretty;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input[type="radio"] { appearance: none; -webkit-appearance: none; }

/* ===== Animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes gauge-fill {
  from { stroke-dashoffset: var(--circumference); }
  to { stroke-dashoffset: var(--target-offset); }
}
@keyframes counter-up {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
@keyframes grain {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-2px,1px); }
  50% { transform: translate(1px,-1px); }
  75% { transform: translate(-1px,2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Hero Page — Asymmetric Dark Luxe ===== */
.hero-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--obsidian);
}
/* Subtle gold radial glow — top right, asymmetric */
.hero-page::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,0.08), transparent 65%);
  filter: blur(60px);
  z-index: 0;
}
/* Oxblood glow — bottom left, creates diagonal tension */
.hero-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,45,38,0.06), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  padding: 72px 40px 60px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-content { padding: 56px 20px 40px; }
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(201,169,97,0.08);
  border: 1px solid rgba(201,169,97,0.15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fade-up 0.8s 0.15s both ease-out;
}
.pill-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: shimmer 2.5s infinite ease-in-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--text-light);
  margin-bottom: 20px;
  animation: fade-up 1s 0.35s both ease-out;
}
.hero-title .accent { color: var(--gold); }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
  max-width: 440px;
  animation: fade-up 0.8s 0.6s both ease-out;
}

/* ===== Test Cards — Asymmetric Overlapping Grid ===== */
.test-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 640px;
  margin-bottom: 40px;
  animation: fade-up 0.8s 0.8s both ease-out;
}
@media (min-width: 640px) {
  .test-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  /* Asymmetric: odd cards offset down for diagonal flow */
  .test-cards .test-card:nth-child(odd) { margin-top: 0; }
  .test-cards .test-card:nth-child(even) { margin-top: 24px; }
  .test-cards .test-card:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 8px); margin-left: 25%; }
}

.test-card {
  position: relative;
  display: block;
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}
.test-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-dark);
  border-color: rgba(201,169,97,0.25);
}
.test-card:active { transform: translateY(-1px) scale(0.99); }

/* Card accent line — top left, not centered */
.test-card::before {
  content: '';
  position: absolute;
  top: 0; left: 22px;
  width: 32px; height: 2px;
  background: var(--gold);
  opacity: 0.6;
  transition: width 0.4s ease;
}
.test-card:hover::before { width: 60px; opacity: 1; }

/* Card glow — subtle, positioned asymmetrically */
.test-card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  top: -20px;
  right: -20px;
  opacity: 0.4;
  transition: opacity 0.4s;
  pointer-events: none;
}
.test-card:hover .test-card-glow { opacity: 0.7; }

.test-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.test-card > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.test-card-meta { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(201,169,97,0.08);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-gold { background: rgba(201,169,97,0.08); color: var(--gold); }
.tag-sage { background: var(--sage-dim); color: var(--sage); }
.tag-crimson { background: var(--crimson-dim); color: var(--crimson-light); }
.tag-oxblood { background: rgba(123,45,38,0.12); color: var(--crimson); }

.test-card-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 9999px;
  background: var(--text-light);
  color: var(--obsidian);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.test-card:hover .test-card-btn { box-shadow: 0 4px 16px -4px rgba(245,242,236,0.2); }
.test-card-btn.charm { background: var(--gold); color: var(--obsidian); }
.test-card-btn.mbti { background: var(--sage); color: var(--text-light); }
.test-card-btn.shadow { background: var(--crimson); color: var(--text-light); }
.test-card-btn.sin { background: var(--oxblood); color: var(--gold); }

.hero-v3 {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 20px;
  animation: fade-up 0.6s 1.1s both ease-out;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 9999px;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  min-height: 52px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -8px rgba(201,169,97,0.4); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary svg { margin-left: 8px; width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 1px solid var(--line-dark);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  min-height: 52px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 32px;
}
.btn-dev:hover { border-color: var(--gold); color: var(--gold); }

/* ===== Progress Bar ===== */
.progress-track { height: 2px; background: var(--line-dark); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 9999px; transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.progress-fill.mbti-progress-fill { background: var(--sage); }
.progress-fill.shadow-progress-fill { background: var(--crimson); }
.progress-fill.sin-progress-fill { background: var(--oxblood); }

/* ===== Test Page — Dark Theme ===== */
.test-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--obsidian); }
.test-progress { padding: 28px 28px 8px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.progress-header span { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.08em; }
.progress-hint { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 8px; letter-spacing: 0.05em; }
.test-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 24px; }
.question-container { width: 100%; max-width: 640px; text-align: center; animation: slide-in-right 0.4s ease-out; }
.charm-container { max-width: 680px; }

/* ===== Options Grid (Attachment) ===== */
.options-grid { display: grid; gap: 10px; max-width: 500px; margin: 0 auto; }
.option-card {
  display: block; width: 100%; padding: 16px 24px; border-radius: var(--radius-md);
  background: var(--surface-dark); border: 1px solid var(--line-dark); color: var(--text-light);
  font-size: 15px; font-weight: 500; text-align: center; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.option-card:hover { border-color: var(--gold); transform: scale(1.02); box-shadow: 0 4px 24px -4px rgba(201,169,97,0.12); }
.option-card:active { transform: scale(0.98); }

/* ===== Charm/Shadow/Sin Question Items ===== */
.charm-question-item {
  background: var(--surface-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 20px 24px 16px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}
.charm-question-item:hover { box-shadow: var(--shadow-dark); }
.charm-question-item.answered { border-color: rgba(201,169,97,0.25); }
.shadow-question-item.answered { border-color: rgba(184,84,80,0.25) !important; }
.sin-question-item.answered { border-color: rgba(123,45,38,0.3) !important; }
.charm-question-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.question-number {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--obsidian);
  font-size: 12px; font-weight: 700;
}
.shadow-q-num { background: var(--crimson) !important; color: var(--text-light) !important; }
.sin-q-num { background: var(--oxblood) !important; color: var(--gold) !important; }
.charm-question-text {
  font-size: 1rem; font-weight: 500; color: var(--text-light); line-height: 1.6;
  text-align: left; flex: 1; padding-top: 4px;
}

/* ===== Text Options ===== */
.charm-options-text { display: flex; flex-direction: column; gap: 8px; }
.charm-text-option { display: block; width: 100%; }
.charm-text-option input[type="radio"] { display: none; }
.charm-text-option input[type="radio"] + span {
  display: block; width: 100%; padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--obsidian-2); border: 1px solid var(--line-dark); color: var(--text-light);
  font-size: 14px; font-weight: 500; cursor: pointer; text-align: center;
  transition: all 0.3s ease;
}
.charm-text-option input[type="radio"] + span:hover {
  border-color: var(--gold); box-shadow: 0 4px 16px -4px rgba(201,169,97,0.10);
  transform: scale(1.01);
}
.charm-text-option input[type="radio"]:checked + span {
  background: var(--gold); color: var(--obsidian); border-color: transparent;
  box-shadow: 0 4px 20px -4px rgba(201,169,97,0.3); font-weight: 600;
}
.shadow-text-option input[type="radio"] + span:hover {
  border-color: var(--crimson) !important; box-shadow: 0 4px 16px -4px rgba(184,84,80,0.12) !important;
}
.shadow-text-option input[type="radio"]:checked + span {
  background: var(--crimson) !important; color: var(--text-light) !important; border-color: transparent !important;
  box-shadow: 0 4px 20px -4px rgba(184,84,80,0.3) !important;
}
.sin-text-option input[type="radio"] + span:hover {
  border-color: var(--oxblood) !important; box-shadow: 0 4px 16px -4px rgba(123,45,38,0.12) !important;
}
.sin-text-option input[type="radio"]:checked + span {
  background: var(--oxblood) !important; color: var(--gold) !important; border-color: transparent !important;
  box-shadow: 0 4px 20px -4px rgba(123,45,38,0.3) !important;
}
.shadow-submit-btn { background: var(--crimson) !important; }
.sin-submit-btn { background: var(--oxblood) !important; color: var(--gold) !important; }

/* ===== Dimension Badge ===== */
.dimension-badge {
  display: inline-block; padding: 5px 14px; border-radius: 9999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 28px;
}
.dimension-badge.anxiety { background: rgba(184,84,80,0.1); color: var(--crimson-light); }
.dimension-badge.avoidance { background: var(--gold-dim); color: var(--gold); }
.dimension-badge.mbti-badge { background: var(--sage-dim); color: var(--sage); }
.dimension-badge.sin-badge { background: rgba(123,45,38,0.1); color: var(--crimson); }

/* ===== MBTI Options ===== */
.mbti-options-grid { display: grid; gap: 14px; max-width: 540px; margin: 0 auto; }
.mbti-option-card {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; padding: 22px 24px; border-radius: var(--radius-lg);
  background: var(--surface-dark); border: 1px solid var(--line-dark); color: var(--text-light);
  font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mbti-option-card:hover { border-color: var(--sage); box-shadow: 0 6px 24px -6px rgba(107,142,127,0.15); transform: scale(1.01); }
.mbti-option-card:active { transform: scale(0.99); }
.mbti-option-label {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--sage); color: var(--text-light); font-size: 15px; font-weight: 700;
}
.mbti-option-text { flex: 1; line-height: 1.6; padding-top: 3px; }

/* ===== Nav ===== */
.test-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; }
.nav-prev { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.3s; cursor: pointer; background: none; border: none; }
.nav-prev:hover { color: var(--gold); }
.nav-hint { font-size: 12px; color: var(--text-dim); }
.btn-full { width: 100%; max-width: 400px; margin: 24px auto 0; }

/* ===== Question Text ===== */
.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600; color: var(--text-light); line-height: 1.5; letter-spacing: -0.02em;
  margin-bottom: 36px; min-height: 60px; display: flex; align-items: center; justify-content: center;
}

/* ===== Result Page — Dark Obsidian ===== */
.result-page { min-height: 100vh; background: var(--obsidian); color: var(--text-light); }
.result-header { padding: 56px 24px 36px; text-align: center; position: relative; }
.result-header .label { color: var(--text-muted); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.result-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em;
  margin-bottom: 8px; animation: fade-up 0.8s 0.3s both ease-out;
}
.result-header .subtitle { color: var(--text-muted); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; animation: fade-up 0.8s 0.5s both ease-out; }
.result-header .description { color: var(--text-muted); font-size: 1.0625rem; line-height: 1.8; max-width: 520px; margin: 0 auto; animation: fade-up 0.8s 0.7s both ease-out; }
.charm-header { padding-top: 44px; }
.mbti-header { padding-top: 44px; }
.shadow-header { padding-top: 44px; }
.sin-header { padding-top: 44px; }
.shadow-header .description { max-width: 520px; font-style: italic; }

/* ===== Gauge Section ===== */
.gauge-section { padding: 32px 24px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; animation: fade-up 0.8s 0.9s both ease-out; }
@media (min-width: 768px) { .gauge-section { flex-direction: row; gap: 80px; } }
.gauge-wrap { width: 220px; height: 220px; position: relative; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-base { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.gauge-progress { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.292; animation: gauge-fill 2s 1.2s both ease-out; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-light); animation: counter-up 0.6s 1.5s both ease-out; }
.gauge-value span { font-size: 1.25rem; color: var(--text-dim); }
.gauge-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 8px; }

/* ===== Radar Chart ===== */
.radar-container { width: 100%; max-width: 380px; aspect-ratio: 1; animation: scale-in 0.8s 1.0s both ease-out; }
.radar-svg { width: 100%; height: 100%; }
.radar-title { color: var(--text-muted); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 8px; animation: fade-up 0.6s 1.2s both ease-out; }

/* ===== Traits Section ===== */
.traits-section { position: relative; width: 100%; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; }
.traits-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--obsidian), var(--obsidian-2), var(--obsidian)); z-index: 0; }
.traits-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, rgba(201,169,97,0.04), transparent 60%), radial-gradient(circle at 75% 65%, rgba(123,45,38,0.04), transparent 60%); animation: shimmer 8s infinite ease-in-out; }
.shadow-traits-bg::after { background: radial-gradient(circle at 25% 35%, rgba(184,84,80,0.06), transparent 60%), radial-gradient(circle at 75% 65%, rgba(123,45,38,0.04), transparent 60%) !important; }
.sin-traits-bg::after { background: radial-gradient(circle at 25% 35%, rgba(123,45,38,0.06), transparent 60%), radial-gradient(circle at 75% 65%, rgba(201,169,97,0.04), transparent 60%) !important; }
.traits-list { position: relative; z-index: 10; width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.trait-card { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark-2); border-radius: var(--radius-lg); padding: 28px; transition: background 0.3s ease; animation: fade-up 0.6s both ease-out; }
.trait-card:nth-child(1) { animation-delay: 1.0s; }
.trait-card:nth-child(2) { animation-delay: 1.2s; }
.trait-card:nth-child(3) { animation-delay: 1.4s; }
.trait-card:hover { background: rgba(255,255,255,0.06); }
.trait-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-light); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.trait-card h3 svg { width: 20px; height: 20px; }
.trait-card ul { list-style: none; }
.trait-card li { color: var(--text-muted); font-size: 14px; line-height: 1.8; display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; }
.trait-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 10px; flex-shrink: 0; }

/* ===== Score Intro ===== */
.score-intro { margin-bottom: 20px; animation: fade-up 0.6s 1.2s both ease-out; }

/* ===== Dimension Score Card ===== */
.dim-score-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line-dark-2); border-radius: var(--radius-md); padding: 14px 18px; animation: fade-up 0.5s both ease-out; }
.dim-score-card:nth-child(2) { animation-delay: 1.3s; }
.dim-score-card:nth-child(3) { animation-delay: 1.38s; }
.dim-score-card:nth-child(4) { animation-delay: 1.46s; }
.dim-score-card:nth-child(5) { animation-delay: 1.54s; }
.dim-score-card:nth-child(6) { animation-delay: 1.62s; }
.dim-score-card:nth-child(7) { animation-delay: 1.70s; }
.dim-score-card:nth-child(8) { animation-delay: 1.78s; }
.dim-score-card:nth-child(9) { animation-delay: 1.86s; }
.dim-score-card:nth-child(10) { animation-delay: 1.94s; }
.dim-score-card:nth-child(11) { animation-delay: 2.02s; }
.dim-score-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dim-score-name { color: var(--text-light); font-size: 14px; font-weight: 600; }
.dim-score-value { color: var(--text-muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dim-score-bar-bg { height: 6px; background: rgba(255,255,255,0.05); border-radius: 9999px; overflow: hidden; position: relative; }
.dim-score-bar { height: 100%; background: var(--gold); border-radius: 9999px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative; min-width: 4px; }
.shadow-score-bar { background: var(--crimson) !important; }
.sin-score-bar { background: var(--oxblood) !important; }
.sin-score-bar-virtue { background: var(--gold) !important; }
.dim-score-bar-label { position: absolute; right: 0; top: -20px; font-size: 11px; color: var(--gold); font-weight: 600; opacity: 0; animation: fade-in 0.5s 2s both ease-out; }
.shadow-bar-label { color: var(--crimson-light) !important; }
.sin-bar-label { color: var(--crimson) !important; }
.sin-bar-label-virtue { color: var(--gold) !important; }

/* ===== MBTI Dimension Bars ===== */
.mbti-dim-section { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; animation: fade-up 0.8s 0.9s both ease-out; }
.mbti-dim-list { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.mbti-dim-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line-dark-2); border-radius: var(--radius-md); padding: 18px; animation: fade-up 0.5s both ease-out; }
.mbti-dim-card:nth-child(1) { animation-delay: 1.0s; }
.mbti-dim-card:nth-child(2) { animation-delay: 1.1s; }
.mbti-dim-card:nth-child(3) { animation-delay: 1.2s; }
.mbti-dim-card:nth-child(4) { animation-delay: 1.3s; }
.mbti-dim-bar { display: flex; height: 46px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; }
.mbti-dim-side { display: flex; align-items: center; padding: 0 14px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); min-width: 4px; }
.mbti-dim-side.mbti-left { border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--text-light); }
.mbti-dim-side.mbti-right { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(255,255,255,0.04); color: var(--text-muted); justify-content: flex-end; }
.mbti-dim-code { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.mbti-dim-pct { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mbti-left .mbti-dim-pct { margin-left: auto; }
.mbti-right .mbti-dim-pct { margin-right: 8px; }
.mbti-dim-labels { display: flex; justify-content: space-between; }
.mbti-dim-name { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== Shadow Result Specifics ===== */
.shadow-result-page { background: var(--obsidian); }
.shadow-score-badge {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 28px; padding: 14px 32px; border-radius: var(--radius-lg);
  background: rgba(184,84,80,0.08);
  border: 1px solid rgba(184,84,80,0.15); animation: fade-up 0.8s 1.0s both ease-out;
}
.shadow-score-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; }
.shadow-score-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--crimson-light); font-variant-numeric: tabular-nums; }
.shadow-score-max { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.shadow-top-cards { display: flex; gap: 14px; margin-bottom: 8px; animation: fade-up 0.6s 1.4s both ease-out; }
@media (max-width: 480px) { .shadow-top-cards { flex-direction: column; } }
.shadow-top-card { flex: 1; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); border: 1px solid var(--line-dark-2); transition: all 0.3s ease; }
.shadow-top-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.shadow-top-card.rank-1 { border-color: rgba(184,84,80,0.2); background: rgba(184,84,80,0.04); }
.shadow-rank { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); background: rgba(184,84,80,0.12); color: var(--crimson-light); font-size: 14px; font-weight: 700; }
.shadow-top-card.rank-1 .shadow-rank { background: var(--crimson); color: var(--text-light); }
.shadow-top-name { flex: 1; color: var(--text-light); font-size: 15px; font-weight: 600; }
.shadow-top-score { color: var(--crimson-light); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.shadow-copy-btn { background: var(--crimson) !important; }

/* ===== Seven Sins Result Specifics ===== */
.sin-result-page { background: var(--obsidian); }
.sin-summary-cards { display: flex; gap: 16px; max-width: 520px; margin: 0 auto 20px; animation: fade-up 0.8s 0.9s both ease-out; }
@media (max-width: 480px) { .sin-summary-cards { flex-direction: column; } }
.sin-summary-card { flex: 1; padding: 24px 20px; border-radius: var(--radius-lg); text-align: center; }
.sin-summary-card.sin-card { background: rgba(255,255,255,0.02); border: 1px solid var(--line-dark-2); }
.sin-summary-card.virtue-card { background: rgba(201,169,97,0.06); border: 1px solid rgba(201,169,97,0.12); }
.sin-summary-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.sin-summary-card.virtue-card .sin-summary-label { color: var(--gold); }
.sin-summary-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-light); }
.sin-summary-card.virtue-card .sin-summary-value { color: var(--gold); }
.sin-diff-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
  border-radius: 9999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark);
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
  animation: fade-up 0.6s 1.1s both ease-out;
}
.sin-diff-badge strong { color: var(--text-light); font-weight: 700; font-family: var(--font-display); font-size: 18px; }
.sin-diff-badge.positive strong { color: var(--gold); }
.sin-diff-badge.negative strong { color: var(--crimson-light); }
.sin-section-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--text-light); text-align: center; margin-bottom: 4px; }
.sin-section-sub { font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.sin-detail-group { margin-bottom: 8px; }
.sin-detail-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.03);
  font-size: 14px; font-weight: 600; color: var(--text-light); margin-bottom: 8px;
}
.sin-detail-header.sins-h { border-left: 3px solid var(--oxblood); }
.sin-detail-header.virtues-h { border-left: 3px solid var(--gold); }
.sin-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.sin-detail-name { font-size: 14px; color: var(--text-muted); }
.sin-detail-score { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sin-detail-score.sin-score { color: var(--text-muted); }
.sin-detail-score.virtue-score { color: var(--gold); }
.sin-copy-btn { background: var(--oxblood) !important; color: var(--gold) !important; }

/* ===== Footer ===== */
.result-footer { padding: 44px 24px 32px; text-align: center; background: var(--obsidian); }
.footer-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
@media (min-width: 640px) { .footer-actions { flex-direction: row; justify-content: center; } }

/* ===== Share Link Box ===== */
.share-link-box { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; animation: fade-in 0.5s ease-out; }
.share-link-box p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.share-link-box .link { font-family: var(--font-mono); font-size: 12px; color: var(--text-light); word-break: break-all; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: var(--radius-sm); display: block; }

/* ===== Contact Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay:target { opacity: 1; visibility: visible; }
.modal-box { width: 100%; max-width: 380px; background: var(--obsidian-3); border: 1px solid var(--line-dark); border-radius: var(--radius-xl); padding: 32px; text-align: center; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay:target .modal-box { transform: scale(1); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-dim); transition: color 0.2s, background 0.2s; }
.modal-close:hover { color: var(--text-light); background: rgba(255,255,255,0.05); }
.modal-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-box .modal-icon svg { width: 24px; height: 24px; color: var(--text-light); }
.modal-box h3 { font-family: var(--font-display); color: var(--text-light); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.weixin-box { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 18px; color: var(--text-light); letter-spacing: 0.05em; }

/* ===== Disclaimer ===== */
.disclaimer { color: var(--text-dim); font-size: 12px; line-height: 1.8; max-width: 480px; margin: 0 auto 16px; }
.disclaimer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.disclaimer a:hover { color: var(--gold); }
.v3-footer { color: var(--text-dim); font-size: 12px; letter-spacing: 0.05em; }

/* ===== Shared Notice ===== */
.shared-notice { background: rgba(255,255,255,0.02); border: 1px solid var(--line-dark-2); border-radius: var(--radius-md); padding: 14px 20px; margin-bottom: 24px; display: inline-block; }
.shared-notice p { color: var(--text-muted); font-size: 14px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 0; background: transparent; }
