/* ============================================
   WBTI - Worker Burnout Type Indicator
   Light Editorial Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #fffdf8;
  --bg-secondary: #f8f1ea;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: #fff8f2;
  --accent: #d97b4f;
  --accent-glow: rgba(217, 123, 79, 0.18);
  --accent-2: #f0bea8;
  --accent-3: #d9c7ff;
  --text-primary: #1f1724;
  --text-secondary: #655a68;
  --text-muted: #9c8f95;
  --border: rgba(74, 43, 59, 0.08);
  --border-accent: rgba(217, 123, 79, 0.24);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(145, 102, 80, 0.12);
  --font-cn: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-ui: 'Manrope', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-en: 'Cormorant Garamond', 'Noto Sans SC', serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at top left, rgba(240, 190, 168, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 199, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #fffaf5 48%, #fffdf8 100%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-2); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f6eee8; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- Selection --- */
::selection { background: rgba(217, 123, 79, 0.18); color: var(--text-primary); }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 252, 246, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-en);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, #dea17f, var(--accent)) !important;
  color: #fffdf9 !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(217, 123, 79, 0.18);
}

.nav-cta:hover {
  background: #e08c63 !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 50%);
  animation: heroBg 20s ease-in-out infinite alternate;
}

@keyframes heroBg {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 5%) rotate(3deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid var(--border-accent);
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-cn);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #ff3366, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .sub {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  margin-top: 8px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff3366);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn-ghost:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

/* ============================================
   Marquee / Ticker
   ============================================ */
.marquee-section {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  margin: 0 4px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.marquee-item:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: rgba(255, 107, 53, 0.05);
}

.marquee-item .emoji { font-size: 1.1rem; }

/* ============================================
   Stats Section
   ============================================ */
.stats {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {}

.stat-value {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ============================================
   About / Intro Section
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.9; }
.about-text p + p { margin-top: 20px; }

.about-quote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
  background: rgba(255, 107, 53, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-right {}

.dimension-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.dimension-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.dimension-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.dimension-letters {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dimension-letter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-family: var(--font-en);
}

/* ============================================
   Type Cards Grid
   ============================================ */
.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.type-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.type-card:hover::before { opacity: 1; }

.type-card-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.type-card-code {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.type-card-name {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.type-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.type-card-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.type-card-dim {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  padding: 3px 10px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 4px;
  letter-spacing: 1.5px;
}

.type-card-rarity {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ============================================
   How It Works / Steps
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 107, 53, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Why Section / Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1), transparent 70%);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.cta-section .btn { position: relative; }

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--border-accent); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Comparison Table
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-card-hover);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-table td {
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--text-primary); }

/* ============================================
   Test Page
   ============================================ */
.test-page {
  min-height: 100vh;
  padding: 112px 24px 72px;
  position: relative;
  overflow: hidden;
}

.test-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(217, 123, 79, 0.12) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(240, 190, 168, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(217, 199, 255, 0.22), transparent 30%);
  background-size: 18px 18px, auto, auto;
  background-position: center;
  pointer-events: none;
}

