/* ================================================================
   WHAT DRINK ARE YOU? — STYLE SYSTEM
   Modern personality quiz with glassmorphism, gradients, animations
   ================================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Color Palette */
  --clr-bg-start: #0f0a1e;
  --clr-bg-mid: #1a1035;
  --clr-bg-end: #12082a;
  --clr-surface: rgba(255, 255, 255, 0.06);
  --clr-surface-hover: rgba(255, 255, 255, 0.10);
  --clr-surface-active: rgba(255, 255, 255, 0.14);
  --clr-glass: rgba(255, 255, 255, 0.08);
  --clr-glass-border: rgba(255, 255, 255, 0.12);
  --clr-text-primary: #f0eef6;
  --clr-text-secondary: rgba(240, 238, 246, 0.7);
  --clr-text-muted: rgba(240, 238, 246, 0.45);
  --clr-accent-1: #a855f7;       /* Violet */
  --clr-accent-2: #ec4899;       /* Pink */
  --clr-accent-3: #6366f1;       /* Indigo */
  --clr-gradient-primary: linear-gradient(135deg, #a855f7, #ec4899);
  --clr-gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
  --clr-gradient-cool: linear-gradient(135deg, #6366f1, #06b6d4);
  --clr-gradient-nature: linear-gradient(135deg, #10b981, #06b6d4);

  /* Drink-specific Colors */
  --clr-americano: #8B4513;
  --clr-americano-light: #D2691E;
  --clr-latte: #C4A882;
  --clr-latte-light: #F5DEB3;
  --clr-magic: #9333ea;
  --clr-magic-light: #c084fc;
  --clr-matcha: #4CAF50;
  --clr-matcha-light: #81C784;
  --clr-lemontea: #eab308;
  --clr-lemontea-light: #facc15;
  --clr-milktea: #FF9800;
  --clr-milktea-light: #FFB74D;

  /* Typography */
  --ff-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.35vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --fs-lg: clamp(1.15rem, 1rem + 0.75vw, 1.4rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-3xl: clamp(2.5rem, 2rem + 3vw, 4rem);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Borders & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.3);
  --shadow-glow-pink: 0 0 30px rgba(236, 72, 153, 0.3);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;
}


/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  background: var(--clr-bg-start);
  background: linear-gradient(160deg, var(--clr-bg-start) 0%, var(--clr-bg-mid) 50%, var(--clr-bg-end) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated background orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 500px;
  height: 500px;
  background: var(--clr-accent-1);
  top: -150px;
  right: -100px;
  animation: orbFloat1 20s ease-in-out infinite alternate;
}

body::after {
  width: 400px;
  height: 400px;
  background: var(--clr-accent-2);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 25s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.15); }
  100% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -80px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}


/* ── Utility Classes ── */
.glass-card {
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
}


/* ── Language Toggle ── */
.lang-toggle {
  position: fixed;
  top: var(--sp-lg);
  right: var(--sp-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--clr-glass);
  border: 1px solid var(--clr-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  color: var(--clr-text-primary);
  font-family: var(--ff-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  letter-spacing: 0.5px;
}

.lang-toggle:hover {
  background: var(--clr-surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.lang-toggle:active {
  transform: translateY(0);
}

.lang-flag {
  font-size: 1.1rem;
}


/* ── App & Screen Management ── */
.app {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: var(--sp-xl) var(--sp-md);
}

.screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: screenFadeIn var(--duration-slow) var(--ease-out) forwards;
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================================================================
   WELCOME SCREEN
   ================================================================ */

.welcome-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* Floating drink emojis */
.float-emoji {
  position: absolute;
  font-size: clamp(2rem, 4vw, 3.5rem);
  opacity: 0.5;
  pointer-events: none;
  animation-duration: 6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float-emoji--1 {
  top: -30px;
  left: -10px;
  animation-name: floatDrift1;
}

.float-emoji--2 {
  top: -20px;
  right: 0;
  animation-name: floatDrift2;
  animation-delay: 1.5s;
}

.float-emoji--3 {
  bottom: -10px;
  left: 10px;
  animation-name: floatDrift3;
  animation-delay: 0.8s;
}

.float-emoji--4 {
  bottom: -20px;
  right: 20px;
  animation-name: floatDrift4;
  animation-delay: 2s;
}

@keyframes floatDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -15px) rotate(10deg); }
}

@keyframes floatDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -10px) rotate(-8deg); }
}

@keyframes floatDrift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, 12px) rotate(6deg); }
}

@keyframes floatDrift4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-10px, 8px) rotate(-12deg); }
}

.float-emoji--5 {
  bottom: 40px;
  left: -15px;
  animation-name: floatDrift5;
  animation-delay: 2.5s;
}

.float-emoji--6 {
  top: 50%;
  right: -10px;
  animation-name: floatDrift6;
  animation-delay: 3s;
}

@keyframes floatDrift5 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -8px) rotate(8deg); }
}

@keyframes floatDrift6 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 10px) rotate(-6deg); }
}

.welcome-card {
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: var(--shadow-lg);
}

