/* Spawn Runway — Cosmic Atelier (premium guided first-run) */

#spawn-runway {
  --runway-ink: #030208;
  --runway-ink-soft: #0a0814;
  --runway-gold: #e8b84a;
  --runway-gold-dim: rgba(232, 184, 74, 0.35);
  --runway-cyan: #3ee8ff;
  --runway-cyan-dim: rgba(62, 232, 255, 0.22);
  --runway-violet: #a855f7;
  --runway-rose: #fb7185;
  --runway-glass: rgba(12, 10, 22, 0.72);
  --runway-glass-border: rgba(255, 255, 255, 0.09);
  --runway-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--runway-ink);
  color: #f4f0ff;
  overflow: hidden;
  font-family: var(--font-body);
}
html.runway-active,
body.runway-active {
  overflow: hidden !important;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
}
#spawn-runway.is-exiting {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s var(--runway-ease);
}
#spawn-runway.hidden {
  display: none !important;
}

/* ── Minimal entry (WFN-inspired) ── */
#spawn-runway.runway--mode-minimal {
  --runway-minimal-bg: #070708;
  --runway-minimal-ink: #f5f5f5;
  --runway-minimal-muted: rgba(245, 245, 245, 0.62);
  --runway-minimal-line: rgba(255, 255, 255, 0.14);
  --runway-wfn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --runway-banner-gap: clamp(16px, 2.4vw, 28px);
  background: transparent;
}
#spawn-runway.runway--mode-minimal .runway__canvas {
  opacity: 0;
  transition: opacity 1.1s var(--runway-wfn-ease);
}
#spawn-runway.runway--mode-minimal.is-split-reveal .runway__canvas,
#spawn-runway.runway--phase-chapter .runway__canvas {
  opacity: 1;
}
#spawn-runway.runway--mode-minimal .runway__brand-mark::before {
  display: none;
}
#spawn-runway.runway--mode-minimal .runway__brand-mark img {
  border-radius: 8px;
  box-shadow: none;
}
#spawn-runway.runway--mode-minimal .runway__brand-copy strong {
  font-family: var(--font-graffiti);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  background: none;
  color: var(--runway-minimal-ink);
}
#spawn-runway.runway--mode-minimal .runway__brand-copy span {
  letter-spacing: 0.16em;
  color: var(--runway-minimal-muted);
}
#spawn-runway.runway--mode-minimal .runway__chapter-meta {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--runway-minimal-muted);
}
#spawn-runway.runway--mode-minimal .runway__link-btn {
  color: var(--runway-minimal-ink);
  font-size: 12px;
  letter-spacing: 0.06em;
}
#spawn-runway.runway--mode-minimal .runway__chrome {
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.85) 0%, transparent 100%);
}
#spawn-runway.runway--mode-minimal .runway__ghost-btn {
  border-color: var(--runway-minimal-line);
  background: transparent;
  color: var(--runway-minimal-muted);
  letter-spacing: 0.14em;
}

#spawn-runway.is-split-reveal .runway__banner-backdrop {
  opacity: 0;
  transition: opacity 0.9s var(--runway-wfn-ease);
}
#spawn-runway.runway--phase-chapter .runway__banner-backdrop {
  display: none !important;
}

/* Portrait game-banner grid with unified backdrop blur (minimal landing) */
.runway__banner-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--runway-wfn-ease);
}
#spawn-runway.runway--mode-minimal .runway__banner-backdrop {
  opacity: 1;
}
.runway__banner-blur-layer {
  position: absolute;
  inset: -6%;
  filter: blur(22px) saturate(1.45) brightness(0.7) contrast(1.06);
  transform: scale(1.04);
  transform-origin: center;
  will-change: filter;
}
.runway__banner-columns {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: var(--runway-banner-gap);
  gap: var(--runway-banner-gap);
  box-sizing: border-box;
}
.runway__banner-col {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.runway__banner-col-inner {
  display: flex;
  flex-direction: column;
  gap: var(--runway-banner-gap);
  will-change: transform;
}
.runway__banner-col--down .runway__banner-col-inner {
  animation: runway-banner-scroll-down var(--col-speed, 50s) linear infinite;
}
.runway__banner-col--up .runway__banner-col-inner {
  animation: runway-banner-scroll-up var(--col-speed, 54s) linear infinite;
}
.runway__banner-tile {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  background: rgba(12, 12, 14, 0.5);
}
.runway__banner-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.runway__banner-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 50% 42% at 50% 48%, rgba(7, 7, 8, 0.72) 0%, rgba(7, 7, 8, 0.35) 55%, transparent 78%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.55) 0%, transparent 22%, transparent 78%, rgba(7, 7, 8, 0.7) 100%);
}

/* Full-screen landing stage (replaces guide card on welcome) */
.runway__landing {
  display: none;
  position: relative;
  z-index: 5;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}
