/* =========================================================
   MATESEÑAS EC - PLAY VIEW
   Pantalla del Juego 1 Nivel 1: Suma con señas
   ========================================================= */

.play-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 15%, rgba(186, 225, 255, 0.9) 0 34px, transparent 35px),
    radial-gradient(circle at 94% 12%, rgba(186, 225, 255, 0.9) 0 34px, transparent 35px),
    radial-gradient(circle at 98% 72%, rgba(255, 128, 168, 0.8) 0 8px, transparent 9px),
    radial-gradient(circle at 16% 76%, rgba(255, 197, 41, 0.8) 0 8px, transparent 9px),
    radial-gradient(circle at 74% 84%, rgba(123, 205, 102, 0.7) 0 10px, transparent 11px),
    linear-gradient(180deg, #fffaf0 0%, #fff9ec 100%);
  color: #10265f;
  font-family: Arial, Helvetica, sans-serif;
  padding-bottom: 46px;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   HEADER SUPERIOR
   ========================================================= */

.play-top {
  width: 100%;
  min-height: 104px;
  padding: 24px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid rgba(16, 38, 95, 0.06);
  background: rgba(255, 250, 240, 0.75);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

.play-logo {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 1000;
  letter-spacing: -2px;
  line-height: 1;
  user-select: none;
}

.play-logo span:nth-child(1) {
  color: #1d8df2;
}

.play-logo span:nth-child(2) {
  color: #8658d8;
}

.play-logo span:nth-child(3) {
  color: #20a15a;
}

.play-back-btn {
  min-height: 58px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #39a8ff 0%, #1473dd 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 7px 0 #0b56b1,
    0 12px 24px rgba(20, 115, 221, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.play-back-btn:hover {
  transform: translateY(3px);
  box-shadow:
    0 4px 0 #0b56b1,
    0 9px 18px rgba(20, 115, 221, 0.22);
}

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.play-container {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.play-title-zone {
  margin: 26px auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.play-title-zone h1 {
  margin: 0;
  color: #09256b;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -3px;
  text-shadow:
    0 4px 0 rgba(9, 37, 107, 0.08),
    0 8px 18px rgba(9, 37, 107, 0.08);
}

.play-small-decoration {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background: #9ad37a;
  color: transparent;
  box-shadow:
    52px -20px 0 #ffbd22,
    66px -8px 0 #218df3,
    42px 12px 0 #f26f9a,
    -52px 20px 0 #9ad37a;
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.play-left-column {
  min-width: 0;
}

.play-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================================
   TARJETA DE OPERACIÓN
   ========================================================= */

.play-operation-card {
  min-height: 360px;
  background: #ffffff;
  border-radius: 34px;
  border: 4px solid rgba(226, 234, 255, 0.9);
  box-shadow:
    0 12px 0 rgba(216, 226, 255, 0.95),
    0 20px 38px rgba(16, 38, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.js-operation-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
}

.play-number-block {
  width: clamp(140px, 18vw, 210px);
  min-height: 235px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  position: relative;
}

.play-number-block strong {
  font-size: clamp(5.2rem, 10vw, 9rem);
  line-height: 0.85;
  font-weight: 1000;
  letter-spacing: -6px;
}

.play-number-yellow strong {
  color: #ffc21e;
  text-shadow:
    0 4px 0 #ff9d00,
    0 12px 18px rgba(255, 193, 30, 0.28);
}

.play-number-blue strong {
  color: #1e8af0;
  text-shadow:
    0 4px 0 #0c64bd,
    0 12px 18px rgba(30, 138, 240, 0.25);
}

.play-number-img-wrap {
  width: clamp(96px, 11vw, 150px);
  height: clamp(96px, 11vw, 150px);
  background: #fff3d7;
  border-radius: 50%;
  padding: 0;
  margin-top: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-number-blue .play-number-img-wrap {
  background: #e7f3ff;
}

.play-number-block img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.25);
  display: block;
}

.play-number-block span {
  margin-top: -4px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 1000;
}

.play-number-yellow span {
  background: #ffb800;
}

.play-number-blue span {
  background: #168bf2;
}

.play-symbol {
  color: #2d3344;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 4px 0 rgba(45, 51, 68, 0.12),
    0 12px 18px rgba(45, 51, 68, 0.08);
}

.play-question-symbol {
  color: #8e52e5;
  font-size: clamp(5.4rem, 10vw, 9rem);
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    0 4px 0 #6f34bf,
    0 12px 20px rgba(142, 82, 229, 0.24);
}

/* =========================================================
   BOTONES DE RESPUESTA 0 - 9
   ========================================================= */

.play-keypad {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 16px 18px;
}

.play-answer-btn {
  min-height: 104px;
  border: 4px solid #b9dcff;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4fbff 0%, #e7f4ff 100%);
  color: #116cd5;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    0 7px 0 #b7d8f6,
    0 14px 24px rgba(17, 108, 213, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.play-answer-btn:hover:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 4px 0 #b7d8f6,
    0 10px 18px rgba(17, 108, 213, 0.08);
  border-color: #6db8ff;
}

.play-answer-btn:disabled {
  cursor: default;
}

.play-answer-btn.is-correct {
  background: linear-gradient(180deg, #89dc55 0%, #55c441 100%);
  color: #ffffff;
  border-color: #48b935;
  box-shadow:
    0 7px 0 #35a228,
    0 14px 22px rgba(77, 190, 55, 0.18);
}

.play-answer-btn.is-wrong {
  background: linear-gradient(180deg, #ff8f8f 0%, #f05454 100%);
  color: #ffffff;
  border-color: #dd4444;
  box-shadow:
    0 7px 0 #bd3030,
    0 14px 22px rgba(240, 84, 84, 0.18);
}

.play-answer-btn.is-selected {
  outline: 5px solid rgba(255, 195, 36, 0.85);
  outline-offset: 3px;
}

/* =========================================================
   FILA INFERIOR: FEEDBACK + SIGUIENTE
   ========================================================= */

.play-bottom-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.play-feedback {
  min-height: 54px;
  border-radius: 16px;
  padding: 14px 18px;
  background: #eef7ff;
  border: 3px solid #b9dcff;
  color: #0b58a8;
  font-weight: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 5px 0 #d5eaff;
}

.play-feedback.is-correct {
  background: #ebffe7;
  border-color: #79d463;
  color: #15803d;
  box-shadow: 0 5px 0 #b8edaa;
}

.play-feedback.is-wrong {
  background: #fff0f0;
  border-color: #ef9a9a;
  color: #b42323;
  box-shadow: 0 5px 0 #ffd0d0;
}

.play-next-btn {
  min-height: 56px;
  padding: 0 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #309dff 0%, #126fdb 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    0 6px 0 #0d55ac,
    0 11px 22px rgba(18, 111, 219, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.play-next-btn:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #0d55ac,
    0 8px 18px rgba(18, 111, 219, 0.2);
}

.play-next-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================================================
   PANEL DERECHO: AURELIO + APOYO LSEC
   ========================================================= */

.play-status-card,
.play-support-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  box-shadow:
    0 9px 0 rgba(216, 226, 255, 0.85),
    0 18px 32px rgba(16, 38, 95, 0.08);
  overflow: hidden;
}

.play-status-card {
  min-height: 260px;
  padding: 20px;
  text-align: center;
  border: 4px solid #b7e4a8;
  background: linear-gradient(180deg, #fbfff7 0%, #f1ffe9 100%);
}

.play-status-card.is-correct {
  border-color: #72cc5a;
  background: linear-gradient(180deg, #fbfff7 0%, #efffe8 100%);
}

.play-status-card.is-wrong {
  border-color: #f0a3a3;
  background: linear-gradient(180deg, #fffafa 0%, #fff0f0 100%);
}

.play-status-character {
  width: 128px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 8px rgba(16, 38, 95, 0.12));
}

.play-status-card h2 {
  margin: 0 0 8px;
  color: #25a02f;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
  font-weight: 1000;
}

.play-status-card.is-wrong h2 {
  color: #d94a4a;
}

.play-status-card p {
  margin: 0;
  color: #10265f;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1.35;
}

.play-status-card p strong {
  font-size: 1.45rem;
}

.play-support-card {
  border: 4px solid #c8a4e8;
  text-align: center;
  background: #ffffff;
}

.play-support-card h2 {
  margin: 0;
  padding: 13px 14px;
  background: linear-gradient(180deg, #9360df 0%, #7a46c9 100%);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 1000;
}

.play-support-content {
  padding: 20px 18px 22px;
}

.play-support-img {
  width: 150px;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  background: #f2e8ff;
  padding: 12px;
}

.play-support-content p {
  margin: 10px 0 0;
  color: #7645c5;
  font-size: 0.98rem;
  font-weight: 1000;
}

/* =========================================================
   PROGRESO
   ========================================================= */

.play-progress-zone {
  margin: 28px auto 0;
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.78);
  border: 3px solid #e8efff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 0 rgba(216, 226, 255, 0.7);
}

.play-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #10265f;
  font-weight: 1000;
}

.play-progress-text strong {
  color: #126fdb;
}

.play-progress-bar {
  height: 18px;
  background: #e8f4ff;
  border: 2px solid #c7e3ff;
  border-radius: 999px;
  overflow: hidden;
}

.play-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2f9dff 0%, #7bd957 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* =========================================================
   RESULTADO FINAL
   ========================================================= */

.play-result {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px 60px;
}

.play-result-card {
  width: min(760px, 100%);
  text-align: center;
  padding: 34px 28px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 13px 0 rgba(216, 226, 255, 0.9),
    0 24px 42px rgba(16, 38, 95, 0.1);
}

.play-result-card.is-success {
  border: 5px solid #72cc5a;
}

.play-result-card.is-fail {
  border: 5px solid #f0a3a3;
}

.play-result-character {
  width: min(260px, 80%);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  filter: drop-shadow(0 12px 12px rgba(16, 38, 95, 0.12));
}

.play-result-card h1 {
  margin: 0 0 14px;
  color: #09256b;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  font-weight: 1000;
}

.play-result-card.is-success h1 {
  color: #21a331;
}

.play-result-card.is-fail h1 {
  color: #d94a4a;
}

.play-result-score,
.play-result-percent,
.play-result-message {
  margin: 10px 0;
}

.play-result-score {
  color: #10265f;
  font-size: 1.35rem;
  font-weight: 900;
}

.play-result-score strong {
  color: #126fdb;
  font-size: 1.65rem;
}

.play-result-percent {
  color: #126fdb;
  font-size: 1.2rem;
  font-weight: 1000;
}

.play-result-message {
  color: #4e5f8f;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.play-result-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.play-main-btn,
.play-secondary-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 1000;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-main-btn {
  background: linear-gradient(180deg, #309dff 0%, #126fdb 100%);
  color: #ffffff;
  box-shadow:
    0 6px 0 #0d55ac,
    0 11px 22px rgba(18, 111, 219, 0.22);
}

.play-main-btn:hover {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #0d55ac,
    0 8px 18px rgba(18, 111, 219, 0.2);
}

.play-green-btn {
  background: linear-gradient(180deg, #76d950 0%, #42b72f 100%);
  box-shadow:
    0 6px 0 #2f8f22,
    0 11px 22px rgba(66, 183, 47, 0.22);
}

.play-green-btn:hover {
  box-shadow:
    0 4px 0 #2f8f22,
    0 8px 18px rgba(66, 183, 47, 0.2);
}

.play-secondary-btn {
  background: #ffffff;
  color: #10265f;
  border: 3px solid #c9ddff;
  box-shadow:
    0 6px 0 #c7d8ff,
    0 11px 22px rgba(16, 38, 95, 0.08);
}

.play-secondary-btn:hover {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #c7d8ff,
    0 8px 18px rgba(16, 38, 95, 0.08);
}

/* =========================================================
   PANTALLA DE NIVEL EN CONSTRUCCIÓN
   ========================================================= */

.play-empty {
  width: min(720px, calc(100% - 36px));
  margin: 70px auto 0;
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid #dbe7ff;
  border-radius: 34px;
  padding: 38px 28px;
  text-align: center;
  box-shadow:
    0 12px 0 #c7d8ff,
    0 24px 42px rgba(16, 38, 95, 0.08);
}

.play-empty h1 {
  margin: 0 0 14px;
  color: #09256b;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 1000;
}

.play-empty p {
  margin: 8px 0 20px;
  color: #4e5f8f;
  font-size: 1.08rem;
  font-weight: 800;
}

/* =========================================================
   DECORACIONES EXTRA
   ========================================================= */

.play-bg-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.play-cloud-left,
.play-cloud-right {
  width: 130px;
  height: 54px;
  background: #d8efff;
  border-radius: 999px;
  opacity: 0.85;
}

.play-cloud-left::before,
.play-cloud-left::after,
.play-cloud-right::before,
.play-cloud-right::after {
  content: "";
  position: absolute;
  background: #d8efff;
  border-radius: 50%;
}

.play-cloud-left {
  left: 20px;
  top: 148px;
}

.play-cloud-left::before {
  width: 62px;
  height: 62px;
  left: 12px;
  top: -22px;
}

.play-cloud-left::after {
  width: 46px;
  height: 46px;
  right: 18px;
  top: -8px;
}

.play-cloud-right {
  right: 30px;
  top: 152px;
}

.play-cloud-right::before {
  width: 72px;
  height: 72px;
  right: 22px;
  top: -28px;
}

.play-cloud-right::after {
  width: 52px;
  height: 52px;
  left: 16px;
  top: -8px;
}

/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .play-layout {
    grid-template-columns: 1fr;
  }

  .play-right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .play-operation-card {
    min-height: 320px;
  }

  .play-status-card,
  .play-support-card {
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .play-top {
    padding: 20px 24px;
  }

  .play-title-zone {
    margin-top: 22px;
    margin-bottom: 24px;
  }

  .play-keypad {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .play-answer-btn {
    min-height: 88px;
    border-radius: 16px;
  }

  .play-operation-card {
    padding: 22px;
  }

  .play-number-block {
    width: 150px;
    min-height: 210px;
  }
}

/* =========================================================
   RESPONSIVE MÓVIL
   ========================================================= */

@media (max-width: 700px) {
  .play-page {
    padding-bottom: 30px;
  }

  .play-top {
    min-height: auto;
    padding: 18px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .play-logo {
    text-align: center;
    font-size: 2.4rem;
  }

  .play-back-btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  .play-container {
    width: min(100% - 22px, 1280px);
  }

  .play-title-zone {
    gap: 10px;
    margin: 18px auto 20px;
  }

  .play-title-zone h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
    letter-spacing: -2px;
  }

  .play-small-decoration {
    display: none;
  }

  .play-operation-card {
    min-height: auto;
    border-radius: 26px;
    padding: 20px 12px;
  }

  .js-operation-content {
    gap: 10px;
  }

  .play-number-block {
    width: 116px;
    min-height: 164px;
  }

  .play-number-block strong {
    font-size: 4.6rem;
    letter-spacing: -3px;
  }

  .play-number-img-wrap {
    width: 82px;
    height: 82px;
  }

  .play-number-block span {
    font-size: 0.72rem;
    padding: 4px 9px;
  }

  .play-symbol {
    font-size: 3.3rem;
  }

  .play-question-symbol {
    font-size: 4.4rem;
  }

  .play-keypad {
    margin-top: 20px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .play-answer-btn {
    min-height: 78px;
    font-size: 2.8rem;
    border-radius: 16px;
  }

  .play-bottom-row {
    grid-template-columns: 1fr;
  }

  .play-next-btn {
    width: 100%;
  }

  .play-right-column {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }

  .play-status-card,
  .play-support-card {
    border-radius: 24px;
  }

  .play-status-character {
    width: 116px;
  }

  .play-status-card h2 {
    font-size: 1.8rem;
  }

  .play-support-img {
    width: 126px;
    height: 126px;
  }

  .play-progress-zone {
    margin-top: 22px;
    border-radius: 20px;
  }

  .play-progress-text {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .play-result {
    min-height: auto;
    padding: 28px 12px 42px;
  }

  .play-result-card {
    border-radius: 26px;
    padding: 28px 18px;
  }

  .play-result-character {
    width: min(210px, 80%);
  }

  .play-result-actions {
    flex-direction: column;
  }

  .play-main-btn,
  .play-secondary-btn {
    width: 100%;
  }

  .play-cloud-left,
  .play-cloud-right {
    display: none;
  }
}

@media (max-width: 430px) {
  .play-keypad {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-answer-btn {
    min-height: 72px;
  }

  .play-number-block {
    width: 104px;
  }

  .play-number-block strong {
    font-size: 4rem;
  }

  .play-symbol {
    font-size: 2.8rem;
  }

  .play-question-symbol {
    font-size: 3.8rem;
  }
}
/* =========================================================
   AJUSTES DE ESTADO NEUTRO Y APOYO LSEC
   ========================================================= */

.play-status-card.is-neutral {
  border-color: #d8e2ef !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important;
}

.play-status-card.is-neutral h2 {
  color: #334155 !important;
}

.play-status-card.is-neutral p {
  color: #64748b !important;
}

.play-status-placeholder {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8eef6;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  font-weight: 1000;
  box-shadow: inset 0 0 0 8px #f8fafc;
}

.play-support-content {
  min-height: 260px;
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-support-sign-frame {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff3d7;
  border: 14px solid #f1e3ff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.is-minus {
  font-size: clamp(6rem, 12vw, 11rem) !important;
  line-height: 0.8 !important;
}

.tutorial-floating-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tutorial-tooltip {
  background: #282828;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: bounce 2s infinite;
}

.tutorial-arrow {
  font-size: 20px;
  margin-top: 4px;
}

.tutorial-floating-btn {
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-floating-btn:hover {
  transform: scale(1.1);
}

.tutorial-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
.play-support-card {
    border-radius: 24px;
  }

  .play-status-character {
    width: 116px;
  }

  .play-status-card h2 {
    font-size: 1.8rem;
  }

  .play-support-img {
    width: 126px;
    height: 126px;
  }

  .play-progress-zone {
    margin-top: 22px;
    border-radius: 20px;
  }

  .play-progress-text {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .play-result {
    min-height: auto;
    padding: 28px 12px 42px;
  }

  .play-result-card {
    border-radius: 26px;
    padding: 28px 18px;
  }

  .play-result-character {
    width: min(210px, 80%);
  }

  .play-result-actions {
    flex-direction: column;
  }

  .play-main-btn,
  .play-secondary-btn {
    width: 100%;
  }

  .play-cloud-left,
  .play-cloud-right {
    display: none;
  }
}

@media (max-width: 430px) {
  .play-keypad {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-answer-btn {
    min-height: 72px;
  }

  .play-number-block {
    width: 104px;
  }

  .play-number-block strong {
    font-size: 4rem;
  }

  .play-symbol {
    font-size: 2.8rem;
  }

  .play-question-symbol {
    font-size: 3.8rem;
  }
}
/* =========================================================
   AJUSTES DE ESTADO NEUTRO Y APOYO LSEC
   ========================================================= */

.play-status-card.is-neutral {
  border-color: #d8e2ef !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%) !important;
}

.play-status-card.is-neutral h2 {
  color: #334155 !important;
}

.play-status-card.is-neutral p {
  color: #64748b !important;
}

.play-status-placeholder {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8eef6;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  font-weight: 1000;
  box-shadow: inset 0 0 0 8px #f8fafc;
}

.play-support-content {
  min-height: 260px;
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.play-support-sign-frame {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: #fff3d7;
  border: 14px solid #f1e3ff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.is-minus {
  font-size: clamp(6rem, 12vw, 11rem) !important;
  line-height: 0.8 !important;
}

.tutorial-floating-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tutorial-tooltip {
  background: #282828;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: bounce 2s infinite;
}

.tutorial-arrow {
  font-size: 20px;
  margin-top: 4px;
}

.tutorial-floating-btn {
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 36px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-floating-btn:hover {
  transform: scale(1.1);
}

.tutorial-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.tutorial-modal-content {
  background: white;
  padding: 24px;
  border-radius: 20px;
  max-width: 1400px;
  width: 90vw;
  position: relative;
}

.tutorial-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.play-support-sign-frame.is-neutral {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.play-support-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  mix-blend-mode: multiply;
}

.play-support-question {
  color: #94a3b8;
  font-size: 4rem;
  font-weight: 1000;
}

.play-support-content p {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
}
.play-main-btn,
.play-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


.play-btn-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   JUEGO 2 NIVEL 1 - CONTAR MONSTRUOS CON VENTANAS
   ========================================================= */

.monster-count-stage {
  width: 100%;
  text-align: center;
}

.monster-count-question {
  margin: 0 0 24px;
  color: #7b4fd6;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 1000;
}

.monster-window-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 24px 26px;
  align-items: end;
  justify-items: center;
}

.monster-window-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.monster-window-asset {
  position: relative;
  width: min(100%, 235px);
  aspect-ratio: 1 / 0.92;
}

.monster-window-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 2;
}

.monster-window-monster {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  width: 54%;
  height: 66%;
  object-fit: contain;
  display: block;
  z-index: 3;
  filter: drop-shadow(0 8px 12px rgba(16, 38, 95, 0.16));
  pointer-events: none;
}

.play-keypad--monster {
  width: min(760px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  justify-content: center;
  align-items: stretch;
}

.monster-option-btn {
  min-height: 126px;
  border: 4px solid #b9dcff;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f5ff 100%);
  color: #116cd5;
  cursor: pointer;
  box-shadow:
    0 7px 0 #b7d8f6,
    0 14px 24px rgba(17, 108, 213, 0.08);
  display: grid;
  grid-template-columns: 0.9fr 3px 1.1fr;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.monster-option-btn:hover:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    0 4px 0 #b7d8f6,
    0 10px 18px rgba(17, 108, 213, 0.08);
  border-color: #6db8ff;
}

.monster-option-btn:disabled {
  cursor: default;
}

.monster-option-btn.is-correct {
  background: linear-gradient(180deg, #89dc55 0%, #55c441 100%);
  border-color: #48b935;
  color: #ffffff;
  box-shadow:
    0 7px 0 #35a228,
    0 14px 22px rgba(77, 190, 55, 0.18);
}

.monster-option-btn.is-wrong {
  background: linear-gradient(180deg, #ff8f8f 0%, #f05454 100%);
  border-color: #dd4444;
  color: #ffffff;
  box-shadow:
    0 7px 0 #bd3030,
    0 14px 22px rgba(240, 84, 84, 0.18);
}

.monster-option-btn.is-selected {
  outline: 5px solid rgba(255, 195, 36, 0.85);
  outline-offset: 3px;
}

.monster-option-number {
  font-size: clamp(3.4rem, 5vw, 5rem);
  font-weight: 1000;
  line-height: 1;
}

.monster-option-divider {
  width: 3px;
  height: 82px;
  border-radius: 999px;
  background: rgba(16, 38, 95, 0.16);
}

.monster-option-sign-box {
  width: 104px;
  height: 104px;
  border-radius: 20px;
  background: #fff1cf;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.monster-option-sign {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.25);
  display: block;
}

/* =========================================================
   RESPONSIVE JUEGO 2
   ========================================================= */

@media (max-width: 980px) {
  .monster-window-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 18px;
  }

  .monster-window-asset {
    width: min(100%, 200px);
  }

  .play-keypad--monster {
    width: min(680px, 100%);
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .monster-option-btn {
    min-height: 112px;
  }

  .monster-option-sign-box {
    width: 88px;
    height: 88px;
  }

  .monster-option-sign {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 780px) {
  .monster-window-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 18px 16px;
  }

  .play-keypad--monster {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 14px;
  }

  .monster-option-btn {
    min-height: 108px;
  }

  .monster-option-number {
    font-size: 3.4rem;
  }

  .monster-option-sign-box {
    width: 82px;
    height: 82px;
  }

  .monster-option-sign {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 560px) {
  .monster-count-question {
    font-size: 2rem;
  }

  .monster-window-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .monster-window-asset {
    width: min(100%, 170px);
  }

  .play-keypad--monster {
    grid-template-columns: 1fr;
    width: min(340px, 100%);
  }

  .monster-option-btn {
    min-height: 102px;
  }

  .monster-option-number {
    font-size: 3.2rem;
  }

  .monster-option-divider {
    height: 64px;
  }

  .monster-option-sign-box {
    width: 78px;
    height: 78px;
  }

  .monster-option-sign {
    width: 66px;
    height: 66px;
  }
}

/* =========================================================
   JUEGO 3 NIVEL 1 - SEÑA CORRECTA
   ========================================================= */

.play-keypad--hidden {
  display: none !important;
}

.sign-choice-stage {
  width: 100%;
  text-align: center;
}

.sign-choice-instruction {
  margin: 0 0 18px;
  color: #10265f;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.sign-choice-grid {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px 24px;
  align-items: stretch;
}

.sign-choice-card {
  position: relative;
  min-height: 220px;
  background: #ffffff;
  border: 3px solid #e2eaff;
  border-radius: 22px;
  padding: 16px 14px 14px;
  box-shadow:
    0 7px 0 rgba(216, 226, 255, 0.85),
    0 14px 24px rgba(16, 38, 95, 0.08);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  overflow: hidden;
}

.sign-choice-card.is-correct {
  border-color: #8ed66c;
  background: linear-gradient(180deg, #ffffff 0%, #f3ffed 100%);
}

.sign-choice-image-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  background: #eaf7dd;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sign-choice-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.25);
  display: block;
}

.sign-choice-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sign-choice-option {
  min-height: 50px;
  border-radius: 12px;
  border: 2px solid #8ec5ff;
  background: #ffffff;
  color: #10265f;
  font-size: 1.7rem;
  font-weight: 1000;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.sign-choice-option:hover:not(:disabled) {
  transform: translateY(2px);
  background: #eef7ff;
  border-color: #2991ff;
}

.sign-choice-option:disabled {
  cursor: default;
}

.sign-choice-option.is-correct {
  background: linear-gradient(180deg, #89dc55 0%, #55c441 100%);
  color: #ffffff;
  border-color: #45b931;
}

.sign-choice-option.is-wrong {
  background: linear-gradient(180deg, #ff8f8f 0%, #f05454 100%);
  color: #ffffff;
  border-color: #dd4444;
}

.sign-choice-option.is-selected {
  outline: 4px solid rgba(255, 195, 36, 0.75);
  outline-offset: 2px;
}

.sign-choice-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #61c84b;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 1000;
  display: none;
  place-items: center;
  box-shadow: 0 4px 8px rgba(27, 128, 40, 0.22);
}

.sign-choice-card.is-correct .sign-choice-check {
  display: grid;
}

.sign-choice-decoration {
  position: absolute;
  font-weight: 1000;
  pointer-events: none;
}

.sign-choice-decoration--one {
  left: 18px;
  top: 22px;
  color: #9ad37a;
  font-size: 1.2rem;
}

.sign-choice-decoration--two {
  right: 28px;
  top: 44px;
  color: #a678db;
  font-size: 1.7rem;
}

.sign-choice-footer {
  margin: 18px auto 0;
  color: #10265f;
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sign-choice-footer::before,
.sign-choice-footer::after {
  content: "⌁";
  color: #62b84b;
  font-size: 1.7rem;
  font-weight: 1000;
}

/* =========================================================
   RESPONSIVE JUEGO 3
   ========================================================= */

@media (max-width: 900px) {
  .sign-choice-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: 16px;
  }

  .sign-choice-card {
    min-height: 205px;
  }

  .sign-choice-image-wrap {
    width: 118px;
    height: 118px;
  }

  .sign-choice-img {
    width: 100px;
    height: 100px;
  }

  .sign-choice-option {
    font-size: 1.45rem;
  }
}

@media (max-width: 700px) {
  .sign-choice-option {
    min-height: 48px;
  }
}

/* =========================================================
   JUEGO 4: CONSTRUIR ÁREA - ESTILOS ADICIONALES (PHET STYLE)
   ========================================================= */

.area-builder-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.area-builder-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  margin-bottom: 5px;
}

.area-goal-box,
.area-current-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px;
  border-radius: 20px;
  min-width: clamp(130px, 15vw, 190px);
  box-shadow: 0 6px 0 rgba(16, 38, 95, 0.08);
  border: 3px solid rgba(16, 38, 95, 0.1);
}

.area-goal-box {
  background: linear-gradient(180deg, #5b3cb4 0%, #432599 100%);
  color: #ffffff;
  border-color: #3b1d92;
}

.area-goal-label,
.area-current-label {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.area-goal-value,
.area-current-value {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 1000;
  line-height: 1.2;
}

.area-current-box {
  background: linear-gradient(180deg, #ebfaeb 0%, #d1f5d1 100%);
  color: #1b5e20;
  border-color: #a5d6a7;
}

.area-board-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}

/* Opciones de visualización lateral (Estilo PhET) */
.area-view-options {
  background: #fdfbf7;
  border: 3px solid #ebd9c8;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 0 #ebd9c8;
}

.area-view-options h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 1000;
  color: #5c3f2b;
  border-bottom: 2px dashed #ebd9c8;
  padding-bottom: 6px;
  text-align: center;
}

.area-option-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 1000;
  color: #3e2723;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.area-option-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  height: 22px;
  width: 22px;
  background-color: #ffffff;
  border: 3px solid #bda896;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: all 0.15s ease;
}

.area-option-checkbox:hover input ~ .checkbox-custom {
  background-color: #efebe9;
  border-color: #8d6e63;
}

.area-option-checkbox input:checked ~ .checkbox-custom {
  background-color: #ffb74d;
  border-color: #f57c00;
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.area-option-checkbox input:checked ~ .checkbox-custom:after {
  display: block;
}

/* Contenedor del tablero */
.area-grid-container {
  background: #f7fcff;
  border: 4px solid #bfe0f7;
  border-radius: 28px;
  padding: 16px;
  box-shadow:
    0 10px 0 #b3d6f0,
    inset 0 4px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  position: relative;
  transition: all 0.3s ease;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 0;
  background: #ffffff;
  border: 2px solid #bce1fb;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.area-cell {
  background: #ffffff;
  border: 1px solid rgba(188, 225, 251, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.area-cell:hover {
  background-color: #f0f8ff;
}

/* Modificadores de cuadrícula visibles/invisibles */
.area-grid-container.has-grid .area-cell {
  border: 1px dashed rgba(188, 225, 251, 0.8);
}

.area-grid-container.is-locked .area-cell {
  cursor: default;
}

.area-grid-container.is-locked .area-cell:hover {
  background-color: transparent !important;
}

/* Medidas en la celda */
.area-cell-measure {
  font-size: 0;
  font-weight: 1000;
  color: rgba(16, 38, 95, 0.85);
  pointer-events: none;
  user-select: none;
  z-index: 5;
}

.area-grid-container.has-measures .area-cell.is-occupied .area-cell-measure {
  font-size: clamp(1rem, 2vw, 1.4rem);
}

/* Estados de los bloques pintados (Colores Pastel) */
.area-cell.is-occupied {
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Colores de bloques colocados */
.pastel-red { background: linear-gradient(135deg, #ffa8ab 0%, #ff7e82 100%); }
.pastel-blue { background: linear-gradient(135deg, #9fd2ff 0%, #76bcff 100%); }
.pastel-green { background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%); }
.pastel-yellow { background: linear-gradient(135deg, #ffe082 0%, #ffd54f 100%); }
.pastel-purple { background: linear-gradient(135deg, #ddd2fe 0%, #c4b5fd 100%); }
.pastel-orange { background: linear-gradient(135deg, #ffcc80 0%, #ffb74d 100%); }

/* Bordes consolidados para unir celdas del mismo bloque visualmente */
.area-cell.is-occupied.border-top { border-top: 3px solid rgba(0, 0, 0, 0.25) !important; }
.area-cell.is-occupied.border-bottom { border-bottom: 3px solid rgba(0, 0, 0, 0.25) !important; }
.area-cell.is-occupied.border-left { border-left: 3px solid rgba(0, 0, 0, 0.25) !important; }
.area-cell.is-occupied.border-right { border-right: 3px solid rgba(0, 0, 0, 0.25) !important; }

/* Teclado personalizado para el Juego 4 */
.play-keypad--area {
  display: block !important;
  margin-top: 24px;
}

.area-toolbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.area-blocks-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: #fbfbfc;
  border: 3px solid #e1e4eb;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 5px 0 #e1e4eb;
}

.area-block-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
  min-height: 82px;
  padding: 10px;
  border: 3px solid #c9d0df;
  background: #ffffff;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 #c9d0df;
  transition: all 0.15s ease;
}

.area-block-select-btn:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c9d0df;
  border-color: #9aa8c2;
  background-color: #f7f9fc;
}

.area-block-select-btn.is-selected {
  border-color: #ff9800 !important;
  background-color: #fffde7 !important;
  box-shadow:
    0 4px 0 #ef6c00,
    0 0 12px rgba(255, 152, 0, 0.2);
  outline: 4px solid rgba(255, 152, 0, 0.35);
  animation: mini-bounce 1s infinite alternate;
}

.area-block-select-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 0 #c9d0df !important;
}

/* Previsualización geométrica de los bloques de colores en el botón */
.area-block-preview {
  background: #ff5252;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3);
}

.area-block-preview--1x1 {
  width: 24px;
  height: 24px;
  background-color: #ff8f94;
}

.area-block-preview--1x2 {
  width: 44px;
  height: 24px;
  background-color: #76bcff;
}

.area-block-preview--2x1 {
  width: 24px;
  height: 44px;
  background-color: #6ee7b7;
}

.area-block-preview--2x2 {
  width: 44px;
  height: 44px;
  background-color: #ffd54f;
}

.area-block-preview--5x1 {
  width: 44px;
  height: 12px;
  background-color: #c4b5fd;
}

.area-block-preview--1x5 {
  width: 12px;
  height: 44px;
  background-color: #c4b5fd;
}

.area-block-preview--5x2 {
  width: 44px;
  height: 24px;
  background-color: #ffb74d;
}

.area-block-preview--2x5 {
  width: 24px;
  height: 44px;
  background-color: #ffb74d;
}

.area-block-preview--5x5 {
  width: 44px;
  height: 44px;
  background-color: #ff7e82;
}

.area-block-preview--10x10 {
  width: 54px;
  height: 54px;
  background-color: #76bcff;
}

.area-block-preview--eraser {
  font-size: 1.6rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.area-eraser-btn.is-selected {
  border-color: #ec407a !important;
  background-color: #fce4ec !important;
  box-shadow:
    0 4px 0 #c2185b,
    0 0 12px rgba(236, 64, 122, 0.2);
  outline: 4px solid rgba(236, 64, 122, 0.35);
}

.area-block-label {
  font-size: 0.88rem;
  font-weight: 1000;
  color: #10265f;
}

/* Acciones inferiores (Borrar todo / Comprobar) */
.area-actions-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.area-action-palette-btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 1000;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.area-clear-btn {
  background: #ffffff;
  color: #d81b60;
  border: 3px solid #ffccd8;
  box-shadow: 0 6px 0 #ffccd8;
}

.area-clear-btn:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #ffccd8;
  background-color: #fff8f9;
}

.area-check-btn {
  background: linear-gradient(180deg, #7ad64f 0%, #47b732 100%);
  color: #ffffff;
  box-shadow:
    0 6px 0 #318a20,
    0 10px 20px rgba(71, 183, 50, 0.2);
}

.area-check-btn:hover:not(:disabled) {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #318a20,
    0 8px 14px rgba(71, 183, 50, 0.18);
}

.area-action-palette-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* =========================================================
   ANIMACIONES ESPECÍFICAS
   ========================================================= */

@keyframes mini-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.wobble-anim {
  animation: wobble 0.45s ease;
}

@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px) rotate(-0.5deg); }
  80% { transform: translateX(2px) rotate(0.5deg); }
}

.bounce-anim {
  animation: support-bounce 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) alternate;
}

@keyframes support-bounce {
  0% { transform: scale(0.8) translateY(10px); opacity: 0.7; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Confeti CSS */
.area-confeti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  top: -10px;
  z-index: 100;
  pointer-events: none;
  animation: confeti-caer 3s linear forwards;
}

@keyframes confeti-caer {
  0% {
    top: -10px;
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    top: 100vh;
    transform: translateX(120px) rotate(720deg);
    opacity: 0;
  }
}

/* =========================================================
   ADAPTABILIDAD RESPONSIVE - JUEGO 4
   ========================================================= */

@media (max-width: 1000px) {
  .area-board-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .area-view-options {
    flex-direction: row;
    justify-content: center;
    padding: 12px;
    gap: 20px;
  }

  .area-view-options h3 {
    margin: 0;
    padding: 0;
    border: none;
  }
}

@media (max-width: 500px) {
  .area-builder-header {
    flex-direction: column;
    gap: 10px;
  }

  .area-goal-box,
  .area-current-box {
    width: 100%;
    min-width: 0;
  }

  .area-blocks-palette {
    gap: 8px;
    padding: 8px;
  }

  .area-block-select-btn {
    min-width: 68px;
    min-height: 68px;
  }

  .area-block-preview--1x1 { width: 18px; height: 18px; }
  .area-block-preview--1x2 { width: 34px; height: 18px; }
  .area-block-preview--2x1 { width: 18px; height: 34px; }
  .area-block-preview--2x2 { width: 34px; height: 34px; }
  .area-block-preview--5x1 { width: 34px; height: 10px; }
  .area-block-preview--1x5 { width: 10px; height: 34px; }
  .area-block-preview--5x2 { width: 34px; height: 18px; }
  .area-block-preview--2x5 { width: 18px; height: 34px; }
  .area-block-preview--5x5 { width: 34px; height: 34px; }
  .area-block-preview--10x10 { width: 44px; height: 44px; }

  .area-actions-palette {
    flex-direction: column;
    width: 100%;
  }

  .area-action-palette-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   JUEGO 5: JUNTA Y SEPARA - ESTILOS ADICIONALES (PHET STYLE)
   ========================================================= */

.junta-separa-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.junta-separa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-bottom: 5px;
  padding: 0 10px;
}

.junta-separa-enunciado {
  margin: 0;
  color: #10265f;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 1000;
  letter-spacing: -1px;
}

.junta-separa-goal-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #ec407a 0%, #d81b60 100%);
  color: #ffffff;
  border: 3px solid #c2185b;
  border-radius: 20px;
  padding: 8px 24px;
  box-shadow: 0 5px 0 #c2185b;
}

.junta-separa-goal-badge span {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.junta-separa-goal-badge strong {
  font-size: 2.2rem;
  font-weight: 1000;
  line-height: 1.1;
}

/* Tablero de cartas estilo pizarra escolar premium */
.junta-separa-board {
  width: 100%;
  min-height: 440px;
  background-color: #1b382b; /* verde pizarra rico y oscuro */
  border: 12px solid #5d4037; /* marco grueso de madera real de nogal */
  border-radius: 24px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    0 12px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.junta-separa-board.board-pulse {
  animation: board-pulse-keyframes 0.4s ease;
}

@keyframes board-pulse-keyframes {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); background-color: #1e3f31; }
  100% { transform: scale(1); }
}

.junta-separa-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  width: 100%;
}

.junta-separa-empty-board {
  font-size: 1.25rem;
  font-weight: 1000;
  color: #a5d6a7;
  text-align: center;
}

/* Diseño de la Carta Matemática */
.math-card {
  width: 140px;
  min-height: 200px;
  background: #ffffff;
  border: 4px solid #bce1fb;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 6px 0 #b3d6f0,
    0 10px 20px rgba(16, 38, 95, 0.05);
  cursor: grab;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  user-select: none;
}

.math-card:hover:not(.is-locked):not(.is-dragging) {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 #b3d6f0,
    0 14px 24px rgba(16, 38, 95, 0.08);
  border-color: #79c5ff;
}

/* Estado de Arrastre Premium */
.math-card.is-dragging {
  transform: scale(1.06) rotate(2.5deg) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3) !important;
  z-index: 9999 !important;
  cursor: grabbing !important;
  opacity: 0.95;
  border-color: #4fc3f7 !important;
}

.math-card.is-selected {
  border-color: #ff9800 !important;
  box-shadow:
    0 8px 0 #ef6c00,
    0 0 16px rgba(255, 152, 0, 0.35) !important;
  animation: card-selected-bounce 0.8s infinite alternate ease-in-out;
  outline: 4px solid rgba(255, 152, 0, 0.3);
  z-index: 10;
}

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

.math-card.is-locked {
  cursor: default;
  pointer-events: none;
}

/* Parte superior de la carta (Separador) */
.math-card-top {
  padding: 6px 4px;
  border-bottom: 2px dashed #bce1fb;
  background-color: #f7fcff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  transition: all 0.2s ease;
  cursor: ns-resize; /* indica separación arriba/abajo */
}

.math-card-top:hover {
  background-color: #e3f2fd;
  border-bottom-color: #64b5f6;
}

/* Tijera emoji sutil con animación hover */
.math-card-scissors {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.math-card-top:hover .math-card-scissors {
  transform: scale(1.25) rotate(-15deg);
}

/* Cuerpo de la carta (Seña y Badge) */
.math-card-body {
  flex: 1;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  cursor: grab;
}

/* Cuerpo completo para cartas inseparables (Valor 1) */
.math-card-body.math-card-body-full {
  height: 100%;
  border-radius: 16px;
  background: #ffffff;
}

.math-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(180deg, #1e8af0 0%, #167ee6 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 1000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.math-card-sign-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  transform: scale(1.3); /* Recorta los lados y se ve más grande */
  filter: drop-shadow(0 4px 6px rgba(16, 38, 95, 0.06));
  -webkit-user-drag: none;
  user-select: none;
}

/* Caja inferior del juego 5 */
.play-keypad--junta-separa {
  display: block !important;
  margin-top: 24px;
}

.junta-separa-toolbox {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.junta-separa-instruction-text {
  margin: 0;
  padding: 14px 18px;
  background: #f1f8e9;
  border: 3px solid #c5e1a5;
  border-radius: 20px;
  color: #33691e;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 4px 0 #c5e1a5;
}

.junta-separa-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Animaciones específicas del juego 5 */
.card-pop-anim {
  animation: card-pop-keyframes 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes card-pop-keyframes {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Adaptabilidad responsive */
@media (max-width: 500px) {
  .junta-separa-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .junta-separa-goal-badge {
    width: 100%;
  }

  .junta-separa-board {
    min-height: 280px;
    padding: 16px;
  }

  .math-card {
    width: 100px;
    min-height: 155px;
  }

  .math-card-sign-img {
    width: 72px;
    height: 72px;
  }

  .junta-separa-actions {
    flex-direction: column;
    width: 100%;
  }

  .junta-separa-actions button {
    width: 100%;
    justify-content: center;
  }
}



/* =========================================================
   AMPLIACIÓN DE NIVELES - JUEGOS 1, 2 Y 3
   ========================================================= */

.operation-sign-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.operation-sign-question {
  margin: 0;
  color: #10265f;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 1000;
  text-align: center;
}

.operation-sign-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
}

.operation-sign-stage.has-objects .play-number-block {
  min-height: 220px;
}

.operation-object-group {
  width: clamp(130px, 18vw, 210px);
  min-height: 118px;
  padding: 12px;
  border-radius: 24px;
  background: #fff7df;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.play-number-blue .operation-object-group {
  background: #e7f3ff;
}

.monster-compare-stage {
  width: 100%;
  text-align: center;
}

.monster-compare-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.monster-compare-group {
  min-width: 0;
  padding: 16px;
  border-radius: 24px;
  background: #f8fbff;
  border: 3px solid #dce9ff;
}

.monster-side-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #7b4fd6;
  color: #ffffff;
  font-weight: 1000;
}

.monster-window-grid--small {
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 8px;
}

.monster-window-grid--small .monster-window-asset {
  width: min(100%, 130px);
}

.monster-compare-vs {
  color: #ff9f1c;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 1000;
}

.play-keypad--compare {
  width: min(760px, 100%);
  margin: 28px auto 0;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.monster-compare-option,
.sign-image-option {
  border: 4px solid #b9dcff;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f5ff 100%);
  color: #116cd5;
  cursor: pointer;
  box-shadow: 0 7px 0 #b7d8f6, 0 14px 24px rgba(17, 108, 213, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.monster-compare-option {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-size: 1.25rem;
}

.monster-compare-arrow {
  font-size: 2.8rem;
  line-height: 1;
}

.monster-compare-option:hover:not(:disabled),
.sign-image-option:hover:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 4px 0 #b7d8f6, 0 10px 18px rgba(17, 108, 213, 0.08);
}

.monster-compare-option.is-correct,
.sign-image-option.is-correct {
  background: linear-gradient(180deg, #89dc55 0%, #55c441 100%);
  border-color: #48b935;
  color: #ffffff;
  box-shadow: 0 7px 0 #35a228, 0 14px 22px rgba(77, 190, 55, 0.18);
}

.monster-compare-option.is-wrong,
.sign-image-option.is-wrong {
  background: linear-gradient(180deg, #ff8f8f 0%, #f05454 100%);
  border-color: #dd4444;
  color: #ffffff;
  box-shadow: 0 7px 0 #bd3030, 0 14px 22px rgba(240, 84, 84, 0.18);
}

.monster-compare-option.is-selected,
.sign-image-option.is-selected {
  outline: 5px solid rgba(255, 195, 36, 0.85);
  outline-offset: 3px;
}

.monster-compare-option:disabled,
.sign-image-option:disabled {
  cursor: default;
}

.monster-memory-countdown {
  width: fit-content;
  margin: -12px auto 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff0c7;
  color: #9a6200;
  font-weight: 1000;
}

.monster-memory-stage .monster-window-monster {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.monster-memory-stage.is-hidden-memory .monster-window-monster {
  opacity: 0;
  transform: translateX(-50%) scale(0.25);
}

.monster-memory-stage.is-hidden-memory .monster-memory-countdown {
  background: #e9ddff;
  color: #6f34bf;
}

.number-to-sign-stage,
.sign-memory-stage {
  width: 100%;
  text-align: center;
}

.number-to-sign-number {
  width: clamp(150px, 24vw, 250px);
  aspect-ratio: 1;
  margin: 10px auto 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff3bd 0%, #ffd75a 100%);
  border: 5px solid #ffc21e;
  color: #10265f;
  display: grid;
  place-items: center;
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 10px 0 #efa800, 0 20px 30px rgba(239, 168, 0, 0.16);
}

.number-to-sign-help {
  margin: 0;
  color: #53617d;
  font-size: 1.05rem;
  font-weight: 800;
}

.play-keypad--sign-images {
  width: min(760px, 100%);
  margin: 28px auto 0;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.sign-image-option {
  min-height: 180px;
  padding: 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 8px;
}

.sign-image-option img {
  width: 130px;
  height: 130px;
  border-radius: 20px;
  object-fit: cover;
  transform: scale(1.02);
}

.sign-image-option span {
  font-size: 1rem;
  font-weight: 1000;
}

.sign-memory-image-wrap {
  position: relative;
  width: clamp(190px, 30vw, 290px);
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 30px;
  overflow: hidden;
  background: #eaf7dd;
  border: 5px solid #9ad37a;
  box-shadow: 0 10px 0 #75b95a, 0 20px 30px rgba(63, 135, 48, 0.14);
}

.sign-memory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sign-memory-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #a678db 0%, #7b4fd6 100%);
  color: #ffffff;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 1000;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sign-memory-stage.is-hidden-memory .sign-memory-image {
  opacity: 0;
  transform: scale(0.6);
}

.sign-memory-stage.is-hidden-memory .sign-memory-cover {
  opacity: 1;
  transform: scale(1);
}

.play-keypad--memory-numbers {
  width: min(620px, 100%);
  margin: 28px auto 0;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

@media (max-width: 820px) {
  .monster-compare-groups {
    grid-template-columns: 1fr;
  }

  .monster-compare-vs {
    transform: rotate(90deg);
  }

  .monster-window-grid--small {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
}

@media (max-width: 620px) {
  .operation-sign-row {
    gap: 10px;
  }

  .operation-sign-stage .play-number-block {
    width: min(130px, 38vw);
  }

  .operation-object-group {
    width: min(125px, 36vw);
    min-height: 96px;
    font-size: 1.8rem;
  }

  .play-keypad--compare,
  .play-keypad--sign-images,
  .play-keypad--memory-numbers {
    grid-template-columns: 1fr;
    width: min(340px, 100%);
  }

  .sign-image-option {
    min-height: 150px;
  }

  .sign-image-option img {
    width: 110px;
    height: 110px;
  }

  .monster-window-grid--small {
    grid-template-columns: repeat(3, minmax(60px, 1fr));
  }
}

/* Tutorial dentro del nivel */
.play-tutorial-panel {
  width: min(1040px, calc(100% - 28px));
  margin: -8px auto 24px;
  position: relative;
  z-index: 2;
}

.play-tutorial-details {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(60, 70, 90, 0.1);
  overflow: hidden;
}

.play-tutorial-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  color: #163a63;
  font-weight: 1000;
  font-size: 1.08rem;
  list-style: none;
}

.play-tutorial-summary::-webkit-details-marker {
  display: none;
}

.play-tutorial-summary::after {
  content: "▼";
  margin-left: auto;
  color: #5d6d82;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.play-tutorial-details[open] .play-tutorial-summary::after {
  transform: rotate(180deg);
}

.play-tutorial-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #fff4d8;
  box-shadow: inset 0 -3px 0 rgba(155, 107, 0, 0.12);
}

.play-tutorial-content {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(280px, 1.25fr);
  align-items: center;
  gap: 20px;
  padding: 0 22px 22px;
}

.play-tutorial-content p {
  margin: 0;
  color: #5d6d82;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.play-tutorial-video {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: #10265f;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 22px rgba(16, 38, 95, 0.16);
}

@media (max-width: 760px) {
  .play-tutorial-content {
    grid-template-columns: 1fr;
  }

  .play-tutorial-summary {
    padding: 14px 16px;
  }
}


/* FINAL OVERRIDES PARA EL POPUP */
.tutorial-modal-content {
  width: 90vw !important;
  max-width: 1400px !important;
  height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
}
.tutorial-modal-content p {
  font-size: 1.4rem !important;
  text-align: center !important;
  font-weight: bold !important;
  margin-bottom: 12px !important;
}
.play-tutorial-video {
  flex: 1 !important;
  max-height: none !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
