/* assets/css/pages/primitiva.css */

body[data-game="primitiva"] {
  --color-acento: var(--color-primitiva);

  --reintegro-size-min: 50px;
  --reintegro-size-max: 58px;

  --reintegro-justify: center;
}

/* =====
   HERO
   ===== */

.game-hero {
  text-align: center;
  margin: 2.2rem 0 2.8rem;
}

.game-hero__title {
  font-size: clamp(2.4rem, 2.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.game-hero__subtitle {
  margin: 0.9rem auto 1.2rem;
  max-width: 72ch;
  color: var(--color-texto-secundario);
  font-size: clamp(1.4rem, 1.2vw, 1.6rem);
  line-height: 1.55;
}

.game-hero__accent {
  width: 52px;
  height: 4px;
  border-radius: 999px;
  margin: 0 auto;
  background: var(--color-acento);
  box-shadow: 0 8px 18px
    color-mix(in srgb, var(--color-acento) 18%, transparent);
}

/* ==============================
   EXPLICACION (preview + modal)
   ============================== */

.game-hero__explain {
  margin: 1.6rem auto 0;
  max-width: 74ch;
  text-align: left;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.game-hero__explain p {
  margin: 0;
}

.game-hero__explain p + p {
  margin-top: 0.9rem;
}

.game-hero__list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.game-hero__list li {
  color: var(--color-texto-secundario);
  line-height: 1.6;
  font-size: 1.45rem;
}

/* =============================
   LAYOUT GENERAL DE LA PÁGINA
   ============================= */

.game-layout {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.card-title {
  font-size: var(--texto-18);
  margin-bottom: 1.2rem;
}

.card-subtitle {
  margin-top: 1.8rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-texto-secundario);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reintegro-panel {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--color-borde-1);
}

.sim-panel {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--color-borde-1);
}

.sim-hint {
  margin-top: 1.1rem;
  color: var(--color-texto-secundario);
  font-size: 1.35rem;
  line-height: 1.4;
}

#results {
  margin-top: 2.4rem;
}

/* ======================
   RESPONSIVE - TABLETS
   ====================== */

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .game-layout {
    gap: 1.4rem;
  }

  .col-stack {
    gap: 1.4rem;
  }
}

@media (max-width: 768px) {
  .game-hero {
    margin: 1.8rem 0 2.4rem;
  }

  .game-hero__title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }

  .game-hero__subtitle {
    font-size: clamp(1.35rem, 3.5vw, 1.55rem);
  }

  .game-hero__accent {
    width: 45px;
    height: 3.5px;
  }

  .game-hero__explain {
    margin-top: 1.4rem;
  }

  .game-layout {
    gap: 1.3rem;
  }

  .col-stack {
    gap: 1.3rem;
  }

  .card-title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .card-subtitle {
    margin-top: 1.6rem;
    font-size: 1.3rem;
  }

  .reintegro-panel,
  .sim-panel {
    margin-top: 1.3rem;
    padding-top: 1.3rem;
  }

  .sim-hint {
    font-size: 1.3rem;
  }

  #results {
    margin-top: 2rem;
  }
}

/* ======================
   RESPONSIVE - MOVILES
   ====================== */

@media (max-width: 560px) {
  .game-hero {
    margin: 1.6rem 0 2rem;
  }

  .game-hero__title {
    font-size: clamp(2rem, 5.5vw, 2.6rem);
  }

  .game-hero__subtitle {
    font-size: clamp(1.3rem, 3.8vw, 1.5rem);
    margin: 0.8rem auto 1rem;
  }

  .game-hero__accent {
    width: 40px;
    height: 3px;
  }

  .game-hero__explain {
    margin-top: 1.2rem;
    padding: 0;
  }

  .game-hero__list {
    padding-left: 1.2rem;
    gap: 0.7rem;
  }

  .game-hero__list li {
    font-size: 1.35rem;
  }

  .game-layout {
    gap: 1.2rem;
  }

  .col-stack {
    gap: 1.2rem;
  }

  .card-title {
    font-size: 1.65rem;
  }

  .card-subtitle {
    margin-top: 1.4rem;
    font-size: 1.25rem;
  }

  .reintegro-panel,
  .sim-panel {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }

  .sim-hint {
    margin-top: 1rem;
    font-size: 1.25rem;
  }

  #results {
    margin-top: 1.8rem;
  }
}

@media (max-width: 420px) {
  .game-hero {
    margin: 1.4rem 0 1.8rem;
  }

  .game-hero__title {
    font-size: clamp(1.9rem, 6vw, 2.4rem);
  }

  .game-hero__subtitle {
    font-size: clamp(1.25rem, 4vw, 1.45rem);
  }

  .game-hero__list li {
    font-size: 1.3rem;
  }

  .card-title {
    font-size: 1.6rem;
  }

  .card-subtitle {
    font-size: 1.2rem;
  }

  .sim-hint {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .game-hero__title {
    font-size: clamp(1.85rem, 6.5vw, 2.2rem);
  }

  .game-hero__subtitle {
    font-size: 1.2rem;
  }

  .game-hero__accent {
    width: 36px;
  }

  .game-hero__list li {
    font-size: 1.25rem;
  }

  .card-title {
    font-size: 1.55rem;
  }
}