.welcome-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  background: var(--clr-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-md);
}

.welcome-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.welcome-divider {
  width: 60px;
  height: 3px;
  background: var(--clr-gradient-primary);
  border-radius: var(--radius-full);
  margin: 0 auto var(--sp-lg);
}

.welcome-disclaimer {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-style: italic;
  margin-bottom: var(--sp-xl);
  padding: var(--sp-md);
  background: rgba(168, 85, 247, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.1);
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-xl);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn--primary {
  background: var(--clr-gradient-primary);
  color: white;
  padding: var(--sp-md) var(--sp-2xl);
  font-size: var(--fs-md);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.btn-arrow {
  font-size: 1.2em;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn--restart {
  margin-top: var(--sp-xl);
  width: 100%;
  max-width: 320px;
}

.btn--restart:hover .btn-arrow {
  transform: rotate(-45deg);
}


/* ================================================================
   QUIZ SCREEN
   ================================================================ */

.quiz-container {
  width: 100%;
  max-width: 640px;
}

/* ── Progress Bar ── */
.progress-wrapper {
  margin-bottom: var(--sp-xl);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-sm);
}

.progress-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  font-weight: 500;
}

.progress-count {
  font-size: var(--fs-sm);
  color: var(--clr-accent-1);
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--clr-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--clr-gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-spring);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.progress-fill:not([style*="width: 0"]):not([style*="width:0"])::after {
  opacity: 1;
}


/* ── Question Card ── */
.question-wrapper {
  perspective: 1000px;
}

.question-card {
  padding: var(--sp-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.question-card.card-enter {
  animation: cardSlideIn var(--duration-slow) var(--ease-spring) forwards;
}

.question-card.card-exit {
  animation: cardSlideOut var(--duration-normal) var(--ease-smooth) forwards;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes cardSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
}

.question-number {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--clr-accent-1);
  background: rgba(168, 85, 247, 0.12);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-md);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.question-text {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--sp-xl);
  color: var(--clr-text-primary);
}


/* ── Answer Buttons ── */
.answers-grid {
  display: grid;
  gap: var(--sp-md);
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  color: var(--clr-text-primary);
  font-family: var(--ff-primary);
  font-size: var(--fs-base);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.answer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.answer-btn:hover {
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15);
}

.answer-btn:hover::before {
  opacity: 0.08;
}

.answer-btn:active {
  transform: translateY(0) scale(0.98);
}

.answer-btn.selected {
  border-color: var(--clr-accent-1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.answer-btn.selected::before {
  opacity: 0.15;
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--clr-accent-1);
  position: relative;
  z-index: 1;
  transition: all var(--duration-fast);
}

.answer-btn:hover .answer-letter,
.answer-btn.selected .answer-letter {
  background: var(--clr-accent-1);
  color: white;
}

.answer-text {
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

/* Answer selection pulse */
.answer-btn.pulse {
  animation: answerPulse 0.4s var(--ease-spring);
}

@keyframes answerPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}


/* ================================================================
   RESULT SCREEN
   ================================================================ */

.result-container {
  width: 100%;
  max-width: 640px;
}

.result-card {
  padding: var(--sp-2xl) var(--sp-xl);
  box-shadow: var(--shadow-lg);
  animation: resultReveal 0.8s var(--ease-spring) forwards;
}

@keyframes resultReveal {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── Result Header ── */
.result-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.result-emoji {
  font-size: clamp(4rem, 10vw, 6rem);
  margin-bottom: var(--sp-md);
  animation: emojiFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.result-drink {
  font-size: var(--fs-2xl);
  font-weight: 800;
  background: var(--clr-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-xs);
}

.result-personality-title {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  font-weight: 500;
}


/* ── Result Body ── */
.result-body {
  margin-bottom: var(--sp-xl);
}

.result-description {
  font-size: var(--fs-md);
  color: var(--clr-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-xl);
  padding: var(--sp-lg);
  background: rgba(168, 85, 247, 0.05);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--clr-accent-1);
}

.result-section {
  margin-bottom: var(--sp-lg);
}

.result-section-title {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  color: var(--clr-text-primary);
}

.section-icon {
  font-size: 1.3em;
}

.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.result-list li {
  padding: var(--sp-sm) var(--sp-md);
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  animation: listFadeIn var(--duration-normal) var(--ease-out) backwards;
}

.result-list li::before {
  content: attr(data-icon);
  font-size: 1.1em;
  min-width: 1.5em;
}

.result-list--strengths li {
  border-left: 2px solid var(--clr-matcha);
}

.result-list--weaknesses li {
  border-left: 2px solid var(--clr-icetea);
}

@keyframes listFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.result-list li:nth-child(1) { animation-delay: 0.1s; }
.result-list li:nth-child(2) { animation-delay: 0.2s; }
.result-list li:nth-child(3) { animation-delay: 0.3s; }
.result-list li:nth-child(4) { animation-delay: 0.4s; }
.result-list li:nth-child(5) { animation-delay: 0.5s; }

.result-closing-wrapper {
  margin-top: var(--sp-lg);
  padding: var(--sp-lg);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.08));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.result-closing {
  font-size: var(--fs-base);
  color: var(--clr-text-secondary);
  line-height: 1.8;
  text-align: center;
  font-style: italic;
}


/* ── Score Visualization ── */
.score-section {
  margin-bottom: var(--sp-xl);
  padding: var(--sp-lg);
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
}

.score-section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--sp-lg);
  color: var(--clr-text-primary);
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.score-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-md);
}

