/* WO wow_continue_home_mobile 20260528 — homepage mobile clarity: nav, doors, void fallback, less stack */

/* ── WebGL / cosmos degraded: CSS starfield instead of black void ── */
.cp-page.cp-cosmos-fallback #cp-cosmos {
  display: none !important;
}

.cp-page.cp-cosmos-fallback::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 18%, rgba(118, 212, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 50% at 82% 72%, rgba(240, 200, 90, 0.08), transparent 52%),
    radial-gradient(circle at 20% 80%, rgba(94, 234, 212, 0.06), transparent 42%),
    #010306;
}

.cp-page.cp-cosmos-fallback .cp-void-curtain {
  opacity: 0 !important;
}

.cp-page.cp-cosmos-fallback .cp-nebula-wash,
.cp-page.cp-cosmos-fallback .cp-hero-mesh {
  opacity: 0.55 !important;
}

/* ── Door strip: four primary + collapsible overflow ── */
.cp-door-strip-grid,
.cp-door-strip-grid li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.cp-door-card {
  display: flex !important;
  flex-direction: column;
  text-decoration: none !important;
}

body.dancz-creation-portal-home .cp-door-card-label,
body.dancz-creation-portal-home .cp-door-card-state,
body.dancz-wow-lane-surface .cp-door-card-label,
body.dancz-wow-lane-surface .cp-door-card-state {
  color: #fff7d9 !important;
  -webkit-text-fill-color: #fff7d9 !important;
}

body.dancz-creation-portal-home .cp-door-card,
body.dancz-wow-lane-surface .cp-door-card {
  background: rgba(4, 10, 14, 0.78) !important;
  border: 1px solid rgba(240, 200, 90, 0.24) !important;
}

body.dancz-creation-portal-home .cp-nav-toggle,
body.dancz-wow-lane-surface .cp-nav-toggle {
  appearance: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 247, 217, 0.18) !important;
  color: #fff7d9 !important;
  min-height: unset !important;
  box-shadow: none !important;
  text-transform: none !important;
}

body.dancz-creation-portal-home .cp-nav-toggle svg,
body.dancz-wow-lane-surface .cp-nav-toggle svg {
  display: block;
  stroke: currentColor;
}

.cp-door-strip-note {
  display: none;
}

.cp-door-strip-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cp-door-strip-more[hidden] {
  display: none !important;
}

.cp-door-strip-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(240, 200, 90, 0.22);
  border-radius: 999px;
  background: rgba(4, 10, 14, 0.72);
  color: rgba(255, 247, 217, 0.88);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cp-door-strip-toggle:hover,
.cp-door-strip-toggle:focus-visible {
  border-color: rgba(118, 212, 255, 0.42);
  color: #f0c85a;
  outline: none;
}

.cp-page.is-doors-expanded .cp-door-strip-toggle {
  border-color: rgba(118, 212, 255, 0.38);
  color: #f0c85a;
}

/* ── Tablet/mobile nav: brand + hamburger only (no inline pill collision) ── */
@media (max-width: 1100px) {
  .cp-header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .cp-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cp-nav-toggle {
    display: inline-grid !important;
    flex: 0 0 auto;
  }

  .cp-header-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 1rem;
    left: auto;
    width: auto;
    min-width: 11.5rem;
    max-width: calc(100vw - 2rem);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: min(16rem, calc(100vw - 2rem));
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(1, 3, 6, 0.96);
    border: 1px solid rgba(255, 247, 217, 0.14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 45;
  }

  .cp-page.is-nav-open .cp-header-nav {
    display: flex !important;
  }
}

/* ── Mobile simplify: one hero column, fewer stacked panels ── */
@media (max-width: 720px) {
  html,
  body.dancz-creation-portal-home {
    overflow: hidden;
  }

  .cp-page {
    overflow: hidden;
  }

  .cp-ui {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 4.35rem 1rem 5.75rem !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cp-proclamation {
    max-width: none;
    text-align: left;
    order: 1;
  }

  .cp-headline {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .cp-lede,
  .cp-honesty-note {
    max-width: none;
    font-size: 0.78rem;
  }

  .cp-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.85rem;
  }

  .cp-cta-row .cp-cta:nth-child(n + 3) {
    display: none;
  }

  .cp-door-strip {
    display: block !important;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
  }

  .cp-door-strip-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.54rem;
  }

  .cp-door-strip-grid {
    max-width: none;
    width: 100%;
    gap: 0.38rem;
  }

  .cp-door-card {
    min-height: 2.75rem;
    padding: 0.48rem 0.55rem;
  }

  .cp-portal-stage {
    display: none !important;
  }

  .cp-steward {
    display: none !important;
  }

  .cp-scale-fact {
    display: none !important;
  }

  .cp-stats-rail {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.25rem;
    z-index: 30;
  }

  .cp-stat:nth-child(n + 5) {
    display: none;
  }

  .cp-stat strong {
    font-size: 0.62rem;
  }

  .cp-stat span {
    font-size: 0.44rem;
  }
}

@media (max-width: 390px) {
  .cp-header {
    padding: 0.72rem 0.85rem;
  }

  .cp-brand {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .cp-ui {
    padding-inline: 0.85rem !important;
  }

  .cp-cta-row {
    grid-template-columns: 1fr;
  }

  .cp-cta-row .cp-cta:nth-child(2) {
    display: inline-flex;
  }
}
