/* ============================================
   ABENTEUER-QUIZ — V2 Illustrated & Animated
   ============================================ */

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

:root {
  --sunset-orange: #E8651A;
  --sunset-gold: #F5A623;
  --sunset-pink: #D4456A;
  --earth-brown: #8B5E3C;
  --forest-green: #2D6A4F;
  --forest-dark: #1A4A35;
  --deep-teal: #1B4D5C;
  --sand: #F5E6D3;
  --sand-light: #FFF8F0;
  --cream: #FFFDF9;
  --night: #1A1A2E;
  --text-dark: #2C2C3A;
  --text-medium: #5A5A72;
  --text-light: #8A8AA0;
  --sky-top: #FF9A56;
  --sky-mid: #FFCF87;
  --sky-bottom: #FFF4E0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--sky-bottom);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   PARALLAX BACKGROUND SYSTEM
   ============================================ */

.parallax-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  width: 100%;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Sky */
.sky-layer {
  inset: 0;
}

.sky-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 35%,
    var(--sky-bottom) 70%,
    #FFF8F0 100%
  );
}

.sun-svg {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 8%;
  right: 15%;
  animation: sunPulse 4s ease-in-out infinite, sunSpin 60s linear infinite;
}

.sun-rays {
  animation: sunRaysRotate 30s linear infinite;
  transform-origin: 100px 100px;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes sunSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes sunRaysRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Clouds */
.cloud-layer {
  top: 0;
  height: 40%;
}

.cloud {
  position: absolute;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.03));
}

.cloud-1 {
  width: 220px;
  top: 8%;
  left: 5%;
  animation: cloudDrift 45s linear infinite;
}

.cloud-2 {
  width: 180px;
  top: 15%;
  left: 60%;
  animation: cloudDrift 55s linear infinite;
  animation-delay: -20s;
}

.cloud-3 {
  width: 140px;
  top: 5%;
  left: 35%;
  animation: cloudDrift 65s linear infinite;
  animation-delay: -35s;
}

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  50% { transform: translateX(80px); }
  100% { transform: translateX(0); }
}

/* Mountains */
.mountains-far {
  bottom: 0;
  height: 55%;
}

.mountain-far-svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.mountains-near {
  bottom: 0;
  height: 50%;
}

.mountain-near-svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* Hills */
.hills-layer {
  bottom: 0;
  height: 35%;
}

.hills-svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.bird {
  position: absolute;
  opacity: 0.6;
}

.bird-1 {
  width: 40px;
  top: 12%;
  left: 20%;
  animation: birdFly1 12s ease-in-out infinite;
}

.bird-2 {
  width: 30px;
  top: 18%;
  left: 45%;
  animation: birdFly2 15s ease-in-out infinite;
  animation-delay: -5s;
}

.bird-3 {
  width: 22px;
  top: 8%;
  left: 70%;
  animation: birdFly3 18s ease-in-out infinite;
  animation-delay: -10s;
}

@keyframes birdFly1 {
  0%, 100% { transform: translate(0, 0) scaleX(1); }
  25% { transform: translate(60px, -15px) scaleX(1); }
  50% { transform: translate(120px, 5px) scaleX(1); }
  75% { transform: translate(60px, -10px) scaleX(1); }
}

@keyframes birdFly2 {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-40px, -20px); }
  60% { transform: translate(-80px, 0); }
  80% { transform: translate(-40px, -10px); }
}

@keyframes birdFly3 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(50px, -10px); }
  70% { transform: translate(30px, 5px); }
}

.leaf {
  position: absolute;
}

.leaf-1 {
  width: 25px;
  top: 35%;
  right: 8%;
  animation: leafFloat1 8s ease-in-out infinite;
}

.leaf-2 {
  width: 20px;
  top: 55%;
  left: 5%;
  animation: leafFloat2 10s ease-in-out infinite;
  animation-delay: -3s;
}

.leaf-3 {
  width: 18px;
  top: 70%;
  right: 15%;
  animation: leafFloat3 12s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes leafFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, 15px) rotate(15deg); }
  50% { transform: translate(5px, 30px) rotate(-10deg); }
  75% { transform: translate(-5px, 15px) rotate(5deg); }
}

@keyframes leafFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15px, -10px) rotate(-20deg); }
  66% { transform: translate(8px, 10px) rotate(10deg); }
}

@keyframes leafFloat3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -20px) rotate(25deg); }
}

/* ============================================
   APP LAYOUT
   ============================================ */

