/* ==========================================================================
   TUTUSCAN • Pofuduk, Sevimli & Neşeli Tasarım Sistemi
   Font: Baloo 2 (Ultra Pofuduk & 100% Türkçe Uyumlu)
   Sade Ön Yüz & İkili Cevap (AI + Kaynak Notu) Yapısı
   ========================================================================== */

:root {
  --font-display: 'Baloo 2', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Baloo 2', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Cozy & Sweet Palette */
  --bg-cream: #FAF5EB;
  --bg-card: #FFFFFF;
  --text-dark: #2A2D3C;
  --text-muted: #7E859E;
  
  /* Brand TUS Accent */
  --tus-coral: #FF5A43;
  --tus-coral-shadow: #D9402A;
  --tus-coral-light: #FFF0EB;

  /* Puffy Mint (Success & Next) */
  --mint-main: #2EC4B6;
  --mint-shadow: #1F9E92;
  --mint-light: #E8F9F7;

  /* Puffy Peach (Bilmiyorum) */
  --peach-main: #FFF0EB;
  --peach-border: #F7D5C8;
  --peach-text: #D95436;
  --peach-shadow: #EBC1B0;

  /* Card 3D Depth */
  --card-border: #EFE4D2;
  --card-depth: #E2D3BE;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Floating Cute Pastel Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatSlow 8s ease-in-out infinite alternate;
}

.blob-1 {
  width: 340px;
  height: 340px;
  background: #FFD3C0;
  top: -80px;
  right: -50px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #C4F1EB;
  bottom: -100px;
  left: -80px;
  animation-duration: 10s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: #FFF2C6;
  top: 42%;
  left: 62%;
  opacity: 0.35;
  animation-duration: 12s;
}

/* ==========================================================================
   Header & TUTUSCAN Brand Area
   ========================================================================== */

.header {
  position: relative;
  z-index: 10;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.mascot-badge {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  border: 2.5px solid #EFE4D2;
  box-shadow: 0 3px 0 #E2D3BE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  line-height: 1.05;
  display: flex;
  align-items: center;
}

.tus-accent {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B57 0%, #FF5038 100%);
  padding: 1px 8px;
  border-radius: 9px;
  margin: 0 2px;
  box-shadow: 0 2px 6px rgba(255, 90, 67, 0.35);
  display: inline-block;
  transform: rotate(-1.5deg);
  font-weight: 800;
}

.logo-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 1px;
}



.counter-capsule {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 2px solid #EFE4D2;
  box-shadow: 0 4px 0 #E2D3BE;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ==========================================================================
   Main Stage & Mascot Companion Bar
   ========================================================================== */

.main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 20px 22px;
}

.stage-container {
  width: 100%;
  max-width: 610px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Companion Bar */
.companion-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 6px;
}

.companion-speech {
  flex: 1;
  position: relative;
  background: #FFFFFF;
  border: 2.5px solid #EFE4D2;
  box-shadow: 0 4px 0 #E2D3BE;
  border-radius: 20px 20px 6px 20px;
  padding: 10px 18px;
  animation: speechPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.speech-text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  transition: opacity 0.15s ease;
}

.speech-tail {
  position: absolute;
  right: -9px;
  bottom: 22px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-top: 2.5px solid #EFE4D2;
  border-right: 2.5px solid #EFE4D2;
  transform: rotate(45deg);
}

.companion-avatar {
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease;
  user-select: none;
}

.companion-avatar:hover {
  transform: scale(1.08);
}

.tutu-svg {
  display: block;
  overflow: visible;
  width: 112px;
  height: 112px;
}

.tutu-body-group {
  transform-origin: 60px 85px;
  animation: tutuIdleBob 3.5s ease-in-out infinite;
}

.tutu-shadow {
  transform-origin: 60px 112px;
  animation: shadowScale 3.5s ease-in-out infinite;
}

.eyes-normal {
  transform-origin: 60px 72px;
  animation: eyesBlink 3.6s ease-in-out infinite;
}

.eyes-happy {
  display: none;
}

.arm-l {
  transform-origin: 30px 75px;
  animation: armWaveL 2.5s ease-in-out infinite alternate;
}

.arm-r {
  transform-origin: 90px 75px;
  animation: armWaveR 2.5s ease-in-out infinite alternate;
}

.tutu-mouth-smile {
  display: block;
}

