/* ============================================================
   PlayImps — Orbis landing page
   Ported from the Claude Design prototype "PlayImps Orbis.html".
   Class names kept identical to the prototype for a faithful port.
   ============================================================ */
:root {
  --bg: #010828;
  --bg-2: #020d33;
  --cream: #eff4ff;
  --neon: #6fff00;
  --purple-a: #b724ff;
  --purple-b: #7c3aed;
  --grotesk: "Anton", system-ui, sans-serif;
  --condiment: "Condiment", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  --maxw: 1831px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--grotesk);
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--neon);
  color: var(--bg);
}
img,
video {
  display: block;
}

.grotesk {
  font-family: var(--grotesk);
  text-transform: uppercase;
}
.condiment {
  font-family: var(--condiment);
  text-transform: none;
  color: var(--neon);
}
.neon {
  color: var(--neon);
}

/* ---------- liquid glass ---------- */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- texture overlay ---------- */
.texture-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  mix-blend-mode: lighten;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.06  0 0 0 0 0.09  0 0 0 0 0.16  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------- shared section frame ---------- */
.section {
  position: relative;
  width: 100%;
}
.bg-video,
.bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bg-fallback {
  background: radial-gradient(900px 600px at 75% 20%, rgba(111, 255, 0, 0.06), transparent 60%),
    radial-gradient(800px 700px at 15% 90%, rgba(124, 58, 237, 0.18), transparent 60%), var(--bg);
}
.bg-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.snow-global {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 60;
  pointer-events: none;
  opacity: 0.85;
}
.frame {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px);
}
.scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ---------- nav ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.topbar-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.logo .dot {
  color: var(--neon);
}
.nav {
  display: none;
}
@media (min-width: 1024px) {
  .nav {
    display: block;
  }
}
.nav-in {
  display: flex;
  gap: 38px;
  align-items: center;
  border-radius: 28px;
  padding: 24px 52px;
}
.nav-in a {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-in a:hover {
  color: var(--neon);
}
.topbar-right {
  width: 140px;
  display: flex;
  justify-content: flex-end;
}
.topbar-cta {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 14px;
}

/* social icon buttons */
.ico-btn {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.ico-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.ico-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--cream);
}

/* ---------- HERO ---------- */
#hero {
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}
#hero .scrim {
  background: linear-gradient(
    180deg,
    rgba(1, 8, 40, 0.55) 0%,
    rgba(1, 8, 40, 0.15) 30%,
    rgba(1, 8, 40, 0.35) 100%
  );
}
.hero-grid {
  position: relative;
  z-index: 3;
  height: 100svh;
  min-height: 680px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-head-wrap {
  position: relative;
  max-width: 780px;
}
@media (min-width: 1024px) {
  .hero-head-wrap {
    margin-left: 128px;
  }
}
.hero-head {
  font-size: clamp(40px, 8vw, 90px);
  line-height: 1.05;
}
@media (min-width: 768px) {
  .hero-head {
    line-height: 1;
  }
}
.hero-head .paren {
  color: var(--neon);
}
.hero-accent {
  position: absolute;
  right: -6px;
  top: -38px;
  font-family: var(--condiment);
  color: var(--neon);
  font-size: clamp(24px, 4vw, 48px);
  transform: rotate(-1deg);
  mix-blend-mode: exclusion;
  opacity: 0.9;
  text-transform: none;
}
@media (min-width: 1024px) {
  .hero-accent {
    right: -40px;
    top: -30px;
  }
}
.hero-social-desktop {
  position: absolute;
  top: clamp(96px, 12vw, 150px);
  right: clamp(20px, 4vw, 72px);
  z-index: 6;
  display: none;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) {
  .hero-social-desktop {
    display: flex;
  }
}
.hero-social-mobile {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 42px;
}
@media (min-width: 1024px) {
  .hero-social-mobile {
    display: none;
  }
}

/* ---------- ABOUT ---------- */
#about {
  padding: clamp(64px, 9vw, 96px) 0;
  overflow: hidden;
}
#about .scrim {
  background: linear-gradient(180deg, rgba(1, 8, 40, 0.5), rgba(1, 8, 40, 0.7));
}
.about-top {
  display: flex;
  flex-direction: column;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .about-top {
    flex-direction: row;
    align-items: flex-start;
  }
}
.about-head-wrap {
  position: relative;
}
.about-head {
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1;
}
.about-accent {
  position: absolute;
  right: -8px;
  bottom: -30px;
  font-family: var(--condiment);
  color: var(--neon);
  font-size: clamp(36px, 5.5vw, 68px);
  transform: rotate(-2deg);
  mix-blend-mode: exclusion;
  text-transform: none;
}
.about-lead {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.5;
  color: var(--cream);
  max-width: 266px;
}
.about-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(60px, 10vw, 120px);
  gap: 40px;
}
.about-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-col.right {
  display: none;
}
@media (min-width: 1024px) {
  .about-col.right {
    display: flex;
  }
}
.about-ghost {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.4;
  max-width: 360px;
  color: #fff;
  opacity: 1;
}