.runway--phase-arrival .runway__landing,
.runway--phase-intent .runway__landing {
  display: flex;
  align-items: center;
  justify-content: center;
}
.runway--phase-arrival .runway__body,
.runway--phase-intent .runway__body {
  display: none !important;
}
.runway--phase-chapter .runway__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.runway--phase-chapter .runway__vignette-wrap {
  flex: 1;
  min-height: 0;
}
.runway__landing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  padding: clamp(24px, 5vh, 48px) clamp(20px, 4vw, 32px);
  min-height: min(100%, 720px);
}
.runway__landing-glow {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(62, 232, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 60% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.runway__landing-inner .runway__hero {
  position: relative;
  z-index: 1;
}
.runway__landing.is-exiting {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.32s var(--runway-wfn-ease), transform 0.32s var(--runway-wfn-ease);
}
.runway__landing.is-entering .runway__reveal {
  animation: runway-reveal-in 0.75s var(--runway-wfn-ease) calc(var(--reveal-i) * 0.08s + 0.1s) forwards;
}
.runway__landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  min-height: 54px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--runway-cyan, #3ee8ff) 0%, #22d3ee 45%, var(--runway-violet, #a855f7) 100%);
  color: #030208;
  font-family: var(--font-bitcount);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(62, 232, 255, 0.35);
  transition: transform 0.25s var(--runway-wfn-ease), box-shadow 0.25s;
}
.runway__landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(62, 232, 255, 0.5);
}
.runway__landing-cta-arrow {
  font-size: 18px;
  line-height: 1;
}
.runway__landing-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: clamp(28px, 4vh, 40px) 0 0;
  padding: 0;
  list-style: none;
  max-width: 520px;
}
.runway__landing-features li {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--runway-minimal-muted);
  letter-spacing: 0.02em;
}
.runway__landing-feature-label {
  font-family: var(--font-bitcount);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--runway-cyan, #3ee8ff);
  margin-right: 6px;
}

/* Split curtain — opens into the full Spawn experience */
.runway__split-curtain {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.runway__split-half {
  flex: 1;
  background: var(--runway-minimal-bg, #070708);
  transition: transform 0.88s var(--runway-wfn-ease, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform;
}
#spawn-runway.is-split-reveal .runway__split-curtain {
  opacity: 1;
  visibility: visible;
}
#spawn-runway.is-split-reveal .runway__split-half--left {
  transform: translateX(-102%);
}
#spawn-runway.is-split-reveal .runway__split-half--right {
  transform: translateX(102%);
}

/* Minimal hero stage */
.runway__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 3vh, 28px);
  padding: clamp(20px, 4vw, 48px) clamp(12px, 3vw, 24px);
  max-width: 640px;
  margin: 0 auto;
}
.runway__hero-eyebrow {
  margin: 0;
  font-family: var(--font-bitcount);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--runway-cyan, #3ee8ff);
}
.runway__hero-wordmark {
  margin: 0;
  font-family: var(--font-graffiti);
  font-size: clamp(72px, 16vw, 128px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.06em;
  color: var(--runway-minimal-ink);
  text-shadow:
    0 0 60px rgba(62, 232, 255, 0.25),
    0 4px 24px rgba(0, 0, 0, 0.45);
}
.runway__hero-heading {
  margin: 0;
  font-family: var(--font-changa);
  font-size: clamp(30px, 5.5vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--runway-minimal-ink);
}
.runway__hero-mark {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(62, 232, 255, 0.22);
}
.runway__hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.runway__hero-games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 360px;
  margin-top: 4px;
}
.runway__hero-game-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s var(--runway-wfn-ease), transform 0.3s var(--runway-wfn-ease);
}
.runway__hero-game-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.runway__hero-rule {
  width: 56px;
  height: 1px;
  border: none;
  margin: 0;
  background: var(--runway-minimal-line);
}
.runway__hero-lede {
  margin: 0;
  max-width: 420px;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.65;
  color: var(--runway-minimal-muted);
}
.runway__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--runway-minimal-ink);
  font-family: var(--font-bitcount);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: gap 0.35s var(--runway-wfn-ease), opacity 0.25s;
}
.runway__hero-cta:hover {
  gap: 20px;
}
.runway__hero-cta-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.35s var(--runway-wfn-ease);
}
.runway__hero-cta:hover .runway__hero-cta-arrow {
  transform: translateX(4px);
}

/* Split-character typography (WFN-style) */
.runway__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: runway-char-in 0.72s var(--runway-wfn-ease) calc(var(--char-i) * 0.028s + 0.08s) forwards;
}
.runway__char--space {
  width: 0.28em;
}
.runway__char--word {
  animation-duration: 0.82s;
  animation-delay: calc(var(--char-i) * 0.045s + 0.12s);
}
.runway__char--cta,
.runway__char--path,
.runway__char--micro {
  animation-duration: 0.55s;
  animation-delay: calc(var(--char-i) * 0.022s);
}
.runway__reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: runway-reveal-in 0.75s var(--runway-wfn-ease) calc(var(--reveal-i) * 0.1s + 0.2s) forwards;
}

