/* ═══════════════════════════════════════════════════════
   NenitoClub — Estilos do motor de jogos
   Fontes: Baloo 2 (títulos) + Nunito (corpo) via PHP enqueue
   ═══════════════════════════════════════════════════════ */

/* ── Reset dentro do escopo NCL ─────────────────────────── */
#ncl-root *,
#ncl-root *::before,
#ncl-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Container raiz ─────────────────────────────────────── */
#ncl-root {
  --module-color: #4CAF50;
  --ncl-correct: #43A047;
  --ncl-wrong: #FB8C00;
  --ncl-complete: #7C4DFF;
  --ncl-radius: 20px;
  --ncl-shadow: 0 4px 20px rgba(0,0,0,.12);
  --ncl-font-title: 'Baloo 2', 'Nunito', sans-serif;
  --ncl-font-body: 'Nunito', 'Baloo 2', sans-serif;
  --ncl-btn-h: 48px;

  position: relative;
  min-height: 480px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--ncl-font-body);
  background: #FAFAFA;
  border-radius: var(--ncl-radius);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── Estados genéricos ──────────────────────────────────── */
.ncl-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 200px;
  font-size: 1rem;
  color: #888;
  font-family: var(--ncl-font-body);
}

.ncl-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #ddd;
  border-top-color: var(--module-color);
  border-radius: 50%;
  animation: ncl-spin 0.8s linear infinite;
}

@keyframes ncl-spin { to { transform: rotate(360deg); } }

/* ── Banner da sessão (imagem turminha no topo do módulo) ── */
.ncl-module-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0;
}

/* ── Home do módulo ─────────────────────────────────────── */
.ncl-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 32px;
  gap: 14px;
}

.ncl-home-header {
  text-align: center;
  width: 100%;
}

.ncl-module-title {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--module-color);
  letter-spacing: -0.5px;
}

.ncl-home-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  padding: 0 16px;
}

/* ── Personagem + cards informativos ─────────────────────── */
.ncl-char-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  user-select: none;
}

/* Cards informativos ao lado do personagem */
.ncl-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 18px 12px;
  min-width: 82px;
  max-width: 104px;
  gap: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.09);
  flex-shrink: 0;
  pointer-events: none;
}
.ncl-info-val {
  font-family: var(--ncl-font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--module-color);
  line-height: 1;
  text-align: center;
}
.ncl-info-lbl {
  font-family: var(--ncl-font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  line-height: 1.2;
}

.ncl-char-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
}

@media (min-width: 640px) {
  .ncl-char-img {
    height: 220px;
  }
  .ncl-module-banner {
    max-width: 600px;
    align-self: center;
  }
}

/* ── Botões base ────────────────────────────────────────── */
.ncl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--ncl-btn-h);
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-family: var(--ncl-font-title);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, opacity .2s, filter .1s;
  box-shadow: var(--ncl-shadow);
  white-space: nowrap;
}

.ncl-btn:active { transform: scale(0.96); }
.ncl-btn:disabled { opacity: 0.5; cursor: default; }

.ncl-btn-flashcard {
  background: var(--module-color);
  color: #fff;
}

.ncl-btn-game {
  background: #fff;
  color: var(--module-color);
  border: 3px solid var(--module-color);
}

.ncl-btn-locked {
  background: #f5f5f5;
  color: #aaa;
  border: 3px solid #ddd;
}

/* Botão crown — jogo premium visível para não-assinantes */
.ncl-btn-crown {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border: 2px solid #f59e0b;
  flex-direction: column;
  gap: 2px;
}
.ncl-btn-crown:hover { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.ncl-btn-sublabel {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.65;
  display: block;
  font-family: var(--ncl-font-body);
}

.ncl-btn-primary {
  background: var(--module-color);
  color: #fff;
}

.ncl-btn-back {
  min-height: var(--ncl-btn-h);
  width: auto;
  padding: 11px 28px;
  background: linear-gradient(180deg, #ff8c42 0%, #e8701e 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 0 #b85210, 0 6px 14px rgba(184,82,16,.30);
  transition: transform .1s, box-shadow .1s, filter .1s;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.ncl-btn-back:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b85210;
}

.ncl-btn-nav {
  width: 48%;
  min-height: var(--ncl-btn-h);
  background: #fff;
  color: #444;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: none;
}

.ncl-btn-nav:disabled { opacity: 0.35; }

/* ── Layout dos jogos ───────────────────────────────────── */
.ncl-game {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 16px 20px 28px !important;
  gap: 16px;
}

@media (min-width: 768px) {
  .ncl-game { padding: 24px 32px 40px !important; gap: 20px; }
}

.ncl-game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px !important;
}

.ncl-counter {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}

/* ── Flashcard ──────────────────────────────────────────── */
.ncl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border-radius: var(--ncl-radius);
  box-shadow: var(--ncl-shadow);
  cursor: pointer;
}