.test-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.test-intro-layout,
.test-live-layout,
.test-tie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.test-preview-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.test-live-layout,
.test-tie-layout {
  max-width: 430px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.test-phone-card,
.test-quiz-card,
.test-side-card,
.test-tie-card,
.test-loading-screen {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(145, 102, 80, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.test-phone-card {
  padding: 18px;
  min-height: 620px;
}

.test-phone-card-home {
  transform: rotate(-1.5deg);
}

.test-phone-card-quiz {
  transform: rotate(2.8deg);
  margin-top: 42px;
}

.test-phone-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.test-phone-nav .is-active {
  color: var(--text-primary);
  font-weight: 700;
}

.test-phone-brand {
  font-size: 2.2rem;
  line-height: 1.18;
  font-weight: 900;
  margin-bottom: 18px;
}

.test-phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #92d49c, #6fc381);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(111, 195, 129, 0.25);
  margin-bottom: 22px;
}

.test-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.test-mini-persona {
  min-height: 138px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(74, 43, 59, 0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(249, 239, 231, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 12px 24px rgba(145, 102, 80, 0.08);
}

.test-mini-persona strong {
  font-size: 1rem;
  margin-bottom: 4px;
}

.test-mini-persona span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #76a686;
}

.test-preview-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.test-preview-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(217, 123, 79, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.test-preview-progress-bar span {
  display: block;
  width: 24%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d9c7ff);
  border-radius: inherit;
}

.test-preview-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.test-preview-role-right {
  text-align: right;
  margin-top: 14px;
}

.test-preview-bubble,
.test-question-bubble {
  background: linear-gradient(145deg, #f4f2ef, #efefec);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.test-preview-bubble {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4f4549;
}

.test-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 12px 0 18px;
}

.test-preview-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.test-preview-choices span {
  display: block;
  padding: 18px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f9f6f2);
  box-shadow: 0 12px 24px rgba(145, 102, 80, 0.1);
  font-weight: 600;
  text-align: center;
}

.test-intro-copy {
  padding: 24px 8px 24px 24px;
}

.test-intro-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.test-intro-copy h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.test-intro-copy p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 22px;
  max-width: 520px;
}

.test-axis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.test-axis-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
}

.test-side-card,
.test-quiz-card,
.test-tie-card {
  padding: 28px;
}

.test-side-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.test-live-layout .test-side-card,
.test-tie-layout > .test-side-card {
  display: none;
}

.test-side-label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.test-side-card h3,
.test-tie-card h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.test-side-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.test-side-stats {
  display: grid;
  gap: 14px;
}

.test-side-stats div {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(248, 241, 234, 0.84);
}

.test-side-stats span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.test-side-stats strong {
  font-size: 1.5rem;
}

.test-progress {
  margin-bottom: 28px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.75), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.test-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

.test-progress-bar {
  height: 8px;
  background: rgba(217, 123, 79, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #d9c7ff);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.test-question {
  margin-bottom: 28px;
}

.test-question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.test-question-number {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.test-question-axis {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
}

.test-question-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.test-question-text {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.65;
}

.test-question-hint {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.test-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.test-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #f9f6f2);
  border: 1px solid rgba(74, 43, 59, 0.08);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-cn);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.6;
  box-shadow: 0 12px 24px rgba(145, 102, 80, 0.08);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.test-option-key {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(217, 123, 79, 0.1);
  color: var(--accent);
  font-weight: 800;
}

.test-option-text {
  flex: 1;
}

.test-option:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(145, 102, 80, 0.12);
}

.test-option.selected {
  border-color: var(--accent);
  background: rgba(217, 123, 79, 0.1);
}

#testQuestions {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#testQuestions.is-changing {
  opacity: 0.48;
  transform: translateY(10px);
}

.test-tie-card {
  min-height: 520px;
}

.test-tie-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.tie-option-card {
  appearance: none;
  border: 1px solid rgba(74, 43, 59, 0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(249, 239, 231, 0.9));
  border-radius: 24px;
  padding: 22px 18px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 12px 24px rgba(145, 102, 80, 0.08);
}

.tie-option-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 18px 30px rgba(145, 102, 80, 0.14);
}

.tie-option-name,
.tie-option-subtitle {
  display: block;
}

.tie-option-name {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 6px;
}

.tie-option-title {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.tie-option-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.test-hero-mark,
.test-loading-visual {
  position: relative;
  margin: 0 auto 24px;
  width: 132px;
  height: 132px;
}

.test-hero-orbit,
.test-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(217, 123, 79, 0.2);
}

.test-hero-orbit-a,
.test-loading-ring-a {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255, 238, 227, 0.7) 45%, transparent 46%);
  animation: orbitFloat 4.8s ease-in-out infinite;
}

.test-hero-orbit-b,
.test-loading-ring-b {
  inset: 16px;
  border-color: rgba(177, 118, 223, 0.22);
  background:
    radial-gradient(circle at 70% 32%, rgba(217, 199, 255, 0.62), transparent 20%),
    radial-gradient(circle at 30% 72%, rgba(240, 190, 168, 0.42), transparent 24%);
  animation: orbitFloat 5.6s ease-in-out infinite reverse;
}