.runway__path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin-top: 8px;
}
.runway__path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(12px);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.4s var(--runway-wfn-ease),
    background 0.4s var(--runway-wfn-ease),
    transform 0.45s var(--runway-wfn-ease);
}
.runway__path-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--runway-wfn-ease);
  pointer-events: none;
}
.runway__path-card:hover,
.runway__path-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-3px);
}
.runway__path-card:hover::after,
.runway__path-card:focus-visible::after {
  opacity: 1;
}
.runway__path-card[data-intent="player"]:hover {
  border-color: rgba(62, 232, 255, 0.35);
}
.runway__path-card[data-intent="owner"]:hover {
  border-color: rgba(232, 184, 74, 0.35);
}
.runway__path-index {
  font-family: var(--font-bitcount);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--runway-cyan, #3ee8ff);
}
.runway__path-title {
  font-family: var(--font-changa);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--runway-minimal-ink);
}
.runway__path-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--runway-minimal-muted);
}
.runway__path-action {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-bitcount);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--runway-minimal-ink);
}

.runway__guide-scroll.is-exiting {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--runway-wfn-ease), transform 0.32s var(--runway-wfn-ease);
}
.runway__guide-scroll.is-entering {
  animation: runway-scroll-in 0.55s var(--runway-wfn-ease) both;
}

@keyframes runway-banner-scroll-down {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes runway-banner-scroll-up {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .runway__banner-col--down .runway__banner-col-inner,
  .runway__banner-col--up .runway__banner-col-inner {
    animation: none !important;
  }
}

@keyframes runway-char-in {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes runway-reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes runway-scroll-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Atmospheric canvas ── */
.runway__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.runway__aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(62, 232, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(168, 85, 247, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 55% 90%, rgba(232, 184, 74, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 30% 25% at 70% 15%, rgba(251, 113, 133, 0.08) 0%, transparent 40%);
  animation: runway-aurora-drift 18s ease-in-out infinite alternate;
  filter: blur(2px);
}
.runway__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 78% 32%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(62, 232, 255, 0.55), transparent),
    radial-gradient(1px 1px at 91% 8%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 28% 88%, rgba(232, 184, 74, 0.4), transparent),
    radial-gradient(2px 2px at 62% 44%, rgba(168, 85, 247, 0.35), transparent);
  animation: runway-twinkle 10s ease-in-out infinite alternate;
}
.runway__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.runway__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 80px,
      rgba(62, 232, 255, 0.5) 80px,
      rgba(62, 232, 255, 0.5) 81px
    );
}

/* ── Chrome bar ── */
.runway__chrome {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 28px);
}
.runway__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.runway__brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.runway__brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px rgba(62, 232, 255, 0.35);
}
.runway__brand-mark::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: conic-gradient(from 200deg, var(--runway-cyan), var(--runway-violet), var(--runway-gold), var(--runway-cyan));
  opacity: 0.65;
  animation: runway-ring-spin 8s linear infinite;
}
.runway__brand-copy strong {
  display: block;
  font-family: var(--font-graffiti);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--runway-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.runway__brand-copy span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 3px;
}
.runway__chapter-meta {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.runway__chapter-meta em {
  font-style: normal;
  color: var(--runway-gold);
}
.runway__chrome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.runway__link-btn {
  border: none;
  background: transparent;
  color: var(--runway-cyan);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  letter-spacing: 0.02em;
  transition: color 0.2s, opacity 0.2s;
}
.runway__link-btn:hover {
  color: #fff;
}
.runway__ghost-btn {
  border: 1px solid var(--runway-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.runway__ghost-btn:hover {
  border-color: var(--runway-cyan-dim);
  background: rgba(62, 232, 255, 0.08);
  color: #fff;
}

/* ── Main layout: full-bleed preview + floating guide ── */
.runway__body {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.runway__vignette-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}
.runway__vignette-label {
  position: absolute;
  top: 20px;
  left: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--runway-cyan-dim);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--runway-cyan);
  pointer-events: none;
}
.runway__vignette-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--runway-cyan);
  box-shadow: 0 0 10px var(--runway-cyan);
  animation: runway-pulse-dot 2s ease-in-out infinite;
}

.runway__vignette-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #050508;
  box-shadow: none;
  transition: box-shadow 0.5s var(--runway-ease);
}
.runway__vignette-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(62, 232, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(168, 85, 247, 0.35) 70%,
    rgba(232, 184, 74, 0.25) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}
.runway__corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.55;
}
.runway__corner--tl { top: 14px; left: 14px; border-top: 2px solid var(--runway-cyan); border-left: 2px solid var(--runway-cyan); }
.runway__corner--tr { top: 14px; right: 14px; border-top: 2px solid var(--runway-violet); border-right: 2px solid var(--runway-violet); }
.runway__corner--bl { bottom: 14px; left: 14px; border-bottom: 2px solid var(--runway-gold); border-left: 2px solid var(--runway-gold); }
.runway__corner--br { bottom: 14px; right: 14px; border-bottom: 2px solid var(--runway-rose); border-right: 2px solid var(--runway-rose); }

