/* Módulo Inglês — visual da Salinha da Tia Bel */
#screen-ingles {
  padding: 16px;
  align-items: stretch;
}
#screen-ingles.fit-wrap {
  padding: 0;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.ik-root {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: calc(100vh - 32px);
  color: #fff;
  font-family: 'Fredoka One', 'Nunito', cursive, sans-serif;
}
.ik-root.fit {
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
}

.ik-root img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.ik-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  margin-bottom: 8px;
}

.ik-root .hud {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-bottom: 10px;
}
.ik-root .hud .who {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  min-width: 0;
}
.ik-root .hud .who img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
}
.ik-root .hud .who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ik-root .icon-btn {
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}
.ik-root .icon-btn img { width: 26px; height: 26px; }
.ik-root .stars-mini {
  color: #FFD700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.ik-root .stars-mini img { width: 20px; height: 20px; }
.ik-root .time-pill {
  background: rgba(255,255,255,0.22);
  color: #FFD700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ik-root .logo-wrap { text-align: center; }
.ik-root .logo {
  font-size: clamp(1.8rem, 7vw, 3rem);
  color: #FFD700;
  text-shadow: 3px 3px 0 #FF6B35, 5px 5px 0 rgba(0,0,0,0.18);
  line-height: 1.1;
  margin: 6px 0;
}
.ik-root .tagline, .ik-root .level-hint, .ik-root .muted {
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.ik-root h2 {
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.25);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  margin: 6px 0 10px;
}

.ik-root .mascot, .ik-root img.mascot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #FFD700;
  margin: 0 auto 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  background: #fff;
}
.ik-root .mascot-sm, .ik-root img.mascot-sm {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFD700;
  margin: 0 auto 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  background: #fff;
}

.ik-root .bubble {
  background: #fff;
  color: #333;
  border-radius: 22px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  text-align: center;
  line-height: 1.4;
  font-family: 'Nunito', 'Fredoka One', sans-serif;
  font-weight: 700;
}
.ik-root .bubble.plain { text-align: left; }

.ik-root .prompt {
  background: #fff;
  color: #333;
  border-radius: 22px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  text-align: center;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ik-root .speaker, .ik-root button.speaker {
  background: rgba(102,126,234,0.15);
  border: 3px solid #667eea;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 6px;
}
.ik-root .speaker img { width: 28px; height: 28px; }
.ik-root .speaker.big { width: 64px; height: 64px; margin: 8px auto; }
.ik-root .speaker.pulse { animation: titleBounce 1.6s ease-in-out infinite; }

.ik-root .btn, .ik-root button.btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(0,0,0,0.2);
  margin-top: 4px;
}
.ik-root .btn:disabled, .ik-root button.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ik-root .btn.grass { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.ik-root .btn.sky { background: linear-gradient(135deg, #3498db, #2980b9); }
.ik-root .btn.violet { background: linear-gradient(135deg, #667eea, #764ba2); }
.ik-root .btn.coral { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ik-root .btn.ghost, .ik-root button.btn.ghost {
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: none;
  color: #fff;
}
.ik-root .row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.ik-root .row .btn { flex: 1; width: auto; }
.ik-root .mt { margin-top: 12px; }
.ik-root .center { text-align: center; }
.ik-root .small { font-size: 0.88rem; }
.ik-root .foot-note {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

/* worlds / cards */
.ik-root .worlds, .ik-root .nodes, .ik-root .profiles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.ik-root .world, .ik-root .node, .ik-root .profile {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  border: 4px solid transparent;
  box-shadow: 0 6px 22px rgba(0,0,0,0.14);
  font-family: inherit;
  width: 100%;
  color: #333;
}
.ik-root .world:active, .ik-root .node:active { transform: scale(1.03); }
.ik-root .icon-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f0ff;
  border-radius: 16px;
  overflow: hidden;
}
.ik-root .icon-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.ik-root .world-text, .ik-root .meta { flex: 1; min-width: 0; }
.ik-root .world-title, .ik-root .node-title, .ik-root .name {
  font-size: 1.15rem;
  color: #333;
  margin: 0;
}
.ik-root .sub { color: #666; font-size: 0.85rem; font-family: 'Nunito', sans-serif; font-weight: 700; }
.ik-root .bar {
  height: 8px;
  background: #ece8f8;
  border-radius: 8px;
  margin-top: 6px;
  overflow: hidden;
}
.ik-root .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FF6B35);
  border-radius: 8px;
}
.ik-root .node .idx {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.ik-root .node img { width: 32px; height: 32px; flex-shrink: 0; }
.ik-root .node.locked { opacity: 0.55; cursor: not-allowed; }
.ik-root .node.done { border-color: #f1c40f; }

/* age bands */
.ik-root .bands, .ik-root .ik-bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 14px auto 0;
}
.ik-root .band {
  border: none;
  border-radius: 22px;
  padding: 18px 20px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: #fff;
  text-align: left;
}
.ik-root .band.b35 { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.ik-root .band.b68 { background: linear-gradient(135deg, #f39c12, #e67e22); }
.ik-root .band.b912 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ik-root .band.sel { box-shadow: 0 0 0 4px #FFD700, 0 6px 20px rgba(0,0,0,0.2); }
.ik-root .band-title { margin: 0 0 4px; font-size: 1.3rem; color: #fff; }
.ik-root .band p { margin: 0; opacity: 0.95; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.95rem; }

.ik-root .avatars { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.ik-root .avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #fff;
  border: 3px solid transparent;
  padding: 6px;
  cursor: pointer;
}
.ik-root .avatar.sel { border-color: #FFD700; }
.ik-root .avatar img { width: 100%; height: 100%; }
.ik-root .field, .ik-root input.field {
  padding: 15px;
  border-radius: 15px;
  border: 4px solid #FFD700;
  font-size: 1.3rem;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  margin: 8px 0;
  outline: none;
  color: #333;
  box-sizing: border-box;
}
.ik-root .lbl { color: #fff; margin: 8px 0 4px; }

/* learn / activities */
.ik-root .learn-hero, .ik-root button.learn-hero, .ik-root .learn-hero.card {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  margin: 0 auto 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ik-root .learn-hero img, .ik-root .story img {
  width: 140px;
  height: 140px;
  max-height: 140px;
  object-fit: contain;
}
.ik-root .en {
  font-size: 1.6rem;
  color: #333;
  margin: 0;
}
.ik-root .dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.ik-root .dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: inline-block;
}
.ik-root .dots i.on { background: #FFD700; transform: scale(1.3); }
.ik-root .dots i.done { background: #2ecc71; }

.ik-root .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ik-root .choice {
  border: none;
  border-radius: 18px;
  padding: 12px 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.12);
  color: #333;
}
.ik-root .choice img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.ik-root .choice .en { font-size: 1.1rem; }
.ik-root .choice.ok, .ik-root .pair.ok {
  background: #2ecc71 !important;
  color: #fff !important;
  animation: correctPulse 0.45s ease;
}
.ik-root .choice.bad, .ik-root .pair.bad {
  background: #e74c3c !important;
  color: #fff !important;
  animation: wrongShake 0.45s ease;
}
.ik-root .choice.ok .en, .ik-root .choice.bad .en { color: #fff; }

.ik-root .pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ik-root .pair-col { display: flex; flex-direction: column; gap: 10px; }
.ik-root .pair {
  background: #fff;
  border: 3px solid transparent;
  border-radius: 16px;
  min-height: 64px;
  padding: 8px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ik-root .pair img { width: 48px; height: 48px; }
.ik-root .pair.on { border-color: #FFD700; box-shadow: 0 0 0 3px rgba(255,215,0,0.35); }

.ik-root .letter-row, .ik-root .blanks {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ik-root .slot, .ik-root .blank {
  width: 48px; height: 56px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ik-root .tiles, .ik-root .keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.ik-root .tile, .ik-root .key {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 14px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ik-root .tile.used { opacity: 0.3; pointer-events: none; }
.ik-root .key.wide { min-width: 110px; }
.ik-root .built {
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  font-size: 1.3rem;
  min-height: 56px;
  margin: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.ik-root .story {
  background: #fff;
  color: #333;
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}
.ik-root .story p { margin: 6px 0; font-size: 1.15rem; line-height: 1.4; }
.ik-root .soon {
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 12px;
  margin: 10px 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* reward / pause — no scroll, button always visible */
.ik-root .screen-reward, .ik-root .screen-pause {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  text-align: center;
}
.ik-root .reward-body, .ik-root .pause-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 8px;
}
.ik-root .screen-foot {
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 0 4px;
}
.ik-root .reward-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ik-root .reward-art .star, .ik-root .reward-art img.star {
  width: 72px; height: 72px;
}
.ik-root .reward-art .pip, .ik-root .pause-body .pip,
.ik-root .reward-art img.pip, .ik-root .pause-body img.pip {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #FFD700;
  background: #fff;
}
.ik-root .screen-reward h2, .ik-root .screen-pause h2 {
  color: #FFD700;
  text-shadow: 2px 2px 0 #FF6B35;
  margin: 4px 0;
  font-size: clamp(1.4rem, 6vw, 2rem);
}
.ik-root .cheer-line {
  background: #fff;
  color: #333;
  border-radius: 18px;
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 1.1rem;
}

/* parents trap */
.ik-root .trap-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
}
.ik-root .trap {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.6);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.ik-root .trap.green { background: #2ecc71; }
.ik-root .trap.blue { background: #3498db; }
.ik-root .trap.red { background: #e74c3c; }
.ik-root .trap-seq { color: #FFD700; min-height: 1.4em; }

.ik-root .credits {
  background: #fff;
  color: #333;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-align: left;
}
.ik-root .credits h3 { color: #764ba2; margin: 0 0 6px; font-family: 'Fredoka One', cursive; }
.ik-root .credits a { color: #667eea; }
.ik-root .credits ul { padding-left: 18px; }
.ik-root .credits li { margin-bottom: 8px; }
.ik-root .credits img { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }

/* toast cheer */
#cheer.cheer, .cheer {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%) scale(0.85);
  background: #fff;
  color: #333;
  border: 4px solid #FFD700;
  border-radius: 22px;
  padding: 12px 18px;
  font-family: 'Fredoka One', 'Nunito', cursive, sans-serif;
  font-size: 1.15rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
  transition: opacity 0.2s, transform 0.2s;
}
#cheer.cheer.show, .cheer.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 400px) {
  .ik-root .learn-hero img, .ik-root .story img { width: 110px; height: 110px; max-height: 110px; }
  .ik-root .choice img { width: 60px; height: 60px; }
  .ik-root .icon-btn { width: 46px; height: 46px; }
  .ik-root .reward-art .star { width: 60px; height: 60px; }
  .ik-root .reward-art .pip, .ik-root .pause-body .pip { width: 80px; height: 80px; }
  .ik-root .key, .ik-root .tile { min-width: 38px; min-height: 40px; padding: 6px 8px; font-size: 1rem; }
}

/* 3 opções: a terceira fica centralizada, sem card solto à esquerda */
.ik-root .choices .choice:nth-child(3):last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 6px);
  justify-self: center;
  width: 100%;
}