.test-hero-core,
.test-loading-core {
  position: absolute;
  inset: 36px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(249, 239, 231, 0.88)),
    linear-gradient(135deg, rgba(217, 123, 79, 0.12), rgba(177, 118, 223, 0.12));
  box-shadow: 0 24px 44px rgba(145, 102, 80, 0.12);
}

.test-hero-core::before,
.test-hero-core::after,
.test-loading-core::before,
.test-loading-core::after {
  content: '';
  position: absolute;
  border-radius: 999px;
}

.test-hero-core::before,
.test-loading-core::before {
  inset: 16px 22px auto;
  height: 10px;
  background: linear-gradient(90deg, rgba(217, 123, 79, 0.78), rgba(177, 118, 223, 0.62));
}

.test-hero-core::after,
.test-loading-core::after {
  inset: auto 18px 18px;
  height: 10px;
  background: rgba(255,255,255,0.86);
  box-shadow:
    0 -22px 0 rgba(255,255,255,0.78),
    0 -44px 0 rgba(255,255,255,0.68);
}

.test-loading-screen .test-loading-visual {
  margin-bottom: 28px;
}

.test-loading-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d9c7ff);
  box-shadow: 0 10px 20px rgba(217, 123, 79, 0.18);
}

.test-loading-dot-a {
  top: 14px;
  left: 58px;
  animation: loadingOrbitA 1.8s linear infinite;
}

.test-loading-dot-b {
  top: 56px;
  right: 10px;
  animation: loadingOrbitB 2.1s linear infinite;
}

.test-loading-dot-c {
  bottom: 14px;
  left: 22px;
  animation: loadingOrbitC 1.6s linear infinite;
}

.test-loading-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 123, 79, 0.14);
  color: #8a6657;
  font-size: 0.9rem;
  line-height: 1.5;
}

.test-loading-screen {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}

.test-loading-screen h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.test-loading-screen p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}

.test-rules {
  text-align: left;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(74, 43, 59, 0.08);
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 28px;
}

.test-rules li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-left: 8px;
  list-style: none;
}

.test-rules li::before {
  content: '→';
  color: var(--accent);
  margin-right: 8px;
}

/* ============================================
   Result Page
   ============================================ */
.result-page {
  min-height: 100vh;
  padding: 100px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-card {
  max-width: 560px;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  padding: 40px;
  position: relative;
  animation: resultReveal 0.8s ease;
}

@keyframes resultReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.result-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, var(--result-color, var(--accent)), rgba(255,255,255,0.2));
}

.result-detail-card {
  text-align: center;
}

.result-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.result-code {
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.result-name {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--result-color, var(--accent)), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.result-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  text-align: left;
  margin-bottom: 28px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================
   Types Page
   ============================================ */
.types-page { padding-top: 100px; }

.types-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-cn);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--border-accent);
  color: var(--accent);
}