.runway__vignette-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 232, 255, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(3, 2, 8, 0.35) 100%);
}
.runway__vignette-slot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.runway__vignette-slot #app-root {
  position: absolute !important;
  inset: 0 !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  transform-origin: top center;
  pointer-events: auto;
  z-index: 1;
}

/* Force phone shell inside live preview (hide desktop chrome) */
body.runway-vignette-live #app-root.runway-app-preview {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.runway-vignette-live #app-root.runway-app-preview #spawn-guest-banner,
body.runway-vignette-live #app-root.runway-app-preview .skip-link {
  display: none !important;
}
body.runway-vignette-live #app-root.runway-app-preview .desktop-sidebar,
body.runway-vignette-live #app-root.runway-app-preview .desktop-topbar {
  display: none !important;
}
/* Hide tab bar during Runway — fixed positioning breaks inside the preview
   container, and the tour controls navigation chapter-by-chapter anyway. */
body.runway-vignette-live #app-root.runway-app-preview #tab-bar {
  display: none !important;
}
body.runway-vignette-live #app-root.runway-app-preview .screen.active,
body.runway-vignette-live #app-root.runway-app-preview .screen.active:not(.zone-discover),
body.runway-vignette-live #app-root.runway-app-preview .discover-shell {
  padding-bottom: 0 !important;
}
body.runway-vignette-live #app-root.runway-app-preview .app-shell__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
body.runway-vignette-live #app-root.runway-app-preview .app-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.runway-vignette-live #app-root.runway-app-preview .screen {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.runway-vignette-live #app-root.runway-app-preview .screen.active {
  display: flex !important;
}
body.runway-vignette-live #app-root.runway-app-preview .dock-screen {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.runway-vignette-live #app-root.runway-app-preview .dock-canvas,
body.runway-vignette-live #app-root.runway-app-preview .dock-vignette {
  position: absolute !important;
  inset: 0 !important;
}
body.runway-vignette-live.runway-preview-scroll #app-root.runway-app-preview #screen-account,
body.runway-vignette-live.runway-preview-scroll #app-root.runway-app-preview #screen-lfg,
body.runway-vignette-live.runway-preview-scroll #app-root.runway-app-preview #screen-main {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.runway-vignette-live:not(.runway-preview-scroll) #app-root.runway-app-preview .zone-discover.active,
body.runway-vignette-live:not(.runway-preview-scroll) #app-root.runway-app-preview .discover-shell {
  overflow: hidden;
}
body.runway-vignette-live .runway__vignette-slot {
  position: relative;
}
body.runway-vignette-live .runway__vignette-slot .app-stacks {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
body.runway-vignette-live #spawn-runway.runway--stack-open .runway__vignette-slot .app-stacks {
  display: block;
}
body.runway-vignette-live .runway__vignette-slot .app-stacks .stack-screen.open {
  pointer-events: auto;
}
body.runway-vignette-live .runway__vignette-slot .stack-screen {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  transform: none !important;
  z-index: 500 !important;
}
body.runway-vignette-live .runway__vignette-slot .stack-screen.open {
  transform: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
body.runway-vignette-live .runway__vignette-slot .modal-scrim {
  position: absolute !important;
  inset: 0 !important;
}
body.runway-vignette-live #spawn-runway.runway--stack-open .runway__vignette-wrap {
  z-index: 35;
}
/* Runway perf: reduce compositor load while maps are interactive in the preview */
body.runway-vignette-live .runway__aurora,
body.runway-vignette-live .runway__stars,
body.runway-vignette-live .runway__grain {
  animation: none !important;
}
body.runway-vignette-live .runway__guide-panel {
  backdrop-filter: blur(16px) saturate(1.2);
}
body.runway-vignette-live .map-viewport.is-dragging .world-node-slot {
  transition: none;
}

