/* ============================================================
   FUN ENGLISH TEST — Miss Audi
   CSS khusus pre-test
   ============================================================ */

:root {
  --pink: #FF5E95;
  --yellow: #FFC233;
  --sky: #53C7F5;
  --navy: #0B2D6B;
  --green: #10B981;
  --red: #EF4444;
  --ink: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --line: #E2E8F0;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

/* ============================================================
   SCREEN MANAGEMENT
   ============================================================ */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 20px 16px;
}
.screen-active {
  display: block;
  animation: screenFadeIn 0.4s var(--ease);
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-gradient {
  background: linear-gradient(90deg, var(--pink), #FF8FB1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   SCREEN 1: WELCOME
   ============================================================ */
.welcome-container {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0 40px;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.welcome-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.welcome-blob-1 { width: 300px; height: 300px; background: var(--pink); top: -80px; right: -80px; }
.welcome-blob-2 { width: 260px; height: 260px; background: var(--sky); bottom: -60px; left: -60px; }
.welcome-blob-3 { width: 200px; height: 200px; background: var(--yellow); top: 40%; right: -60px; }

.welcome-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: welcomeEnter 0.6s var(--ease);
}

@keyframes welcomeEnter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mascot */
.welcome-mascot {
  margin-bottom: 8px;
  animation: mascotBounce 3s ease-in-out infinite;
}
.welcome-mascot svg {
  width: 140px;
  height: 140px;
  display: inline-block;
}
@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* Badge */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFF5F9;
  color: var(--pink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.welcome-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,94,149,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.2); }
}

/* Title */
.welcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}
.welcome-subtitle strong { color: var(--navy); }

/* Instructions */
.welcome-instructions {
  background: #FFF9E6;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
  border: 2px solid #FFE9A8;
}
.welcome-instructions h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.welcome-instructions h3 svg { color: var(--yellow); flex-shrink: 0; }
.welcome-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.welcome-instructions li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}
.welcome-instructions .check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.welcome-instructions strong { color: var(--navy); }

/* Form */
.welcome-form {
  text-align: left;
  margin-bottom: 20px;
}
.welcome-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.welcome-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s var(--ease);
  background: #fff;
}
.welcome-form input[type="text"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255,94,149,.12);
}
.welcome-form input[type="text"]::placeholder {
  color: #CBD5E1;
  font-weight: 400;
}

/* Age Selector */
.age-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.age-btn {
  padding: 12px 4px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.age-btn:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}
.age-btn.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 6px 16px rgba(255,94,149,.35);
  transform: translateY(-2px);
}

/* Start Button */
.btn-start {
  width: 100%;
  padding: 18px 24px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(255,94,149,.4);
  transition: all .2s var(--ease);
  margin-bottom: 12px;
}
.btn-start:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,94,149,.5);
}
.btn-start:active:not(:disabled) {
  transform: translateY(0);
}
.btn-start:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

.welcome-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ============================================================
   SCREEN 2: QUIZ
   ============================================================ */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0;
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Header */
.quiz-header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 0 16px;
  z-index: 10;
  margin-bottom: 16px;
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.quiz-progress-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.quiz-progress-text strong {
  color: var(--navy);
  font-size: 1.1rem;
}
/* Progress Dots — menggantikan 20 bintang */
.quiz-stars {
  display: flex;
  gap: 3px;
  align-items: center;
  flex-wrap: nowrap;
}
.quiz-stars span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #E2E8F0;
  transition: all .3s var(--ease);
  flex-shrink: 0;
}
/* Benar di attempt pertama */
.quiz-stars span.earned {
  background: var(--green);
  transform: scale(1.1);
}
/* Benar tapi retry */
.quiz-stars span.retry {
  background: var(--yellow);
}
/* Salah */
.quiz-stars span.wrong {
  background: #FCA5A5;
}
/* Sedang aktif (soal saat ini) */
.quiz-stars span.active {
  background: var(--sky);
  animation: activeDot 1.2s ease-in-out infinite;
}
@keyframes activeDot {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(83,199,245,.6);
  }
  50% { 
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(83,199,245,0);
  }
}
/* Mobile: dots lebih rapat */
@media (max-width: 640px) {
  .quiz-stars {
    gap: 2px;
  }
  .quiz-stars span {
    width: 7px;
    height: 7px;
    border-radius: 2px;
  }
}
/* Tablet: 2 kolom untuk options */
@media (min-width: 641px) and (max-width: 767px) {
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  /* Gambar ke-3 akan full width baris baru */
  .quiz-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

.quiz-progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  border-radius: 999px;
  transition: width .5s var(--ease);
}