/* Type Detail Modal / Expanded */
.type-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.type-detail-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.type-detail {
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.type-detail-overlay.active .type-detail {
  transform: translateY(0);
}

.type-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.type-detail-close:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

/* ============================================
   About Page
   ============================================ */
.about-page { padding-top: 100px; }

.about-hero {
  text-align: center;
  padding: 60px 0 80px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.about-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-block p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.dim-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.dim-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.dim-card:hover {
  border-color: var(--border-accent);
}

.dim-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.dim-card-poles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-pole {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.dim-pole-letter {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 6px;
  flex-shrink: 0;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Toast / Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-accent);
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--accent);
  z-index: 3000;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   Light Theme Overrides / Homepage Refresh
   ============================================ */
.btn {
  font-family: var(--font-ui);
}

.btn-primary {
  background: linear-gradient(135deg, #e2a07b, var(--accent));
  color: #fffdf9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(145, 102, 80, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.42);
}

.btn-ghost:hover {
  background: rgba(217, 123, 79, 0.08);
}

.section-soft {
  background: linear-gradient(180deg, rgba(248, 241, 234, 0.72), rgba(255, 255, 255, 0.4));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-home {
  text-align: center;
  min-height: 100svh;
  height: 100svh;
  padding: 88px 24px 24px;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 12% 20%, rgba(240, 190, 168, 0.34), transparent 25%),
    radial-gradient(circle at 88% 28%, rgba(217, 199, 255, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, 0.08) 100%);
  animation: none;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding-top: 8px;
  padding-bottom: 0;
  width: 100%;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-home .hero-copy {
  margin-top: 0;
}

.hero-title-main {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 22px;
  text-align: center;
}

.hero-visual {
  position: relative;
  width: 100%;
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(145, 102, 80, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-visual-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-text-block {
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-cn);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #b176df, #f0b79b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .sub {
  font-family: var(--font-cn);
  font-size: 0.28em;
  margin-top: 18px;
  line-height: 1.7;
}

.hero-desc {
  max-width: 560px;
}

.hero-bottom-note {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 18px;
  text-align: center;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 32rem;
  margin: 0;
}

.hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.hero-actions .btn {
  min-width: 180px;
  justify-content: center;
}

.editorial-section {
  position: relative;
}

.personality-stage {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.personality-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.persona-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.74), transparent 24%),
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(249, 239, 231, 0.82));
  border-radius: 24px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(145, 102, 80, 0.1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.persona-button:hover,
.persona-button.active {
  transform: translateY(-4px);
  border-color: rgba(217, 123, 79, 0.3);
  box-shadow: 0 28px 50px rgba(145, 102, 80, 0.16);
}

.persona-button::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--persona-color, var(--accent)) 26%, white);
  opacity: 0.7;
}

.persona-button img,
.persona-visual img,
.result-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.type-card-media {
  min-height: 220px;
  border-radius: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.88), transparent 20%),
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(249, 239, 231, 0.88));
}

.type-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.type-card-media.is-placeholder::before {
  content: '';
  position: absolute;
  inset: 26px auto auto 24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--persona-color, var(--card-color, var(--accent))) 26%, white);
}

.type-card-media.is-placeholder::after {
  content: '';
  position: absolute;
  right: 34px;
  bottom: 26px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
}

.persona-button-core,
.persona-ghost {
  position: absolute;
  border-radius: 999px;
  background: color-mix(in srgb, var(--persona-color, var(--accent)) 32%, white);
  filter: blur(2px);
}

.persona-button-core {
  width: 72px;
  height: 72px;
  top: 24px;
  left: 22px;
}

.persona-button-core::before,
.persona-button-core::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
}

.persona-button-core::before {
  width: 118px;
  height: 118px;
  top: 40px;
  left: 56px;
}

.persona-button-core::after {
  width: 92px;
  height: 92px;
  top: 76px;
  left: 4px;
}

.persona-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.persona-visual-shell,
.persona-detail-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.persona-visual-shell {
  padding: 18px;
}

.persona-visual,
.result-visual {
  min-height: 520px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.88), transparent 20%),
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(249, 239, 231, 0.88));
}

.result-visual {
  min-height: 300px;
  margin-bottom: 0;
}

.type-detail-visual {
  min-height: 260px;
  margin-bottom: 18px;
}

.persona-visual.is-placeholder::before,
.result-visual.is-placeholder::before {
  content: '';
  position: absolute;
  inset: auto 24px 24px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--persona-color, var(--result-color, var(--accent))) 26%, white);
}

.persona-ghost-a { width: 130px; height: 130px; top: 58px; left: 54px; }
.persona-ghost-b { width: 220px; height: 220px; top: 158px; right: 54px; }
.persona-ghost-c { width: 160px; height: 160px; bottom: 54px; left: 150px; }

.persona-detail-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.persona-detail-label,
.poster-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.persona-detail-code {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.persona-detail-title,
.poster-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
  font-family: var(--font-en);
}

.persona-detail-motto {
  padding: 14px 16px;
  background: rgba(248, 241, 234, 0.88);
  border-radius: 18px;
  color: #7a5e54;
  margin-bottom: 18px;
}