.tutu-mouth-talking {
  display: none;
  transform-origin: 60px 81px;
}

.companion-avatar.is-talking .tutu-mouth-smile {
  display: none !important;
}

.companion-avatar.is-talking .tutu-mouth-talking {
  display: block !important;
  animation: mouthFlap 0.16s ease-in-out infinite alternate;
}

.companion-avatar.is-talking .tutu-body-group {
  animation: talkingWiggle 0.28s ease-in-out infinite alternate !important;
}

.companion-avatar.is-celebrating .eyes-normal {
  display: none !important;
}

.companion-avatar.is-celebrating .eyes-happy {
  display: block !important;
}

.companion-avatar.is-celebrating .arm-l {
  animation: cheerArms 0.2s ease-in-out infinite alternate !important;
}

.companion-avatar.is-celebrating .arm-r {
  animation: cheerArms 0.2s ease-in-out infinite alternate 0.1s !important;
}

/* ==========================================================================
   Flashcard 3D Scene
   ========================================================================== */

.card-scene {
  width: 100%;
  min-height: 500px;
  perspective: 1200px;
  position: relative;
}

.card {
  width: 100%;
  min-height: 500px;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
  border-radius: 28px;
}

.card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 28px;
  background-color: var(--bg-card);
  background-image: radial-gradient(#F0E6D8 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border: 3px solid var(--card-border);
  box-shadow: 
    0 10px 0 var(--card-depth),
    0 20px 32px rgba(135, 105, 75, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  padding: 24px 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

/* Subtle Top Header Colored Band */
.card-top-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #FF6B57 0%, #FFA94D 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.card-top-strip.strip-mint {
  background: linear-gradient(90deg, #2EC4B6 0%, #48CAE4 100%);
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.eval-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: all 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  user-select: none;
}

.eval-status-indicator .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Doğru Yanıt Durumu (Soft Mint) */
.eval-status-indicator.is-correct {
  background: #DCFCE7;
  color: #15803D;
  border: 1.5px solid #86EFAC;
}
.eval-status-indicator.is-correct .status-dot {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Yanlış Yanıt Durumu (Soft Rose / Red) */
.eval-status-indicator.is-wrong {
  background: #FFE4E6;
  color: #BE123C;
  border: 1.5px solid #FDA4AF;
}
.eval-status-indicator.is-wrong .status-dot {
  background: #E11D48;
  box-shadow: 0 0 6px rgba(225, 29, 72, 0.5);
}

/* İnceleme / Nötr Durumu */
.eval-status-indicator.is-neutral {
  background: #FEF3C7;
  color: #B45309;
  border: 1.5px solid #FCD34D;
}
.eval-status-indicator.is-neutral .status-dot {
  background: #F59E0B;
}

.guess-val.is-correct {
  color: #15803D !important;
}

.guess-val.is-wrong {
  color: #BE123C !important;
}

.back-flip-btn {
  background: #F4EFE6;
  border: 2px solid #E5DCCE;
  box-shadow: 0 3px 0 #D5CABB;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.1s ease;
}

.back-flip-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #D5CABB;
}

/* Card Content (Odak: Doğrudan Soru & Akıcı Kaydırma) */
.card-content {
  flex: 1;
  min-height: 0; /* KRİTİK: Butonların aşağı taşmasını önler ve kaydırmayı etkinleştirir */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 12px 2px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #E2D3BE transparent;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Card Front */
.card-content::-webkit-scrollbar {
  width: 5px;
}
.card-content::-webkit-scrollbar-track {
  background: transparent;
}
.card-content::-webkit-scrollbar-thumb {
  background: #E2D3BE;
  border-radius: 10px;
}
.card-content::-webkit-scrollbar-thumb:hover {
  background: #D5C1A7;
}

.card-content-inner {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.question-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.36;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  word-break: break-word;
}

/* Ekstra uzun klinik vakalarda optimize edilmiş yazı boyutu */
.card-front.is-long-case .question-title {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.34;
}

.card-front.is-extra-long-case .question-title {
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.3;
}

/* Clean & Simple Hint Button ("İpucu Al") */
.cute-hint-box {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.hint-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF8F0;
  border: 2px dashed #FCD5B5;
  border-radius: 9999px;
  padding: 5px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: #C2410C;
  transition: all 0.15s ease;
  user-select: none;
}

.hint-trigger-btn:hover {
  background: #FFF2E6;
  border-color: #FB923C;
  transform: translateY(-1px);
}

.hint-trigger-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Puffy Hint Modal Popup (Her Ekran ve Soruda %100 Kusursuz Görünür)
   ========================================================================== */

.card-hint-modal {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 28px;
  background: rgba(35, 24, 16, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.18s ease;
}

.card-hint-modal-card {
  width: 100%;
  max-width: 360px;
  background: #FFFDF7;
  border: 3px solid #FDE68A;
  border-radius: 24px;
  box-shadow: 
    0 8px 0 #F6D873,
    0 20px 36px rgba(120, 53, 15, 0.22);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hint-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed rgba(245, 158, 11, 0.45);
}

.hint-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hint-flame-icon {
  font-size: 1.15rem;
}

.hint-badge-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #B45309;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-close-hint-modal {
  background: #FEF3C7;
  border: 1.5px solid #FCD34D;
  color: #92400E;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-close-hint-modal:hover {
  background: #FDE68A;
  transform: scale(1.1);
}

.btn-close-hint-modal:active {
  transform: scale(0.95);
}

.card-hint-modal-content {
  max-height: 220px;
  overflow-y: auto;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.card-hint-modal-text {
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 600;
  color: #78350F;
  line-height: 1.44;
  margin: 0;
  word-break: break-word;
}

.card-hint-modal-footer {
  margin-top: 2px;
}

.btn-hint-modal-ok {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: 2px solid #D97706;
  border-radius: 16px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #B45309;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hint-modal-ok:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #B45309;
}

/* ==========================================================================
   Card Back: DUAL ANSWER SYSTEM (AI Yanıtı + Kaynak Notu)
   Tasarımı Asla Bozmayan, Düzgün ve Pofuduk Kutu Düzeni
   ========================================================================== */

.card-content-back {
  justify-content: flex-start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Card Back */
.card-content-back::-webkit-scrollbar {
  width: 5px;
}
.card-content-back::-webkit-scrollbar-track {
  background: transparent;
}
.card-content-back::-webkit-scrollbar-thumb {
  background: #EFE4D2;
  border-radius: 10px;
}

/* Dual Answer Box Styles */
.dual-answer-box {
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease;
}

/* AI Answer Box (Soft Mint/Cyan) */
.ai-answer-box {
  background: #F0FDF4;
  border: 2px solid #BBF7D0;
  box-shadow: 0 3px 0 #A7F3D0;
}

/* Source / Teacher Box (Soft Warm Yellow/Cream) */
.source-answer-box {
  background: #FFFBEB;
  border: 2px solid #FDE68A;
  box-shadow: 0 3px 0 #F6D873;
}

.box-badge {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
}

.badge-ai {
  color: #166534;
}

.badge-source {
  color: #92400E;
}

.box-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

/* User Guess Pill */
.user-guess-pill {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.guess-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.guess-val {
  color: var(--text-dark);
  font-weight: 700;
}

/* ==========================================================================
   Puffy Input & 3D Buttons
   ========================================================================== */

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
}

.puffy-input-wrap {
  width: 100%;
}

.puffy-input-wrap input {
  width: 100%;
  background: #FDFBF7;
  border: 2.5px solid #EFE4D2;
  border-radius: 18px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  transition: all 0.2s ease;
}

.puffy-input-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--tus-coral);
  box-shadow: 0 0 0 4px rgba(255, 90, 67, 0.15);
}

.puffy-input-wrap input::placeholder {
  color: #A3AABF;
  font-weight: 600;
}

.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.puffy-btn {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: filter 0.1s ease, transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-dont-know {
  background-color: var(--peach-main);
  color: var(--peach-text);
  border: 2px solid var(--peach-border);
  box-shadow: 0 5px 0 var(--peach-shadow);
}

.btn-dont-know:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--peach-shadow);
}

.btn-answer {
  background-color: var(--tus-coral);
  color: #FFFFFF;
  border: 2px solid var(--tus-coral);
  box-shadow: 0 5px 0 var(--tus-coral-shadow);
}

.btn-answer:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--tus-coral-shadow);
}