.ncl-card-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
}

.ncl-card-name {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: #333;
  text-align: center;
}

.ncl-nav-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

/* ── Prompt (FindItem) ──────────────────────────────────── */
.ncl-find-target-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ncl-find-target-label {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--module-color) 0%, color-mix(in srgb, var(--module-color) 80%, black) 100%);
  padding: 10px 30px;
  border-radius: 16px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--module-color) 60%, black), 0 8px 14px rgba(0,0,0,.18);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
  letter-spacing: 0.5px;
  width: 100%;
}
.ncl-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #eee;
  box-shadow: 0 3px 0 #ddd, 0 4px 8px rgba(0,0,0,.1);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.ncl-prompt:active { transform: translateY(2px); box-shadow: 0 1px 0 #ddd; }

/* ── Grade de opções ────────────────────────────────────── */
.ncl-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.ncl-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border: 3px solid #eee;
  border-radius: var(--ncl-radius);
  box-shadow: var(--ncl-shadow);
  cursor: pointer;
  transition: transform .1s, border-color .15s;
  min-height: 120px;
}

.ncl-option:active { transform: scale(0.93); border-color: var(--module-color); }

.ncl-option img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

/* ── GroupByColor — swatch de cor ───────────────────────── */
.ncl-color-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  border: none;
  border-radius: var(--ncl-radius);
  cursor: pointer;
  box-shadow: var(--ncl-shadow);
  transition: transform .1s;
}

.ncl-color-prompt:active { transform: scale(0.97); }