.persona-detail-desc {
  color: var(--text-secondary);
  line-height: 1.85;
}

.persona-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.type-card,
.step-card,
.feature-card,
.compare-table,
.dimension-card,
.dim-card {
  box-shadow: 0 16px 36px rgba(145, 102, 80, 0.08);
}

.type-card-dim,
.filter-btn:hover,
.filter-btn.active {
  background: rgba(217, 123, 79, 0.1);
}

.compare-table th {
  background: rgba(248, 241, 234, 0.9);
}

.compare-table td {
  background: rgba(255, 255, 255, 0.82);
}

.test-progress-bar {
  background: rgba(217, 123, 79, 0.12);
}

.test-progress-fill {
  background: linear-gradient(90deg, var(--accent), #d9c7ff);
}

.test-option.selected {
  background: rgba(217, 123, 79, 0.1);
}

.result-card {
  box-shadow: var(--shadow);
}

.result-label,
.faq-question,
.filter-btn {
  font-family: var(--font-ui);
}

.result-name {
  font-weight: 700;
}

@keyframes orbitFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-8px) scale(1.03) rotate(4deg); }
}

@keyframes loadingOrbitA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(26px, 18px) scale(1.08); }
  66% { transform: translate(-12px, 34px) scale(0.92); }
}

@keyframes loadingOrbitB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-38px, 28px) scale(1.1); }
}

@keyframes loadingOrbitC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(34px, -30px) scale(0.94); }
}

.type-detail-overlay {
  background: rgba(48, 31, 43, 0.28);
}

.type-detail-close {
  background: rgba(255, 255, 255, 0.56);
}