.btn-answer.is-checking {
  opacity: 0.88;
  cursor: wait;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tus-coral-shadow);
  pointer-events: none;
  animation: pulseCheck 1.2s ease-in-out infinite alternate;
}

@keyframes pulseCheck {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.1); transform: translateY(1px) scale(0.99); }
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.puffy-input-wrap.is-shaking {
  animation: inputShake 0.35s ease;
}

.btn-next {
  width: 100%;
  background-color: var(--mint-main);
  color: #FFFFFF;
  border: 2px solid var(--mint-main);
  box-shadow: 0 5px 0 var(--mint-shadow);
  padding: 13px 22px;
  font-size: 1.25rem;
}

.btn-next:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--mint-shadow);
}

/* Feedback Action Bar (Cevabı Göster ile Açılan Doğru / Yanlış Butonları) */
.feedback-action-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
}

.feedback-pill-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-eval-wrong {
  background: #FFF5F2;
  color: #D95436;
  border: 2px solid #FCD5B5;
  box-shadow: 0 3px 0 #F8BA9B;
}

.btn-eval-wrong:hover:not(:disabled) {
  background: #FFEBE5;
  transform: translateY(-1px);
}

.btn-eval-wrong.is-active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #F8BA9B !important;
  background: #FFDDD3 !important;
  border-color: #FB923C !important;
  color: #B91C1C !important;
  pointer-events: none !important;
}