.ncl-color-name {
  font-family: var(--ncl-font-title);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ── GroupByCategory — card de categoria ─────────────────── */
.ncl-category-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 110px;
  border: none;
  border-radius: var(--ncl-radius);
  cursor: pointer;
  background: var(--module-color, #4CAF50);
  box-shadow: var(--ncl-shadow);
  transition: transform .1s;
}

.ncl-category-prompt:active { transform: scale(0.97); }

.ncl-category-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.ncl-category-name {
  font-family: var(--ncl-font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* ── Feedback Overlay (redesign Sessão 25) ──────────────── */
/* backdrop semitransparente, clicável para fechar */
.ncl-fb-bg {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  background: rgba(54, 42, 84, 0.4);
  backdrop-filter: blur(2px);
  border-radius: var(--ncl-radius);
}

/* card modal */
.ncl-fb-card {
  width: 272px;
  max-width: 100%;
  background: #fff;
  border-radius: 28px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(54, 42, 84, 0.45);
  transform: scale(0.72);
  opacity: 0;
  position: relative;
}

.ncl-fb-pop { animation: ncl-fb-pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

@keyframes ncl-fb-pop-in {
  0%  { transform: scale(0.72); opacity: 0; }
  62% { transform: scale(1.045); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

/* pill "Rodada N de M" */
.ncl-fb-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #A79BC7;
  background: #F1E7FF;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ── Mascote (estrela + rosto CSS) ── */
.ncl-fb-mascot {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 6px;
}
.ncl-fb-mascot-lg { width: 150px; height: 150px; }

.ncl-fb-star {
  position: absolute;
  inset: 0;
  background: #FFC93C;
  clip-path: polygon(50% 0%,64% 34%,100% 38%,73% 60%,82% 96%,50% 76%,18% 96%,27% 60%,0% 38%,36% 34%);
}
.ncl-fb-card-correct .ncl-fb-star { animation: ncl-fb-star-bounce 0.55s 0.1s cubic-bezier(0.34,1.56,0.64,1) both; }
.ncl-fb-star-q  { background: #FFDCB8 !important; animation: ncl-fb-star-wobble 0.6s 0.1s ease-in-out both !important; }
.ncl-fb-star-anim { opacity: 0; }

@keyframes ncl-fb-star-bounce {
  0%  { transform: scale(0) rotate(-14deg); }
  60% { transform: scale(1.12) rotate(6deg); }
  100%{ transform: scale(1) rotate(0deg); }
}
@keyframes ncl-fb-star-wobble {
  0%  { transform: scale(0) rotate(0); }
  45% { transform: scale(1.05) rotate(-8deg); }
  70% { transform: scale(1) rotate(6deg); }
  100%{ transform: scale(1) rotate(0deg); }
}

.ncl-fb-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ncl-fb-eyes { display: flex; gap: 16px; margin-bottom: 6px; }
.ncl-fb-eye  { width: 8px; height: 8px; border-radius: 50%; background: #362A54; }
.ncl-fb-eye-q { height: 3px; border-radius: 2px; width: 10px; transform: translateY(2px); }
.ncl-fb-brow {
  position: absolute;
  width: 12px; height: 3px;
  background: #362A54; border-radius: 2px;
  top: 31px; left: 32px;
  transform: rotate(14deg);
}
.ncl-fb-cheeks { display: flex; gap: 44px; position: absolute; top: 46px; }
.ncl-fb-cheek  { width: 9px; height: 6px; border-radius: 50%; background: #FF9EC4; opacity: 0.8; }
.ncl-fb-mouth  { width: 20px; height: 10px; border-bottom: 3px solid #362A54; border-radius: 0 0 20px 20px; margin-top: 2px; }
.ncl-fb-mouth-q { width: 16px; height: 3px; border: none; background: #362A54; border-radius: 2px; margin-top: 8px; }

/* mascote grande (tela de conclusão) */
.ncl-fb-face-lg .ncl-fb-eyes   { gap: 24px; margin-bottom: 8px; }
.ncl-fb-face-lg .ncl-fb-eye    { width: 11px; height: 11px; }
.ncl-fb-face-lg .ncl-fb-cheeks { gap: 62px; top: 64px; }
.ncl-fb-face-lg .ncl-fb-cheek  { width: 13px; height: 9px; }
.ncl-fb-face-lg .ncl-fb-mouth  { width: 30px; height: 16px; border-bottom-width: 4px; }

/* confete burst (acerto) */
.ncl-fb-burst { position: absolute; inset: 0; pointer-events: none; }
.ncl-fb-burst i {
  position: absolute; left: 50%; top: 38%;
  width: 8px; height: 8px; border-radius: 2px;
  opacity: 0; animation: ncl-fb-burst 0.8s ease-out forwards;
}
.ncl-fb-burst i:nth-child(1){ --tx:-70px; --ty:-58px; --r:-40deg; animation-delay:.05s; }
.ncl-fb-burst i:nth-child(2){ --tx: 64px; --ty:-64px; --r: 35deg; animation-delay:.1s; }
.ncl-fb-burst i:nth-child(3){ --tx:-40px; --ty:-88px; --r: 80deg; animation-delay:.02s; border-radius:50%; }
.ncl-fb-burst i:nth-child(4){ --tx: 40px; --ty:-90px; --r:-60deg; animation-delay:.14s; }
.ncl-fb-burst i:nth-child(5){ --tx:-88px; --ty:-20px; --r: 20deg; animation-delay:.08s; border-radius:50%; }
.ncl-fb-burst i:nth-child(6){ --tx: 86px; --ty:-24px; --r:-25deg; animation-delay:.16s; }
@keyframes ncl-fb-burst {
  0%  { transform: translate(0,0) rotate(0); opacity: 1; }
  100%{ transform: translate(var(--tx),var(--ty)) rotate(var(--r)); opacity: 0; }
}

/* textos do card */
.ncl-fb-title { font-family: var(--ncl-font-title); font-weight: 800; font-size: 1.9rem; margin: 6px 0 4px; }
.ncl-fb-title-correct { color: #1C8F53; }
.ncl-fb-title-wrong   { color: #D9691F; }
.ncl-fb-sub  { font-size: 0.92rem; font-weight: 700; color: #6B5E8C; margin: 0 0 16px; line-height: 1.35; }
.ncl-fb-tap  { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; color: #A79BC7; }
.ncl-fb-tap svg { width: 12px; height: 12px; animation: ncl-fb-nudge 1.3s ease-in-out infinite; }
@keyframes ncl-fb-nudge { 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(3px); } }

/* ── Seletor de idioma ──────────────────────────────────── */
.ncl-lang-switcher {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 4px 0 8px;
}
.ncl-lang-btn {
  font-family: var(--ncl-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border: 2px solid #ccc;
  border-radius: 50px;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
  min-height: var(--ncl-btn-h);
  white-space: nowrap;
  flex: 1;
}
.ncl-lang-btn:hover { border-color: var(--module-color); color: var(--module-color); }
.ncl-lang-btn-active {
  background: var(--module-color);
  border-color: var(--module-color);
  color: #fff;
}

/* ── Tela de Conclusão (complete) ───────────────────────── */
.ncl-fb-complete {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, #4A2FB5 0%, #7C3FD4 55%, #9B5DE5 100%);
  border-radius: var(--ncl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ncl-fb-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ncl-fb-rain i {
  position: absolute;
  top: -12px;
  width: 8px; height: 14px;
  border-radius: 2px;
  animation: ncl-fb-fall linear infinite;
}
@keyframes ncl-fb-fall {
  0%  { transform: translateY(0) rotate(-12deg); opacity: 1; }
  90% { opacity: 0.9; }
  100%{ transform: translateY(110vh) rotate(20deg); opacity: 0; }
}

.ncl-fb-done {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px 28px;
  gap: 0;
}

.ncl-fb-done-anim { animation: ncl-fb-pop-in 0.6s 0.15s cubic-bezier(0.34,1.56,0.64,1) both; }

.ncl-fb-done-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ncl-fb-done-title {
  font-family: var(--ncl-font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin: 14px 0 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.ncl-fb-done-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin: 0 0 4px;
}

.ncl-fb-done-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  margin: 0 0 24px;
}

.ncl-fb-done-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 240px;
}

/* ── Botões Feedback ─────────────────────────────────────── */
.ncl-fb-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-family: var(--ncl-font-title);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  letter-spacing: 0.02em;
}
.ncl-fb-btn:active { transform: scale(0.95); }

.ncl-fb-btn-primary {
  background: #fff;
  color: #4A2FB5;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,.25);
}
.ncl-fb-btn-primary:hover { box-shadow: 0 8px 24px -4px rgba(0,0,0,.32); }

.ncl-fb-btn-ghost {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.3);
}
.ncl-fb-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ── Bloco de cor (módulo Cores) ────────────────────────── */
.ncl-color-block {
  width: 100%;
  max-width: 280px;
  height: 220px;
  border-radius: 20px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.15);
}

/* ── Letra grande (módulo Alfabeto) ─────────────────────── */
.ncl-letter-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 200px;
  border-radius: 20px;
  background: var(--module-color);
  color: #fff;
  font-family: var(--ncl-font-title);
  font-size: clamp(7rem, 15vw, 18rem);
  font-weight: 800;
}

/* ── Jogo da Memória ────────────────────────────────────── */
.ncl-memory-title {
  font-family: var(--ncl-font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.ncl-memory-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ncl-memory-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--ncl-shadow);
  transition: transform .1s;
  aspect-ratio: 1;
}

.ncl-memory-mode-card:active { transform: scale(0.92); }

.ncl-memory-mode-icon { font-size: 2.2rem; line-height: 1.1; }

.ncl-memory-mode-label {
  margin-top: 6px;
  font-family: var(--ncl-font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.ncl-memory-diff-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  width: 100%;
  align-self: center;
}

.ncl-btn-diff {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  color: var(--diff-color, #7B1FA2);
  border: 3px solid var(--diff-color, #7B1FA2);
  min-height: 72px;
}

.ncl-diff-pairs {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.65;
}

.ncl-memory-board {
  display: grid;
  grid-template-columns: repeat(var(--mem-cols, 2), 1fr);
  gap: 8px;
  flex: 1;
}

.ncl-mem-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #fff;
  border: 3px solid #eee;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  cursor: pointer;
  transition: transform .1s, border-color .1s, box-shadow .1s;
  aspect-ratio: 1;
  overflow: hidden;
}

.ncl-mem-card:active { transform: scale(0.91); }

.ncl-mem-card-selected {
  border-color: #7B1FA2;
  box-shadow: 0 0 0 3px rgba(123,31,162,.25), 0 2px 8px rgba(0,0,0,.1);
  transform: scale(0.95);
}

.ncl-mem-card-removed {
  background: transparent;
  border: 2px dashed #e0e0e0;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.ncl-mem-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ncl-mem-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-family: var(--ncl-font-title);
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  font-weight: 700;
  text-align: center;
  padding: 4px 3px 3px;
  border-radius: 0 0 11px 11px;
  line-height: 1.15;
  pointer-events: none;
}

.ncl-mem-card-color {
  width: 65%;
  height: 65%;
  border-radius: 8px;
}

.ncl-mem-card-text {
  font-family: var(--ncl-font-title);
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  font-weight: 800;
  color: #333;
  text-align: center;
}

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 400px) {
  .ncl-card-name     { font-size: 1.4rem; }
  .ncl-color-name    { font-size: 1.6rem; }
  .ncl-fb-done-title { font-size: 2rem; }
  .ncl-fb-card       { width: 240px; }
  .ncl-option        { min-height: 100px; }
}

@media (min-width: 641px) {
  #ncl-root          { border-radius: 24px; box-shadow: 0 8px 40px rgba(0,0,0,.1); }
}

@media (prefers-reduced-motion: reduce) {
  .ncl-fb-pop,
  .ncl-fb-done-anim,
  .ncl-fb-star,
  .ncl-fb-star-q,
  .ncl-fb-burst i,
  .ncl-fb-rain i,
  .ncl-fb-tap svg { animation: none !important; }
  .ncl-fb-card  { transform: scale(1); opacity: 1; }
}

/* ── GridView — modo grade de clique livre ───────────────── */
.ncl-grid-view {
  padding: 12px 12px 24px;
}

.ncl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Alfabeto / Números: 5 colunas (mobile) */
.ncl-grid-alfabeto .ncl-grid-item,
.ncl-grid-numeros .ncl-grid-item  { flex: 0 0 calc(20% - 8px); }
/* Cores / Animais / Frutas: 4 colunas (mobile) */
.ncl-grid-cores .ncl-grid-item,
.ncl-grid-animais .ncl-grid-item,
.ncl-grid-frutas .ncl-grid-item   { flex: 0 0 calc(25% - 7.5px); }

.ncl-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  padding: 8px 4px;
  min-height: 72px;
  -webkit-tap-highlight-color: transparent;
}

.ncl-grid-item:hover  { border-color: var(--module-color); transform: translateY(-2px); }
.ncl-grid-item:active { transform: scale(.94); }
.ncl-grid-active {
  border-color: var(--module-color) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--module-color) 30%, transparent);
  transform: scale(1.05);
}

/* Alfabeto */
.ncl-grid-letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 4px;
  gap: 0;
}
.ncl-grid-letter img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.ncl-gl-upper {
  font-family: var(--ncl-font-title);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: var(--module-color);
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
}
.ncl-gl-bottom-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1px;
}
.ncl-gl-lower {
  font-family: var(--ncl-font-title);
  font-size: clamp(0.75rem, 2.8vw, 1rem);
  font-weight: 600;
  color: #888;
  line-height: 1;
}
.ncl-gl-example {
  font-family: var(--ncl-font-body);
  font-size: .6rem;
  color: #999;
  text-align: center;
  margin-top: 2px;
  line-height: 1.1;
}

/* Alfabeto — vogais com destaque azul */
.ncl-grid-vowel {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}
.ncl-grid-vowel .ncl-gl-upper { color: #1d4ed8; }
.ncl-grid-vowel.ncl-grid-active { border-color: #1d4ed8 !important; }

/* Números */
.ncl-grid-number img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.ncl-grid-number {
  gap: 2px;
  min-height: 84px;
  padding: 4px;
  justify-content: center;
  background: color-mix(in srgb, var(--num-color, var(--module-color)) 12%, white) !important;
  border-color: color-mix(in srgb, var(--num-color, var(--module-color)) 35%, white) !important;
}
.ncl-gn-numeral {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 800;
  color: var(--num-color, var(--module-color));
  line-height: 1;
}
.ncl-gn-word {
  font-family: var(--ncl-font-body);
  font-size: 0.6rem;
  font-weight: 600;
  color: #666;
  text-align: center;
  line-height: 1;
  margin-top: 1px;
}

/* Cores */
.ncl-grid-color {
  border-radius: 14px;
  min-height: 72px;
  border: 3px solid transparent;
}
.ncl-gc-name {
  font-family: var(--ncl-font-body);
  font-size: .75rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* Animais / Frutas — image cards */
.ncl-grid-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}
.ncl-gcard-label {
  font-family: var(--ncl-font-body);
  font-size: .7rem;
  font-weight: 700;
  color: #444;
  text-align: center;
  margin-top: 4px;
}

/* ── Filtros de grade (vogais/consoantes, pares/ímpares) ─── */
.ncl-grid-filters {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ncl-grid-filters-wrap { flex-wrap: wrap; }
.ncl-grid-filters::-webkit-scrollbar { display: none; }

.ncl-filter-btn {
  flex: 1;
  min-width: 64px;
  font-family: var(--ncl-font-title);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 14px;
  border: none;
  border-radius: 30px;
  background: #f3f4f6;
  color: #555;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  min-height: var(--ncl-btn-h);
  box-shadow: 0 4px 0 rgba(0,0,0,0.13), 0 1px 5px rgba(0,0,0,.09);
}
.ncl-filter-btn:hover {
  background: color-mix(in srgb, var(--module-color) 15%, white);
  color: var(--module-color);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--module-color) 40%, transparent), 0 1px 4px rgba(0,0,0,.08);
}
.ncl-filter-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.ncl-filter-active {
  background: linear-gradient(180deg, var(--module-color) 0%, color-mix(in srgb, var(--module-color) 80%, black) 100%);
  color: #fff;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--module-color) 60%, black), 0 4px 8px rgba(0,0,0,.15);
}
.ncl-filter-active:hover { box-shadow: 0 3px 0 color-mix(in srgb, var(--module-color) 60%, black); }
.ncl-filter-locked {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  cursor: pointer;
  box-shadow: 0 3px 0 #d97706, 0 1px 4px rgba(0,0,0,.08);
}

/* ── Letra grande no FindItem (alfabeto sem imagem) ─────── */
.ncl-option-letter {
  font-family: var(--ncl-font-title);
  font-size: clamp(3rem, 14vw, 5rem);
  font-weight: 800;
  color: var(--module-color);
  line-height: 1;
}
.ncl-option-name {
  font-family: var(--ncl-font-title);
  font-size: clamp(1rem, 5vw, 1.6rem);
  font-weight: 700;
  color: #333;
  text-align: center;
  padding: 4px;
}

/* ── Opções em 3 colunas (SpellName) ───────────────────── */
.ncl-options-grid--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ── Jogo Soletra Seu Nome (SpellName) ──────────────────── */
.ncl-spell-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.ncl-spell-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 62px;
  border-radius: 12px;
  background: #f0f0f0;
  border: 3px solid #ddd;
  font-family: var(--ncl-font-title);
  font-size: 2rem;
  font-weight: 800;
  color: #555;
  transition: transform .15s, box-shadow .15s;
}

.ncl-spell-slot--filled {
  background: var(--module-color);
  border-color: color-mix(in srgb, var(--module-color) 70%, black);
  color: #fff;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--module-color) 50%, black);
}

.ncl-spell-slot--active {
  border-color: var(--module-color);
  background: color-mix(in srgb, var(--module-color) 12%, white);
  animation: ncl-slot-pulse 1.2s ease-in-out infinite;
}

@keyframes ncl-slot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 4px color-mix(in srgb, var(--module-color) 25%, transparent); }
}

.ncl-spell-emoji {
  font-size: 3.5rem;
  line-height: 1;
  text-align: center;
}

.ncl-spell-noname {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
  text-align: center;
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

.ncl-spell-noname span { font-size: 3rem; }

/* ── Estado premium lock ────────────────────────────────── */
.ncl-state-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 0;
}

/* ── Cards de modo do Diversão com imagem PNG ────────────── */
.ncl-memory-mode-card {
  position: relative;
  overflow: hidden;
  padding: 0 0 36px;
}
.ncl-memory-mode-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.ncl-memory-mode-icon {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  line-height: 1.1;
  margin-top: 16px;
}
.ncl-memory-mode-label {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-family: var(--ncl-font-title);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: rgba(0,0,0,0.35);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 4px;
  border-radius: 0 0 14px 14px;
}

/* Botão "Ver em grade" na home de módulo */
.ncl-btn-grid {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  border: 2px solid #7dd3fc;
}
.ncl-btn-grid:hover { background: #e0f2fe; border-color: #38bdf8; }

@media (max-width: 400px) {
  .ncl-grid-alfabeto .ncl-grid-item,
  .ncl-grid-numeros .ncl-grid-item  { flex: 0 0 calc(25% - 7.5px); }
  .ncl-grid-animais .ncl-grid-item,
  .ncl-grid-frutas .ncl-grid-item   { flex: 0 0 calc(33.33% - 6.67px); }
}

/* ── Personagens decorativos fora da caixa (portal char-deco) ─ */
.ncl-char-deco {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 2px;
  pointer-events: none;
  min-height: 70px;
}
.ncl-deco-char {
  height: 92px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.13));
}
.ncl-deco-char-right {
  transform: scaleX(-1);
}
@media (min-width: 768px) {
  .ncl-char-deco { max-width: 720px; min-height: 100px; }
  .ncl-deco-char  { height: 118px; }
}
@media (min-width: 1024px) {
  .ncl-char-deco { max-width: min(92vw, 1280px); min-height: 124px; }
  .ncl-deco-char  { height: 148px; }
}

/* ── Botão Voltar fora da caixa branca (portal) ──────────── */
.ncl-back-portal {
  margin-bottom: 8px;
}
.ncl-btn-back-portal {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 44px;
  background: linear-gradient(180deg, #ff8c42 0%, #e8701e 100%);
  color: #fff;
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 0 #b85210, 0 6px 14px rgba(184,82,16,.30);
  cursor: pointer;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: transform .1s, box-shadow .1s;
}
.ncl-btn-back-portal:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b85210;
}
@media (hover: hover) and (pointer: fine) {
  .ncl-btn-back-portal:hover { filter: brightness(1.08); }
}
@media (min-width: 768px) {
  .ncl-btn-back-portal { min-height: 52px; font-size: 1.05rem; }
}

/* Botão Voltar interno nos jogos (topbar) — portal assume esse papel */
.ncl-game-topbar .ncl-btn-back { display: none !important; }

/* ── Turminha decorativa no GridView — abaixo do conteúdo ── */
.ncl-grid-turminha-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  pointer-events: none;
}
.ncl-grid-turminha {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.13));
}

/* ── Personagens abaixo do card no Flashcard ────────────── */
.ncl-flashcard-stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.ncl-flashcard-stage .ncl-card {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.ncl-flashcard-chars-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 8px;
}
.ncl-flashcard-char {
  height: 110px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.13));
  pointer-events: none;
}
@media (min-width: 400px) {
  .ncl-flashcard-char { height: 130px; }
}
@media (min-width: 768px) {
  .ncl-flashcard-char { height: 155px; }
}