/* ---------- COLLECTION ---------- */
#collection {
  background: var(--bg);
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 10vw, 130px);
  position: relative;
}
.col-head {
  display: flex;
  flex-direction: column;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .col-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.col-title {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
}
.col-title .l2 {
  display: block;
  margin-left: clamp(48px, 8vw, 128px);
}
.see-all {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}
.see-all-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.see-all .big {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.9;
}
.see-all .stack {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 0.92;
}
.see-all-bar {
  height: clamp(6px, 1vw, 10px);
  width: 100%;
  background: var(--neon);
  margin-top: 14px;
  transition: transform 0.25s var(--ease);
  transform-origin: left;
}
.see-all:hover .see-all-bar {
  transform: scaleX(1.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 3D holo imp card */
.card {
  border-radius: 32px;
  padding: 18px;
  cursor: pointer;
  transition: background 0.2s;
  perspective: 900px;
}
.card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.imp-stage {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 30% 18%, #0a1545 0%, #03081f 55%, #01040f 100%);
}
.imp-stage canvas.cardstars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
}
.imp-stage .cardvid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}
.imp-holo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(111, 255, 0, 0.18) 46%,
    rgba(183, 36, 255, 0.22) 54%,
    transparent 70%
  );
}
.card:hover .imp-holo {
  opacity: 1;
}
.imp-mount {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  transform: translateZ(48px);
}
.imp-mount .imp-host {
  width: 78%;
  height: 78%;
}
.imp-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%) translateZ(20px);
  background: radial-gradient(circle, rgba(111, 255, 0, 0.22), transparent 65%);
  z-index: 2;
  filter: blur(6px);
  pointer-events: none;
}

