/* 109: tutorial libre — bienvenida, tarjeta por pantalla y botón "?". */

.tut {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tut-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 12, 0.72);
}

.tut-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 520px;
  max-width: 100%;
  max-height: 90%;
  overflow: auto;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 18px;
  background: #0b0e22;
  color: var(--text, #e8ecff);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tut-media {
  flex: 0 0 auto;
}

.tut-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 17px 17px 0 0;
  background: #05060f;
}

.tut-body {
  padding: 20px 24px 4px;
}

.tut-title {
  margin: 0 0 12px;
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.tut-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tut-points li {
  position: relative;
  padding-left: 22px;
  font-size: var(--type-body, 20px);
  line-height: 1.4;
}

.tut-points li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan, #00f0ff);
}

.tut-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 20px;
}

.tut-dots {
  display: flex;
  gap: 8px;
}

.tut-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(232, 236, 255, 0.28);
}

.tut-dot.is-active {
  background: var(--cyan, #00f0ff);
}

.tut-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.tut-skip {
  position: absolute;
  top: 14px;
  right: 52px;
  z-index: 1;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #cfe9ff;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.tut-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 50%;
  background: #0b0e22;
  color: var(--cyan, #00f0ff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tut-help {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.55);
  border-radius: 50%;
  background: #0b0e22;
  color: var(--cyan, #00f0ff);
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.tut-help:hover {
  border-color: var(--cyan, #00f0ff);
}

.cr-battle-head .tut-help,
.cr-lab-head .tut-help {
  align-self: center;
  margin-left: 8px;
}

.cr-exp-title + .tut-help {
  margin: -4px 0 10px;
}

.game-shell[data-layout="mobile"] .tut {
  padding: 16px;
}

/* 115: tarjeta de 380 con scroll solo en el cuerpo */
.game-shell[data-layout="mobile"] .tut-card { width: 100%; max-width: 380px; max-height: 100%; overflow: hidden; }
.game-shell[data-layout="mobile"] .tut-media img { max-height: 180px; }
.game-shell[data-layout="mobile"] .tut-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 4px; }
.game-shell[data-layout="mobile"] .tut-foot { flex: none; padding: 12px 16px 16px; }
.game-shell[data-layout="mobile"] .tut-title { font-size: 22px; }
.game-shell[data-layout="mobile"] .tut-points li { font-size: var(--type-body); }
.game-shell[data-layout="mobile"] .tut-close { width: 40px; height: 40px; }
.game-shell[data-layout="mobile"] .tut-skip { min-height: 40px; top: 10px; right: 56px; }
.game-shell[data-layout="mobile"] .tut-help { width: 40px; height: 40px; font-size: 20px; }
.game-shell[data-layout="mobile"] .tut-host > .tut-help.tut-help-corner { top: 8px; right: 8px; }

html.is-preview .tut {
  display: none;
}

/* 109b: el "?" va arriba a la derecha dentro de cada pantalla (no en el header). */
.tut-host { position: relative; }
.tut-host > .tut-help.tut-help-corner,
#overlay-menu > .tut-help { position: absolute; top: 12px; right: 12px; z-index: 5; pointer-events: auto; }

/* 146a: "No, gracias" del paso de la base; en celular los botones bajan de renglón si no entran. */
.tut-nothanks[hidden] { display: none; }
.tut-foot .tut-actions { flex-wrap: wrap; justify-content: flex-end; }