/* ── MemoryMatch: 3D text cards (Alfabeto = verde / Números = azul) ── */
.ncl-mem-card-text {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, #81C784 0%, #43A047 60%, #2E7D32 100%);
  width: 85%;
  height: 85%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 3px 8px rgba(0,0,0,.3);
  box-shadow: 0 4px 0 rgba(0,0,0,.18) inset, 0 -2px 0 rgba(255,255,255,.18) inset;
}
.ncl-mem-card-text-num {
  background: linear-gradient(160deg, #64B5F6 0%, #1E88E5 60%, #1565C0 100%);
}

/* ── Emoji permanente nas letras do alfabeto (GridView) ─── */
.ncl-gl-emoji {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

/* ── ColorGame (nome-da-cor / encontre-o-bloco) ──────────── */
.ncl-cg-prompt-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ncl-cg-label {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  padding: 14px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ncl-shadow);
  width: 100%;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.ncl-cg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.ncl-cg-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: none;
  border-radius: var(--ncl-radius);
  box-shadow: 0 5px 0 rgba(0,0,0,.20), 0 8px 20px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  padding: 12px;
}

.ncl-cg-block:active {
  transform: translateY(4px) scale(0.95);
  box-shadow: 0 1px 0 rgba(0,0,0,.20);
}

.ncl-cg-block-name {
  font-family: var(--ncl-font-title);
  font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.30);
  line-height: 1.2;
  pointer-events: none;
  padding: 2px 4px;
}