.card-bar {
  margin-top: 14px;
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-bar .meta .lbl {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(239, 244, 255, 0.7);
}
.card-bar .meta .val {
  font-family: var(--grotesk);
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.card-bar .meta .name {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 0.04em;
}
.arrow-btn {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple-a), var(--purple-b));
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
  transition: transform 0.2s var(--ease);
}
.arrow-btn:hover {
  transform: scale(1.1);
}
.arrow-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* ---------- CTA ---------- */
#cta {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
#cta .cta-video {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}
#cta .cta-fallback {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: radial-gradient(700px 500px at 70% 30%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(600px 500px at 20% 80%, rgba(111, 255, 0, 0.08), transparent 60%), var(--bg);
}
.cta-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media (min-width: 1024px) {
  .cta-copy {
    padding-right: 20%;
    padding-left: 15%;
  }
}
.cta-block {
  position: relative;
  text-align: right;
}
.cta-accent {
  position: absolute;
  left: -4px;
  top: -34px;
  font-family: var(--condiment);
  color: var(--neon);
  font-size: clamp(17px, 5vw, 68px);
  transform: rotate(-2deg);
  mix-blend-mode: exclusion;
  text-transform: none;
}
@media (min-width: 1024px) {
  .cta-accent {
    left: -24px;
    top: -46px;
  }
}
.cta-head {
  font-size: clamp(16px, 4.4vw, 60px);
  line-height: 1.04;
}
.cta-head .join {
  display: block;
  margin-bottom: clamp(16px, 3vw, 48px);
}
.cta-social {
  position: absolute;
  z-index: 6;
  left: 8%;
  bottom: 14%;
}
@media (max-width: 1023px) {
  .cta-social {
    left: 50%;
    transform: translateX(-50%);
    bottom: 6%;
  }
}
.cta-social-in {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
}
.cta-social-in .ico-btn {
  width: clamp(120px, 16vw, 260px);
  height: clamp(64px, 8vw, 104px);
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-social-in .ico-btn:last-child {
  border-bottom: none;
}
.cta-social-in .ico-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* footer line */
.footnote {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 40px 20px 54px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(239, 244, 255, 0.45);
  background: var(--bg);
}
.footnote a {
  color: rgba(239, 244, 255, 0.7);
  border-bottom: 1px dotted rgba(239, 244, 255, 0.3);
}
.footnote a:hover {
  color: var(--neon);
}

/* ---------- WIN / FAIL ---------- */
#winfail {
  background: var(--bg);
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 10vw, 130px);
  position: relative;
}
.wf-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.wf-title {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
}
.wf-title .l2 {
  display: block;
  margin-left: clamp(48px, 8vw, 128px);
}
.wf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 36px);
}
@media (min-width: 900px) {
  .wf-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.wf-col {
  border-radius: 28px;
  padding: clamp(28px, 3vw, 48px);
}
.wf-fail {
  border: 1px solid rgba(183, 36, 255, 0.28);
}
.wf-win {
  border: 1px solid rgba(111, 255, 0, 0.28);
}
.wf-col-h {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1;
  margin-bottom: clamp(22px, 2.6vw, 36px);
}
.wf-col-h .bad {
  color: var(--purple-a);
}
.wf-col-h .good {
  color: var(--neon);
}
.wf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wf-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.4;
  color: var(--cream);
}
.wf-list .ic {
  flex: none;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}
.wf-fail .ic {
  color: var(--purple-a);
}
.wf-win .ic {
  color: var(--neon);
}

/* ---------- HOW IT WORKS ---------- */
#how {
  background: var(--bg-2);
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--neon);
}
.how-head {
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 760px;
}
.how-title {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.02;
  margin: 18px 0 14px;
}
.how-sub {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.5;
  color: rgba(239, 244, 255, 0.6);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
@media (min-width: 860px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  border-radius: 24px;
  padding: clamp(26px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step .num {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--neon);
}
.step h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
}
.step p {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.5;
  color: rgba(239, 244, 255, 0.7);
}
.step .code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: auto;
}
.step .code .gn {
  color: var(--neon);
}

/* ---------- PLAY IT YOURSELF ---------- */
#play {
  background: var(--bg);
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}
.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .play-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.play-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin: 18px 0 18px;
}
.play-sub {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.6;
  color: rgba(239, 244, 255, 0.7);
  max-width: 42ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}
.chip {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  transition: 0.2s;
}
.chip:hover,
.chip.active {
  border-color: var(--neon);
  color: var(--neon);
}
.prompt-bubble {
  border-radius: 20px;
  padding: 22px 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 520px;
}
.pb-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(239, 244, 255, 0.5);
}
.pb-text {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream);
  margin-top: 10px;
}
.play-phone {
  justify-self: center;
  width: clamp(260px, 80vw, 340px);
  aspect-ratio: 9 / 19;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(160deg, #1a1d3a, #06070f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
/* Real demo playable in the phone (replaces the design-tool <image-slot>). */
.play-phone .phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #05060f;
  display: block;
}
.play-phone .phone-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* faint loading shimmer behind the iframe before it paints */
.play-phone .phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 30% 18%, #0a1545 0%, #03081f 55%, #01040f 100%);
}

