* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --coral: #FF6B6B;
  --purple: #7C5CFC;
  --mint: #4ECDC4;
  --dark: #1A1A2E;
  --cream: #FFF8F0;
  --gold: #FFD93D;
  --orange: #FF8A5C;
  --lavender: #C77DFF;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 24px 64px rgba(0, 0, 0, 0.14);
}

body {
  font-family: 'Noto Sans SC', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* ===== Animated Background ===== */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}
.bg-shape-1 { width: 700px; height: 700px; background: var(--purple); top: -250px; right: -250px; animation: bgFloat1 20s ease-in-out infinite; }
.bg-shape-2 { width: 500px; height: 500px; background: var(--coral); bottom: 10%; left: -200px; animation: bgFloat2 25s ease-in-out infinite; }
.bg-shape-3 { width: 400px; height: 400px; background: var(--mint); top: 50%; right: -150px; animation: bgFloat3 22s ease-in-out infinite; }

@keyframes bgFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 20px) scale(1.05); } }
@keyframes bgFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -30px) scale(1.08); } }
@keyframes bgFloat3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, -20px) scale(1.03); } }

/* ===== Nav ===== */
.quiz-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(255, 248, 240, 0.8);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

/* ===== Progress Bar (Enhanced) ===== */
#nav-progress {
  flex: 1;
  max-width: 200px;
  margin-left: 16px;
}
.progress-container {
  padding: 0;
}

.progress-bar {
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--coral), var(--mint));
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: progressShimmer 3s ease-in-out infinite;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px rgba(124, 92, 252, 0.5);
  transition: opacity 0.3s;
}

@keyframes progressShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.progress-step-text {
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Quiz Container ===== */
.quiz-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

/* ===== Intro Screen ===== */
.quiz-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 40px 24px;
  text-align: center;
  animation: introFadeIn 0.8s ease;
}

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

.intro-emoji {
  font-size: 88px;
  margin-bottom: 28px;
  animation: introFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

@keyframes introFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(-2deg); }
  75% { transform: translateY(-12px) rotate(2deg); }
}

.intro-title {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--dark) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-subtitle {
  font-size: 16px;
  color: #777;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 44px;
}

.intro-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #aaa;
  font-weight: 500;
}

.meta-icon {
  font-size: 18px;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 52px;
  background: linear-gradient(135deg, var(--dark), #2d2d4e);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.start-btn:hover::before { left: 100%; }

.start-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.15);
}

/* ===== Question Screen ===== */
.question-screen {
  display: none;
  flex-direction: column;
  padding: 24px 20px 40px;
  min-height: calc(100vh - 72px);
  opacity: 0;
  transform: translateX(40px);
}

.question-screen.active {
  display: flex;
  animation: questionSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.question-screen.slide-out {
  animation: questionSlideOut 0.3s ease forwards;
}

@keyframes questionSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes questionSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}

.question-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(255, 107, 107, 0.05));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.question-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
  color: var(--dark);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  color: var(--dark);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.option-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.04), rgba(78, 205, 196, 0.04));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px;
}

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

.option-btn:hover {
  border-color: rgba(124, 92, 252, 0.25);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.1);
}
.option-btn:hover::after { opacity: 1; }

.option-btn.selected {
  border-color: var(--purple);
  background: rgba(124, 92, 252, 0.06);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.15);
  animation: optionPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes optionPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.03); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(124, 92, 252, 0.06);
  color: var(--purple);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.option-btn.selected .option-letter {
  background: var(--purple);
  color: white;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.3);
}

.option-text {
  position: relative;
  z-index: 1;
}

/* ===== Loading Screen ===== */
.loading-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 40px 24px;
  text-align: center;
}

.loading-screen.active {
  display: flex;
  animation: fadeIn 0.6s ease;
}

.loading-emoji {
  font-size: 64px;
  margin-bottom: 28px;
  animation: loadingPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(124, 92, 252, 0.2));
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(0deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.loading-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.loading-sub {
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
}

.loading-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ===== Result Screen ===== */
.result-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 60px;
  min-height: calc(100vh - 72px);
}

.result-screen.active {
  display: flex;
}

/* ===== Result Reveal Animation ===== */
.reveal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 24px;
}

.reveal-emoji {
  font-size: 100px;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  animation: revealEmoji 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.15));
}