@media (max-width: 400px) {
  .ncl-cg-block { min-height: 90px; }
  .ncl-cg-label { font-size: 1.6rem; }
}

/* ── GroupByCategory (grupos — Animais) ─────────────────── */
.ncl-gbc-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 10px;
  text-align: center;
}
.ncl-gbc-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ncl-gbc-icon {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
}
.ncl-gbc-name {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  font-weight: 700;
  color: var(--module-color);
}

/* ── CompareGame (maior ou menor) ───────────────────────── */
.ncl-compare-prompt-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ncl-compare-question {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--module-color) 0%, color-mix(in srgb, var(--module-color) 80%, black) 100%);
  padding: 10px 28px;
  border-radius: 16px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--module-color) 60%, black), 0 8px 14px rgba(0,0,0,.18);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
  width: 100%;
}

.ncl-compare-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.ncl-compare-numcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 3px solid #eee;
  border-radius: var(--ncl-radius);
  box-shadow: var(--ncl-shadow);
  cursor: pointer;
  transition: transform .1s, border-color .15s;
  min-height: 160px;
  padding: 16px;
}

.ncl-compare-numcard:active { transform: scale(0.93); border-color: var(--module-color); }

.ncl-compare-numeral {
  font-family: var(--ncl-font-title);
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 900;
  color: var(--module-color);
  line-height: 1;
}