/* ============================================================
   Mood eyes — the prototype's setMood() toggles `.on` between
   three eyesets, but the prototype shipped no CSS for it, so all
   three stacked. These rules implement the obvious intent:
   exactly one eyeset visible at a time (neutral by default,
   happy on card hover).
   ============================================================ */
.imp-eyeset {
  display: none;
}
.imp-eyeset.on {
  display: block;
}

/* neon click-burst particle (spawned imperatively by ImpCard) */
.imp-burst {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 0 8px currentColor;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

/* ============================================================
   STUDIO — the generation workspace (/studio). Branded cosmic-neon,
   reusing the landing's vars + .liquid-glass.
   ============================================================ */
.studio {
  position: relative;
  z-index: 70;
  min-height: 100vh;
  background: radial-gradient(1100px 700px at 80% -10%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(111, 255, 0, 0.06), transparent 60%), var(--bg);
}
.studio-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 2.6vw, 28px) clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(1, 8, 40, 0.6);
}
.studio-bar .logo {
  font-size: 18px;
}
.studio-bar .logo .dot,
.studio-bar .dot {
  color: var(--neon);
}
.studio-title {
  font-size: 18px;
  color: var(--neon);
  letter-spacing: 0.06em;
  margin-right: auto;
}
.studio-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 40px) 80px;
}
.dim {
  color: rgba(239, 244, 255, 0.5);
}

/* panels */
.panel {
  border-radius: 22px;
  padding: clamp(18px, 2vw, 24px);
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.panel-head h3 {
  font-size: clamp(18px, 2.2vw, 24px);
}

/* form controls */
.field {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.field:focus {
  border-color: var(--neon);
}
.prompt-field {
  width: 100%;
  resize: vertical;
}
.gen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}
.gen-ctl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gen-lbl {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: rgba(239, 244, 255, 0.5);
}
.net-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.net-chip {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.18s;
}
.net-chip:hover {
  border-color: rgba(111, 255, 0, 0.5);
}
.net-chip.on {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(111, 255, 0, 0.08);
}
.gen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.demo-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(239, 244, 255, 0.7);
  cursor: pointer;
}
.gen-note {
  margin-top: 10px;
  font-size: 12px;
}
.gen-err {
  margin-top: 10px;
  color: #ff8a8f;
  font-family: var(--mono);
  font-size: 13px;
}

/* buttons */
.btn-neon {
  font-family: var(--grotesk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--bg);
  background: var(--neon);
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(111, 255, 0, 0.28);
}
.btn-neon:hover:not(:disabled) {
  transform: translateY(-2px);
}
.btn-neon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-ghost {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
}
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* job feed */
.job-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.job-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.job-card-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.job-id {
  font-family: var(--grotesk);
  text-transform: uppercase;
  font-size: 15px;
  color: var(--neon);
  letter-spacing: 0.03em;
}
.job-prompt {
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-card-side {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* status pills */
.status-pill {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}
.status-pill.ok {
  background: rgba(111, 255, 0, 0.12);
  color: var(--neon);
}
.status-pill.run {
  background: rgba(124, 58, 237, 0.2);
  color: #c4a8ff;
}
.status-pill.bad {
  background: rgba(183, 36, 255, 0.18);
  color: #ff8a8f;
}

/* stage bar */
.stage-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.stage-pill {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(239, 244, 255, 0.4);
  border: 1px solid transparent;
}
.stage-pill.on {
  background: rgba(111, 255, 0, 0.12);
  color: var(--neon);
  border-color: rgba(111, 255, 0, 0.4);
}
.stage-pill.run {
  background: rgba(124, 58, 237, 0.22);
  color: #c4a8ff;
}
.stage-pill.bad {
  background: rgba(183, 36, 255, 0.18);
  color: #ff8a8f;
}

/* creative gallery */
.creative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}
.creative-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creative-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 30% 18%, #0a1545 0%, #03081f 55%, #01040f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.creative-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.badge.ok {
  background: rgba(111, 255, 0, 0.85);
  color: var(--bg);
}
.badge.flag {
  background: rgba(229, 72, 77, 0.9);
  color: #fff;
}
.creative-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creative-sub {
  font-family: var(--mono);
  font-size: 10px;
}