.runway--phase-arrival .runway__vignette-label,
.runway--phase-intent .runway__vignette-label {
  display: none;
}
.runway--phase-arrival .runway__vignette-wrap,
.runway--phase-intent .runway__vignette-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  filter: none;
  transform: scale(1.02);
  transition: opacity 0.9s var(--runway-ease), transform 1s var(--runway-ease);
}
#spawn-runway.is-split-reveal .runway__vignette-wrap,
.runway--phase-chapter .runway__vignette-wrap {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.runway--phase-chapter .runway__vignette-frame {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.runway--phase-arrival .runway__guide-float,
.runway--phase-intent .runway__guide-float {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(680px, calc(100% - 40px));
  max-height: min(90vh, 800px);
  margin: auto;
  z-index: 10;
  pointer-events: auto;
}
.runway--phase-arrival .runway__guide-float .runway__guide-panel,
.runway--phase-intent .runway__guide-float .runway__guide-panel {
  position: relative;
  width: 100%;
  max-height: min(90vh, 800px);
  transform: none !important;
  opacity: 1 !important;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.runway--phase-arrival .runway__guide-scroll,
.runway--phase-intent .runway__guide-scroll {
  overflow: visible;
  padding: 0;
}
.runway--phase-arrival .runway__guide-header,
.runway--phase-intent .runway__guide-header,
.runway--phase-arrival .runway__guide-edge-tab,
.runway--phase-intent .runway__guide-edge-tab {
  display: none !important;
}

/* ── Floating guide popup (chapter phase) ── */
.runway--phase-chapter .runway__guide-float {
  position: absolute;
  z-index: 30;
  width: auto;
  height: auto;
  pointer-events: none;
}
.runway--phase-chapter .runway__guide-float.is-expanded {
  pointer-events: auto;
}
.runway--phase-chapter .runway__corner {
  display: none;
}
#spawn-runway.is-split-reveal .runway__guide-float {
  animation: runway-guide-morph 0.85s 0.45s var(--runway-ease) both;
}
.runway--phase-chapter .runway__guide-float.is-dragging .runway__guide-panel {
  transition: none;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(62, 232, 255, 0.25);
}
#spawn-runway.is-split-reveal .runway__vignette-label {
  animation: runway-fade-up 0.7s 0.35s var(--runway-ease) both;
}
#spawn-runway.is-split-reveal .runway__vignette-frame {
  animation: runway-vignette-in 0.95s 0.2s var(--runway-ease) both;
}
.runway--phase-chapter .runway__vignette-frame::before {
  display: none;
}

.runway__guide-panel {
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  max-height: min(480px, calc(100dvh - 88px));
  border-radius: 20px;
  border: 1px solid var(--runway-glass-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, transparent 42%),
    rgba(8, 6, 18, 0.92);
  backdrop-filter: blur(28px) saturate(1.5);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(62, 232, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.4s var(--runway-ease), opacity 0.35s var(--runway-ease), box-shadow 0.25s;
}
.runway__guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  touch-action: none;
  user-select: none;
  flex-shrink: 0;
}
.runway__guide-float.is-dragging .runway__guide-header {
  cursor: grabbing;
}
.runway__guide-grip {
  width: 14px;
  height: 14px;
  opacity: 0.35;
  background:
    radial-gradient(circle, rgba(255,255,255,0.5) 1.5px, transparent 1.5px);
  background-size: 5px 5px;
  flex-shrink: 0;
}
.runway__guide-header-title {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.runway__guide-minimize {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.runway__guide-minimize:hover {
  border-color: var(--runway-cyan-dim);
  background: rgba(62, 232, 255, 0.1);
  color: var(--runway-cyan);
}

.runway__guide-edge-tab {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--runway-cyan-dim);
  background: rgba(8, 6, 18, 0.94);
  backdrop-filter: blur(16px);
  color: var(--runway-cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: background 0.2s, border-color 0.2s;
  pointer-events: auto;
  flex-shrink: 0;
}
.runway__guide-edge-tab:hover {
  background: rgba(62, 232, 255, 0.12);
  border-color: var(--runway-cyan);
}
.runway__guide-edge-tab span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.runway--phase-chapter .runway__guide-float.is-docked-right,
.runway--phase-chapter .runway__guide-float.is-docked-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  pointer-events: auto;
}
.runway--phase-chapter .runway__guide-float.is-docked-left {
  flex-direction: row-reverse;
}
.runway--phase-chapter .runway__guide-float.is-docked-right .runway__guide-panel {
  transform: translateX(calc(100% + 16px));
  opacity: 0;
  pointer-events: none;
}
.runway--phase-chapter .runway__guide-float.is-docked-left .runway__guide-panel {
  transform: translateX(calc(-100% - 16px));
  opacity: 0;
  pointer-events: none;
}
.runway--phase-chapter .runway__guide-float.is-docked-right .runway__guide-edge-tab,
.runway--phase-chapter .runway__guide-float.is-docked-left .runway__guide-edge-tab {
  display: flex;
  position: relative;
  top: auto;
  transform: none;
}
.runway--phase-chapter .runway__guide-float.is-docked-right .runway__guide-edge-tab {
  border-radius: 12px 0 0 12px;
  border-right: none;
}
.runway--phase-chapter .runway__guide-float.is-docked-left .runway__guide-edge-tab {
  border-radius: 0 12px 12px 0;
  border-left: none;
}
.runway--phase-chapter .runway__guide-float.is-docked-left .runway__guide-edge-tab svg {
  transform: scaleX(-1);
}
.runway--phase-chapter .runway__guide-float.is-expanded .runway__guide-edge-tab {
  display: none;
}

.runway__guide-scroll {
  flex: 1;
  overflow-y: auto;
  padding: clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.runway--phase-chapter .runway__guide-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  gap: 12px;
  padding: 14px 16px 12px;
}

.runway__guide-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.runway__guide-actions.hidden {
  display: none !important;
}
.runway__guide-actions .runway__btn {
  flex: 1;
  min-height: 44px;
}

/* Tour progress bar (replaces step list) */
.runway__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.runway__progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.runway__progress-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.runway__progress-pct {
  font-family: var(--font-bitcount);
  font-size: 11px;
  font-weight: 700;
  color: var(--runway-cyan);
}
.runway__progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.runway__progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--runway-cyan), var(--runway-violet));
  box-shadow: 0 0 12px rgba(62, 232, 255, 0.45);
  transition: width 0.45s var(--runway-ease);
}

