.tutorialBtn {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.tutorialLayer {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
}

.tutorialLayer.show {
  display: block;
}

.tutorialHighlight {
  position: fixed;
  z-index: 1;
  top: -100px;
  left: -100px;
  width: 10px;
  height: 10px;
  border-radius: 14px;
  outline: 3px solid var(--game-bronze, #d4af37);
  outline-offset: 3px;
  box-shadow: 0 0 0 2000px rgba(4, 7, 11, .68);
  opacity: 0;
  transition: top .22s ease, left .22s ease, width .22s ease, height .22s ease, opacity .22s ease;
  pointer-events: none;
}

.tutorialBox {
  position: fixed;
  z-index: 2;
  top: -1000px;
  left: -1000px;
  width: min(340px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  max-height: min(320px, calc(100svh - 24px));
  overflow: auto;
  padding: 18px 20px 16px;
  color: #dbe4ee;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 16px;
  background: linear-gradient(180deg, #141c28, #101722);
  box-shadow: 0 18px 48px rgba(2, 6, 10, .6);
}

.tutorialStep {
  margin: 0 0 6px;
  color: rgba(212, 175, 55, .9);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tutorialBox h2 {
  margin: 0 0 8px;
  color: #f0e6cd;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.tutorialBox p#tutorialBodyText {
  margin: 0 0 16px;
  color: var(--game-muted, #9aa8b8);
  font-size: 13px;
  line-height: 1.45;
}

.tutorialActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tutorialNav {
  display: flex;
  gap: 8px;
}

.tutorialActions button {
  padding: 9px 14px;
  border-radius: 10px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#tutorialSkip {
  color: var(--game-muted, #9aa8b8);
  border: 1px solid rgba(148, 163, 184, .3);
  background: transparent;
}

#tutorialSkip:hover {
  color: #f0e6cd;
}

#tutorialBack {
  color: #e8eef5;
  border: 1px solid rgba(148, 163, 184, .35);
  background: transparent;
}

#tutorialBack:disabled {
  opacity: .4;
  cursor: not-allowed;
}

#tutorialNext {
  color: #141c28;
  border: 1px solid var(--game-gold-deep, #a8851f);
  background: linear-gradient(180deg, #e5c65c, #d4af37);
}

#tutorialNext:hover {
  filter: brightness(1.06);
}

#tutorialBox:focus-visible,
.tutorialActions button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .85);
  outline-offset: 2px;
}

@media (max-width: 390px) {
  .tutorialBox {
    padding: 15px 16px 14px;
  }

  .tutorialBox h2 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tutorialHighlight {
    transition: none;
  }
}
