@font-face {
  font-family: 'TypoHandy';
  src: url('/assets/fonts/TypoHandy.woff') format('woff');
  font-display: swap;
}

:root {
  --font-jr: 'TypoHandy', 'Comic Sans MS', cursive, sans-serif;
  --jr-pink: #FF6B6B;
  --jr-pink-light: #FFF0F0;
  --jr-blue: #4ECDC4;
  --jr-blue-light: #F0FAFA;
  --jr-yellow: #FFE66D;
  --jr-yellow-light: #FFFDE8;
  --jr-green: #4CAF50;
  --jr-green-light: #F0FFF0;
  --jr-orange: #FF9800;
  --jr-purple: #9C27B0;
  --jr-purple-light: #FCE4EC;
  
  --jr-bg: #FFFBF5;
  --jr-text: #4A3728;
  --jr-text-light: #8D7B6F;
  --jr-border: #FFE0D0;
  --jr-radius: 20px;
  --jr-shadow: 0 8px 30px rgba(255, 107, 107, 0.15);
  
  --font-jr: 'Comic Sans MS', 'Segoe UI', system-ui, sans-serif;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-jr);
  background: var(--jr-bg);
  color: var(--jr-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== EBEVEYN SAYFASI ===== */
.parent-container {
  max-width: 650px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.info-card {
  background: white;
  border-radius: var(--jr-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
  border: 2px solid var(--jr-border);
  box-shadow: var(--jr-shadow);
}

.info-card h3 {
  color: var(--jr-pink);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.info-card ul {
  padding-left: 1.5rem;
}

.info-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.consent-box {
  background: white;
  border-radius: var(--jr-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--jr-border);
  text-align: left;
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent-item input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.3);
  accent-color: var(--jr-pink);
  flex-shrink: 0;
}

/* ===== BUTONLAR ===== */
.btn-jr-start {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--jr-pink), #FF8E8E);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.4rem;
  font-family: var(--font-jr);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.btn-jr-start:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-jr-start:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-jr-outline {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: white;
  color: var(--jr-text);
  border: 2px solid var(--jr-border);
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: var(--font-jr);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s;
}

.btn-jr-outline:hover {
  background: var(--jr-pink-light);
  border-color: var(--jr-pink);
}

/* ===== ANA SAYFA ARKA PLAN ===== */
.parent-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

/* Arka plan container'ı - 9:16 oranını korur */
.parent-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #1e90ff, #32cd32);
}

.parent-bg img {
    width: auto;
    height: auto;
    max-height: 100vh;
}

.parent-overlay {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  border-radius: var(--jr-radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--jr-shadow);
}

/* 9:16 oranında kalması için */
@media (min-aspect-ratio: 9/16) {
  .parent-screen {
    background-size: cover;
  }
}

@media (max-aspect-ratio: 9/16) {
  .parent-screen {
    background-size: auto 100%;
    background-position: center top;
  }
}

.hero-desc {
  font-size: 1rem;
  color: var(--jr-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===== EBEVEYN ONAY KUTUSU ===== */
.consent-box-jr {
  background: #FFF8E1;
  border: 2px dashed var(--jr-orange);
  border-radius: var(--jr-radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.consent-item-jr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent-item-jr input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.4);
  accent-color: var(--jr-pink);
  flex-shrink: 0;
}

/* ===== ALT BİLGİ ===== */
.footer-note {
  font-size: 0.7rem;
  color: #999;
  margin-top: 1.5rem;
}

/* ===== OYUN EKRANI ===== */
#gameScreen {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

/* Timer */
#timer-jr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jr-pink);
  box-shadow: var(--jr-shadow);
  margin-bottom: 1rem;
  border: 2px solid var(--jr-pink-light);
}

/* Soru Numarası */
#question-number-jr {
  font-size: 1rem;
  color: var(--jr-text-light);
  margin-bottom: 0.5rem;
}

/* Açıklama */
.question-desc {
  background: white;
  border-radius: var(--jr-radius);
  padding: 0.8rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--jr-text);
  border: 2px dashed var(--jr-orange);
  background: #FFF8E1;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3x3 Matris */
#question-container-jr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 1rem auto;
}

.cell-jr {
  background: white;
  border: 3px solid var(--jr-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  overflow: hidden;
}

.cell-jr img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

/* Satır renkleri (shuffle modu) */
.cell-jr.row-0 { background: #FFF0F5; }
.cell-jr.row-1 { background: #F0FAFF; }
.cell-jr.row-2 { background: #F0FFF0; }

/* Soru işareti hücresi */
.cell-jr.drop-target {
  border: 3px dashed var(--jr-orange);
  background: #FFF8E1;
  animation: pulse-jr 2s infinite;
  cursor: pointer;
}

@keyframes pulse-jr {
  0%, 100% { border-color: var(--jr-orange); transform: scale(1); }
  50% { border-color: #FF5722; transform: scale(1.03); }
}

.cell-jr.drop-target.drag-over {
  border-color: var(--jr-green);
  background: #E8F5E9;
  transform: scale(1.05);
}

.cell-jr.drop-target.has-answer {
  border-style: solid;
  border-color: var(--jr-green);
  animation: none;
  background: #E8F5E9;
}

/* ===== SEÇENEKLER ===== */
#options-jr {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.option-slot-jr {
  width: 20%;
  height: 100px;
  background: white;
  border: 3px solid var(--jr-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.option-slot-jr:hover {
  border-color: var(--jr-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.2);
}

.option-slot-jr:active {
  transform: scale(0.9);
}

.option-slot-jr img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  cursor: grab;
}

.option-slot-jr img:active {
  cursor: grabbing;
}

.option-slot-jr.selected {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== NAVİGASYON ===== */
#navigation-jr {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
}

#navigation-jr button {
  flex: 1;
  max-width: 200px;
  height: 60px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: var(--font-jr);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

#prevBtnJr {
  background: white;
  color: var(--jr-text);
  border: 2px solid var(--jr-border);
}

#prevBtnJr:hover {
  background: #FFF5F5;
  border-color: var(--jr-pink);
}

#nextBtnJr {
  background: linear-gradient(135deg, var(--jr-green), #66BB6A);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

#nextBtnJr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* ===== SONUÇ EKRANI ===== */
#resultScreen {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

.result-container {
  background: white;
  border-radius: var(--jr-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--jr-shadow);
  border: 3px solid var(--jr-pink-light);
}

/* Beceri Satırı */
.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0 0.3rem;
}

.skill-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-align: left;
}

.skill-bar-bg {
  height: 14px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1.5s ease;
}

.skill-pct {
  font-weight: 700;
  font-size: 1rem;
  color: var(--jr-text);
  width: 45px;
  text-align: right;
}

.skill-msg {
  font-size: 0.85rem;
  color: var(--jr-text-light);
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 62px;
}

/* Rozet */
.badge-card {
  background: linear-gradient(135deg, #FFF8E1, #FFFDE8);
  border: 3px solid var(--jr-yellow);
  border-radius: var(--jr-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.badge-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.badge-card h3 {
  color: var(--jr-orange);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.badge-card p {
  color: var(--jr-text-light);
  font-size: 0.9rem;
}

/* Hızlı Cevaplar */
.fast-info {
  background: #E8F5E9;
  border-radius: var(--jr-radius);
  padding: 1rem;
  margin: 1rem 0;
  color: var(--jr-green);
  font-weight: 600;
}

.fast-info small {
  font-weight: 400;
  color: var(--jr-text-light);
}

/* ===== YARDIMCI SINIFLAR ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .parent-container {
    padding: 1rem;
  }
  
  #question-container-jr {
    max-width: 340px;
    gap: 4px;
  }
  
  .option-slot-jr {
    width: 22%;
    height: 90px;
  }
  
  .cell-jr {
    border-radius: 10px;
  }
  
  #navigation-jr button {
    height: 50px;
    font-size: 1rem;
  }
  
  .badge-img {
    width: 90px;
    height: 90px;
  }
}
/* ===== MODAL POPUP ===== */
.modal-jr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-jr-box {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: popIn 0.4s ease;
}

.modal-jr-box img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.modal-jr-box p {
  font-family: var(--font-jr);
  font-size: 1.15rem;
  color: var(--jr-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-jr-box button {
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--font-jr);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-jr-btn-ok {
  background: var(--jr-pink);
  color: white;
}

.modal-jr-btn-ok:hover {
  background: #FF5252;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* ===== BİLGİ MODALI (ÇOK SAYFALI) ===== */
.info-jr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.info-jr-box {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: popIn 0.4s ease;
  position: relative;
}

.info-jr-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0;
}

.info-jr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s;
}

.info-jr-dot.active {
  background: var(--jr-pink);
  width: 24px;
  border-radius: 5px;
}

.info-jr-pages {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.info-jr-pages img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.info-jr-pages h3 {
  font-family: var(--font-jr);
  font-size: 1.3rem;
  color: var(--jr-pink);
  margin-bottom: 0.5rem;
}

.info-jr-pages p {
  font-family: var(--font-jr);
  font-size: 0.95rem;
  color: var(--jr-text);
  line-height: 1.6;
}

.info-jr-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 10px;
}

.info-jr-nav button {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-jr);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.info-jr-btn-back {
  background: #f0f0f0;
  color: var(--jr-text);
  border: none;
}

.info-jr-btn-back:hover {
  background: #e0e0e0;
}

.info-jr-btn-next {
  background: var(--jr-pink);
  color: white;
  border: none;
}

.info-jr-btn-next:hover {
  background: #FF5252;
}

.info-jr-btn-close {
  background: white;
  color: var(--jr-text);
  border: 2px solid #ddd;
  font-weight: 700;
}

.info-jr-btn-close:hover {
  background: #FFF5F5;
  border-color: var(--jr-pink);
}
/* Drop target - görsel üzerinde */
.cell-jr.drop-overlay {
  border: 3px dashed var(--jr-orange);
  background: rgba(255, 248, 225, 0.9);
  animation: pulse-jr 2s infinite;
  cursor: pointer;
}

.cell-jr.drop-overlay.drag-over {
  border-color: var(--jr-green);
  background: rgba(232, 245, 233, 0.95);
  transform: scale(1.1);
}

.cell-jr.drop-overlay.has-answer {
  border-style: solid;
  border-color: var(--jr-green);
  animation: none;
  background: rgba(232, 245, 233, 0.95);
}
/* Mobil surukleme hayaleti */
.option-slot-jr img[draggable="true"] {
  cursor: grab;
  transition: transform 0.15s ease;
}

.option-slot-jr img[draggable="true"]:active {
  cursor: grabbing;
}