/* Droi home orbit refinement: Framer/Marketeam-inspired layout layer. */

:root {
  --orbit-canvas: rgba(4, 6, 16, 0.72);
  --orbit-surface: rgba(10, 14, 31, 0.62);
  --orbit-line: rgba(220, 228, 255, 0.18);
  --orbit-line-strong: rgba(225, 234, 255, 0.34);
  --orbit-ink: rgba(248, 250, 255, 0.94);
  --orbit-muted: rgba(224, 230, 255, 0.58);
  --orbit-violet: #8a78ff;
  --orbit-cyan: #74e5ff;
}

.scanline {
  opacity: 0.16;
}

.bg-mid,
.bg-left {
  opacity: 0.32;
}

.spotlight-overlay {
  background:
    radial-gradient(circle at 28% 44%, rgba(4, 6, 16, 0.05) 0, rgba(4, 6, 16, 0.18) 42%, rgba(2, 4, 12, 0.54) 100%);
}

.header {
  padding-inline: clamp(2rem, 4.6vw, 4.8rem);
}

.admin-login-btn {
  min-height: 42px;
  padding-inline: 1.18rem;
  border-radius: 999px;
}

.header-link {
  color: rgba(246, 248, 255, 0.76);
}

.home-view .hero {
  width: min(1180px, calc(100vw - 64px));
  min-height: calc(100dvh - 96px);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 46px) 0 clamp(46px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(480px, 0.98fr) minmax(360px, 0.82fr);
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5vw, 72px);
  text-align: left;
}

