/* ── Tutorial overlay ── */
#tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 90px 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

#tut-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#tut-card {
  width: 300px;
  background: rgba(19, 41, 75, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(44, 78, 138, 0.5);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#tut-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 0;
}

#tut-step-label {
  font-size: .65rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#tut-skip-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: .7rem;
  cursor: pointer;
  padding: 2px 4px;
}

#tut-skip-btn:hover {
  color: var(--text);
}

#tut-body {
  padding: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#tut-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

#tut-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

#tut-desc {
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

#tut-desc strong {
  color: var(--gold);
  font-weight: 600;
}

#tut-dots-row {
  display: flex;
  gap: 5px;
  padding: 0 16px 8px;
}

.tut-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: background .2s, transform .2s;
}

.tut-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

#tut-bottom {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
}

#tut-prev-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: var(--text);
  font-size: .75rem;
  padding: 6px 11px;
  cursor: pointer;
}

#tut-next-btn {
  flex: 1;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

#tut-next-btn:hover {
  filter: brightness(1.15);
}

/* Pulsing ring on highlighted element */
.tut-ring {
  outline: 2.5px solid var(--accent) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(255, 107, 53, .25), 0 0 16px rgba(255, 107, 53, .35) !important;
  animation: tut-pulse 1.4s ease-in-out infinite;
  position: relative;
  z-index: 2999;
}

@keyframes tut-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(255, 107, 53, .25), 0 0 16px rgba(255, 107, 53, .35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 107, 53, .12), 0 0 24px rgba(255, 107, 53, .5);
  }
}