.toast {
  background: rgba(255, 252, 246, 0.95);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .dim-explain { grid-template-columns: 1fr 1fr; }
  .personality-stage { grid-template-columns: 1fr; }
  .persona-feature { grid-template-columns: 1fr; }
  .test-intro-layout,
  .test-live-layout,
  .test-tie-layout { grid-template-columns: 1fr; }
  .test-preview-stage { order: -1; }
  .test-phone-card-quiz { margin-top: 0; }
  .test-intro-copy { padding: 8px 0 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 250, 244, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-title-main { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-home {
    padding: 76px 24px 18px;
  }
  .hero-shell {
    gap: 20px;
    min-height: 100%;
    padding-top: 4px;
    padding-bottom: 0;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-visual { border-radius: 24px; margin-bottom: 24px; }
  .hero-img { aspect-ratio: 16 / 9; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-value { font-size: 2rem; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .dim-explain { grid-template-columns: 1fr; }
  .personality-gallery { grid-template-columns: repeat(2, 1fr); }
  .persona-visual { min-height: 360px; }
  .test-preview-stage { grid-template-columns: 1fr; }
  .test-phone-card { min-height: auto; }
  .test-side-card,
  .test-tie-card { min-height: auto; }
  .test-tie-options { grid-template-columns: 1fr; }
  .test-question-head { flex-direction: column; align-items: flex-start; }
  .test-option { border-radius: 24px; align-items: flex-start; }

  .result-card { padding: 32px 24px; border-radius: 24px; }
  .result-name { font-size: 2rem; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .type-detail { padding: 28px 20px; }

  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 40px; }
  .hero-home {
    padding: 72px 16px 14px;
  }
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); line-height: 1.18; }
  .hero-title-main { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-subtitle { font-size: 0.92rem; }
  .hero-desc { font-size: 0.9rem; line-height: 1.8; }
  .hero-copy { max-width: none; }
  .hero-shell {
    min-height: 100%;
    padding-top: 2px;
    padding-bottom: 0;
  }
  .hero-visual { border-radius: 20px; margin-bottom: 20px; }
  .hero-visual-badge { top: 10px; left: 10px; font-size: 0.66rem; padding: 4px 10px; }
  .hero-text-block { margin-bottom: 14px; }
  .hero-bottom-note { padding-top: 12px; font-size: 0.86rem; line-height: 1.65; }
  .test-question-text { font-size: 1.2rem; }
  .test-hero-mark,
  .test-loading-visual {
    width: 110px;
    height: 110px;
  }
  .test-loading-status {
    width: 100%;
  }
  .test-page { padding-left: 16px; padding-right: 16px; }
  .test-quiz-card,
  .test-side-card,
  .test-tie-card,
  .test-loading-screen { padding: 22px 18px; border-radius: 24px; }
  .test-phone-card { padding: 14px; }
  .test-phone-brand { font-size: 1.8rem; }
  .test-mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .test-mini-persona { min-height: 112px; padding: 14px 12px; }
  .test-option { padding: 16px; }
  .test-option-key { width: 34px; height: 34px; }
  .result-name { font-size: 1.6rem; }
  .personality-gallery { grid-template-columns: 1fr 1fr; }
  .persona-button { min-height: 148px; }
}

/* ============================================
   Test Page Compact Overrides
   ============================================ */
body.test-page-body {
  min-height: 100dvh;
  overflow: hidden;
}

.test-page-body .test-page {
  height: 100dvh;
  min-height: 100dvh;
  padding: clamp(12px, 3vh, 28px) clamp(12px, 4vw, 24px);
  display: flex;
  align-items: stretch;
}

.test-page-body .test-page::before {
  background-image:
    radial-gradient(circle at top left, rgba(240, 190, 168, 0.2), transparent 26%),
    radial-gradient(circle at top right, rgba(217, 199, 255, 0.22), transparent 30%);
  background-size: auto, auto;
}

.test-page-body .test-container {
  max-width: 560px;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.test-page-body .test-live-layout {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  display: block;
}

.test-page-body .test-quiz-card {
  width: 100%;
  height: 100%;
  padding: clamp(16px, 3vw, 24px);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}

.test-page-body .test-progress {
  position: static;
  margin-bottom: 0;
  padding-bottom: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.test-page-body .test-progress-head {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.test-page-body .test-question {
  margin-bottom: 0;
}

.test-page-body .test-question-bubble {
  min-height: clamp(100px, 18vh, 148px);
  padding: clamp(18px, 3.6vw, 24px);
  display: flex;
  align-items: center;
}

.test-page-body .test-question-text {
  font-size: clamp(1.15rem, 4.8vw, 1.58rem);
  line-height: 1.5;
}

.test-page-body .test-options {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.6vh, 14px);
}

.test-page-body .test-option {
  min-height: 0;
  padding: clamp(12px, 2.2vh, 18px) clamp(14px, 3.6vw, 18px);
  border-radius: 22px;
  align-items: center;
  gap: 12px;
}

.test-page-body .test-option-key {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.test-page-body .test-option-text {
  font-size: clamp(0.9rem, 3.4vw, 1rem);
  line-height: 1.42;
}

.test-page-body .test-loading-screen {
  width: 100%;
  max-width: 560px;
  min-height: 100%;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .test-page-body .test-page {
    padding: 12px;
  }

  .test-page-body .test-quiz-card,
  .test-page-body .test-loading-screen {
    padding: 16px;
    border-radius: 24px;
  }

  .test-page-body .test-option {
    border-radius: 18px;
    align-items: center;
  }
}

@media (max-height: 760px) {
  .test-page-body .test-page {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .test-page-body .test-question-bubble {
    min-height: 92px;
    padding: 16px 18px;
  }

  .test-page-body .test-question-text {
    font-size: 1.08rem;
    line-height: 1.42;
  }

  .test-page-body .test-option {
    padding: 10px 12px;
  }

  .test-page-body .test-option-text {
    font-size: 0.86rem;
    line-height: 1.35;
  }
}

@media (max-height: 680px) {
  .test-page-body .test-progress-head {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .test-page-body .test-progress-bar {
    height: 6px;
  }

  .test-page-body .test-question-bubble {
    min-height: 84px;
    padding: 14px 16px;
  }

  .test-page-body .test-question-text {
    font-size: 1rem;
    line-height: 1.36;
  }

  .test-page-body .test-option {
    gap: 10px;
    padding: 9px 11px;
  }

  .test-page-body .test-option-key {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .test-page-body .test-option-text {
    font-size: 0.82rem;
    line-height: 1.28;
  }
}

/* ============================================
   Result Page Compact Overrides
   ============================================ */
body.result-page-body {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: hidden;
}

.result-page-body .nav {
  padding: 0 16px;
}

.result-page-body .nav-inner {
  height: 60px;
}

.result-page-body .result-page {
  min-height: 100svh;
  height: 100svh;
  padding: 70px 10px calc(92px + env(safe-area-inset-bottom));
  justify-content: flex-start;
}

.result-page-body .result-card {
  width: min(100%, 480px);
  max-height: calc(100svh - 162px - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 18px 16px;
  border-radius: 22px;
  overflow: hidden;
}

.result-page-body .result-detail-scroll {
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}

.result-page-body .result-detail-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.result-page-body .result-visual {
  min-height: clamp(164px, 28vh, 240px);
  border-radius: 18px;
}

.result-page-body .result-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-top: -2px;
}

.result-page-body .result-name {
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  margin-bottom: 0;
}

.result-page-body .result-title {
  display: block;
  margin-bottom: 0;
  font-size: clamp(1rem, 4.2vw, 1.14rem);
}

.result-page-body .result-desc {
  margin-bottom: 0;
  font-size: clamp(0.9rem, 3.7vw, 1rem);
  line-height: 1.78;
  text-align: left;
  display: block;
  overflow: visible;
}

.result-page-body .result-actions-fixed {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 480px);
  z-index: 30;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(145, 102, 80, 0.16);
}

.result-page-body .result-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 8px;
  align-items: stretch;
  margin-top: 0;
}

.result-page-body .result-share-btn {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding: 11px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(135deg, #eea982 0%, var(--accent) 52%, #cf6d48 100%);
  box-shadow: 0 16px 34px rgba(217, 123, 79, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
}

.result-page-body .result-retest-btn {
  width: 100%;
  justify-content: center;
  min-width: 0;
  padding: 11px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(74, 43, 59, 0.08);
  box-shadow: 0 10px 22px rgba(145, 102, 80, 0.08);
  opacity: 0.9;
}

.result-page-body .result-retest-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border-accent);
  box-shadow: 0 14px 24px rgba(145, 102, 80, 0.1);
  transform: none;
}

@media (min-width: 769px) {
  .result-page-body .result-page {
    padding: 92px 24px calc(110px + env(safe-area-inset-bottom));
    justify-content: center;
  }

  .result-page-body .result-card {
    width: min(100%, 560px);
    max-height: calc(100svh - 210px - env(safe-area-inset-bottom));
    padding: 24px;
  }

  .result-page-body .result-actions-fixed {
    width: min(calc(100% - 32px), 560px);
  }

  .result-page-body .result-visual {
    min-height: clamp(240px, 34vh, 320px);
  }

  .result-page-body .result-desc {
    font-size: 1rem;
    line-height: 1.84;
  }

  .result-page-body .result-actions {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  }
}

@media (max-height: 760px) {
  .result-page-body .nav-inner {
    height: 54px;
  }

  .result-page-body .result-page {
    padding-top: 62px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .result-page-body .result-visual {
    min-height: clamp(136px, 24vh, 190px);
  }

  .result-page-body .result-desc {
    font-size: 0.84rem;
    line-height: 1.66;
  }

  .result-page-body .result-actions-fixed {
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 8px;
  }

  .result-page-body .result-share-btn {
    padding: 10px 11px;
    font-size: 0.78rem;
  }

  .result-page-body .result-retest-btn {
    padding: 10px 11px;
    font-size: 0.74rem;
  }
}

@media (max-height: 680px) {
  .result-page-body .result-visual {
    min-height: 112px;
  }

  .result-page-body .result-desc {
    font-size: 0.78rem;
    line-height: 1.58;
  }

  .result-page-body .result-share-btn {
    padding: 8px 9px;
    font-size: 0.72rem;
  }

  .result-page-body .result-retest-btn {
    padding: 8px 9px;
    font-size: 0.7rem;
  }
}