.hero-content {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.badge {
  margin-bottom: 1.35rem;
  padding: 0.5rem 1.05rem;
  border-color: rgba(246, 200, 95, 0.24);
}

.title {
  max-width: 670px;
  margin-bottom: 1.25rem;
  font-size: 5.45rem;
  line-height: 0.90;
  letter-spacing: 0;
  text-align: left;
}

.subtitle {
  max-width: 560px;
  margin-bottom: 1.65rem;
  font-size: 1.25rem;
  color: rgba(226, 232, 255, 0.70);
  text-align: left;
}

.inspire-section {
  margin-bottom: 1.25rem;
  justify-content: flex-start;
}

.inspire-text {
  font-size: 1rem;
  font-weight: 700;
}

.inspire-entry-btn {
  min-height: 44px;
  min-width: 148px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(10, 14, 31, 0.58);
  border-color: rgba(202, 214, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.20);
}

.inspire-entry-btn:hover {
  background:
    radial-gradient(circle at 22% 50%, rgba(116, 229, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.045)),
    rgba(10, 14, 31, 0.68);
}

.waitlist-form {
  width: min(640px, 100%);
  max-width: 640px;
  min-height: 68px;
  margin-bottom: 1.05rem;
  padding: 0.58rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(7, 10, 24, 0.72);
  border-color: rgba(205, 216, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 26px 70px rgba(0, 0, 0, 0.22);
}

.waitlist-form:focus-within {
  border-color: rgba(116, 229, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(116, 229, 255, 0.10),
    0 26px 70px rgba(0, 0, 0, 0.26);
  transform: none;
}

.email-input {
  min-height: 50px;
  padding-inline: 1.35rem;
}

.email-input::placeholder {
  color: rgba(235, 240, 255, 0.56);
}

.submit-btn {
  min-width: 136px;
  min-height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #72e4ff 0%, #8376ff 54%, #be73ff 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 14px 34px rgba(124, 109, 255, 0.24);
}

.stats {
  align-items: flex-start;
}

.joined-count svg {
  fill: #7c6dff;
  filter: drop-shadow(0 0 10px rgba(124, 109, 255, 0.4));
}

.joined-count svg path {
  stroke: #090d1d;
}

.limited-slots {
  letter-spacing: 0.12em;
}

.hero-orbit {
  position: relative;
  z-index: 11;
  width: min(460px, 100%);
  justify-self: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

body:has(#droi-intro) .hero-orbit {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.orbit-card {
  position: relative;
  aspect-ratio: 1;
  min-height: 380px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 18%, rgba(246, 200, 95, 0.18), transparent 24%),
    radial-gradient(circle at 62% 26%, rgba(138, 120, 255, 0.36), transparent 36%),
    radial-gradient(circle at 74% 68%, rgba(116, 229, 255, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(11, 16, 36, 0.76), rgba(3, 5, 12, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(130%);
}

.orbit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 8% 12%, rgba(255, 210, 160, 0.22), transparent 24%);
  opacity: 0.7;
  pointer-events: none;
}

.orbit-rings {
  position: absolute;
  inset: 7%;
}

.orbit-ring,
.orbit-core,
.orbit-node,
.orbit-dot {
  position: absolute;
}

.orbit-ring {
  inset: 50%;
  border: 1px solid var(--orbit-line);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.orbit-ring-one {
  width: 72%;
  height: 72%;
}

.orbit-ring-two {
  width: 52%;
  height: 52%;
  border-color: rgba(220, 228, 255, 0.24);
}

.orbit-ring-three {
  width: 32%;
  height: 32%;
  border-color: rgba(220, 228, 255, 0.18);
}

.orbit-core {
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  color: var(--orbit-ink);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 34%),
    rgba(6, 9, 20, 0.36);
  transform: translate(-50%, -50%);
}

.orbit-core strong {
  font-size: 3.35rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.orbit-core small {
  color: var(--orbit-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.orbit-node {
  min-width: 76px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(248, 250, 255, 0.92);
  background: rgba(3, 5, 12, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 1px rgba(124, 109, 255, 0.10),
    0 12px 24px rgba(0, 0, 0, 0.30);
}

.orbit-node b {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.orbit-node-one {
  left: 20%;
  top: 62%;
  transform: rotate(-12deg);
}

.orbit-node-two {
  right: 7%;
  top: 36%;
  transform: rotate(8deg);
}

.orbit-node-three {
  left: 36%;
  top: 16%;
  min-width: 60px;
  transform: rotate(8deg);
}

.orbit-node-four {
  right: 28%;
  bottom: 9%;
  transform: rotate(-4deg);
}

.orbit-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #f8d878;
  box-shadow: 0 0 18px rgba(248, 216, 120, 0.68);
}

.orbit-dot-one {
  right: 20%;
  top: 19%;
}

.orbit-dot-two {
  left: 18%;
  top: 34%;
  background: var(--orbit-cyan);
  box-shadow: 0 0 18px rgba(116, 229, 255, 0.62);
}

.orbit-dot-three {
  right: 14%;
  bottom: 25%;
  background: var(--orbit-violet);
  box-shadow: 0 0 18px rgba(138, 120, 255, 0.64);
}

.orbit-caption {
  position: absolute;
  left: 30px;
  bottom: 28px;
  display: grid;
  gap: 3px;
  color: rgba(248, 250, 255, 0.88);
}

.orbit-caption span {
  color: rgba(224, 230, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.orbit-caption strong {
  font-size: 1.18rem;
  letter-spacing: 0;
}

@media (min-width: 981px) {
  .hero-content {
    transform: translateY(-24px);
  }

  .hero-orbit {
    transform: translateY(-18px);
  }

  body:has(#droi-intro) .hero-orbit {
    transform: translateY(0) scale(0.98);
  }
}

@media (max-width: 980px) {
  .home-view .hero {
    width: min(760px, calc(100vw - 42px));
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 28px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .title,
  .subtitle {
    text-align: center;
  }

  .inspire-section {
    justify-content: center;
  }

  .stats {
    align-items: center;
  }

  .hero-orbit {
    display: none;
  }
}

@media (max-width: 640px) {
  .header {
    padding-inline: 20px;
  }

  .header-link {
    display: none;
  }

  .admin-login-btn {
    min-height: 36px;
    padding-inline: 0.9rem;
  }

  .home-view .hero {
    width: min(100%, calc(100vw - 32px));
    min-height: calc(100dvh - 78px);
    gap: 0;
    padding-bottom: 42px;
  }

  .title {
    max-width: 100%;
    font-size: 3.25rem;
    line-height: 0.92;
    letter-spacing: 0;
  }

  .subtitle {
    max-width: 300px;
    margin-bottom: 1.65rem;
    font-size: 0.95rem;
  }

  .waitlist-form {
    width: 100%;
    min-height: auto;
    border-radius: 22px;
  }

  .email-input {
    min-width: 100%;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
  }
}

/* Generation progress: comet-tail progress rail. */
.progress-container .progress-bar-bg {
  width: min(560px, calc(100vw - 56px));
  max-width: 560px;
  height: 2px;
  margin-top: -0.35rem;
  margin-bottom: -0.25rem;
  overflow: visible;
  background:
    linear-gradient(90deg,
      rgba(116, 229, 255, 0) 0%,
      rgba(116, 229, 255, 0.08) 18%,
      rgba(210, 190, 255, 0.12) 54%,
      rgba(138, 120, 255, 0.04) 100%);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 24px rgba(124, 109, 255, 0.10);
}

.progress-container .progress-bar-bg::before {
  content: "";
  position: absolute;
  inset: -13px 0;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(138, 120, 255, 0.16) 0%,
      rgba(116, 229, 255, 0.055) 34%,
      transparent 72%);
  opacity: 0.58;
  pointer-events: none;
}

.progress-container .progress-bar-fill {
  height: 100%;
  min-width: 6px;
  overflow: visible;
  background:
    linear-gradient(90deg,
      rgba(116, 229, 255, 0) 0%,
      rgba(116, 229, 255, 0.22) 18%,
      rgba(132, 118, 255, 0.74) 62%,
      rgba(245, 238, 255, 0.96) 100%);
  border-radius: 999px;
  box-shadow:
    0 0 14px rgba(116, 229, 255, 0.22),
    0 0 28px rgba(138, 120, 255, 0.22);
  transition: width 0.48s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.progress-container .progress-bar-fill::before {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: clamp(92px, 38vw, 236px);
  height: 18px;
  transform: translateY(-50%) translateX(-100%);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(116, 229, 255, 0) 0%,
      rgba(116, 229, 255, 0.12) 22%,
      rgba(138, 120, 255, 0.34) 64%,
      rgba(255, 255, 255, 0.58) 100%);
  filter: blur(5px);
  opacity: 0.9;
  pointer-events: none;
  animation: droiProgressTailBreathe 1.8s ease-in-out infinite;
}

.progress-container .progress-bar-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle,
      #fff 0%,
      #eef8ff 22%,
      #c7b5ff 52%,
      rgba(138, 120, 255, 0) 76%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.92),
    0 0 18px rgba(116, 229, 255, 0.68),
    0 0 34px rgba(138, 120, 255, 0.52);
  z-index: 3;
  animation: droiProgressHeadPulse 1.35s ease-in-out infinite;
}

.progress-container .progress-text {
  margin-bottom: 0.15rem;
}

@keyframes droiProgressTailBreathe {
  0%, 100% {
    opacity: 0.68;
    filter: blur(5px);
  }
  50% {
    opacity: 1;
    filter: blur(6.5px);
  }
}

@keyframes droiProgressHeadPulse {
  0%, 100% {
    transform: translateY(-50%) scale(0.92);
  }
  50% {
    transform: translateY(-50%) scale(1.18);
  }
}

/* ===== Gamia Ai final home rendered state ===== */
:root {
  --gamia-bg-deep: #020615;
  --gamia-panel: rgba(15, 24, 54, 0.64);
  --gamia-text: rgba(255, 255, 255, 0.96);
  --gamia-text-soft: rgba(232, 238, 255, 0.76);
  --gamia-text-muted: rgba(220, 230, 255, 0.48);
  --gamia-blue-100: #eaf6ff;
  --gamia-blue-200: #b8ddff;
  --gamia-blue-300: #80caff;
  --gamia-blue-400: #4aa7ff;
  --gamia-blue-500: #2678ff;
  --gamia-violet: #766dff;
  --gamia-border-soft: rgba(160, 190, 255, 0.32);
  --gamia-border-bright: rgba(120, 195, 255, 0.72);
  --gamia-glow-soft: rgba(80, 170, 255, 0.32);
  --gamia-glow-strong: rgba(80, 170, 255, 0.52);
}

body {
  background: var(--gamia-bg-deep) !important;
}

body::before,
body::after,
.spotlight-overlay,
.spotlight-glow,
.bg-layer,
.scanline,
.starlight-container,
#droiDiagnosticsToggle,
.droi-diagnostic-toggle,
.debug-panel,
.carousel-arrow {
  display: none !important;
}

.home-view {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--gamia-text);
  background: var(--gamia-bg-deep);
}

.home-view::before {
  content: "";
  position: absolute;
  inset: -1.5%;
  z-index: 0;
  pointer-events: none;
  background: url("UI desgin/background.png") center center / cover no-repeat;
  transform: none;
  filter: none;
  animation: none;
}

.home-view::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 30;
  pointer-events: none;
  border: 1px solid rgba(130, 160, 255, 0.18);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 40px rgba(40, 90, 255, 0.08);
}

.home-view .header {
  position: absolute;
  top: 42px;
  left: 56px;
  right: 56px;
  z-index: 20;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-view .logo {
  color: rgba(255, 255, 255, 0.94);
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(100, 150, 255, 0.16);
}

.home-view .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.home-view .admin-login-btn {
  height: 48px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(170, 190, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(100, 130, 255, 0.08);
  backdrop-filter: blur(12px);
}

.home-view .header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.home-view .header-link svg {
  width: 18px;
  height: 18px;
}

.home-view .hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0 24px 34px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.home-view .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(2, 5, 16, 0.58) 0%, rgba(2, 5, 16, 0.42) 31%, rgba(2, 4, 14, 0.14) 58%, transparent 78%),
    radial-gradient(ellipse at 50% 72%, rgba(1, 3, 11, 0.44) 0%, rgba(1, 3, 11, 0.14) 42%, transparent 70%),
    radial-gradient(ellipse at 0% 55%, rgba(33, 136, 255, 0.13) 0%, transparent 38%),
    radial-gradient(ellipse at 100% 58%, rgba(139, 67, 255, 0.16) 0%, transparent 40%),
    linear-gradient(180deg, rgba(2, 4, 14, 0.02) 0%, rgba(2, 4, 14, 0.10) 42%, rgba(2, 4, 14, 0.56) 100%);
}

.home-view .hero-content {
  position: relative;
  z-index: 10;
  width: min(1360px, calc(100vw - 48px));
  min-width: 0;
  margin: 0 auto;
  padding-top: clamp(182px, 20.5vh, 212px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: none !important;
}

.home-view .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 0;
  padding: 0 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(8, 13, 32, 0.42);
  border: 1px solid rgba(120, 170, 255, 0.32);
  box-shadow:
    0 0 18px rgba(85, 150, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
}

.home-view .title {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 90px;
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 880;
  text-align: center;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.18),
    0 0 34px rgba(105, 160, 255, 0.16),
    0 18px 52px rgba(0, 0, 0, 0.34);
  background: none !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
  filter: none;
}

.home-view .title-ai-accent {
  background:
    linear-gradient(135deg, #7eeeff 0%, #55bfff 40%, #7d8cff 78%, #b3c7ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(80, 180, 255, 0.32));
}

.home-view .subtitle {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(232, 238, 255, 0.76);
  font-size: 24px;
  line-height: 1.36;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.42);
}

.home-view .inspire-section {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.home-view .inspire-text {
  color: rgba(235, 240, 255, 0.82);
  font-size: 24px;
  font-weight: 760;
  font-style: italic;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.home-view .inspire-entry-btn {
  position: relative;
  isolation: isolate;
  height: 64px;
  min-height: 64px;
  min-width: 252px;
  padding: 0 34px;
  border: 1px solid rgba(210, 225, 255, 0.72) !important;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff !important;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 0.92) 0%, rgba(210, 230, 255, 0.82) 22%, rgba(91, 130, 255, 0.76) 56%, rgba(35, 110, 255, 0.86) 100%) !important;
  box-shadow:
    0 0 22px rgba(80, 170, 255, 0.48),
    0 0 52px rgba(45, 130, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(20, 50, 140, 0.38) !important;
  text-shadow: none !important;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
  animation: gamiaInspireBreathe 4.6s ease-in-out infinite;
}

.home-view .inspire-entry-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 44%, rgba(255, 255, 255, 0) 100%);
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.home-view .inspire-entry-btn::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  bottom: -40%;
  left: -55%;
  width: 42%;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  opacity: 0.42;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  filter: none;
  transform: rotate(18deg);
  animation: gamiaInspireSweep 4.2s ease-in-out infinite;
}

.home-view .inspire-entry-btn .sparkle-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: #fff;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 18px rgba(80, 170, 255, 0.55));
}

.home-view .inspire-entry-btn:hover {
  transform: translateY(-1px) scale(1.018);
  border-color: rgba(235, 245, 255, 0.92) !important;
  background:
    radial-gradient(circle at 82% 42%, rgba(255, 255, 255, 1) 0%, rgba(222, 238, 255, 0.88) 22%, rgba(102, 142, 255, 0.80) 56%, rgba(42, 120, 255, 0.90) 100%) !important;
  box-shadow:
    0 0 28px rgba(95, 190, 255, 0.58),
    0 0 68px rgba(45, 130, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

.home-view .inspire-entry-btn:active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.96);
}

.home-view .waitlist-form {
  position: relative;
  z-index: 10;
  width: min(788px, calc(100vw - 64px));
  max-width: 788px;
  height: 94px;
  min-height: 94px;
  margin: 22px auto 0;
  padding: 12px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(22, 35, 74, 0.62), rgba(9, 15, 36, 0.62));
  border: 1px solid rgba(160, 190, 255, 0.46);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 22px 70px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(88, 142, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(135%);
  transform: none !important;
}

.home-view .waitlist-form:focus-within {
  border-color: rgba(135, 205, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 0 52px rgba(88, 160, 255, 0.24);
}

.home-view .email-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 70px;
  padding: 0 34px;
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  white-space: nowrap;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font-size: 26px;
  line-height: 70px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
}

.home-view .email-input::placeholder {
  color: rgba(225, 234, 255, 0.62);
}

.home-view .submit-btn {
  position: relative;
  height: 62px;
  min-height: 62px;
  min-width: 168px;
  border-radius: 22px;
  border: 1px solid rgba(75, 170, 255, 0.82) !important;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: 25px;
  font-weight: 820;
  letter-spacing: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(20, 38, 82, 0.78), rgba(12, 23, 55, 0.88)) !important;
  box-shadow:
    0 0 18px rgba(65, 160, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(45, 135, 255, 0.18) !important;
  text-shadow: none !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-view .submit-btn::before {
  opacity: 0.26;
  background: linear-gradient(110deg, transparent 0%, rgba(125, 205, 255, 0.22) 42%, transparent 70%);
}

.home-view .submit-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 205, 255, 0.96) !important;
  background:
    linear-gradient(180deg, rgba(24, 45, 94, 0.76), rgba(12, 26, 62, 0.88)) !important;
  box-shadow:
    0 0 17px rgba(85, 185, 255, 0.36),
    0 0 2px rgba(102, 214, 255, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 20px rgba(65, 155, 255, 0.18) !important;
}

.home-view .submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none !important;
}

.home-view .stats {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(230, 236, 255, 0.72);
  text-align: center;
}

.home-view .joined-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(230, 236, 255, 0.72);
  font-size: 19px;
  font-weight: 500;
}

.home-view .joined-count strong {
  color: #ffffff;
  font-weight: 850;
}

.home-view .joined-count svg {
  width: 28px;
  height: 28px;
  fill: url("#gamia-check-fill");
  filter: drop-shadow(0 0 18px rgba(85, 170, 255, 0.34));
}

.home-view .joined-count svg circle {
  fill: #61b8ff;
}

.home-view .joined-count svg path {
  stroke: #071328;
}

.home-view .limited-slots {
  margin-top: 0;
  color: rgba(220, 230, 255, 0.48);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.home-view .hero-orbit {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 43%;
  width: min(1010px, 74vw);
  height: 190px;
  max-width: calc(100vw - 96px);
  display: block;
  pointer-events: none;
  opacity: 1;
  transform: translate(-50%, -50%);
  background: url("assets/home/title-orbit-halo.png") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: gamiaOrbitFloat 8s ease-in-out infinite;
}

.home-view .hero-orbit > * {
  display: none !important;
}

.chat-message.user.timeline-source {
  display: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  animation: gamiaRevealUp 720ms cubic-bezier(.22, .9, .25, 1) forwards;
}

[data-reveal="header"] { animation-delay: 120ms; }
[data-reveal="badge"] { animation-delay: 220ms; }
[data-reveal="title"] { animation-delay: 320ms; }
[data-reveal="subtitle"] { animation-delay: 440ms; }
[data-reveal="inspire"] { animation-delay: 560ms; }
[data-reveal="prompt"] { animation-delay: 680ms; }
[data-reveal="stats"] { animation-delay: 800ms; }

@keyframes gamiaRevealUp {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes gamiaOrbitFloat {
  0%, 100% {
    opacity: 0.76;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes gamiaAuroraDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: saturate(1.12) brightness(0.92) contrast(1.03);
  }
  to {
    transform: scale(1.045) translate3d(-0.9%, -0.6%, 0);
    filter: saturate(1.18) brightness(0.96) contrast(1.05);
  }
}

@keyframes gamiaInspireSweep {
  0%, 58% {
    left: -55%;
  }
  82%, 100% {
    left: 110%;
  }
}

@keyframes gamiaInspireCapPulse {
  0%, 100% {
    opacity: 0.34;
    transform: scale(0.88);
  }
  45% {
    opacity: 0.58;
    transform: scale(1);
  }
}

@keyframes gamiaInspireBreathe {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(80, 170, 255, 0.48),
      0 0 52px rgba(45, 130, 255, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.52),
      inset 0 -1px 0 rgba(20, 50, 140, 0.38);
  }
  50% {
    box-shadow:
      0 0 27px rgba(95, 190, 255, 0.56),
      0 0 62px rgba(45, 130, 255, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.58),
      inset 0 -1px 0 rgba(20, 50, 140, 0.40);
  }
}

@media (max-width: 1439px) {
  .home-view .hero-content {
    padding-top: clamp(130px, 17vh, 170px);
  }

  .home-view .title {
    font-size: 82px;
  }

  .home-view .subtitle {
    font-size: 21px;
  }

  .home-view .hero-orbit {
    top: 40%;
    width: min(860px, 72vw);
    height: 156px;
    opacity: 0.78;
  }

  .home-view .waitlist-form {
    width: min(760px, calc(100vw - 64px));
    height: 82px;
    min-height: 82px;
  }

  .home-view .email-input {
    font-size: 22px;
    line-height: 58px;
  }

  .home-view .submit-btn {
    height: 56px;
    min-height: 56px;
    min-width: 160px;
    font-size: 22px;
  }

  .home-view .inspire-entry-btn {
    height: 60px;
    min-height: 60px;
    min-width: 226px;
    font-size: 25px;
  }

  .home-view .inspire-entry-btn .sparkle-icon {
    width: 24px;
    height: 24px;
  }

  .home-view .inspire-text {
    font-size: 22px;
  }

  .home-view .joined-count {
    font-size: 16px;
  }

  .home-view .limited-slots {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .home-view .header {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .home-view .logo {
    font-size: 20px;
  }

  .home-view .header-actions {
    gap: 12px;
  }

  .home-view .header-link {
    display: none;
  }

  .home-view .admin-login-btn {
    height: 38px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 14px;
  }

  .home-view .hero {
    padding-inline: 16px;
    overflow-y: auto;
  }

  .home-view .hero-content {
    width: calc(100vw - 32px);
    padding-top: 140px;
    padding-bottom: 34px;
  }

  .home-view .badge {
    height: 34px;
    padding: 0 20px;
    font-size: 12px;
  }

  .home-view .title {
    margin-top: 28px;
    font-size: 56px;
    line-height: 0.98;
    letter-spacing: 0;
  }

  .home-view .subtitle {
    font-size: 18px;
    line-height: 1.45;
  }

  .home-view .inspire-section {
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
  }

  .home-view .inspire-text {
    font-size: 18px;
  }

  .home-view .inspire-entry-btn {
    width: min(252px, 100%);
    max-width: 100%;
    min-width: 0;
    height: 60px;
    min-height: 60px;
    font-size: 24px;
  }

  .home-view .waitlist-form {
    width: 100%;
    height: auto;
    min-height: 148px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .home-view .email-input {
    width: 100%;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px;
    padding: 0 20px;
    font-size: 18px;
    line-height: 62px;
    text-align: left;
  }

  .home-view .submit-btn {
    width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    font-size: 20px;
  }

  .home-view .joined-count {
    flex-wrap: wrap;
    font-size: 14px;
  }

  .home-view .limited-slots {
    font-size: 12px;
  }

  .home-view .hero-orbit {
    top: 250px;
    width: 560px;
    max-width: calc(100vw - 24px);
    height: 108px;
    opacity: 0.24;
  }
}

@media (max-width: 480px) {
  .home-view .title {
    font-size: 46px;
  }

  .home-view .subtitle {
    font-size: 17px;
  }

  .home-view .inspire-entry-btn {
    height: 56px;
    min-height: 56px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.droi-force-intro-motion) *,
  html:not(.droi-force-intro-motion) *::before,
  html:not(.droi-force-intro-motion) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html:not(.droi-force-intro-motion) .home-view .inspire-entry-btn::after {
    animation: none !important;
  }
}

/* ===== Gamia home final refinement scale ===== */
:root {
  --hero-content-w: 980px;
  --hero-title-size: clamp(68px, 5.1vw, 90px);
  --hero-title-line: 0.94;
  --hero-title-track: 0;
  --subtitle-size: clamp(18px, 1.25vw, 22px);
  --badge-h: 28px;
  --badge-font: 11px;
  --inspire-h: 40px;
  --inspire-min-w: 152px;
  --inspire-font: 15px;
  --inspire-icon: 17px;
  --prompt-w: 680px;
  --prompt-h: 64px;
  --prompt-radius: 18px;
  --prompt-font: 16px;
  --create-w: 136px;
  --create-h: 44px;
  --create-font: 15px;
  --header-logo-size: 22px;
  --header-action-size: 13px;
}

body::before,
body::after,
.spotlight-overlay,
.spotlight-glow,
.bg-layer,
.starlight-container,
.carousel-arrow,
.side-arrow,
.diagnostics,
#droiDiagnosticsToggle,
#droiDiagnosticsPanel,
.droi-diagnostic-toggle,
.droi-diagnostic-panel,
.debug-panel,
.debug-button,
.floating-debug,
.dev-tools-entry {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.scanline,
.noise,
.crt-lines {
  opacity: 0.018 !important;
}

.history-sidebar {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.sidebar-toggle {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.home-view {
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  background: #020615;
}

.home-view::before {
  inset: 0;
  background: url("UI desgin/background.png") center center / cover no-repeat;
  transform: none;
  filter: none;
  animation: none;
}

.home-view .hero::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(5, 9, 24, 0.04) 0%, rgba(5, 9, 24, 0.28) 36%, rgba(2, 4, 14, 0.76) 100%),
    linear-gradient(180deg, rgba(2, 4, 14, 0.08) 0%, rgba(2, 4, 14, 0.16) 42%, rgba(2, 4, 14, 0.78) 100%);
}

.home-view::after {
  inset: 8px;
  z-index: 30;
  border-radius: 24px;
  border: 1px solid rgba(130, 160, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 36px rgba(40, 90, 255, 0.06);
}

.home-view .header {
  top: 34px;
  left: 48px;
  right: 48px;
  z-index: 20;
}

.home-view .logo {
  font-size: var(--header-logo-size);
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: none;
}

.home-view .header-actions {
  gap: 18px;
}

.home-view .admin-login-btn {
  height: 38px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(190, 205, 255, 0.30);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--header-action-size);
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.home-view .header-link {
  height: 38px;
  gap: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--header-action-size);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-view .header-link svg {
  width: 16px;
  height: 16px;
}

.home-view .hero {
  width: 100%;
  min-height: 100vh;
  padding: 0 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.home-view .hero-content {
  width: min(var(--hero-content-w), calc(100vw - 48px));
  padding-top: clamp(132px, 16vh, 168px);
}

.home-view .badge {
  height: var(--badge-h);
  padding: 0 22px;
  font-size: var(--badge-font);
  font-weight: 800;
  letter-spacing: 0.15em;
  background: rgba(8, 13, 32, 0.46);
  border-color: rgba(120, 170, 255, 0.30);
  box-shadow:
    0 0 14px rgba(85, 150, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-view .title {
  max-width: var(--hero-content-w);
  margin: 32px 0 0;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line);
  letter-spacing: var(--hero-title-track);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.14),
    0 0 28px rgba(105, 160, 255, 0.14);
}

.home-view .title-ai-accent {
  background: linear-gradient(135deg, #86efff 0%, #55bfff 42%, #788cff 78%, #c4d5ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 14px rgba(80, 180, 255, 0.26));
}

.home-view .subtitle {
  margin: 24px 0 0;
  font-size: var(--subtitle-size);
  line-height: 1.42;
  font-weight: 520;
  letter-spacing: 0;
}

.home-view .inspire-section {
  margin: 34px 0 0;
  gap: 12px;
}

.home-view .inspire-text {
  font-size: 17px;
  font-weight: 780;
  letter-spacing: 0;
}

.home-view .inspire-entry-btn {
  height: var(--inspire-h);
  min-height: var(--inspire-h);
  min-width: var(--inspire-min-w);
  padding: 0 20px;
  gap: 8px;
  font-size: var(--inspire-font);
  letter-spacing: 0;
  border-color: rgba(220, 232, 255, 0.68) !important;
  box-shadow:
    0 0 16px rgba(80, 170, 255, 0.36),
    0 0 36px rgba(45, 130, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -1px 0 rgba(20, 50, 140, 0.32) !important;
  animation: none;
}

.home-view .inspire-entry-btn .sparkle-icon {
  width: var(--inspire-icon);
  height: var(--inspire-icon);
}

.home-view .inspire-entry-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 20px rgba(95, 190, 255, 0.46),
    0 0 42px rgba(45, 130, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.56) !important;
}

.home-view .waitlist-form {
  width: min(var(--prompt-w), calc(100vw - 48px));
  max-width: var(--prompt-w);
  height: var(--prompt-h);
  min-height: var(--prompt-h);
  margin: 30px auto 0;
  padding: 8px;
  gap: 12px;
  border-radius: var(--prompt-radius);
  background: linear-gradient(180deg, rgba(22, 35, 74, 0.52), rgba(9, 15, 36, 0.58));
  border-color: rgba(165, 190, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 18px 52px rgba(0, 0, 0, 0.30),
    0 0 32px rgba(88, 142, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(125%);
}

.home-view .email-input {
  height: 100% !important;
  max-height: none;
  padding: 0 22px;
  font-size: var(--prompt-font);
  line-height: calc(var(--prompt-h) - 16px);
  font-weight: 580;
  letter-spacing: 0;
}

.home-view .email-input::placeholder {
  color: rgba(220, 230, 255, 0.48);
}

.home-view .submit-btn {
  height: var(--create-h);
  min-height: var(--create-h);
  min-width: var(--create-w);
  border-radius: 14px;
  font-size: var(--create-font);
  letter-spacing: 0;
  background: linear-gradient(180deg, rgba(20, 38, 82, 0.76), rgba(12, 23, 55, 0.88)) !important;
  box-shadow:
    0 0 14px rgba(65, 160, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 20px rgba(45, 135, 255, 0.15) !important;
}

.home-view .stats {
  margin-top: 24px;
  gap: 8px;
}

.home-view .joined-count {
  gap: 8px;
  font-size: 14px;
}

.home-view .joined-count svg {
  width: 18px;
  height: 18px;
}

.home-view .limited-slots {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(220, 230, 255, 0.42);
}

.home-view .hero-orbit {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
}

@media (min-width: 1440px) {
  :root {
    --hero-content-w: 980px;
    --hero-title-size: clamp(76px, 4.8vw, 90px);
    --prompt-w: 680px;
    --prompt-h: 64px;
    --prompt-font: 16px;
    --inspire-h: 40px;
    --inspire-min-w: 152px;
    --inspire-font: 15px;
    --create-w: 136px;
    --create-h: 44px;
    --create-font: 15px;
  }
}

@media (max-width: 1439px) {
  :root {
    --hero-title-size: clamp(62px, 6.2vw, 78px);
    --prompt-w: 640px;
    --prompt-h: 60px;
    --prompt-font: 15px;
    --inspire-h: 38px;
    --inspire-min-w: 144px;
    --inspire-font: 14px;
    --create-w: 126px;
    --create-h: 42px;
    --create-font: 14px;
  }

  .home-view .hero-content {
    width: min(900px, calc(100vw - 48px));
  }

  .home-view .subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .home-view .header {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .home-view .logo {
    font-size: 22px;
  }

  .home-view .header-link {
    display: none;
  }

  .home-view .hero-content {
    width: calc(100vw - 32px);
    padding-top: 132px;
  }

  .home-view .badge {
    height: 30px;
    padding: 0 18px;
    font-size: 10px;
  }

  .home-view .title {
    margin-top: 26px;
    font-size: clamp(42px, 12vw, 58px);
    line-height: 0.98;
  }

  .home-view .subtitle {
    font-size: 16px;
    line-height: 1.45;
  }

  .home-view .inspire-section {
    margin-top: 28px;
    flex-direction: column;
    gap: 12px;
  }

  .home-view .waitlist-form {
    width: 100%;
    height: auto;
    min-height: 128px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .home-view .email-input {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 18px;
    font-size: 16px;
    line-height: 54px;
  }

  .home-view .submit-btn {
    width: 100%;
    min-width: 0;
  }

  .home-view .hero-orbit {
    top: 242px;
    width: 560px;
    max-width: calc(100vw - 24px);
    height: 108px;
    opacity: 0.30;
  }
}

@media (max-width: 768px) {
  .home-view .hero {
    min-height: 100svh;
    padding-inline: 14px;
    overflow: visible;
  }

  .home-view .hero-content {
    width: calc(100vw - 40px);
    padding-top: clamp(88px, 13vh, 112px);
    padding-bottom: 20px;
  }

  .home-view .badge {
    height: 28px;
    padding: 0 16px;
    font-size: 10px;
  }

  .home-view .title {
    margin-top: 18px;
    font-size: clamp(38px, 11.2vw, 48px);
    line-height: 0.96;
  }

  .home-view .subtitle {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.38;
  }

  .home-view .inspire-section {
    margin-top: 18px;
    gap: 8px;
  }

  .home-view .inspire-text {
    font-size: 15px;
  }

  .home-view .inspire-entry-btn {
    height: 36px;
    min-height: 36px;
    min-width: 136px;
    padding: 0 16px;
    font-size: 13px;
  }

  .home-view .inspire-entry-btn .sparkle-icon {
    width: 15px;
    height: 15px;
  }

  .home-view .waitlist-form {
    width: 100%;
    min-height: 104px;
    margin-top: 18px;
    padding: 8px;
    gap: 8px;
  }

  .home-view .email-input {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 46px;
  }

  .home-view .submit-btn {
    height: 40px;
    min-height: 40px;
    font-size: 14px;
  }

  .home-view .stats {
    margin-top: 14px;
    gap: 6px;
  }
}

/* ===== Rendered-state polish: unified aurora glass controls ===== */
.home-view::before {
  background: url("UI desgin/background.png") center center / cover no-repeat;
  filter: none;
}

.home-view .hero::before {
  background: none;
}

.home-view .badge {
  position: relative;
  isolation: isolate;
  height: 42px;
  min-width: 278px;
  padding: 0 30px;
  overflow: visible;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.22em;
  background:
    radial-gradient(circle at 96% 12%, rgba(255, 255, 255, 0.98) 0 2px, rgba(160, 190, 255, 0.70) 3px, transparent 14px),
    radial-gradient(ellipse at 88% 40%, rgba(82, 120, 255, 0.26) 0%, rgba(82, 120, 255, 0.08) 42%, transparent 72%),
    linear-gradient(180deg, rgba(13, 25, 68, 0.70), rgba(4, 10, 31, 0.82));
  border: 1px solid rgba(86, 132, 255, 0.62);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(75, 120, 255, 0.32),
    0 0 42px rgba(76, 120, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(55, 85, 180, 0.34);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(110, 150, 255, 0.30);
  backdrop-filter: blur(16px) saturate(130%);
}

.home-view .badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 44%, transparent 100%);
  pointer-events: none;
}

.home-view .badge::after {
  content: "";
  position: absolute;
  right: 3px;
  top: -2px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 9px rgba(255, 255, 255, 0.98),
    0 0 18px rgba(122, 168, 255, 0.78),
    0 0 34px rgba(82, 116, 255, 0.46);
  clip-path: polygon(50% 0%, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0% 50%, 40% 38%);
  pointer-events: none;
}

.home-view .inspire-entry-btn {
  height: 56px;
  min-height: 56px;
  min-width: 218px;
  padding: 0 26px;
  gap: 12px;
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  background:
    radial-gradient(ellipse at 88% 48%, rgba(255, 255, 255, 0.92) 0%, rgba(225, 232, 255, 0.82) 17%, rgba(128, 124, 255, 0.78) 44%, rgba(73, 89, 255, 0.98) 100%) !important;
  border: 1px solid rgba(214, 225, 255, 0.74) !important;
  border-radius: 999px;
  box-shadow:
    0 0 20px rgba(90, 112, 255, 0.56),
    0 0 44px rgba(72, 88, 255, 0.42),
    0 10px 34px rgba(24, 40, 180, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(58, 74, 210, 0.42) !important;
  text-shadow:
    0 1px 0 rgba(20, 24, 90, 0.18),
    0 0 12px rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px) saturate(130%);
}

.home-view .inspire-entry-btn::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.09) 42%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse at 80% 18%, rgba(255, 255, 255, 0.36), transparent 42%);
}

.home-view .inspire-entry-btn::after {
  display: none;
}

.home-view .inspire-entry-btn .sparkle-icon {
  width: 28px;
  height: 28px;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.96))
    drop-shadow(0 0 15px rgba(135, 178, 255, 0.72));
}

.home-view .inspire-entry-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 24px rgba(112, 135, 255, 0.64),
    0 0 52px rgba(82, 96, 255, 0.48),
    0 11px 36px rgba(24, 40, 180, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 -1px 0 rgba(58, 74, 210, 0.42) !important;
}

@media (max-width: 768px) {
  .home-view .badge {
    height: 34px;
    min-width: 218px;
    padding: 0 22px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .home-view .badge::after {
    right: 2px;
    top: -2px;
    width: 13px;
    height: 13px;
  }

  .home-view .inspire-entry-btn {
    height: 44px;
    min-height: 44px;
    min-width: 174px;
    padding: 0 20px;
    gap: 10px;
    font-size: 18px;
  }

  .home-view .inspire-entry-btn .sparkle-icon {
    width: 22px;
    height: 22px;
  }

  .home-view .waitlist-form {
    margin-top: 16px;
  }

  .home-view .stats {
    margin-top: 12px;
  }
}

/* ===== Direct image assets: no CSS recreation ===== */
body::before,
body::after,
.bg-layer,
.scanline,
.starlight-container,
.spotlight-overlay,
.spotlight-glow {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.home-view::before {
  background: #020615 !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}

.home-view .home-static-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  object-fit: contain;
  object-position: center center;
  background: #020615;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1367px) {
  .home-view .home-static-background {
    object-fit: cover;
    object-position: center center;
  }
}

.home-view .hero::before {
  background: none !important;
}

.home-view .badge.badge-image {
  display: block !important;
  width: clamp(278px, 18vw, 355px);
  max-width: calc(100vw - 64px);
  height: auto !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto 355 / 80;
  padding: 0 !important;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
  color: transparent !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

.home-view .badge.badge-image::before,
.home-view .badge.badge-image::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 768px) {
  .home-view .home-static-background {
    object-position: center center;
  }

  .home-view .hero-content {
    padding-top: 74px !important;
  }

  .home-view .badge.badge-image {
    width: clamp(246px, 72vw, 320px);
    max-width: calc(100vw - 56px);
  }

  .home-view .title {
    margin-top: 12px !important;
  }

  .home-view .subtitle {
    margin-top: 14px !important;
  }

  .home-view .inspire-section {
    margin-top: 16px !important;
  }

  .home-view .waitlist-form {
    margin-top: 14px !important;
  }
}

/* ===== Inspire button polish: smaller, softer, less white glare ===== */
.home-view .inspire-section {
  position: relative;
  isolation: isolate;
}

.home-view .inspire-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 112px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(24, 35, 92, 0.30) 0%, rgba(16, 25, 72, 0.22) 34%, rgba(32, 68, 170, 0.12) 58%, transparent 76%);
  border: 1px solid rgba(116, 158, 255, 0.08);
  box-shadow:
    0 0 32px rgba(42, 82, 180, 0.12),
    inset 0 0 34px rgba(84, 112, 255, 0.10);
  opacity: 0.78;
  transform: translate(-50%, -50%);
  filter: blur(0.2px);
  pointer-events: none;
}

.home-view .inspire-entry-btn {
  height: 52px;
  min-height: 52px;
  min-width: 204px;
  padding: 0 23px;
  gap: 10px;
  font-size: 22px;
  background:
    radial-gradient(ellipse at 91% 48%, rgba(255, 255, 255, 0.56) 0%, rgba(224, 229, 255, 0.48) 12%, rgba(171, 173, 255, 0.28) 28%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #4d63ff 0%, #5d6dff 44%, #747aff 69%, #aeb9f0 100%) !important;
  border-color: rgba(205, 218, 255, 0.66) !important;
  box-shadow:
    0 0 15px rgba(88, 102, 255, 0.42),
    0 0 32px rgba(70, 82, 230, 0.28),
    0 8px 24px rgba(18, 32, 150, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(55, 66, 190, 0.36) !important;
  text-shadow:
    0 1px 0 rgba(14, 20, 85, 0.20),
    0 0 9px rgba(255, 255, 255, 0.14) !important;
  animation: gamiaInspireSoftBreathe 5.8s ease-in-out infinite;
}

.home-view .inspire-entry-btn::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0.88;
}

.home-view .inspire-entry-btn .sparkle-icon {
  width: 25px;
  height: 25px;
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 11px rgba(135, 178, 255, 0.46));
}

.home-view .inspire-entry-btn:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(ellipse at 91% 48%, rgba(255, 255, 255, 0.62) 0%, rgba(228, 232, 255, 0.50) 12%, rgba(174, 176, 255, 0.30) 28%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #5369ff 0%, #6373ff 44%, #7d82ff 69%, #b4bdf0 100%) !important;
  box-shadow:
    0 0 18px rgba(98, 112, 255, 0.46),
    0 0 36px rgba(78, 88, 235, 0.30),
    0 9px 26px rgba(18, 32, 150, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(55, 66, 190, 0.36) !important;
}

.home-view .inspire-entry-btn.droi-catcher-awake {
  box-shadow:
    0 0 0 1px rgba(198, 205, 255, 0.20),
    0 0 16px rgba(102, 142, 255, 0.28),
    0 0 30px rgba(105, 92, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  animation: gamiaInspireSoftBreathe 5.8s ease-in-out infinite;
}

.home-view .inspire-entry-btn.droi-catcher-awake::after {
  display: block !important;
}

.home-view .inspire-entry-btn.droi-catcher-awake::before,
.home-view .inspire-entry-btn.droi-catcher-awake::after {
  inset: -12px -26px;
  border-radius: 999px;
  border-color: rgba(116, 158, 255, 0.16);
  box-shadow:
    0 0 28px rgba(72, 108, 220, 0.12),
    inset 0 0 28px rgba(96, 118, 255, 0.10);
  opacity: 0;
  transform: scale(0.94, 0.82);
  filter: blur(1px);
  will-change: opacity, transform;
  animation: gamiaInspireRingFlow 2.45s cubic-bezier(0.18, 0.76, 0.22, 1) infinite;
}

.home-view .inspire-entry-btn.droi-catcher-awake::after {
  inset: -20px -46px;
  border-color: rgba(88, 126, 255, 0.10);
  animation-delay: 0.42s;
}

@keyframes gamiaInspireSoftBreathe {
  0%, 100% {
    filter: brightness(0.99);
  }
  50% {
    filter: brightness(1.035);
  }
}

/* ===== Homepage visual sync: intro logo, meteor mask, angled CTA ===== */
.home-view .header {
  top: 26px;
  left: clamp(24px, 3.6vw, 64px);
  right: clamp(24px, 3.6vw, 64px);
}

.home-view .logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.24em;
  color: #fff;
  font-family: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: none;
}

.home-view .logo .ai {
  background: linear-gradient(120deg, #6ee7ff, #7b61ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-view .inspire-entry-btn {
  background:
    radial-gradient(ellipse at 91% 48%, rgba(255, 255, 255, 0.56) 0%, rgba(224, 229, 255, 0.48) 12%, rgba(171, 173, 255, 0.28) 28%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(25deg, #4d63ff 0%, #5d6dff 44%, #747aff 69%, #aeb9f0 100%) !important;
}

.home-view .inspire-entry-btn:hover {
  background:
    radial-gradient(ellipse at 91% 48%, rgba(255, 255, 255, 0.62) 0%, rgba(228, 232, 255, 0.50) 12%, rgba(174, 176, 255, 0.30) 28%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(25deg, #5369ff 0%, #6373ff 44%, #7d82ff 69%, #b4bdf0 100%) !important;
}

@keyframes gamiaInspireRingFlow {
  0% {
    opacity: 0;
    transform: scale(0.94, 0.82);
  }
  14% {
    opacity: 0.28;
  }
  38% {
    opacity: 0.20;
    transform: scale(1.04, 1.14);
  }
  54% {
    opacity: 0;
    transform: scale(1.13, 1.30);
  }
  100% {
    opacity: 0;
    transform: scale(1.13, 1.30);
  }
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .home-view .inspire-section::before {
    width: 332px;
    height: 102px;
  }

  .home-view .inspire-entry-btn {
    height: 48px;
    min-height: 48px;
    min-width: 188px;
    padding: 0 21px;
    gap: 9px;
    font-size: 20px;
  }

  .home-view .inspire-entry-btn .sparkle-icon {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 768px) {
  .home-view .inspire-section::before {
    width: 286px;
    height: 92px;
  }

  .home-view .inspire-entry-btn {
    height: 40px;
    min-height: 40px;
    min-width: 164px;
    padding: 0 18px;
    gap: 9px;
    font-size: 17px;
  }

  .home-view .inspire-entry-btn .sparkle-icon {
    width: 20px;
    height: 20px;
  }
}

/* ===== Homepage live atmosphere: breathing aurora + restored spotlight ===== */
body.gamia-home-active:not(.game-edit-workspace-active) .home-view {
  isolation: isolate;
}

body.gamia-home-active:not(.game-edit-workspace-active) .home-view .home-static-background {
  transform-origin: center center;
  animation: gamiaAuroraImageBreathe 15.5s ease-in-out infinite !important;
  will-change: transform, filter, opacity;
}

body.gamia-home-active:not(.game-edit-workspace-active) .home-view::before {
  animation: gamiaAuroraBaseDrift 18s ease-in-out infinite !important;
  transform-origin: center center;
  will-change: transform, filter;
}

body.gamia-home-active:not(.game-edit-workspace-active) .home-view .hero::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(72, 190, 255, 0.10) 0%, rgba(54, 132, 255, 0.055) 32%, transparent 58%),
    radial-gradient(ellipse at 76% 57%, rgba(154, 88, 255, 0.12) 0%, rgba(91, 112, 255, 0.055) 34%, transparent 60%),
    linear-gradient(180deg, rgba(0, 1, 8, 0.10) 0%, rgba(0, 1, 8, 0.22) 58%, rgba(0, 1, 8, 0.54) 100%);
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: gamiaAuroraBandBreathe 10.5s ease-in-out infinite !important;
  will-change: opacity, transform;
}

body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container {
  display: block !important;
  visibility: visible !important;
  opacity: 0.42 !important;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: none !important;
  animation: starViewportDrift 90s ease-in-out infinite alternate !important;
}

body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container::before,
body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container::after {
  content: none !important;
  display: none !important;
}

body.gamia-home-active:not(.game-edit-workspace-active) .starlight {
  display: block !important;
  visibility: visible !important;
  opacity: 0;
  border-radius: 999px;
  max-width: 0.5px !important;
  max-height: 0.5px !important;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 0 1.4px rgba(255, 255, 255, 0.34),
    0 0 3px rgba(132, 185, 255, 0.12);
  animation-name: gamiaSoftStarPulse !important;
  animation-duration: var(--twinkle-duration, 5.8s) !important;
  animation-delay: var(--twinkle-delay, 0s) !important;
  animation-timing-function: ease-in-out !important;
  animation-iteration-count: infinite !important;
}

body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-overlay,
body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-glow {
  display: block !important;
  visibility: visible !important;
  pointer-events: none !important;
  position: fixed;
  inset: 0;
  background: none;
}

body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-overlay {
  z-index: 3;
  opacity: 0 !important;
  mix-blend-mode: normal;
  background: transparent !important;
  transition: opacity 0.28s ease;
}

body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-glow {
  z-index: 2;
  opacity: 0.82 !important;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(255, 255, 255, 0.075) 0%,
      rgba(126, 190, 255, 0.065) 72px,
      rgba(118, 111, 255, 0.035) 144px,
      transparent 236px) !important;
  -webkit-backdrop-filter: saturate(1.2) brightness(1.055);
  backdrop-filter: saturate(1.2) brightness(1.055);
  -webkit-mask-image: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), #000 0 180px, rgba(0,0,0,0.62) 228px, transparent 320px);
  mask-image: radial-gradient(circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%), #000 0 180px, rgba(0,0,0,0.62) 228px, transparent 320px);
  transition: opacity 0.28s ease, background 0.12s ease;
}

body:not(.gamia-home-active) .spotlight-overlay,
body:not(.gamia-home-active) .spotlight-glow,
body:not(.gamia-home-active) .starlight-container,
body.game-edit-workspace-active .spotlight-overlay,
body.game-edit-workspace-active .spotlight-glow,
body.game-edit-workspace-active .starlight-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes gamiaAuroraImageBreathe {
  0%, 100% {
    transform: none;
    filter: brightness(0.98) saturate(1.02);
    opacity: 0.98;
  }
  48% {
    transform: none;
    filter: brightness(1.08) saturate(1.13);
    opacity: 1;
  }
}

@keyframes gamiaAuroraBaseDrift {
  0%, 100% {
    transform: none;
    filter: brightness(0.96) saturate(1.02);
  }
  50% {
    transform: none;
    filter: brightness(1.06) saturate(1.12);
  }
}

@keyframes gamiaAuroraBandBreathe {
  0%, 100% {
    opacity: 0.34;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.018);
  }
}

@keyframes gamiaSoftStarPulse {
  0%, 100% {
    opacity: var(--star-min-opacity, 0.05);
    transform: scale(0.72);
    filter: brightness(0.86);
  }
  46% {
    opacity: var(--star-peak-opacity, 0.56);
    transform: scale(1);
    filter: brightness(1.08);
  }
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-overlay,
  body.gamia-home-active:not(.game-edit-workspace-active) .spotlight-glow {
    display: none !important;
  }

  body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container {
    opacity: 0.36 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .home-view .home-static-background,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .home-view::before,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .home-view .hero::before,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container::before,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .starlight-container::after,
  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .starlight {
    animation: none !important;
    transform: none !important;
  }

  html:not(.droi-force-intro-motion) body.gamia-home-active:not(.game-edit-workspace-active) .home-view .hero::before {
    opacity: 0.34;
  }
}

/* ===== Shared scene background: first / chat / showcase pages ===== */
body.gamia-scene-active {
  background: #020615 !important;
}

body.gamia-scene-active::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block !important;
  visibility: visible !important;
  pointer-events: none;
  background: url("UI desgin/background.png") center center / cover no-repeat !important;
  opacity: 1 !important;
  transform-origin: center center;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  will-change: auto;
}

body.gamia-scene-active.game-edit-workspace-active::before {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .home-view .home-static-background {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  will-change: auto !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .home-view::before {
  background: transparent !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .home-view .hero::before {
  opacity: 0 !important;
  background: transparent !important;
  transform: none !important;
  animation: none !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .inspire-view {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(4, 8, 24, 0.18) 0%, rgba(2, 5, 18, 0.26) 52%, rgba(1, 3, 12, 0.38) 100%) !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .inspire-view::before {
  background:
    radial-gradient(ellipse at 26% 50%, rgba(66, 168, 255, 0.08), transparent 46%),
    radial-gradient(ellipse at 76% 45%, rgba(145, 86, 255, 0.09), transparent 48%),
    linear-gradient(180deg, rgba(0, 1, 8, 0.02), rgba(0, 1, 8, 0.10) 64%, rgba(0, 1, 8, 0.22)) !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .roll-embed-section {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .roll-embed-frame {
  background: transparent !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .starlight-container {
  display: block !important;
  visibility: visible !important;
  opacity: 0.42 !important;
  animation-duration: 52s !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) .starlight-container::before,
body.gamia-scene-active:not(.game-edit-workspace-active) .starlight-container::after {
  content: none !important;
  display: none !important;
}

@keyframes gamiaSceneBackgroundBreathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(0.99) saturate(1.02);
    opacity: 1;
  }
  46% {
    transform: scale(1.01) translate3d(0, -0.24%, 0);
    filter: brightness(1.06) saturate(1.10);
    opacity: 1;
  }
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  body.gamia-scene-active:not(.game-edit-workspace-active) .starlight-container {
    opacity: 0.24 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.droi-force-intro-motion) body.gamia-scene-active:not(.game-edit-workspace-active) .starlight {
    animation: none !important;
    opacity: 0.18;
  }

html:not(.droi-force-intro-motion) body.gamia-scene-active::before {
    animation: none !important;
    transform: none !important;
  }
}

/* ===== Unified sign-in button across desktop / tablet / mobile ===== */
.home-view .frontend-sign-in-btn,
.home-view .admin-login-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 88px !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 28px !important;
  overflow: visible !important;
  border: 1px solid rgba(170, 190, 255, 0.28) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 32, 0.58) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(100, 130, 255, 0.08) !important;
  backdrop-filter: blur(14px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.12) !important;
  font: inherit !important;
  font-size: 16px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

.home-view .frontend-sign-in-btn:hover,
.home-view .frontend-sign-in-btn:focus-visible,
.home-view .frontend-sign-in-btn.is-signed-in,
.home-view .admin-login-btn:hover,
.home-view .admin-login-btn:focus-visible,
.home-view .admin-login-btn.is-signed-in {
  border-color: rgba(94, 231, 255, 0.46) !important;
  background:
    linear-gradient(180deg, rgba(94, 231, 255, 0.13), rgba(124, 109, 255, 0.08)),
    rgba(8, 12, 32, 0.66) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 24px rgba(94, 231, 255, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .home-view .frontend-sign-in-btn,
  .home-view .admin-login-btn {
    min-width: 84px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }
}

/* ===== Compact showcase spacing: keep all three showcase pages visible ===== */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  .home-view .roll-embed-section {
    --roll-embed-page-count: 3;
    height: calc(var(--roll-embed-page-count, 3) * 100dvh) !important;
    min-height: calc(var(--roll-embed-page-count, 3) * 100dvh) !important;
    max-height: none !important;
  }

  .home-view .roll-embed-frame {
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* ===== Compact home hero vertical balance ===== */
@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .home-view .hero-content {
    padding-top: clamp(156px, 20vh, 188px) !important;
  }
}

@media (max-width: 768px) and (max-height: 720px) {
  .home-view .hero-content {
    padding-top: clamp(118px, 18vh, 150px) !important;
  }
}

@media (min-width: 769px) and (max-width: 1180px),
       (hover: none) and (pointer: coarse) and (min-width: 769px) and (max-width: 1366px) {
  .home-view .hero-content {
    padding-top: clamp(178px, 23vh, 200px) !important;
  }
}

/* ===== Home prompt: multiline hidden chat-box input ===== */
.home-view .waitlist-form.prompt-mode {
  height: auto !important;
  min-height: var(--prompt-h) !important;
  max-height: 178px !important;
  align-items: flex-start !important;
  overflow: hidden !important;
}

.home-view .waitlist-form.prompt-mode.is-multiline-prompt {
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(24, 38, 82, 0.62), rgba(8, 14, 34, 0.68)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 54px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(88, 142, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.home-view .email-input {
  height: var(--prompt-textarea-height, calc(var(--prompt-h) - 16px)) !important;
  min-height: 48px !important;
  max-height: 112px !important;
  padding: 13px 22px !important;
  line-height: 1.35 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  overflow-x: hidden !important;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 190, 255, 0.42) transparent;
}

.home-view .waitlist-form.prompt-mode.is-scroll-prompt .email-input {
  overflow-y: auto !important;
}

.home-view .email-input::-webkit-scrollbar {
  width: 4px;
}

.home-view .email-input::-webkit-scrollbar-thumb {
  background: rgba(130, 190, 255, 0.42);
  border-radius: 999px;
}

.home-view .email-input::-webkit-scrollbar-track {
  background: transparent;
}

.home-view .waitlist-form.prompt-mode .submit-btn {
  flex: 0 0 auto;
}

@media (min-width: 769px) {
  .home-view .waitlist-form.prompt-mode.is-multiline-prompt .submit-btn {
    align-self: flex-end !important;
    margin-top: auto !important;
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .home-view .waitlist-form.prompt-mode {
    max-height: 224px !important;
  }

  .home-view .waitlist-form.prompt-mode.is-multiline-prompt {
    display: grid !important;
    grid-template-rows: minmax(96px, var(--prompt-textarea-height, 118px)) 40px !important;
    align-items: stretch !important;
  }

  .home-view .email-input {
    min-height: 54px !important;
    max-height: 118px !important;
    padding: 14px 18px !important;
    line-height: 1.38 !important;
  }

  .home-view .waitlist-form.prompt-mode.is-multiline-prompt .email-input {
    height: var(--prompt-textarea-height, 118px) !important;
    min-height: 96px !important;
    align-self: stretch !important;
  }
}

/* ===== Compact background framing: preserve aurora in portrait ===== */
@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .home-view::before {
    background-size: auto 100dvh !important;
    background-position: center center !important;
  }

  .home-view .home-static-background {
    inset: auto auto 0 50% !important;
    width: min(192vw, 860px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateX(-50%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 8%, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 8%, #000 24%);
  }

  body.gamia-scene-active::before {
    background-size: auto 100dvh !important;
    background-position: center center !important;
  }

  body.gamia-scene-active:not(.game-edit-workspace-active) .home-view .home-static-background {
    inset: auto auto 0 50% !important;
    width: min(192vw, 860px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateX(-50%) !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 8%, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.12) 8%, #000 24%);
  }
}

@media (min-width: 769px) and (max-width: 1180px),
       (hover: none) and (pointer: coarse) and (min-width: 769px) and (max-width: 1366px) {
  .home-view::before {
    background-position: center bottom !important;
  }

  .home-view .home-static-background {
    object-position: center bottom !important;
  }

  body.gamia-scene-active::before {
    background-position: center bottom !important;
  }

  body.gamia-scene-active:not(.game-edit-workspace-active) .home-view .home-static-background {
    object-position: center bottom !important;
  }
}

/* ===== In-chat generation progress: align rail higher ===== */
.chat-history.is-generating .progress-container .progress-bar-bg {
  position: relative !important;
  top: -18px !important;
  margin-bottom: -14px !important;
}

@media (max-width: 768px) {
  .chat-history.is-generating .progress-container .progress-bar-bg {
    top: -12px !important;
    margin-bottom: -10px !important;
  }
}

.is-stale-inspire-message {
  display: none !important;
}

.is-stale-inspire-control {
  pointer-events: none !important;
  opacity: 0.45 !important;
}

/* ===== Chat graphite background guard ===== */
body.gamia-scene-active:has(#inspireView:not([style*="display: none"]))::before {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background-image: none !important;
}

body.gamia-scene-active:has(#inspireView:not([style*="display: none"])) .spotlight-overlay,
body.gamia-scene-active:has(#inspireView:not([style*="display: none"])) .spotlight-glow,
body.gamia-scene-active:has(#inspireView:not([style*="display: none"])) .starlight-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) #inspireView.inspire-view {
  background:
    radial-gradient(ellipse at 50% -18%, rgba(255, 255, 255, 0.035), transparent 42%),
    linear-gradient(180deg, #11131a 0%, #0c0e14 42%, #080a0f 100%) !important;
}

body.gamia-scene-active:not(.game-edit-workspace-active) #inspireView.inspire-view::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.12)) !important;
  opacity: 1 !important;
}

/* ===== Inspire chat: wider profile rail and simpler model picker ===== */
@media (min-width: 981px) {
  .inspire-view.has-profile-sidebar .chat-profile-sidebar {
    right: clamp(1rem, 1.2vw, 1.5rem) !important;
    width: clamp(390px, 23.5vw, 480px) !important;
    max-width: calc(100vw - 2rem) !important;
    padding: 0.2rem !important;
  }

  .inspire-view.has-profile-sidebar .chat-profile-sidebar .inspire-profile-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .inspire-view.has-profile-sidebar .profile-context-row {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 0.7rem !important;
  }

  .inspire-view.has-profile-sidebar .profile-context-row strong {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .inspire-view.has-profile-sidebar .profile-sidebar-chip-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
    gap: 0.42rem !important;
  }

  .inspire-view.has-profile-sidebar .profile-sidebar-chip {
    width: 100% !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding-inline: 0.62rem !important;
  }
}

.chat-input-bar.unified-pill {
  --composer-model-width: 122px !important;
}

.input-model-selector .model-selector {
  width: var(--composer-model-width) !important;
  min-width: var(--composer-model-width) !important;
  max-width: var(--composer-model-width) !important;
  padding-inline: 0.58rem !important;
  gap: 0.26rem !important;
}

.input-model-selector .model-selector .model-icon {
  display: none !important;
}

.input-model-selector .model-selector .model-name {
  max-width: calc(var(--composer-model-width) - 30px) !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
}

.input-model-selector .model-dropdown {
  width: min(236px, calc(100vw - 1.5rem)) !important;
  padding: 0.42rem !important;
  border-radius: 12px !important;
}

.input-model-selector .model-dropdown-list {
  gap: 0.28rem !important;
}

.input-model-selector .model-provider-group,
.input-model-selector .model-provider-heading,
.input-model-selector .model-provider-icon {
  display: none !important;
}

.input-model-selector .model-option {
  min-height: 36px !important;
  padding: 0.52rem 0.66rem !important;
  border-radius: 9px !important;
  background: transparent !important;
  gap: 0.5rem !important;
}

.input-model-selector .model-option span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.input-model-selector .model-option small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-left: auto !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: color-mix(in srgb, var(--model-color, #a482ff) 36%, rgba(255, 255, 255, 0.08)) !important;
  font-size: 0.74rem !important;
  line-height: 1 !important;
}

.input-model-selector .model-option[aria-selected="true"] {
  color: #fff !important;
  background: color-mix(in srgb, var(--model-color, #a482ff) 18%, rgba(255, 255, 255, 0.055)) !important;
}

@media (max-width: 640px) {
  .chat-input-bar.unified-pill {
    --composer-model-width: 98px !important;
  }

  .input-model-selector .model-selector .model-name {
    max-width: calc(var(--composer-model-width) - 28px) !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 420px) {
  .chat-input-bar.unified-pill {
    --composer-model-width: 82px !important;
  }

  .input-model-selector .model-selector .model-name {
    max-width: calc(var(--composer-model-width) - 26px) !important;
  }
}

/* ===== Generated preview playability guard ===== */
body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-viewport,
body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .template-preview-frame,
body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-canvas {
  pointer-events: auto !important;
}

body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .template-preview-frame {
  cursor: pointer !important;
}

/* ===== PC preview width: match the generated Chat column ===== */
@media (min-width: 1181px) {
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) {
    --workspace-chat-column-width: min(980px, calc(100vw - 840px));
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .generated-main-header {
    width: var(--workspace-chat-column-width) !important;
    max-width: var(--workspace-chat-column-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-header-actions {
    justify-self: end !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .generated-view-switch {
    justify-self: end !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-stage-toolbar,
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .generated-preview-view.playable-preview-card,
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-viewport {
    width: var(--workspace-chat-column-width) !important;
    max-width: var(--workspace-chat-column-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .generated-preview-view.playable-preview-card {
    align-items: center !important;
    justify-items: center !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"] .generated-main-header {
    width: var(--workspace-chat-column-width) !important;
    max-width: var(--workspace-chat-column-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"] .workspace-stage-toolbar,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"] .generated-preview-view.playable-preview-card,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"] .game-preview-viewport {
    width: var(--workspace-chat-column-width) !important;
    max-width: var(--workspace-chat-column-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===== Mobile preview drawer recovery ===== */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) .generated-game-page .change-history-sidebar,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) .generated-game-page .game-edit-sidebar,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page .change-history-sidebar,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page .game-edit-sidebar {
    display: block !important;
    position: fixed !important;
    top: max(0.75rem, calc(env(safe-area-inset-top, 0px) + 0.75rem)) !important;
    bottom: max(5.85rem, calc(env(safe-area-inset-bottom, 0px) + 5.85rem)) !important;
    z-index: 2147482000 !important;
    width: min(86vw, 360px) !important;
    max-width: calc(100vw - 64px) !important;
    height: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) .generated-game-page .change-history-sidebar.open,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) .generated-game-page .game-edit-sidebar.open,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page .change-history-sidebar.open,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page .game-edit-sidebar.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body.game-edit-workspace-active .mobile-workspace-drawer-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
  }
}

/* ===== Compact preview safe fit: keep controls and gameplay separated ===== */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  body.game-edit-workspace-active:has(.playable-shell.preview-open) {
    overflow: hidden !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"]) .chat-input-wrapper {
    display: none !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"],
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-body,
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-column,
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .playable-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: calc(100dvh - 58px) !important;
    min-height: calc(100dvh - 58px) !important;
    max-height: calc(100dvh - 58px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .playable-shell.preview-open .generated-preview-view.playable-preview-card {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100dvh - 58px) !important;
    min-height: calc(100dvh - 58px) !important;
    max-height: calc(100dvh - 58px) !important;
    margin: 0 !important;
    padding: 0.58rem 0.5rem 0.62rem !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-stage-toolbar {
    position: relative !important;
    z-index: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 36px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.22rem 0.28rem !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-stage-label {
    display: none !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-stage-toolbar .game-preview-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.34rem !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .workspace-stage-toolbar .game-preview-btn {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 0 0.42rem !important;
    font-size: 0.66rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-viewport {
    position: relative !important;
    z-index: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .game-preview-canvas,
  body.game-edit-workspace-active .generated-game-page[data-generated-view="preview"] .template-preview-frame {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }

  body.game-edit-workspace-active:has(.playable-shell.preview-open) .generated-game-page[data-generated-view="preview"] .workspace-body,
  body.game-edit-workspace-active:has(.playable-shell.preview-open) .generated-game-page[data-generated-view="preview"] .game-preview-column,
  body.game-edit-workspace-active:has(.playable-shell.preview-open) .generated-game-page[data-generated-view="preview"] .playable-shell.generated-view-shell.preview-open {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.game-edit-workspace-active:has(.playable-shell.preview-open) .generated-game-page[data-generated-view="preview"] .playable-shell.generated-view-shell.preview-open .generated-preview-view.playable-preview-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
  }
}

/* ===== Compact landscape preview: remove the hidden chat row from play mode ===== */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) and (max-width: 1366px) {
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .playable-shell.generated-view-shell.preview-open {
    display: block !important;
    grid-template-rows: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .game-preview-chat-panel {
    display: none !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .playable-shell.preview-open .generated-preview-view.playable-preview-card {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0.58rem 0.5rem 0.62rem !important;
    overflow: hidden !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .workspace-stage-toolbar {
    grid-row: 1 !important;
    margin: 0 !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .game-preview-viewport {
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
  }

  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .game-preview-canvas,
  body.game-edit-workspace-active:has(.generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"]) .generated-game-page[data-generated-view="preview"][data-preview-layout="landscape"] .template-preview-frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}

/* ===== Generation progress: remove duplicate guide rails ===== */
.progress-container .progress-bar-bg {
  background: transparent !important;
  box-shadow: none !important;
}

.progress-container .progress-bar-bg::before,
.progress-container .progress-bar-bg::after {
  content: none !important;
  display: none !important;
}