.btn-eval-correct {
  background: #F0FDF4;
  color: #166534;
  border: 2px solid #BBF7D0;
  box-shadow: 0 3px 0 #86EFAC;
}

.btn-eval-correct:hover:not(:disabled) {
  background: #DCFCE7;
  transform: translateY(-1px);
}

.btn-eval-correct.is-active {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #86EFAC !important;
  background: #BBF7D0 !important;
  border-color: #22C55E !important;
  color: #14532D !important;
  pointer-events: none !important;
}

.feedback-pill-btn:disabled,
.feedback-pill-btn.is-locked-out {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(40%) !important;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-peach {
  background: #F97316;
}

.dot-mint {
  background: #22C55E;
}

/* Disabled & Playing Next Button */
.btn-next.is-playing,
.btn-next:disabled {
  background-color: #F1E9DE !important;
  color: #9A8D7C !important;
  border-color: #E2D7C7 !important;
  box-shadow: 0 3px 0 #D5C9B7 !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
  opacity: 0.92;
}

/* Audio Wave Equalizer */
.btn-audio-wave {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  height: 18px;
  margin-left: 10px;
}

.wave-bar {
  width: 3.5px;
  height: 100%;
  background-color: #FF6B57;
  border-radius: 9999px;
  animation: wavePulse 0.6s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { animation-delay: 0.0s; height: 35%; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 85%; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 60%; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; height: 95%; }

@keyframes wavePulse {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1.0); }
}

@keyframes nextButtonReadyBounce {
  0% { transform: scale(0.96); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1.0); }
}

.btn-next.is-ready-bounce {
  animation: nextButtonReadyBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Keyframes */
@keyframes tutuIdleBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
}

@keyframes shadowScale {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(0.92); opacity: 0.5; }
}

@keyframes mouthFlap {
  0% { transform: scaleY(0.25) scaleX(0.8); }
  100% { transform: scaleY(1.35) scaleX(1.1); }
}

@keyframes talkingWiggle {
  from { transform: translateY(-2px) rotate(-1.5deg); }
  to { transform: translateY(-5px) rotate(1.5deg); }
}

@keyframes cheerArms {
  from { transform: translateY(-3px) rotate(-10deg); }
  to { transform: translateY(3px) rotate(10deg); }
}