@keyframes revealEmoji {
  0% { opacity: 0; transform: scale(0.3) rotate(-15deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.reveal-label {
  font-size: 15px;
  font-weight: 500;
  color: #999;
  margin-top: 24px;
  opacity: 0;
  animation: revealFadeUp 0.5s ease forwards;
  animation-delay: 0.4s;
}

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

.reveal-name {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-top: 12px;
  opacity: 0;
  animation: revealNamePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.6s;
}

@keyframes revealNamePop {
  0% { opacity: 0; transform: scale(0.8) translateY(8px); }
  60% { opacity: 1; transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal-en {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #bbb;
  margin-top: 4px;
  letter-spacing: 1px;
  opacity: 0;
  animation: revealFadeUp 0.5s ease forwards;
  animation-delay: 0.8s;
}

/* ===== Result Card (Premium) ===== */
.result-card {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: white;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: cardSlideUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 1.2s;
}

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

.card-header {
  padding: 44px 28px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gradient mesh background for card header */
.card-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.12;
}

.card-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: -60px;
  right: -40px;
  opacity: 0.06;
  filter: blur(40px);
}

.card-header > * { position: relative; z-index: 1; }

.result-emoji {
  font-size: 80px;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.result-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.result-type-name {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: var(--dark);
}

.result-type-en {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.4;
  letter-spacing: 1px;
}

.card-body {
  padding: 0 28px 32px;
}

.result-description {
  font-size: 15px;
  line-height: 1.85;
  color: #666;
  margin-bottom: 28px;
}

.traits-section {
  margin-bottom: 28px;
}

.traits-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #bbb;
  margin-bottom: 14px;
}

.traits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-tag {
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.trait-tag:hover {
  transform: translateY(-2px);
}

.advice-section {
  padding: 20px 22px;
  border-radius: 16px;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

.advice-section::before {
  content: '"';
  position: absolute;
  top: -4px;
  right: 16px;
  font-size: 64px;
  font-family: Georgia, serif;
  opacity: 0.06;
  line-height: 1;
}

.advice-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.advice-text {
  font-size: 14px;
  line-height: 1.75;
  color: #666;
}

.card-footer {
  padding: 18px 28px;
  background: rgba(0,0,0,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.card-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 2px;
}

.card-brand-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--coral);
  border-radius: 50%;
  vertical-align: super;
}

.card-cta {
  font-size: 12px;
  color: #bbb;
  font-weight: 500;
}

/* ===== Score Bars (Enhanced) ===== */
.scores-section {
  width: 100%;
  max-width: 380px;
  margin-bottom: 28px;
  opacity: 0;
  animation: cardSlideUp 0.6s ease forwards;
  animation-delay: 1.5s;
}

.scores-title {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.score-label {
  width: 80px;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
  color: #666;
}

.score-row.is-top .score-label {
  font-weight: 700;
  color: var(--dark);
}

.score-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 5px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.score-row.is-top .score-bar-fill {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.score-value {
  width: 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #bbb;
  flex-shrink: 0;
}

.score-row.is-top .score-value {
  color: var(--dark);
}

/* ===== Action Buttons (Premium) ===== */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
  opacity: 0;
  animation: cardSlideUp 0.6s ease forwards;
  animation-delay: 1.8s;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.action-btn:active {
  transform: scale(0.96);
}

.action-primary {
  background: var(--dark);
  color: white;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.2);
}

.action-secondary {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dark);
  border: 2px solid rgba(0,0,0,0.06);
}

.action-share {
  background: linear-gradient(135deg, var(--purple), var(--coral));
  color: white;
  box-shadow: 0 8px 28px rgba(124, 92, 252, 0.25);
}

.action-share:active {
  box-shadow: 0 4px 16px rgba(124, 92, 252, 0.2);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: white;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
  backdrop-filter: blur(12px);
}

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

/* Canvas (hidden) */
#share-canvas {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ===== Share Preview ===== */
.share-preview {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.share-preview.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.share-preview img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.share-hint {
  color: white;
  font-size: 14px;
  margin-top: 24px;
  opacity: 0.7;
  text-align: center;
  line-height: 1.7;
  font-weight: 400;
}

.share-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.share-close:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

/* ===== Retake ===== */
.retake-link {
  font-size: 14px;
  color: #bbb;
  text-decoration: none;
  padding: 12px;
  margin-top: 8px;
  transition: color 0.3s;
  opacity: 0;
  animation: cardSlideUp 0.5s ease forwards;
  animation-delay: 2s;
}

.retake-link:hover {
  color: var(--purple);
}

/* ===== Confetti Canvas ===== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 150;
}

/* ===== Fade In ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .question-number { font-size: 56px; }
  .question-text { font-size: 19px; margin-bottom: 24px; }
  .option-btn { padding: 16px 16px; font-size: 14px; }
  .result-emoji { font-size: 68px; }
  .result-type-name { font-size: 30px; }
  .reveal-emoji { font-size: 84px; }
  .reveal-name { font-size: 34px; }
  .card-header { padding: 36px 24px 28px; }
  .card-body { padding: 0 24px 28px; }
  .intro-title { font-size: 34px; }
  .intro-emoji { font-size: 76px; }
}

@media (max-width: 360px) {
  .quiz-nav { padding: 12px 16px; }
  .question-screen { padding: 16px 16px 32px; }
  .option-btn { padding: 14px 14px; font-size: 13px; gap: 10px; }
  .option-letter { width: 30px; height: 30px; font-size: 12px; }
  .intro-title { font-size: 30px; }
  .result-type-name { font-size: 26px; }
  .reveal-name { font-size: 30px; }
}

/* ===== Desktop Enhancement ===== */
@media (min-width: 768px) {
  .quiz-container { max-width: 520px; margin: 0 auto; }
  .result-card { max-width: 420px; }
  .scores-section { max-width: 420px; }
  .actions { max-width: 420px; }
}
