.om-welcome[hidden],
.om-tour[hidden] {
  display: none !important;
}

.om-welcome,
.om-tour {
  position: fixed;
  inset: 0;
  z-index: 240;
}

.om-tour {
  pointer-events: none;
}

.om-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.58);
  pointer-events: auto;
}

.om-welcome {
  display: grid;
  place-items: center;
  padding: 24px;
}

.om-welcome-card,
.om-tour-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--font);
}

.om-welcome-card {
  position: relative;
  width: min(420px, 100%);
  padding: 0;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 80px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  overflow: hidden;
}

.om-welcome-preview {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  background: #769656;
  border-bottom: 1px solid var(--line);
}

.om-welcome-body {
  padding: 22px 24px 20px;
}

.om-welcome-kicker,
.om-tour-kicker {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.om-welcome-card h2,
.om-tour-card h2 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--cream);
}

.om-welcome-card p,
.om-tour-card > p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.om-welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.om-welcome-start {
  width: 100%;
  justify-content: center;
}

.om-welcome-skip,
.om-tour-skip,
.om-tour-back,
.om-tour-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.om-welcome-skip {
  text-align: center;
  padding: 4px 0 2px;
}

.om-welcome-skip:hover,
.om-tour-skip:hover,
.om-tour-back:hover,
.om-tour-close:hover {
  color: var(--cream);
}

.om-tour-pane {
  position: fixed;
  z-index: 240;
  background: rgba(9, 9, 11, 0.62);
  pointer-events: auto;
}

.om-tour-ring {
  position: fixed;
  z-index: 241;
  border-radius: 12px;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--gold-bright) 90%, transparent),
    0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent);
  pointer-events: none;
  animation: om-tour-pulse 2s ease-out infinite;
}

.om-tour-ring.is-pill {
  border-radius: 999px;
}

@keyframes om-tour-pulse {
  0% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--gold-bright) 95%, transparent), 0 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent); }
  70% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--gold-bright) 55%, transparent), 0 0 0 12px color-mix(in srgb, var(--gold) 0%, transparent); }
  100% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--gold-bright) 95%, transparent), 0 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent); }
}

.om-tour-card {
  position: fixed;
  z-index: 242;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 50px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.om-tour-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.om-tour-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.om-tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--line-strong);
}

.om-tour-dot.is-done {
  background: var(--gold);
}

.om-tour-dot.is-current {
  width: 16px;
  background: var(--gold);
}

.om-tour-close {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -4px -4px 0 0;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
}

.om-tour-close:hover {
  background: var(--hover-fill);
}

.om-tour-card h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.om-tour-hint {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--fill-subtle);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
}

.om-tour-card.is-waiting .om-tour-hint {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.om-tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.om-tour-nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.om-tour-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.om-tour-card.is-waiting .om-tour-next {
  display: none;
}

html[data-theme="light"] .om-welcome-backdrop,
html[data-theme="light"] .om-tour-pane {
  background: rgba(24, 24, 27, 0.38);
}

html[data-theme="light"] .om-welcome-card,
html[data-theme="light"] .om-tour-card {
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.06),
    0 24px 60px rgba(24, 24, 27, 0.16);
}

html[data-theme="light"] .om-tour-ring {
  box-shadow:
    0 0 0 1.5px var(--gold-bright),
    0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent);
}

body.om-welcome-open,
body.om-tour-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .om-welcome-card h2 {
    font-size: 1.15rem;
  }

  .om-tour-card {
    width: calc(100vw - 24px);
  }
}
