/* KICKOFF · Tutoriel rapide (3 ecrans a swiper) · DA bleue plein ecran.
   Reutilise les tokens (var(--red)=bleu principal, var(--gold), var(--disp)).
   S'affiche par-dessus toute l'app (header + tabbar compris). */

.ko-tuto {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--txt);
  background:
    radial-gradient(120% 80% at 50% -8%, rgba(37,99,235,.30), transparent 60%),
    radial-gradient(90% 70% at 88% 108%, rgba(30,58,138,.42), transparent 62%),
    linear-gradient(180deg, #0B0B0E, var(--ink));
  padding: max(14px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  animation: koTutoIn .42s cubic-bezier(.16,1,.3,1) both;
}
@keyframes koTutoIn { from { opacity: 0; } to { opacity: 1; } }

/* filigrane diagonal : le slash signature qui traverse l'ecran */
.ko-tuto-wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  font-size: 52vh;
  line-height: 1;
  color: rgba(59,130,246,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-8deg);
  user-select: none;
}

/* barre haute : wordmark + Passer */
.ko-tuto-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 2px;
}
.ko-tuto-bar .wordmark { font-size: 17px; letter-spacing: .02em; }
.ko-tuto-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11.5px;
  cursor: pointer;
  padding: 8px 6px;
  transition: color .16s ease;
}
.ko-tuto-skip:hover { color: var(--txt); }

/* piste horizontale des 3 ecrans */
.ko-tuto-viewport {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow: hidden;
}
.ko-tuto-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform .52s cubic-bezier(.16,1,.3,1);
  touch-action: pan-y;
  will-change: transform;
}
.ko-tuto-track.dragging { transition: none; }

.ko-tuto-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 30px 8px;
  gap: 22px;
}

/* scene illustree : anneau lumineux + picto SVG */
.ko-tuto-art {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  color: var(--red-glow);
}
.ko-tuto-art svg { width: 92px; height: 92px; position: relative; z-index: 2; filter: drop-shadow(0 6px 18px rgba(37,99,235,.5)); }
.ko-tuto-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.34), transparent 66%);
  animation: koTutoHalo 3.4s ease-in-out infinite;
}
.ko-tuto-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,.35);
  box-shadow: inset 0 0 30px rgba(37,99,235,.25);
}
.ko-tuto-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  animation: koTutoSpin 5.5s linear infinite;
}
@keyframes koTutoHalo { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes koTutoSpin { to { transform: rotate(360deg); } }

.ko-tuto-step {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--gold);
}
.ko-tuto-step i { color: var(--red-glow); font-style: normal; padding: 0 .12em; }

.ko-tuto-title {
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  font-size: clamp(27px, 8.4vw, 38px);
  line-height: 1.02;
  max-width: 12ch;
}
.ko-tuto-title .sl { color: var(--red); text-shadow: 0 0 14px rgba(37,99,235,.85); }

.ko-tuto-copy {
  color: #C7C7CF;
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 30ch;
}
.ko-tuto-copy b { color: var(--txt); font-weight: 700; }

/* mini-liste des jeux (ecran 2) en motif slash, jamais de boite a icone */
.ko-tuto-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  max-width: 30ch;
}
.ko-tuto-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--disp);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  color: var(--txt);
  padding: 7px 13px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(37,99,235,.08);
}
.ko-tuto-list li span { color: var(--red-glow); font-style: normal; }

/* pied : points de pagination + bouton */
.ko-tuto-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 4px 24px 6px;
}
.ko-tuto-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}
.ko-tuto-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: width .3s cubic-bezier(.16,1,.3,1), background .3s ease;
}
.ko-tuto-dot.on {
  width: 26px;
  background: linear-gradient(90deg, var(--red-glow), var(--red));
  box-shadow: 0 0 12px rgba(37,99,235,.7);
}
.ko-tuto-cta { width: 100%; max-width: 340px; }

/* accessibilite : on coupe transitions et animations decoratives */
@media (prefers-reduced-motion: reduce) {
  .ko-tuto,
  .ko-tuto-track { animation: none; transition: none; }
  .ko-tuto-halo,
  .ko-tuto-ring::after { animation: none; }
}