/* Question */
.quiz-question {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  animation: questionEnter .35s var(--ease);
}
@keyframes questionEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Audio */
.quiz-audio {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #FFF5F9, #FFE9F2);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 2px solid #FFD5E5;
}
.btn-audio {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255,94,149,.4);
  transition: all .2s var(--ease);
  animation: audioPulse 2s infinite;
}
.btn-audio:hover { transform: scale(1.08); }
.btn-audio:active { transform: scale(0.95); }
.btn-audio.playing {
  animation: audioPlaying 0.6s ease-in-out infinite;
}
@keyframes audioPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(255,94,149,.4), 0 0 0 0 rgba(255,94,149,.5); }
  50% { box-shadow: 0 8px 20px rgba(255,94,149,.4), 0 0 0 12px rgba(255,94,149,0); }
}
@keyframes audioPlaying {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.quiz-audio-text {
  flex: 1;
}
.quiz-audio-wave {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 40px;
}
.quiz-audio-wave span {
  flex: 1;
  height: 8px;
  background: var(--pink);
  border-radius: 999px;
  opacity: .3;
  transition: all .2s var(--ease);
}
.quiz-audio-wave.active span {
  animation: wave 0.8s ease-in-out infinite;
  opacity: 1;
}
.quiz-audio-wave.active span:nth-child(1) { animation-delay: 0s; }
.quiz-audio-wave.active span:nth-child(2) { animation-delay: .1s; }
.quiz-audio-wave.active span:nth-child(3) { animation-delay: .2s; }
.quiz-audio-wave.active span:nth-child(4) { animation-delay: .3s; }
.quiz-audio-wave.active span:nth-child(5) { animation-delay: .4s; }
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

/* Question Text (for parents) */
.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin: 0 0 24px;
  padding: 0 8px;
}

/* Options Grid */
.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.quiz-option {
  position: relative;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.quiz-option:hover:not(.correct):not(.wrong):not(.disabled) {
  border-color: var(--pink);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(255,94,149,.15);
}
.quiz-option:active:not(.disabled) {
  transform: translateY(-2px) scale(0.99);
}

.quiz-option svg,
.quiz-option img {
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
  pointer-events: none;
}

.quiz-option.correct {
  border-color: var(--green);
  background: #ECFDF5;
  animation: correctPulse .5s var(--ease);
}
.quiz-option.correct::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  animation: starPop .4s var(--ease);
}
@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.quiz-option.wrong {
  border-color: var(--red);
  background: #FEF2F2;
  animation: wrongShake .4s var(--ease);
}
.quiz-option.wrong::after {
  content: "×";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
}
@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.quiz-option.disabled {
  cursor: default;
  opacity: .5;
}

/* Feedback overlay */
.feedback {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
}
.feedback.active {
  display: flex;
}
.feedback-content {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 28px 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: feedbackEnter .4s var(--ease);
}
@keyframes feedbackEnter {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
.feedback-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 8px;
}
.feedback-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.feedback.success .feedback-text { color: var(--green); }
.feedback.error .feedback-text { color: var(--red); }

/* ============================================================
   SCREEN 3: RESULT
   ============================================================ */
.result-container {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0 40px;
}

.result-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 0;
  animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

.result-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.result-mascot {
  margin-bottom: -8px;
  animation: mascotBounce 3s ease-in-out infinite;
}
.result-mascot svg {
  width: 130px;
  height: 130px;
}

/* Score */
.result-score {
  margin: 16px 0 20px;
}
.result-score-circle {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #FFF5F9, #FFE9F2);
  padding: 20px 36px;
  border-radius: 999px;
  border: 3px solid #FFD5E5;
}
.result-score-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
}
.result-score-divider {
  font-size: 1.5rem;
  color: var(--muted);
  font-weight: 300;
}
.result-score-total {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}

