#mobile-guide-root {
  position: fixed;
  z-index: 25;
  inset: calc(env(safe-area-inset-top) + 84px) 12px auto;
  pointer-events: none;
}

#mobile-guide-root[hidden] {
  display: none;
}

.mobile-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  color: #fff7e6;
  background: rgb(29 13 7 / 94%);
  border: 1px solid rgb(245 158 11 / 65%);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 38%);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.mobile-guide__body {
  min-width: 0;
}

.mobile-guide__step {
  display: block;
  margin-bottom: 3px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-guide__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.mobile-guide__description {
  margin: 3px 0 0;
  color: #f5e8d0;
  font-size: 12px;
  line-height: 1.45;
}

.mobile-guide__close {
  align-self: start;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fde68a;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 12px;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.mobile-guide__close:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.mobile-guide__progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.mobile-guide__progress span {
  height: 3px;
  background: rgb(255 255 255 / 20%);
  border-radius: 999px;
}

.mobile-guide__progress span[data-active="true"] {
  background: #fbbf24;
}

@media (min-width: 641px) {
  #mobile-guide-root {
    display: none !important;
  }
}

@media (max-width: 360px) {
  #mobile-guide-root {
    inset-inline: 8px;
  }

  .mobile-guide {
    padding: 10px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-guide,
  .mobile-guide * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