@keyframes armWaveL {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

@keyframes armWaveR {
  from { transform: rotate(4deg); }
  to { transform: rotate(-4deg); }
}

@keyframes eyesBlink {
  0%, 95%, 100% { transform: scaleY(1); }
  97.5% { transform: scaleY(0.1); }
}

@keyframes starTwinkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes speechPop {
  from { opacity: 0; transform: scale(0.96) translateY(3px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(25px) scale(1.05); }
}

@media (max-width: 640px) {
  .header {
    padding: 16px 20px 8px;
  }
  .companion-bar {
    gap: 10px;
  }
  .companion-speech {
    padding: 10px 14px;
  }
  .speech-text {
    font-size: 0.95rem;
  }
  .tutu-svg {
    width: 90px;
    height: 90px;
  }
  .card-scene, .card {
    min-height: 520px;
  }
  .card-face {
    padding: 20px 18px 18px;
  }
  .logo-title {
    font-size: 1.55rem;
  }
  .question-title {
    font-size: 1.22rem;
    line-height: 1.32;
  }
  .card-front.is-long-case .question-title {
    font-size: 1.12rem;
    line-height: 1.3;
  }
  .card-front.is-extra-long-case .question-title {
    font-size: 1.02rem;
    line-height: 1.28;
  }
}

/* ==========================================================================
   Grand Graduation Celebration Modal & Confetti
   ========================================================================== */

.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(30, 24, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.3s ease;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2001;
}

.celebration-card {
  position: relative;
  z-index: 2002;
  width: 100%;
  max-width: 420px;
  background: #FFFDF9;
  background-image: radial-gradient(#F5EDE0 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  border: 3.5px solid #F3E4D0;
  border-radius: 28px;
  box-shadow: 
    0 12px 0 #E2D0B9,
    0 28px 48px rgba(90, 60, 30, 0.22);
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: celebrationPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

@keyframes celebrationPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(24px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.cert-gold-ribbon {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #FF6B57 0%, #FFA94D 50%, #F59E0B 100%);
  color: #FFFFFF;
  padding: 5px 18px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
  margin-bottom: 8px;
}

.celebration-mascot-wrap {
  position: relative;
  width: 115px;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.celebration-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.95) 0%, rgba(254, 215, 170, 0.35) 60%, transparent 80%);
  animation: glowPulse 2.2s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glowPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 1; }
}

.grad-tutu-svg {
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: gradTutuCheer 1.8s ease-in-out infinite alternate;
}

@keyframes gradTutuCheer {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-7px) rotate(2deg); }
}

.cert-header {
  margin-bottom: 12px;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.cert-subtitle {
  font-size: 0.94rem;
  font-weight: 700;
  color: #C2410C;
}

.cert-quote-box {
  background: #FFFDF5;
  border: 1.5px solid #FDE68A;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 3px 0 #F6D873;
  width: 100%;
  box-sizing: border-box;
}

.cert-quote-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #78350F;
  font-weight: 600;
  margin: 0;
}

.cert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-restart-deck {
  width: 100%;
  background: linear-gradient(135deg, #FF6B57 0%, #FF5038 100%);
  color: #FFFFFF;
  border: 2px solid #FF5038;
  box-shadow: 0 5px 0 #D93B24;
  padding: 13px 20px;
  font-size: 1.08rem;
  border-radius: 20px;
}

.btn-restart-deck:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #D93B24;
}