.ncl-compare-numname {
  font-family: var(--ncl-font-body);
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  font-weight: 600;
  color: #888;
  text-align: center;
}

@media (max-width: 400px) {
  .ncl-compare-numcard { min-height: 130px; }
  .ncl-compare-question { font-size: 1.1rem; }
}

/* ── CountGame (contar) ─────────────────────────────────── */
.ncl-count-question {
  font-family: var(--ncl-font-title);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, var(--module-color) 0%, color-mix(in srgb, var(--module-color) 80%, black) 100%);
  padding: 10px 28px;
  border-radius: 16px;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--module-color) 60%, black), 0 8px 14px rgba(0,0,0,.18);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.ncl-count-items-wrap {
  background: #fff;
  border-radius: var(--ncl-radius);
  box-shadow: var(--ncl-shadow);
  padding: 20px 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.ncl-count-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.ncl-count-item {
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
  animation: ncl-pop .2s ease-out both;
}

.ncl-count-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ncl-count-option {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid #eee;
  border-radius: var(--ncl-radius);
  box-shadow: var(--ncl-shadow);
  cursor: pointer;
  transition: transform .1s, border-color .15s;
  min-height: 90px;
  padding: 12px;
}

.ncl-count-option:active { transform: scale(0.93); border-color: var(--module-color); }

.ncl-count-opt-numeral {
  font-family: var(--ncl-font-title);
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 900;
  color: var(--module-color);
  line-height: 1;
}

@media (max-width: 400px) {
  .ncl-count-option  { min-height: 72px; }
  .ncl-count-question { font-size: 1.1rem; }
}

/* ── Tablet (≥768px) ─────────────────────────────────────── */
@media (min-width: 768px) {
  #ncl-root { max-width: 720px; --ncl-btn-h: 52px; }

  .ncl-grid-alfabeto .ncl-grid-item,
  .ncl-grid-numeros .ncl-grid-item  { flex: 0 0 calc(16.67% - 8.33px); }
  .ncl-grid-cores .ncl-grid-item,
  .ncl-grid-animais .ncl-grid-item,
  .ncl-grid-frutas .ncl-grid-item   { flex: 0 0 calc(20% - 8px); }

  .ncl-char-img      { height: 220px; }
  .ncl-card-img      { max-height: 320px; }
  .ncl-compare-numcard { min-height: 180px; }
}

/* ── Desktop (≥1024px) ───────────────────────────────────── */
@media (min-width: 1024px) {
  #ncl-root { max-width: min(92vw, 1280px); --ncl-btn-h: 56px; }

  /* Home: character left / buttons right */
  .ncl-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    padding: 20px 36px 48px;
  }
  .ncl-module-banner { grid-column: 1 / -1; max-width: none; width: 100%; }
  .ncl-home-header   { grid-column: 2; grid-row: 2; align-self: end; padding-bottom: 6px; }
  .ncl-home-actions  { grid-column: 2; grid-row: 3; max-width: none; align-self: start; gap: 16px; }
  .ncl-char-wrap     { grid-column: 1; grid-row: 2 / 4; align-self: center; justify-content: center; flex-direction: column; gap: 16px; }
  .ncl-char-img      { height: 260px; }
  .ncl-info-card     { max-width: none; min-width: 100px; flex-direction: row; gap: 8px; padding: 12px 20px; }
  .ncl-info-val      { font-size: 1.8rem; }

  /* Game grids: 7 columns on desktop */
  .ncl-grid-alfabeto .ncl-grid-item,
  .ncl-grid-numeros .ncl-grid-item  { flex: 0 0 calc(14.29% - 8.57px); }
  .ncl-grid-cores .ncl-grid-item,
  .ncl-grid-animais .ncl-grid-item,
  .ncl-grid-frutas .ncl-grid-item   { flex: 0 0 calc(16.67% - 8.33px); }

  /* Games: bigger touch targets */
  .ncl-compare-numcard { min-height: 200px; }
  .ncl-count-items-wrap { min-height: 180px; }
  .ncl-card-img        { max-height: 380px; }
  .ncl-options-grid    { gap: 16px; }
  .ncl-option          { min-height: 150px; }
  .ncl-cg-block        { min-height: 140px; }

  /* Memory board: more space */
  .ncl-memory-board { gap: 12px; }
  .ncl-memory-diff-btns { max-width: 420px; }
}