#app {
  position: relative;
  z-index: 3;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 2rem;
  align-items: center;
  justify-content: center;
}

.screen.active {
  display: flex;
}

/* ============================================
   DRAW-IN ANIMATION (Hand-drawn reveal)
   ============================================ */

.draw-in {
  opacity: 0;
  transform: translateY(25px);
  animation: drawIn 0.8s var(--ease-out-expo) forwards;
}

.draw-in:nth-child(1) { animation-delay: 0.2s; }
.draw-in:nth-child(2) { animation-delay: 0.4s; }
.draw-in:nth-child(3) { animation-delay: 0.6s; }
.draw-in:nth-child(4) { animation-delay: 0.8s; }
.draw-in:nth-child(5) { animation-delay: 1.0s; }

@keyframes drawIn {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ============================================
   START SCREEN
   ============================================ */

#start-screen {
  flex-direction: column;
  padding-top: 5vh;
}

.start-content {
  max-width: 680px;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Compass */
.compass-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  animation: drawIn 1s var(--ease-out-expo) 0.1s both;
}

.compass-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(232, 101, 26, 0.2));
}

.compass-needle {
  animation: compassWobble 3s ease-in-out infinite;
  transform-origin: 50px 50px;
}

@keyframes compassWobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Badge */
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sunset-orange);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(232, 101, 26, 0.15);
  box-shadow: 0 2px 12px rgba(232, 101, 26, 0.1);
}

/* Title */
.start-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

.highlight {
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-back);
  box-shadow:
    0 4px 15px rgba(232, 101, 26, 0.3),
    0 0 0 0 rgba(232, 101, 26, 0);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--sunset-gold), var(--sunset-orange), var(--sunset-pink));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 8px 30px rgba(232, 101, 26, 0.4),
    0 0 0 4px rgba(232, 101, 26, 0.1);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Type Preview Grid */
.type-preview {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.type-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

.type-preview-item:nth-child(1) { animation-delay: 1.2s !important; }
.type-preview-item:nth-child(2) { animation-delay: 1.4s !important; }
.type-preview-item:nth-child(3) { animation-delay: 1.6s !important; }
.type-preview-item:nth-child(4) { animation-delay: 1.8s !important; }

.type-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.type-preview-item:hover .type-icon {
  transform: translateY(-5px) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.type-preview-item span {
  font-weight: 700;
  color: #000000;
  font-family: var(--font-hand);
  font-size: 1.05rem;
}

/* ============================================
   QUIZ SCREEN
   ============================================ */

#quiz-screen {
  flex-direction: column;
  padding-top: 1.5rem;
  position: relative;
}

/* Quiz Scene (background illustration per question) */
.quiz-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.quiz-scene svg {
  position: absolute;
  transition: all 0.8s var(--ease-out-expo);
}

/* Progress Bar */
.quiz-header {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 10;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-medium);
  white-space: nowrap;
  min-width: 3rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
}

.progress-bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-gold), var(--sunset-orange));
  background-size: 200% 100%;
  border-radius: 100px;
  transition: width 0.6s var(--ease-out-expo);
  position: relative;
  animation: progressShimmer 2s linear infinite;
}

.progress-glow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--sunset-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sunset-gold), 0 0 20px rgba(245, 166, 35, 0.3);
  animation: glowPulse 1.5s ease-in-out infinite;
}

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

@keyframes glowPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.3); opacity: 0.7; }
}

/* Quiz Body */
.quiz-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

#question-container {
  width: 100%;
}

.question-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.6);
}

/* Answer Cards */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  perspective: 1000px;
}

.answer-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  transform-style: preserve-3d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.answer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(232, 101, 26, 0.06),
    rgba(212, 69, 106, 0.06)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hand-drawn border effect */
.answer-card::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed transparent;
  border-radius: 1rem;
  transition: border-color 0.3s ease;
}

.answer-card:hover {
  transform: translateY(-4px) rotateX(2deg);
  border-color: var(--sunset-orange);
  box-shadow:
    0 12px 30px rgba(232, 101, 26, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.04);
}

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

.answer-card:hover::after {
  border-color: rgba(232, 101, 26, 0.15);
}

.answer-card.selected {
  border-color: var(--sunset-orange);
  background: rgba(232, 101, 26, 0.08);
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(232, 101, 26, 0.15);
}

.answer-card .card-icon {
  display: block;
  margin-bottom: 0.5rem;
}

