.mfgames-sumas11-shell {
  width: 100%;
  min-height: 80vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(251, 191, 36, 0.22), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(56, 189, 248, 0.22), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #eef8ff 100%);
  color: #10233f;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mfgames-sumas11-shell * { box-sizing: border-box; }
.mfs11-app {
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto;
  display: grid;
  gap: 16px;
}
.mfs11-topbar {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 3px solid #bfdbfe;
  border-radius: 28px;
  padding: 18px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mfs11-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
  color: #1d4ed8;
  font-weight: 1000;
  letter-spacing: -0.04em;
}
.mfs11-topbar p {
  margin: 5px 0 0;
  font-size: 1.05rem;
  color: #475569;
  font-weight: 850;
}
.mfs11-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.mfs11-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 14px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  font-weight: 1000;
  color: #0f172a;
  box-shadow: 0 7px 15px rgba(15, 23, 42, 0.06);
}
.mfs11-status.hearts { font-size: 1.3rem; }
.mfs11-status.aula.ok { border-color: #86efac; background: #f0fdf4; color: #166534; }
.mfs11-status.aula.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.mfs11-menu,
.mfs11-summary,
.mfs11-game {
  background: rgba(255,255,255,0.96);
  border: 3px solid #bfdbfe;
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}
.mfs11-menu { padding: 22px; }
.mfs11-menu-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 12px;
}
.mfs11-menu-intro h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.mfs11-menu-intro p {
  margin: 10px 0 0;
  color: #475569;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
}
.mfs11-rule-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  place-content: center;
  gap: 6px;
  min-height: 128px;
}
.mfs11-rule-card span {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.78rem;
}
.mfs11-rule-card strong { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.mfs11-session-note { margin: 8px 0 16px; font-weight: 900; color: #92400e; }
.mfs11-session-note.ok { color: #15803d; }
.mfs11-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 14px;
}
.mfs11-level-card {
  appearance: none;
  width: 100%;
  min-height: 245px;
  text-align: left;
  border: 3px solid #dbeafe;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.mfs11-level-card:hover { transform: translateY(-3px); border-color: #60a5fa; box-shadow: 0 18px 32px rgba(37, 99, 235, 0.14); }
.mfs11-level-card.is-locked { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.25); }
.mfs11-level-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 1000;
}
.mfs11-level-icon { font-size: 2.5rem; line-height: 1; }
.mfs11-level-card h3 { margin: 2px 0 0; font-size: 1.45rem; line-height: 1.1; }
.mfs11-level-card p { margin: 0; color: #64748b; font-weight: 800; }
.mfs11-progress-line { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: auto; }
.mfs11-progress-line span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #38bdf8); border-radius: inherit; }
.mfs11-level-card strong {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: 16px;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.05rem;
}
.mfs11-level-card.is-locked strong { background: #94a3b8; }
.mfs11-game {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}
.mfs11-side {
  background: linear-gradient(180deg, #172f62, #0f2147);
  border-radius: 24px;
  color: #ffffff;
  padding: 18px;
}
.mfs11-back {
  border: 0;
  background: #ffffff;
  color: #1d4ed8;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 1000;
  cursor: pointer;
  margin-bottom: 18px;
}
.mfs11-side h2 { font-size: 2rem; margin: 0 0 6px; }
.mfs11-side p { margin: 0; font-size: 1.2rem; color: #dbeafe; }
.mfs11-small-note {
  margin-top: 22px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  font-weight: 850;
}
.mfs11-board {
  min-height: 620px;
  border: 3px solid #dbeafe;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  display: grid;
  gap: 16px;
}
.mfs11-question-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  background: #eff6ff;
  border-radius: 22px;
  padding: 16px;
  border: 2px solid #bfdbfe;
}
.mfs11-question-head span { display: block; color: #2563eb; font-weight: 1000; }
.mfs11-question-head h2 { margin: 5px 0 0; color: #0f172a; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1; }
.mfs11-big-hearts { font-size: 1.75rem; white-space: nowrap; }
.mfs11-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.mfs11-box {
  border: 3px dashed #93c5fd;
  border-radius: 24px;
  padding: 16px;
  background: #f8fbff;
}
.mfs11-box > span {
  display: block;
  color: #1d4ed8;
  font-weight: 1000;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.mfs11-objects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
}
.mfs11-object {
  min-height: clamp(70px, 8vw, 94px);
  border: 3px solid transparent;
  border-radius: 22px;
  background: #eff6ff;
  color: #2563eb;
  cursor: pointer;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 1000;
  line-height: 1;
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
  box-shadow: 0 8px 0 #bfdbfe;
}
.mfs11-object:active { transform: translateY(3px) scale(.98); box-shadow: 0 4px 0 #bfdbfe; }
.mfs11-object.is-counted { background: #dcfce7; border-color: #22c55e; box-shadow: 0 8px 0 #86efac; }
.mfs11-object.is-wrong { background: #fee2e2; border-color: #ef4444; box-shadow: 0 8px 0 #fecaca; opacity: .75; }
.mfs11-object.star { color: #f59e0b; }
.mfs11-object.circle { color: #2563eb; }
.mfs11-object.square { color: #16a34a; }
.mfs11-object.heart { color: #e11d48; }
.mfs11-object.apple { color: #ef4444; }
.mfs11-count-answer-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.mfs11-counter-card,
.mfs11-answer-card {
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}
.mfs11-counter-card { border: 3px solid #bae6fd; background: #f0f9ff; }
.mfs11-answer-card { border: 3px solid #bbf7d0; background: #f0fdf4; }
.mfs11-counter-card > span,
.mfs11-answer-card > span { font-weight: 1000; color: #075985; }
.mfs11-answer-card > span { color: #166534; }
.mfs11-counter-main {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
}
.mfs11-counter-main strong,
.mfs11-answer-card strong {
  min-width: 96px;
  min-height: 82px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #2563eb;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  font-weight: 1000;
  box-shadow: 0 10px 0 #1e40af;
}
.mfs11-counter-main img,
.mfs11-answer-visual img {
  width: min(240px, 100%);
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.16));
}
.mfs11-counter-card p { margin: 0; color: #075985; font-weight: 850; }
.mfs11-answer-card strong { margin: 0 auto; background: #22c55e; box-shadow: 0 10px 0 #15803d; }
.mfs11-answer-visual { min-height: 112px; display: grid; place-items: center; color: #64748b; font-weight: 900; }
.mfs11-keypad {
  border: 3px solid #e0e7ff;
  border-radius: 22px;
  background: #eef2ff;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 9px;
}
.mfs11-key {
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 1.65rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 7px 0 #bfdbfe;
}
.mfs11-key.ok { background: #22c55e; color: #ffffff; box-shadow: 0 7px 0 #15803d; }
.mfs11-key.del { background: #fee2e2; color: #b91c1c; box-shadow: 0 7px 0 #fecaca; }
.mfs11-key:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.mfs11-answer-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mfs11-check,
.mfs11-help,
.mfs11-actions button,
.mfs11-next-btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 1000;
  cursor: pointer;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 8px 0 #1e40af;
}
.mfs11-help { background: #0ea5e9; box-shadow: 0 8px 0 #0369a1; }
.mfs11-check:disabled,
.mfs11-help:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.mfs11-counting-guide {
  border: 3px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
  border-radius: 24px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.mfs11-counting-title {
  color: #0369a1;
  font-weight: 1000;
  text-align: center;
  font-size: 1.05rem;
}
.mfs11-counting-items {
  display: grid;
  grid-template-columns: repeat(11, minmax(54px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.mfs11-count-chip {
  min-width: 0;
  border: 2px solid #bfdbfe;
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 5px 7px;
  display: grid;
  place-items: center;
  gap: 2px;
  box-shadow: 0 5px 0 rgba(147, 197, 253, 0.45);
}
.mfs11-count-chip.is-current { border-color: #22c55e; background: #f0fdf4; transform: translateY(-2px); }
.mfs11-count-chip img {
  width: 100%;
  max-width: 58px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.mfs11-count-chip span { color: #0f172a; font-size: 1rem; line-height: 1; font-weight: 1000; }
.mfs11-feedback {
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  border: 3px solid transparent;
}
.mfs11-feedback.success { background: #dcfce7; border-color: #86efac; color: #166534; }
.mfs11-feedback.try { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.mfs11-feedback.wrong { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.mfs11-feedback.help { background: #e0f2fe; border-color: #7dd3fc; color: #075985; }
.mfs11-earned-stars { background: #ffffff; color: #ca8a04; padding: 8px 12px; border-radius: 999px; }
.mfs11-summary { padding: clamp(24px, 5vw, 52px); text-align: center; }
.mfs11-summary h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.3rem); color: #0f172a; }
.mfs11-summary p { color: #475569; font-weight: 850; font-size: 1.2rem; }
.mfs11-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 24px auto;
}
.mfs11-summary-grid div {
  border: 3px solid #dbeafe;
  background: #f8fafc;
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 4px;
  font-size: 2rem;
}
.mfs11-summary-grid strong { font-size: 2.1rem; color: #0f172a; }
.mfs11-summary-grid span { font-size: 0.95rem; color: #64748b; font-weight: 900; }
.mfs11-save-note { min-height: 24px; }
.mfs11-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mfs11-actions .secondary { background: #ffffff; color: #2563eb; border: 3px solid #bfdbfe; box-shadow: none; }
@media (max-width: 980px) {
  .mfs11-topbar,
  .mfs11-menu-intro { grid-template-columns: 1fr; display: grid; }
  .mfs11-level-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .mfs11-game { grid-template-columns: 1fr; }
  .mfs11-side { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .mfs11-small-note { display: none; }
  .mfs11-count-answer-row { grid-template-columns: 1fr; }
  .mfs11-counting-items { grid-template-columns: repeat(6, minmax(54px, 1fr)); }
}
@media (max-width: 680px) {
  .mfs11-app { width: min(100% - 14px, 1180px); margin: 8px auto; }
  .mfs11-topbar { align-items: flex-start; }
  .mfs11-status-row { justify-content: flex-start; }
  .mfs11-level-grid { grid-template-columns: 1fr; }
  .mfs11-summary-grid { grid-template-columns: 1fr; }
  .mfs11-key { min-height: 58px; }
  .mfs11-counter-main { grid-template-columns: 1fr; }
  .mfs11-counting-items { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  .mfs11-count-chip img { height: 34px; }
}

/* Patch 2.2.0: interfaz limpia para primero de primaria */
.mfs11-game-clean {
  grid-template-columns: 1fr;
  padding: 16px;
}
.mfs11-board-clean {
  min-height: auto;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  gap: 18px;
}
.mfs11-board-clean .mfs11-boxes {
  align-items: stretch;
}
.mfs11-board-clean .mfs11-box {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.mfs11-board-clean .mfs11-objects {
  align-content: start;
}
.mfs11-side,
.mfs11-question-head,
.mfs11-counting-guide {
  display: none !important;
}
.mfs11-count-answer-row {
  grid-template-columns: minmax(280px, 1fr) minmax(310px, 1fr);
}
.mfs11-counter-card,
.mfs11-answer-card {
  min-height: 390px;
}
.mfs11-answer-card > strong,
.mfs11-answer-visual {
  display: none !important;
}
.mfs11-place-display {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  align-items: stretch;
  width: min(100%, 320px);
  margin: 4px auto 0;
}
.mfs11-place-box {
  min-height: 116px;
  border-radius: 22px;
  border: 3px solid #bfdbfe;
  background: #ffffff;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  box-shadow: 0 8px 0 #bfdbfe;
}
.mfs11-place-box b {
  font-size: clamp(2.8rem, 6vw, 4.3rem);
  line-height: .9;
  color: #1d4ed8;
  font-weight: 1000;
}
.mfs11-place-box small {
  color: #475569;
  font-weight: 1000;
  font-size: .95rem;
}
.mfs11-place-box.active {
  border-color: #22c55e;
  background: #f0fdf4;
  box-shadow: 0 8px 0 #86efac;
}
.mfs11-place-box.locked {
  border-color: #dbeafe;
  background: #f8fafc;
  opacity: .72;
}
.mfs11-place-box.locked b { color: #94a3b8; }
.mfs11-answer-hint {
  margin: 0 auto;
  color: #166534;
  font-weight: 900;
  max-width: 340px;
}
.mfs11-keypad {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}
.mfs11-counter-main img {
  height: 150px;
}
@media (max-width: 980px) {
  .mfs11-game-clean { grid-template-columns: 1fr; }
  .mfs11-count-answer-row { grid-template-columns: 1fr; }
  .mfs11-counter-card,
  .mfs11-answer-card { min-height: auto; }
}
@media (max-width: 680px) {
  .mfs11-place-display { grid-template-columns: repeat(2, minmax(96px, 1fr)); }
  .mfs11-place-box { min-height: 96px; }
}