/* ── Wide desktop (≥1280px): 9-column grids ─────────────── */
@media (min-width: 1280px) {
  .ncl-grid-alfabeto .ncl-grid-item,
  .ncl-grid-numeros .ncl-grid-item  { flex: 0 0 calc(11.11% - 8.89px); }
  .ncl-grid-cores .ncl-grid-item,
  .ncl-grid-animais .ncl-grid-item,
  .ncl-grid-frutas .ncl-grid-item   { flex: 0 0 calc(14.29% - 8.57px); }
}

/* ── Hover (pointer devices only) ───────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .ncl-btn:hover            { filter: brightness(1.07); }
  .ncl-btn-game:hover       { background: color-mix(in srgb, var(--module-color) 10%, white); }
  .ncl-btn-back:hover       { filter: brightness(1.08); }
  .ncl-btn-crown:hover      { filter: brightness(1.05); }
  .ncl-grid-item:hover      { transform: scale(1.05); border-color: var(--module-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--module-color) 25%, transparent); }
  .ncl-option:hover         { border-color: var(--module-color); transform: scale(1.02); }
  .ncl-mem-card:hover       { transform: scale(1.03); border-color: var(--module-color); }
  .ncl-cg-block:hover       { transform: scale(1.02); }
  .ncl-memory-mode-card:hover { transform: scale(1.04); }
  .ncl-compare-numcard:hover { transform: scale(1.02); border-color: var(--module-color); }
  .ncl-count-option:hover   { transform: scale(1.02); border-color: var(--module-color); }
}

/* ── Focus visible (keyboard navigation) ────────────────── */
.ncl-btn:focus-visible,
.ncl-btn-back:focus-visible,
.ncl-filter-btn:focus-visible,
.ncl-lang-btn:focus-visible {
  outline: 3px solid var(--module-color);
  outline-offset: 2px;
}
.ncl-grid-item:focus-visible {
  outline: 3px solid var(--module-color);
  outline-offset: 2px;
  border-radius: 14px;
}
.ncl-option:focus-visible,
.ncl-cg-block:focus-visible,
.ncl-compare-numcard:focus-visible,
.ncl-count-option:focus-visible {
  outline: 3px solid var(--module-color);
  outline-offset: 2px;
  border-radius: var(--ncl-radius);
}
.ncl-mem-card:focus-visible {
  outline: 3px solid var(--module-color);
  outline-offset: 2px;
  border-radius: 14px;
}

/* ── ColorMixGame (mistura de cores) ─────────────────────── */
.ncl-mix-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.ncl-mix-swatch {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 5px 0 rgba(0,0,0,.20), 0 8px 20px rgba(0,0,0,.12);
  flex-shrink: 0;
  border: none;
}

.ncl-mix-plus {
  font-family: var(--ncl-font-title);
  font-size: 2.5rem;
  font-weight: 900;
  color: #555;
  line-height: 1;
  user-select: none;
}

@media (max-width: 400px) {
  .ncl-mix-swatch { width: 72px; height: 72px; }
  .ncl-mix-plus   { font-size: 2rem; }
}

@media (min-width: 768px) {
  .ncl-mix-swatch { width: 116px; height: 116px; }
}

/* ── Page background — sky gradient (targets WP pages) ───── */
/* Applied via PHP render_home inline style to body */