/* job detail */
.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-head h2 {
  font-size: clamp(20px, 3vw, 28px);
}
.back-btn {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}
.detail-prompt {
  font-family: var(--mono);
  font-size: 13px;
  margin-top: 12px;
}
.detail-rationale {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}
.detail-fixes {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 8px;
}
.regen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.regen-msg {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.qa-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.variant-name {
  font-family: var(--grotesk);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 16px;
}
.dl-links {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}

/* phone preview */
.phone-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.phone-frame {
  width: 195px;
  height: 422px;
  border: 6px solid #1a1d3a;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.phone-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(239, 244, 255, 0.5);
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* mode tags (art mode / demo) */
.mode-tag {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(111, 255, 0, 0.1);
  color: var(--neon);
  border: 1px solid rgba(111, 255, 0, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.mode-tag.demo {
  background: rgba(255, 176, 32, 0.12);
  color: #ffc14d;
  border-color: rgba(255, 176, 32, 0.4);
}
.gallery-note {
  font-size: 12px;
  line-height: 1.5;
  margin: -4px 0 14px;
  max-width: 60ch;
}

/* creative-name hint (Channel C convention) */
.creative-hint {
  font-family: var(--mono);
  font-size: 11px;
  margin: 8px 0 0;
}
.creative-hint code {
  color: var(--neon);
  background: rgba(111, 255, 0, 0.08);
  border: 1px solid rgba(111, 255, 0, 0.25);
  border-radius: 6px;
  padding: 1px 6px;
}

/* billing / pricing */
.pricing-wrap {
  margin-top: 12px;
}

/* auth shell (Clerk SignIn / org picker) */
.auth-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: clamp(40px, 10vh, 120px);
  text-align: center;
}
.studio-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* confidence verdict line */
.conf-line {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  margin: 0 0 12px;
}
.conf-line.winner {
  color: var(--neon);
}
.conf-line.leading {
  color: #ffc14d;
}
.conf-line.insufficient {
  color: rgba(239, 244, 255, 0.5);
}
code.cb {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--neon);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(111, 255, 0, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 4px;
  word-break: break-all;
}

/* the Gauntlet — signal leaderboard */
.signal-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signal-row {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.signal-row.winner {
  border-color: rgba(111, 255, 0, 0.45);
  background: rgba(111, 255, 0, 0.05);
}
.signal-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.signal-rank {
  width: 28px;
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(239, 244, 255, 0.6);
  flex-shrink: 0;
}
.signal-name {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cream);
  width: 168px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(111, 255, 0, 0.18);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(111, 255, 0, 0.5), var(--neon));
  transition: width 0.4s var(--ease);
}
.winner .bar-fill {
  box-shadow: 0 0 14px rgba(111, 255, 0, 0.5);
}
.signal-score {
  font-family: var(--grotesk);
  font-size: 18px;
  color: var(--neon);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}
.signal-plays {
  font-family: var(--mono);
  font-size: 11px;
  width: 64px;
  text-align: right;
  flex-shrink: 0;
}
.signal-breakdown {
  font-family: var(--mono);
  font-size: 11px;
  margin: 6px 0 0 40px;
}
.signal-foot {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.5;
}

/* landing CTA → studio button */
.cta-summon-btn {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--grotesk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--bg);
  background: var(--neon);
  border-radius: 12px;
  padding: 14px 26px;
  box-shadow: 0 6px 24px rgba(111, 255, 0, 0.3);
  transition: transform 0.15s var(--ease);
}
.cta-summon-btn:hover {
  transform: translateY(-2px);
}