.runway__chapter-head--compact {
  margin-top: 0;
}
.runway__chapter-head--compact .runway__kicker {
  margin-bottom: 4px;
}
.runway__chapter-head--compact .runway__title {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.15;
}
.runway__body-copy--compact {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.runway--phase-chapter .runway__guide-panel {
  max-height: min(440px, calc(100dvh - 80px));
  min-height: 280px;
}

/* Legacy quest rail — intro screens only */
.runway__quest-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 4px;
}
.runway__quest-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.3s;
}
.runway__quest-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 28px;
}
.runway__quest-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-bitcount);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: all 0.35s var(--runway-ease);
}
.runway__quest-line {
  flex: 1;
  width: 1px;
  min-height: 8px;
  margin: 3px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}
.runway__quest-item:last-child .runway__quest-line {
  display: none;
}
.runway__quest-item.is-active {
  color: var(--runway-cyan);
}
.runway__quest-item.is-active .runway__quest-num {
  border-color: var(--runway-cyan-dim);
  background: rgba(62, 232, 255, 0.15);
  color: var(--runway-cyan);
  box-shadow: 0 0 16px rgba(62, 232, 255, 0.35);
}
.runway__quest-item.is-done {
  color: rgba(134, 239, 172, 0.75);
}
.runway__quest-item.is-done .runway__quest-num {
  border-color: transparent;
  background: rgba(134, 239, 172, 0.2);
  color: #86efac;
}

.runway__chapter-head {
  position: relative;
}
.runway__chapter-watermark {
  position: absolute;
  top: -18px;
  right: -8px;
  font-family: var(--font-bitcount);
  font-size: clamp(64px, 10vw, 88px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
}
.runway__kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--runway-gold);
}
.runway__title {
  margin: 0;
  font-family: var(--font-changa);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
}
.runway__body-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
}

.runway__try-hint {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--runway-cyan-dim);
  background:
    linear-gradient(135deg, rgba(62, 232, 255, 0.1) 0%, rgba(168, 85, 247, 0.06) 100%);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(186, 245, 255, 0.95);
}
.runway__try-hint.is-complete {
  border-color: rgba(134, 239, 172, 0.35);
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.12) 0%, rgba(62, 232, 255, 0.06) 100%);
  color: #bbf7d0;
}
.runway__try-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  font-weight: 700;
}

/* Custom action buttons */
.runway__actions {
  display: flex;
  gap: 10px;
  padding-top: 6px;
}
.runway__btn {
  flex: 1;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--runway-ease), box-shadow 0.25s, opacity 0.2s;
}
.runway__btn:active:not(:disabled) {
  transform: scale(0.98);
}
.runway__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.runway__btn--primary {
  background: linear-gradient(135deg, var(--runway-cyan) 0%, #22d3ee 50%, var(--runway-violet) 100%);
  color: #030208;
  box-shadow: 0 4px 24px rgba(62, 232, 255, 0.35);
}
.runway__btn--primary:not(:disabled):hover {
  box-shadow: 0 8px 32px rgba(62, 232, 255, 0.5);
}
.runway__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--runway-glass-border);
  color: rgba(255, 255, 255, 0.75);
}
.runway__btn--secondary:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.runway__btn--hero {
  min-width: 220px;
  flex: none;
  padding: 0 32px;
  min-height: 52px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--runway-gold) 0%, #f59e0b 40%, var(--runway-rose) 100%);
  color: #030208;
  box-shadow: 0 8px 32px var(--runway-gold-dim);
}