.score-emoji {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
}

.score-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-spring);
  width: 0%;
}

.score-bar-fill--americano { background: linear-gradient(90deg, var(--clr-americano), var(--clr-americano-light)); }
.score-bar-fill--latte { background: linear-gradient(90deg, var(--clr-latte), var(--clr-latte-light)); }
.score-bar-fill--magic { background: linear-gradient(90deg, var(--clr-magic), var(--clr-magic-light)); }
.score-bar-fill--matcha { background: linear-gradient(90deg, var(--clr-matcha), var(--clr-matcha-light)); }
.score-bar-fill--lemontea { background: linear-gradient(90deg, var(--clr-lemontea), var(--clr-lemontea-light)); }
.score-bar-fill--milktea { background: linear-gradient(90deg, var(--clr-milktea), var(--clr-milktea-light)); }

.score-value {
  font-size: var(--fs-sm);
  font-weight: 700;
  min-width: 28px;
  text-align: right;
}

.score-value--americano { color: var(--clr-americano-light); }
.score-value--latte { color: var(--clr-latte-light); }
.score-value--magic { color: var(--clr-magic-light); }
.score-value--matcha { color: var(--clr-matcha-light); }
.score-value--lemontea { color: var(--clr-lemontea-light); }
.score-value--milktea { color: var(--clr-milktea-light); }


/* ── Share Section ── */
.share-section {
  margin-bottom: var(--sp-lg);
  text-align: center;
}

.share-section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
}

.btn--share {
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-glass-border);
  color: var(--clr-text-primary);
  background: var(--clr-surface);
}

.btn--share:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--copy:hover { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); }
.btn--whatsapp:hover { background: rgba(37, 211, 102, 0.15); border-color: rgba(37, 211, 102, 0.3); }
.btn--twitter:hover { background: rgba(29, 161, 242, 0.15); border-color: rgba(29, 161, 242, 0.3); }
.btn--facebook:hover { background: rgba(66, 103, 178, 0.15); border-color: rgba(66, 103, 178, 0.3); }

.share-icon {
  font-size: 1.1em;
}


/* ── Copy Toast ── */
.copy-toast {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #6ee7b7;
  animation: toastPop var(--duration-normal) var(--ease-spring);
}

.copy-toast.show {
  display: flex;
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */

/* Tablet */
@media (max-width: 768px) {
  .screen {
    padding: var(--sp-lg) var(--sp-md);
  }

  .welcome-card,
  .question-card,
  .result-card {
    padding: var(--sp-xl) var(--sp-lg);
  }

  .float-emoji {
    font-size: 2rem;
  }

  .float-emoji--1 { top: -15px; left: -5px; }
  .float-emoji--2 { top: -10px; right: -5px; }
  .float-emoji--3 { bottom: 0; left: 5px; }
  .float-emoji--4 { bottom: -10px; right: 5px; }
  .float-emoji--5 { bottom: 30px; left: -10px; }
  .float-emoji--6 { top: 40%; right: -8px; }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --sp-xl: 1.5rem;
    --sp-2xl: 2rem;
  }

  .screen {
    padding: var(--sp-md) var(--sp-sm);
    padding-top: 60px;
  }

  .lang-toggle {
    top: var(--sp-md);
    right: var(--sp-md);
    padding: 6px 10px;
    font-size: var(--fs-xs);
  }

  .welcome-card,
  .question-card,
  .result-card {
    padding: var(--sp-lg) var(--sp-md);
    border-radius: var(--radius-lg);
  }

  .answer-btn {
    padding: var(--sp-md);
    gap: var(--sp-sm);
  }

  .answer-letter {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: var(--fs-xs);
  }

  .share-buttons {
    flex-direction: column;
  }

  .btn--share {
    width: 100%;
  }

  .score-row {
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-sm);
  }

  .score-emoji {
    font-size: 1.1rem;
    width: 22px;
  }

  .result-description {
    padding: var(--sp-md);
  }

  body::before {
    width: 300px;
    height: 300px;
  }

  body::after {
    width: 250px;
    height: 250px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .welcome-container { max-width: 620px; }
  .quiz-container { max-width: 700px; }
  .result-container { max-width: 700px; }
}


/* ── Focus & Accessibility ── */
*:focus-visible {
  outline: 2px solid var(--clr-accent-1);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--clr-accent-1);
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .progress-fill {
    transition: none;
  }
}

/* Print styles */
@media print {
  body::before,
  body::after,
  .lang-toggle,
  .share-section,
  .btn--restart {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ddd;
    backdrop-filter: none;
  }
}