.answer-card .card-icon svg {
  width: 32px;
  height: 32px;
}

.answer-card p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 500;
}

/* Card entrance animation */
.card-enter {
  opacity: 0;
  transform: translateY(30px) rotateX(-10deg);
  animation: cardEnter 0.5s var(--ease-out-expo) forwards;
}

.card-enter:nth-child(1) { animation-delay: 0.05s; }
.card-enter:nth-child(2) { animation-delay: 0.1s; }
.card-enter:nth-child(3) { animation-delay: 0.15s; }
.card-enter:nth-child(4) { animation-delay: 0.2s; }

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Question text animation */
.question-enter {
  animation: questionEnter 0.6s var(--ease-out-expo) both;
}

@keyframes questionEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Slide out */
.slide-out-left {
  animation: slideOutLeft 0.35s var(--ease-out-expo) forwards;
}

@keyframes slideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    filter: blur(2px);
  }
}

/* ============================================
   RESULT SCREEN
   ============================================ */

#result-screen {
  position: relative;
  flex-direction: column;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.result-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.result-content {
  max-width: 600px;
  text-align: center;
  position: relative;
  z-index: 15;
}

.result-content > * {
  opacity: 0;
  animation: resultReveal 0.7s var(--ease-out-expo) forwards;
}

.result-badge { animation-delay: 0.3s; }
.result-illustration { animation-delay: 0.5s; }
.result-title { animation-delay: 0.7s; }
.result-motto { animation-delay: 0.9s; }
.result-description { animation-delay: 1.1s; }
.score-breakdown { animation-delay: 1.3s; }
.result-actions { animation-delay: 1.5s; }

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

.result-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sunset-orange);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  border: 1px solid rgba(232, 101, 26, 0.15);
}

.result-illustration {
  margin: 0 auto 1.5rem;
  width: 180px;
  height: 180px;
}

.result-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

/* SVG draw-on animation for result illustrations */
.draw-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-out forwards;
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.fill-in {
  opacity: 0;
  animation: fillIn 0.8s ease-out forwards;
  animation-delay: 1s;
}

@keyframes fillIn {
  to { opacity: 1; }
}

.result-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-motto {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.result-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ============================================
   SCORE BREAKDOWN BARS
   ============================================ */

.score-breakdown {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.4);
  margin-bottom: 2rem;
  text-align: left;
}

.breakdown-title {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  border-radius: 0.75rem;
  transition: all 0.3s var(--ease-out-expo);
  border: 1.5px solid transparent;
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-row:hover {
  background: rgba(255,255,255,0.5);
  border-color: var(--row-color, var(--sunset-orange));
  transform: translateX(4px);
}

.score-row.winner {
  background: rgba(255,255,255,0.4);
}

.score-row-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.score-row-icon svg {
  width: 100%;
  height: 100%;
}

.score-row-info {
  flex: 1;
  min-width: 0;
}

.score-row-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.score-row-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.score-row-pct {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--row-color, var(--sunset-orange));
}

.score-bar-track {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 1.2s var(--ease-out-expo);
}

.score-row-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.score-row:hover .score-row-arrow {
  color: var(--row-color, var(--sunset-orange));
  transform: translateX(3px);
}

/* ============================================
   TYPE DETAIL OVERLAY
   ============================================ */

.type-detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease both;
}

.type-detail-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.type-detail-card {
  background: var(--cream);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalIn 0.4s var(--ease-out-back) both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

.type-detail-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.type-detail-close:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.type-detail-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
}

.type-detail-icon svg {
  width: 100%;
  height: 100%;
}

.type-detail-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.type-detail-motto {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 1.25rem;
}

.type-detail-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-medium);
}

/* ============================================
   TEXTURE OVERLAY
   ============================================ */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .screen {
    padding: 1.25rem;
  }

  .answers-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .answer-card {
    padding: 1rem 1.25rem;
  }

  .start-content h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .type-preview {
    gap: 1rem;
  }

  .type-preview-item span {
    font-size: 0.85rem;
  }

  .sun-svg {
    width: 100px;
    top: 5%;
    right: 5%;
  }

  .cloud-1 { width: 150px; }
  .cloud-2 { width: 120px; }
  .cloud-3 { display: none; }

  .bird-3 { display: none; }

  .result-illustration {
    width: 140px;
    height: 140px;
  }

  #quiz-screen {
    padding-top: 1rem;
  }

  .compass-icon {
    width: 60px;
    height: 60px;
  }
}