/* Arrival cinematic */
.runway__intro-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px) 12px;
}
.runway__intro-orbit {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: runway-logo-in 1s var(--runway-ease) both;
}
.runway__intro-orbit::before,
.runway__intro-orbit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(62, 232, 255, 0.25);
}
.runway__intro-orbit::before {
  inset: -16px;
  animation: runway-ring-spin 12s linear infinite reverse;
}
.runway__intro-orbit::after {
  inset: -32px;
  border-color: rgba(168, 85, 247, 0.2);
  animation: runway-ring-spin 18s linear infinite;
}
.runway__intro-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 48px rgba(62, 232, 255, 0.4);
}
.runway__intro-wordmark {
  margin: 0;
  font-family: var(--font-graffiti);
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff 0%, var(--runway-cyan) 55%, var(--runway-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: runway-fade-up 0.8s 0.12s var(--runway-ease) both;
}
.runway__intro-tagline {
  margin: 0;
  max-width: 380px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  animation: runway-fade-up 0.8s 0.24s var(--runway-ease) both;
}
.runway__intro-rule {
  width: 48px;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--runway-gold), transparent);
  animation: runway-fade-up 0.8s 0.3s var(--runway-ease) both;
}

/* Intent path cards */
.runway__intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 520px;
}
.runway__intent-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid var(--runway-glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--runway-ease), border-color 0.35s, box-shadow 0.35s;
}
.runway__intent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.runway__intent-card[data-intent="player"]::before {
  background: radial-gradient(circle at 30% 20%, rgba(62, 232, 255, 0.2) 0%, transparent 65%);
}
.runway__intent-card[data-intent="owner"]::before {
  background: radial-gradient(circle at 30% 20%, rgba(232, 184, 74, 0.2) 0%, transparent 65%);
}
.runway__intent-card:hover,
.runway__intent-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.runway__intent-card[data-intent="player"]:hover {
  border-color: var(--runway-cyan-dim);
}
.runway__intent-card[data-intent="owner"]:hover {
  border-color: var(--runway-gold-dim);
}
.runway__intent-card:hover::before {
  opacity: 1;
}
.runway__intent-icon {
  font-size: 28px;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.runway__intent-card strong {
  font-family: var(--font-changa);
  font-size: 17px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.runway__intent-card span {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
  position: relative;
  z-index: 1;
}

/* Signup sheet */
.runway__signup-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--runway-ease);
}
.runway__signup-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}
.runway__signup-inner {
  width: 100%;
  max-width: 520px;
  max-height: 88%;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--runway-glass-border);
  border-bottom: none;
  background:
    linear-gradient(180deg, rgba(62, 232, 255, 0.06) 0%, transparent 30%),
    var(--runway-ink-soft);
  padding: 24px 26px 32px;
  transform: translateY(100%);
  transition: transform 0.45s var(--runway-ease);
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.5);
}
.runway__signup-sheet.is-open .runway__signup-inner {
  transform: translateY(0);
}
.runway__signup-inner h3 {
  margin: 0 0 6px;
  font-family: var(--font-changa);
  font-size: 22px;
  font-weight: 400;
}
.runway__signup-inner > p {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

/* Guest banner */
#spawn-guest-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background:
    linear-gradient(90deg, rgba(62, 232, 255, 0.1) 0%, rgba(168, 85, 247, 0.08) 50%, rgba(232, 184, 74, 0.06) 100%);
  border-bottom: 1px solid var(--runway-cyan-dim);
  font-size: 13px;
  z-index: 50;
  backdrop-filter: blur(12px);
}
#spawn-guest-banner.is-visible {
  display: flex;
}
#spawn-guest-banner p {
  margin: 0;
  flex: 1;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}
#spawn-guest-banner .btn-sm {
  flex-shrink: 0;
  border-radius: 999px;
}

body.runway-active #app-root { visibility: visible; }
body.runway-active.runway-vignette-live #app-root { pointer-events: auto; }
body.runway-active:not(.runway-vignette-live) #onboarding-flow { display: none !important; }

/* Popup tour — real app full screen, floating guide popup only */
body.runway-tour-live {
  overflow: auto;
}
body.runway-tour-live #app-root {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}
#spawn-runway.runway--mode-popup-tour {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: transparent !important;
  pointer-events: none;
  overflow: visible;
}
#spawn-runway.runway--mode-popup-tour .runway__canvas,
#spawn-runway.runway--mode-popup-tour .runway__banner-backdrop,
#spawn-runway.runway--mode-popup-tour .runway__chrome,
#spawn-runway.runway--mode-popup-tour .runway__landing,
#spawn-runway.runway--mode-popup-tour .runway__vignette-wrap,
#spawn-runway.runway--mode-popup-tour .runway__split-curtain {
  display: none !important;
}
#spawn-runway.runway--mode-popup-tour .runway__body {
  position: static;
  display: block;
  height: auto;
  min-height: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
  box-shadow: none;
}
#spawn-runway.runway--mode-popup-tour .runway__guide-float {
  position: fixed;
  z-index: 10050;
  pointer-events: auto;
  max-width: min(380px, calc(100vw - 24px));
}
#spawn-runway.runway--mode-popup-tour .runway__signup-sheet {
  pointer-events: none;
  z-index: 10060;
}
#spawn-runway.runway--mode-popup-tour .runway__signup-sheet.is-open {
  pointer-events: auto;
}
#spawn-runway.runway--mode-popup-tour .runway__guide-actions {
  flex-wrap: wrap;
  gap: 8px;
}
#spawn-runway.runway--mode-popup-tour .runway__guide-actions .runway__btn--primary {
  flex: 1 1 100%;
}

