/* ============================================================
   TERRA NOVA — FIRST-LOGIN TOUR
   ============================================================ */

.tut {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 1.25rem;
}

.tut__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 5, 10, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tut__card {
  position: relative; z-index: 1;
  width: min(100%, 600px);
  display: flex; flex-direction: column; gap: 1.2rem;
  background: rgba(6, 11, 20, .96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  max-height: calc(100svh - 2.5rem);
  overflow-y: auto;
}

.tut__head { display: flex; align-items: flex-start; gap: 1rem; }
.tut__kicker {
  margin: 0 0 .35rem; font-size: .56rem; letter-spacing: .22em;
  color: var(--solar); text-transform: uppercase;
}
.tut__title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.05;
}
.tut__x {
  margin-left: auto; flex: 0 0 auto;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  color: var(--dim); font-size: 1rem; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.tut__x:hover { color: var(--paper); border-color: var(--ice); }

.tut__track { display: grid; gap: 1.2rem; }
.tut__step { display: grid; gap: .55rem; }
.tut__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; color: var(--mint);
  background: linear-gradient(135deg, rgba(155, 215, 255, .16), rgba(127, 240, 192, .12));
  border: 1px solid var(--line);
}
.tut__step h3 {
  margin: 0; font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
}
.tut__step p { margin: 0; color: var(--dim); font-size: .95rem; line-height: 1.6; }

/* stepped mode: JS reveals one step at a time */
.tut--stepped .tut__track { display: block; }
.tut--stepped .tut__step { display: none; }
.tut--stepped .tut__step.is-active { display: grid; animation: tut-in .4s var(--ease); }
@keyframes tut-in { from { opacity: 0; transform: translateY(8px); } }

.tut__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.tut__dots { display: flex; gap: .4rem; }
.tut__dot {
  width: 7px; height: 7px; padding: 0; border-radius: 99px;
  background: var(--line-strong); border: 0; cursor: pointer;
  transition: background .3s, width .3s;
}
.tut__dot.is-active { background: var(--mint); width: 18px; }
.tut__nav { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.tut__counter { color: var(--mute); font-size: .58rem; letter-spacing: .16em; }

@media (max-width: 640px) {
  .tut { padding: .9rem; place-items: end center; }
  .tut__card { padding: 1.3rem 1.2rem 1.1rem; max-height: calc(100svh - 1.8rem); }
  .tut__foot { flex-wrap: wrap; }
  .tut__nav { flex-wrap: wrap; justify-content: flex-end; }
}
