/*
 * ==================================================================
 * HOJA DE ESTILOS 4/4 · INFINITE, TUTORIAL Y FAQ
 * Modo infinito, marcas de nivel, tutorial, preguntas frecuentes y números de daño.
 * El orden de los archivos importa (cascada): base → screens → game-layout → extras.
 * ==================================================================
 */

.infg {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 14px;
}

.ic {
  text-align: center;
  cursor: pointer;
  margin: 0;
  font: inherit;
  color: var(--ink);
}

.ic:hover:not(:disabled) {
  transform: rotate(-1deg);
}

.ic:disabled {
  opacity: .75;
  cursor: not-allowed;
}

.ic .mt {
  margin-bottom: 8px;
}

.sb {
  font-style: normal;
  font-size: .8rem;
  color: #d98a00;
}

.lv.l5 {
  grid-template-columns: repeat(5,1fr);
}

#tp .b {
  flex-wrap: wrap;
}

@media (min-width:760px) {
  .w2 .lv.l5 {
    grid-template-columns: repeat(3,1fr);
  }
}

.hl {
  flex-direction: row;
  flex-wrap: wrap;
  max-width: none;
  margin: 0 0 14px;
}

.hl .bt {
  flex: 1 1 220px;
  width: auto;
}

.tut {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(310px,1fr));
  gap: 14px;
}

.tut .pn {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tut p {
  margin: 0;
}

.tut h3 {
  margin-bottom: 4px;
}

.tl {
  position: relative;
  flex: 0 0 96px;
}

.tl canvas {
  width: 96px;
  height: 84px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: #fbfaf3;
}

.nb {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--acc);
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  font: .95rem var(--h);
}

.dr,
.db {
  font-family: var(--h);
  font-weight: 400;
  -webkit-text-stroke: 1.2px var(--ink);
  paint-order: stroke fill;
}

.dr {
  color: #ff3b3b;
}

.db {
  color: #3b8dff;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq details.pn {
  padding: 0;
  margin: 0;
}

.faq summary {
  cursor: pointer;
  padding: 12px 16px;
  font: 1.15rem var(--h);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

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

.faq details[open] summary {
  border-bottom: 2.5px dashed #262fb066;
}

.faq p {
  margin: 0;
  padding: 12px 16px;
}

/* Menú de pausa reorganizado: continuar / partida / sonido / salir */
.pm-sec {
  border-top: 2.5px dashed #262fb066;
  margin-top: 14px;
  padding-top: 8px;
  text-align: left;
}

.pm-sec h4 {
  margin: 0 0 6px;
  font: 1rem var(--h);
}

.pm-row {
  display: flex;
  gap: 10px;
}

.pm-row .bt {
  flex: 1;
  font-size: 1rem;
  padding: 6px 8px;
}

.pm-sl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.pm-sl span {
  width: 4.5em;
}

.pm-sl input {
  flex: 1;
  accent-color: var(--ink);
}

.pm-restart {
  width: 100%;
  margin-top: 16px;
}

.pm-exit {
  width: 100%;
  margin-top: 10px;
  background: #ff7a6a;
}