.cert-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cert-close-btn:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Finish Button Special Golden Shimmer for Last Question */
.btn-next.btn-next-finish {
  background: linear-gradient(135deg, #F59E0B 0%, #EAB308 50%, #F59E0B 100%) !important;
  border-color: #D97706 !important;
  box-shadow: 0 5px 0 #B45309 !important;
  color: #FFFFFF !important;
  animation: goldenPulse 1.4s ease-in-out infinite alternate !important;
}

@keyframes goldenPulse {
  0% { transform: scale(0.99); filter: brightness(1); }
  100% { transform: scale(1.02); filter: brightness(1.12); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45), 0 5px 0 #B45309; }
}

/* ==========================================================================
   TUTUSCAN • Doğal Açılış & Tanışma Ekranı (Onboarding Stage)
   Pop-up Değil — 100% Sitenin Özgün Kart ve Pofuduk Temasıyla Bütünleşik
   ========================================================================== */

.onboarding-stage {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 20px;
  animation: introStageIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes introStageIn {
  0% { transform: translateY(14px) scale(0.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.intro-tutu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.intro-tutu-wrap:active .intro-tutu-svg {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

.intro-tutu-wrap.is-talking .tutu-mouth-smile {
  display: none !important;
}

.intro-tutu-wrap.is-talking .tutu-mouth-talking {
  display: block !important;
  animation: mouthFlap 0.16s ease-in-out infinite alternate;
}

.intro-tutu-wrap.is-talking .intro-tutu-body {
  animation: talkingWiggle 0.28s ease-in-out infinite alternate !important;
}

.intro-tutu-wrap.is-talking .intro-tutu-aura {
  animation: auraBreatheFast 0.8s ease-in-out infinite alternate;
  background: radial-gradient(circle, rgba(255, 107, 87, 0.65) 0%, rgba(255, 169, 77, 0) 75%);
}

@keyframes auraBreatheFast {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}

.intro-tutu-wrap.is-talking .tutu-arm.arm-l {
  animation: cheerArms 0.22s ease-in-out infinite alternate !important;
}

.intro-tutu-wrap.is-talking .tutu-arm.arm-r {
  animation: cheerArms 0.22s ease-in-out infinite alternate 0.11s !important;
}

.intro-tutu-aura {
  position: absolute;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 169, 77, 0.45) 0%, rgba(255, 107, 87, 0) 72%);
  filter: blur(10px);
  pointer-events: none;
  animation: auraBreathe 3s ease-in-out infinite alternate;
}

@keyframes auraBreathe {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 0.95; }
}

.intro-tutu-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(217, 64, 42, 0.2));
  animation: tutuIntroFloat 2.8s ease-in-out infinite alternate;
}

@keyframes tutuIntroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.intro-tutu-body {
  transform-origin: 60px 112px;
}

.intro-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sitenin Kart Temasıyla Birebir Aynı Konuşma Kartı */
.intro-speech-card {
  width: 100%;
  background-color: var(--bg-card);
  background-image: radial-gradient(#F0E6D8 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border: 3px solid var(--card-border);
  box-shadow: 
    0 8px 0 var(--card-depth),
    0 16px 28px rgba(135, 105, 75, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 18px 22px;
  margin: 10px 0 16px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

.intro-bubble-tail {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid var(--card-border);
}

.intro-bubble-tail::after {
  content: "";
  position: absolute;
  top: 3px;
  left: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid var(--bg-card);
}

.intro-speech-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.01em;
}

.intro-input-wrapper {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 14px;
}

/* Sitenin Pofuduk Inputuyla 100% Uyumlu İsim Giriş Kutusu */
.intro-name-input {
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 2.5px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--card-depth);
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  transition: all 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.intro-name-input::placeholder {
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.75;
}

.intro-name-input:focus {
  border-color: #FF5A43;
  box-shadow: 0 4px 0 #D9402A, 0 0 0 3px rgba(255, 90, 67, 0.16);
  outline: none;
  background: #FFFDFC;
}

.intro-btn-group {
  width: 100%;
  max-width: 310px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: introBtnsFadeIn 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes introBtnsFadeIn {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* İlk Tıklama Bekleme Hali (Davetkâr Titreşim & Parlama) */
.intro-speech-card.is-waiting-tap {
  cursor: pointer;
  animation: speechCardPulse 2s ease-in-out infinite alternate;
}

@keyframes speechCardPulse {
  0% { transform: scale(1); box-shadow: 0 8px 0 var(--card-depth), 0 16px 28px rgba(135, 105, 75, 0.08); }
  100% { transform: scale(1.02); box-shadow: 0 10px 0 var(--card-depth), 0 18px 32px rgba(255, 107, 87, 0.18); }
}

.intro-tutu-wrap.is-waiting-tap .intro-tutu-svg {
  animation: tutuWaitingBounce 1.8s ease-in-out infinite alternate;
}

@keyframes tutuWaitingBounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Sade, Zarif & Dikkat Çekmeyen "Soruyu Atla"
   ========================================================================== */

.card-skip-subtle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.btn-skip-subtle {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.72;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
  outline: none;
}

.btn-skip-subtle:hover {
  opacity: 1;
  color: var(--text-dark);
  background: rgba(140, 110, 85, 0.08);
  transform: translateY(-1px);
}

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

.skip-subtle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  color: inherit;
}

.btn-skip-subtle:hover .skip-subtle-icon {
  transform: translateX(3px);
}

/* Kibar, Dengeli ve Pofuduk Birincil Buton */
.intro-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #FF6B57 0%, #FF5038 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid #FF5038;
  border-radius: 18px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 #D93B24;
  transition: all 0.15s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #D93B24;
  filter: brightness(1.03);
}

.intro-btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #D93B24;
}

/* Kibar, Dengeli İkincil Şeftali Buton */
.intro-btn-secondary {
  width: 100%;
  background: var(--peach-main);
  color: var(--peach-text);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  border: 2px solid var(--peach-border);
  border-radius: 18px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--peach-shadow);
  transition: all 0.15s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-btn-secondary:hover {
  background: #FFE5DC;
  border-color: #F2BEAC;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--peach-shadow);
}

.intro-btn-secondary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--peach-shadow);
}