/* Detached tour guide — mounted on body so clicks always work.
   z-index must exceed server-preview-overlay (35000) and onboarding (30000). */
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached {
  position: fixed;
  z-index: 60100;
  pointer-events: auto !important;
  width: auto;
  height: auto;
}
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached .runway__guide-panel,
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached .runway__guide-edge-tab,
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached button {
  pointer-events: auto;
  cursor: pointer;
}
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-right {
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-left {
  left: 0;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
}
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-right .runway__guide-panel,
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-left .runway__guide-panel {
  display: none;
}
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-right .runway__guide-edge-tab,
body.runway-tour-live #runway-guide-float.spawn-tour-guide--detached.is-docked-left .runway__guide-edge-tab {
  display: flex;
  pointer-events: auto;
}
body.runway-tour-live #runway-signup-sheet {
  position: fixed;
  inset: 0;
  z-index: 60200;
  pointer-events: none;
}
body.runway-tour-live #runway-signup-sheet.is-open {
  pointer-events: auto;
}

@keyframes runway-aurora-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(2%, -3%) rotate(2deg); }
}
@keyframes runway-twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
@keyframes runway-ring-spin {
  to { transform: rotate(360deg); }
}
@keyframes runway-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes runway-logo-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes runway-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes runway-vignette-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes runway-guide-morph {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  #spawn-runway.runway--mode-minimal .runway__canvas {
    opacity: 1;
    transition: none;
  }
  .runway__char,
  .runway__reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .runway__split-curtain {
    display: none !important;
  }
  .runway__guide-scroll.is-exiting {
    transition: none;
  }
  #spawn-runway.is-split-reveal .runway__vignette-frame,
  #spawn-runway.is-split-reveal .runway__vignette-label,
  #spawn-runway.is-split-reveal .runway__guide-float {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .runway__guide-panel {
    width: min(340px, calc(100vw - 20px));
    max-height: min(420px, calc(100dvh - 72px));
    border-radius: 18px;
  }
  .runway__guide-scroll {
    padding: 14px 16px 18px;
    gap: 12px;
  }
  .runway__quest-rail {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .runway__quest-rail::-webkit-scrollbar { display: none; }
  .runway__quest-item {
    grid-template-columns: auto;
    padding: 0;
    flex-shrink: 0;
  }
  .runway__quest-track {
    flex-direction: row;
    min-height: auto;
  }
  .runway__quest-line { display: none; }
  .runway__quest-item span:last-child { display: none; }
  .runway__path-grid { grid-template-columns: 1fr; }
  .runway__intent-grid { grid-template-columns: 1fr; }
  .runway__chrome {
    padding: 10px 14px;
    flex-shrink: 0;
  }
  .runway__chrome-actions .runway__ghost-btn { display: none; }
  .runway__chapter-watermark { font-size: 48px; top: -8px; }
  .runway__vignette-label { top: 10px; left: 12px; font-size: 9px; }
  .runway__title { font-size: 20px; }
  .runway__body-copy { font-size: 13px; line-height: 1.5; }
  .runway__actions {
    flex-direction: row;
    gap: 10px;
  }
  .runway__actions .runway__btn { flex: 1; }
  .runway--phase-arrival .runway__guide-float,
  .runway--phase-intent .runway__guide-float {
    width: calc(100% - 24px);
  }
}

/* Embedded onboarding in signup sheet */
.onboarding-flow--embedded {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  background: transparent !important;
  z-index: auto !important;
}
.onboarding-flow--embedded::before { display: none !important; }
.onboarding-flow--embedded .onboarding-flow__chrome { display: none !important; }
.onboarding-flow--embedded .onboarding-flow__viewport { min-height: 0; height: auto; }
.onboarding-flow--embedded .onboarding-step {
  position: static !important;
  min-height: 0 !important;
}
.onboarding-flow--embedded .onboarding-step:not(.active) { display: none !important; }
.onboarding-flow--embedded .onboarding-step__scroll { max-height: 50vh; padding-bottom: 0; }
.onboarding-flow--embedded .onboarding-step__dock {
  position: static;
  background: transparent;
  box-shadow: none;
  padding-top: 8px;
}
body.onboarding-embedded { overflow: auto; }
body.onboarding-embedded.onboarding-open #app-root { display: block !important; }

@media (prefers-reduced-motion: reduce) {
  .runway__aurora,
  .runway__stars,
  .runway__intro-orbit,
  .runway__intro-orbit::before,
  .runway__intro-orbit::after,
  .runway__brand-mark::before,
  .runway__vignette-label-dot,
  .runway__intro-wordmark,
  .runway__intro-tagline,
  .runway__intro-rule {
    animation: none !important;
  }
  #spawn-runway.is-exiting { transition: none; }
}
