/* Kaptain Stream: the Profile Studio tour, a dimmed stage with one lit part, the card that talks about it, and the quiet link that offers it. */
/* The link is only as wide as its words: the Studio body stretches children to full width, which made empty space start the tour. */
.ps-tour-offer { display: inline-flex; align-items: center; align-self: flex-start; justify-self: start; width: fit-content !important; max-width: 100%; min-height: 44px; margin: 0 0 8px; padding: 0 2px; border: 0; background: none; color: var(--ps-text-2, hsl(240, 5%, 75%)); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.ps-tour-offer:hover { color: var(--ps-text, hsl(0, 0%, 98%)); text-decoration-thickness: 2px; }
.ps-tour-offer:focus-visible, .ps-tour button:focus-visible { outline: 2px solid #6dfac4; outline-offset: 3px; border-radius: 8px; }

/* Stacking: Studio is a fixed overlay at 100000; veil, spotlight and card sit just above it and below the avatar picker (100100). */
:root { --ps-tour-dim: rgba(3, 5, 9, .8); --ps-tour-ease: cubic-bezier(.16, 1, .3, 1); }
html[data-theme="light"] { --ps-tour-dim: rgba(10, 14, 22, .55); }

/* The veil only catches clicks; on the title cards it also softens the page so the card owns the screen. */
.ps-tour-veil { position: fixed; inset: 0; z-index: 100047; background: transparent; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); transition: backdrop-filter .6s var(--ps-tour-ease), -webkit-backdrop-filter .6s var(--ps-tour-ease), opacity .4s ease; }
.ps-tour-veil.is-title { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* The spotlight: its own box is the lit hole, its huge shadow is the dim. JS eases its position every frame. */
.ps-tour-spot { position: fixed; top: 0; left: 0; z-index: 100048; border-radius: 18px; pointer-events: none; box-shadow: 0 0 0 200vmax var(--ps-tour-dim); transition: box-shadow .45s var(--ps-tour-ease), opacity .4s ease; animation: ps-tour-fade-in .6s var(--ps-tour-ease) both; will-change: transform, width, height; }
.ps-tour-spot.is-lit { box-shadow: 0 0 0 1.5px rgba(109, 250, 196, .6), 0 10px 48px 6px rgba(0, 245, 160, .16), 0 0 0 200vmax var(--ps-tour-dim); }
.ps-tour-veil.is-leaving, .ps-tour-spot.is-leaving { opacity: 0; }
html[data-theme="light"] .ps-tour-spot.is-lit { box-shadow: 0 0 0 2px rgba(0, 128, 90, .7), 0 10px 40px 4px rgba(0, 128, 90, .14), 0 0 0 200vmax var(--ps-tour-dim); }

/* The spotlight now draws the edge; the class stays so the target is still findable. */
.ps-tour-target { border-radius: 14px; }

/* The card. */
.ps-tour { position: fixed; z-index: 100050; width: min(360px, calc(100vw - 32px)); padding: 18px 18px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: hsla(240, 12%, 6%, .94); color: hsl(0, 0%, 98%); box-shadow: inset 0 1px 0 rgba(109, 250, 196, .22), 0 24px 60px rgba(0, 0, 0, .55); font-family: Inter, system-ui, sans-serif; transition: top .45s var(--ps-tour-ease), left .45s var(--ps-tour-ease); }
.ps-tour.is-entering { animation: ps-tour-card-in .52s var(--ps-tour-ease) both; }
.ps-tour.is-centered { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 28px 28px 20px; border-radius: 20px; }
.ps-tour.is-centered .ps-tour-title { font-size: 1.6rem; margin-bottom: 10px; letter-spacing: -.01em; }
.ps-tour.is-centered .ps-tour-body { font-size: 1rem; }

.ps-tour-dots { display: flex; gap: 6px; margin: 0 0 12px; }
.ps-tour-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); transition: width .4s var(--ps-tour-ease), background-color .3s ease; }
.ps-tour-dot.is-done { background: rgba(109, 250, 196, .45); }
.ps-tour-dot.is-current { width: 20px; background: #00f5a0; }
.ps-tour-count { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ps-tour-title { margin: 0 0 6px; font-family: Outfit, Inter, sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.25; text-wrap: balance; }
.ps-tour-body { margin: 0; color: hsl(240, 5%, 78%); font-size: .92rem; line-height: 1.5; }
.ps-tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.ps-tour-actions button { min-height: 44px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ps-tour-close { margin-right: auto; border: 0; background: none; color: hsl(240, 5%, 70%); padding-left: 4px !important; }
.ps-tour-close:hover { color: hsl(0, 0%, 98%); }
.ps-tour-back { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: hsl(0, 0%, 92%); }
.ps-tour-back:hover { background: rgba(255, 255, 255, .07); }
.ps-tour-back[hidden] { display: none; }
/* The one mint control in the card: the step forward. */
.ps-tour-next { border: 0; background: #00f5a0; color: #04130d; transition: background-color .2s ease; }
.ps-tour-next:hover { background: #4dfbbd; }

@keyframes ps-tour-fade-in { from { opacity: 0; } }
@keyframes ps-tour-card-in { from { opacity: 0; translate: 0 12px; filter: blur(4px); } }

html[data-theme="light"] .ps-tour { background: rgba(255, 255, 255, .97); color: #0b0d12; border-color: rgba(10, 14, 22, .14); box-shadow: inset 0 1px 0 rgba(0, 128, 90, .25), 0 24px 60px rgba(10, 14, 22, .22); }
html[data-theme="light"] .ps-tour-body { color: #3b4252; }
html[data-theme="light"] .ps-tour-close { color: #596175; }
html[data-theme="light"] .ps-tour-back { color: #0b0d12; border-color: rgba(10, 14, 22, .2); }
html[data-theme="light"] .ps-tour-dot { background: rgba(10, 14, 22, .16); }
html[data-theme="light"] .ps-tour-dot.is-done { background: rgba(0, 128, 90, .45); }
html[data-theme="light"] .ps-tour-dot.is-current { background: #00805a; }

/* Phones: a sheet docked at the bottom, so it never covers the part it is talking about at the top of the screen. */
@media (max-width: 640px) {
  .ps-tour, .ps-tour.is-centered { top: auto !important; left: 12px !important; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; padding: 18px 18px 14px; }
  .ps-tour.is-centered .ps-tour-title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-tour, .ps-tour-spot, .ps-tour-veil, .ps-tour-dot { transition: none; }
  .ps-tour.is-entering, .ps-tour-spot { animation: none; }
  .ps-tour-veil.is-title { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