/* Level Badge */
.result-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(255,194,51,.4);
  animation: levelPop .6s var(--ease);
}
@keyframes levelPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.result-level.level-beginner { background: #DBEAFE; color: #1D4ED8; }
.result-level.level-explorer { background: #D1FAE5; color: #065F46; }
.result-level.level-star { background: linear-gradient(90deg, #FFC233, #FF5E95); color: #fff; }

.result-level-star { font-size: 1.2rem; }

/* Title */
.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.result-title span { color: var(--pink); }

.result-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Breakdown */
.result-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.breakdown-item {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.breakdown-item-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.breakdown-item-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.breakdown-item-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}

/* Recommendation */
.result-recommendation {
  text-align: left;
  background: linear-gradient(135deg, #FFF9E6, #FFF5E1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 2px solid #FFE9A8;
}
.result-recommendation h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-recommendation h3 svg { color: var(--yellow); flex-shrink: 0; }

.recommendation-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.recommendation-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.recommendation-info { flex: 1; text-align: left; }
.recommendation-info h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
}
.recommendation-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Actions */
.result-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.btn-result {
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.btn-result-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,.35);
}
.btn-result-wa:hover { background: #1ebe5b; transform: translateY(-2px); }

.btn-result-secondary {
  background: var(--bg);
  color: var(--navy);
  border: 2px solid var(--line);
}
.btn-result-secondary:hover {
  background: #fff;
  border-color: var(--navy);
  transform: translateY(-2px);
}

.result-back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.result-back-link:hover { color: var(--pink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  /* Question card di mobile */
  .quiz-question {
    padding: 20px 16px;
    border-radius: 24px;
  }

  /* Options stack vertikal — FULL WIDTH per gambar */
  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: initial;
  }

  .quiz-option {
    aspect-ratio: auto;
    padding: 12px;
    min-height: 120px;
    border-radius: 20px;
    border-width: 3px;
  }

  .quiz-option svg,
  .quiz-option img {
    max-width: 130px;
    max-height: 130px;
    width: 130px;
    height: 130px;
  }

  /* Question text lebih besar */
  .quiz-question-text {
    font-size: 1.35rem;
    margin: 0 0 20px;
  }

  /* Audio compact */
  .quiz-audio {
    padding: 12px 16px;
    gap: 12px;
    margin-bottom: 16px;
  }
  .btn-audio {
    width: 52px;
    height: 52px;
  }

  /* Quiz header lebih compact */
  .quiz-header {
    padding: 10px 0 12px;
    margin-bottom: 12px;
  }
  .quiz-progress-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .screen { padding: 16px 12px; }
  .welcome-content { padding: 24px 20px; border-radius: 24px; }
  .welcome-mascot svg { width: 110px; height: 110px; }
  .welcome-title { font-size: 1.5rem; }
  .welcome-instructions { padding: 16px; }
  .age-selector { grid-template-columns: repeat(3, 1fr); }
  .quiz-option {
    min-height: 110px;
  }
  .quiz-option svg,
  .quiz-option img {
    max-width: 110px;
    max-height: 110px;
    width: 110px;
    height: 110px;
  }
  .btn-audio { width: 48px; height: 48px; }
  .quiz-question-text { font-size: 1.2rem; }
  .result-score-number { font-size: 2.5rem; }
  .result-breakdown { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .breakdown-item { padding: 10px 4px; }
  .breakdown-item-value { font-size: 1rem; }
  .breakdown-item-label { font-size: 0.65rem; }
}

@media (min-width: 768px) {
  .screen { padding: 32px 24px; }
  .welcome-content { padding: 40px 32px; }
  .welcome-mascot svg { width: 170px; height: 170px; }
  .quiz-question { padding: 32px 28px; }
  .quiz-options { gap: 20px; }
  .quiz-option { padding: 24px; }
  .result-content { padding: 40px 32px; }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .result-actions .btn-result-wa { grid-column: span 2; }
}

/* Focus visible (A11y) */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}