:root {
  --ink: #07103a;
  --deep: #030915;
  --navy: #08122f;
  --panel: rgba(12, 25, 61, 0.86);
  --line: rgba(160, 218, 255, 0.2);
  --muted: #8fa4ca;
  --soft: #f3f7ff;
  --white: #ffffff;
  --cyan: #18d9ff;
  --blue: #3d7cff;
  --violet: #8b43ff;
  --magenta: #e032ff;
  --green: #31d68b;
  --shadow: 0 24px 70px rgba(4, 11, 31, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 15% -8%, rgba(24, 217, 255, 0.26), transparent 34rem),
    radial-gradient(circle at 88% 0%, rgba(224, 50, 255, 0.22), transparent 34rem),
    linear-gradient(180deg, #030915 0%, #091538 48%, #eef6ff 48%, #f7fbff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(143, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 78%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.studio-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: rgba(3, 9, 21, 0.88);
  border-bottom: 1px solid rgba(160, 218, 255, 0.18);
  backdrop-filter: blur(18px);
}

.studio-header::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 50, 255, 0.72), rgba(24, 217, 255, 0.72), transparent);
  opacity: 0.75;
}

.studio-brand,
.studio-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-brand {
  font-weight: 900;
  font-size: 1.08rem;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--magenta), var(--violet), var(--cyan));
  transform: rotate(45deg);
}

.brand-mark span {
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: var(--deep);
}

.studio-header nav a:not(.button) {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  font-size: 0.9rem;
}

.header-action {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.studio-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8ff0ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 930px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.95;
}

h1::after {
  content: "";
  display: block;
  width: min(310px, 62vw);
  height: 5px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
  box-shadow: 0 0 28px rgba(24, 217, 255, 0.32);
}

.studio-hero p:not(.eyebrow),
.section-heading p,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue) 52%, var(--violet));
  box-shadow: 0 16px 36px rgba(61, 124, 255, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(160, 218, 255, 0.2);
}

.credits-card,
.tool-panel,
.workspace-panel,
.flow-panel,
.publish-form,
.builder-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.9), rgba(5, 14, 37, 0.93));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.credits-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px;
}

.credits-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(24, 217, 255, 0.22), transparent 12rem),
    radial-gradient(circle at 18% 80%, rgba(224, 50, 255, 0.18), transparent 12rem);
  pointer-events: none;
}

.credits-card > * {
  position: relative;
  z-index: 1;
}

.credits-card span {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.credits-card strong {
  display: block;
  margin: 8px 0;
  font-size: 3.5rem;
  line-height: 1;
  text-shadow: 0 0 26px rgba(24, 217, 255, 0.28);
}

.account-shell .studio-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: stretch;
}

.account-summary strong {
  overflow-wrap: break-word;
  word-break: normal;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.04;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.account-forms {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-stat {
  min-height: 190px;
  padding-right: 22px;
  padding-bottom: 22px;
}

.account-stat::after,
.account-card::after {
  display: none;
}

.account-stat h3 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.account-stat .button {
  margin-top: 10px;
}

.account-progress-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(32, 215, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 86% 4%, rgba(224, 50, 255, 0.18), transparent 36rem),
    linear-gradient(135deg, #030713 0%, #070d25 52%, #13051f 100%);
}

.account-progress-body::before {
  mask-image: none;
  opacity: 0.72;
}

.account-dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}

.account-side {
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid rgba(160, 218, 255, 0.18);
  background: linear-gradient(180deg, rgba(4, 9, 26, 0.92), rgba(6, 12, 33, 0.7));
}

.account-side-brand,
.account-side nav,
.account-help-card {
  display: grid;
  gap: 14px;
}

.account-side-brand {
  grid-template-columns: auto 1fr;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.account-side nav a {
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.account-side nav a[aria-current="page"],
.account-side nav a:hover {
  background: linear-gradient(135deg, rgba(139, 67, 255, 0.42), rgba(24, 217, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(160, 218, 255, 0.18), 0 0 24px rgba(139, 67, 255, 0.25);
}

.account-side-orbit {
  width: min(180px, 80%);
  margin: auto auto 0;
  align-self: center;
  filter: drop-shadow(0 0 26px rgba(24, 217, 255, 0.28));
}

.account-help-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.account-help-card span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(160, 218, 255, 0.32);
}

.account-help-card small {
  color: var(--muted);
}

.account-main {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.account-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.account-page-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.account-page-heading h1::after {
  display: none;
}

.account-page-heading p {
  max-width: 560px;
  color: rgba(222, 234, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.45;
}

.account-quick-stats {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-quick-stats span,
.account-quick-stats a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.account-quick-stats a {
  width: 44px;
  padding: 0;
  font-size: 1.4rem;
}

.account-profile-hero,
.account-panel,
.account-settings-card,
.progress-dialog {
  border: 1px solid rgba(160, 218, 255, 0.18);
  background:
    radial-gradient(circle at 22% 18%, rgba(139, 67, 255, 0.2), transparent 18rem),
    linear-gradient(145deg, rgba(14, 28, 67, 0.86), rgba(5, 12, 34, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.account-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 180px) minmax(180px, 220px);
  gap: 28px;
  align-items: center;
  margin-bottom: 16px;
  padding: 26px;
  border-radius: 20px;
  overflow: hidden;
}

.account-avatar-ring {
  width: 164px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 44px rgba(139, 67, 255, 0.35);
}

.account-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-name-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.account-name-row h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.icon-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.account-level-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.account-level-line span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(139, 67, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.account-progress-track,
.mini-progress {
  height: 16px;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.account-progress-track span,
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 22px rgba(24, 217, 255, 0.42);
}

.account-profile-copy p,
.account-panel p,
.account-panel small {
  color: rgba(205, 220, 246, 0.82);
}

.account-hero-stat {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid rgba(160, 218, 255, 0.14);
  text-align: center;
}

.account-hero-stat strong {
  font-size: 2.8rem;
  line-height: 1;
}

.stat-icon {
  display: grid;
  min-width: 52px;
  height: 52px;
  place-items: center;
  padding: 0 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #8ff0ff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1fr;
  gap: 16px;
}

.account-panel {
  min-height: 220px;
  padding: 22px;
  border-radius: 18px;
}

.account-panel h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.account-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.continue-panel {
  grid-row: span 2;
}

.continue-project {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.continue-project img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.continue-project h4 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.continue-project > div > span,
.daily-spark-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(139, 67, 255, 0.4);
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
}

.mini-progress {
  height: 10px;
  margin: 12px 0 6px;
}

.mini-progress span {
  width: 68%;
}

.continue-project .button {
  width: 100%;
  margin-top: 8px;
}

.daily-spark-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.daily-spark-row small {
  grid-column: 2;
}

.daily-spark-row em {
  grid-row: 1 / span 2;
  grid-column: 3;
  color: #d65cff;
  font-style: normal;
  font-weight: 900;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 24px 0;
}

.week-row span {
  display: grid;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(160, 218, 255, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.week-row span.is-complete {
  color: #120900;
  background: linear-gradient(135deg, #ffe66f, #ff9d00);
  box-shadow: 0 0 20px rgba(255, 157, 0, 0.34);
}

.streak-panel strong {
  display: block;
  margin-bottom: 12px;
  color: #ffb02e;
  font-size: 1.7rem;
}

.streak-panel .button {
  width: 100%;
  margin-top: 18px;
}

.badge-row,
.badge-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.badge-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-badge {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 132px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.achievement-badge span {
  display: grid;
  min-width: 58px;
  height: 58px;
  place-items: center;
  padding: 0 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.26), rgba(139, 67, 255, 0.34));
  color: #8ff0ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-badge.is-locked {
  opacity: 0.56;
}

.badge-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.badge-dots span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.badge-dots span:first-child {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.leaderboard-panel,
.credits-panel {
  min-height: 170px;
}

.leaderboard-panel strong,
.credits-panel strong {
  display: inline-block;
  margin: 8px 10px 8px 0;
  font-size: 2.4rem;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.account-settings-card {
  display: block;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.account-settings-card summary,
.settings-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  cursor: pointer;
}

.account-settings-card summary span,
.settings-link span {
  grid-row: span 2;
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 8px;
  border-radius: 12px;
  background: rgba(139, 67, 255, 0.22);
  color: #8ff0ff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-settings-card summary small,
.settings-link small {
  grid-column: 2;
  color: var(--muted);
}

.compact-account-form {
  margin: 0 18px 18px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: none;
}

.progress-dialog {
  width: min(720px, calc(100% - 28px));
  padding: 26px;
  border-radius: 20px;
  color: white;
}

.progress-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.dialog-close {
  float: right;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(160, 218, 255, 0.24);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

@media (max-width: 1120px) {
  .account-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .account-side {
    display: none;
  }

  .account-profile-hero,
  .account-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-avatar-ring {
    width: 136px;
  }
}

@media (max-width: 760px) {
  .account-main {
    width: min(100% - 24px, 620px);
    padding-top: 28px;
  }

  .account-topbar nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .account-page-heading,
  .account-profile-hero,
  .account-main-grid,
  .account-settings-grid,
  .continue-project,
  .badge-library {
    grid-template-columns: 1fr;
  }

  .account-page-heading {
    display: grid;
  }

  .account-profile-hero {
    text-align: center;
    justify-items: center;
  }

  .account-hero-stat {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(160, 218, 255, 0.14);
    padding: 18px 0 0;
  }

  .badge-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.studio-console {
  min-height: 282px;
}

.console-orbit {
  position: absolute;
  z-index: 0;
  top: 26px;
  right: 26px;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(143, 240, 255, 0.18);
  border-radius: 50%;
  opacity: 0.82;
  animation: orbit-shell-spin 18s linear infinite;
}

.console-orbit::before,
.console-orbit::after,
.console-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.console-orbit::before {
  inset: 30px;
  border: 1px solid rgba(139, 67, 255, 0.25);
  animation: orbit-shell-spin 11s linear infinite reverse;
}

.console-orbit::after {
  inset: 57px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 28px rgba(24, 217, 255, 0.55);
  animation: orbit-core-pulse 2.8s ease-in-out infinite;
}

.console-orbit span {
  width: 14px;
  height: 14px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(24, 217, 255, 0.62);
  animation: orbit-dot-pulse 2.6s ease-in-out infinite;
}

.console-orbit span:nth-child(1) {
  top: 12px;
  left: 56px;
}

.console-orbit span:nth-child(2) {
  right: 12px;
  top: 78px;
  background: var(--violet);
  animation-delay: -0.8s;
}

.console-orbit span:nth-child(3) {
  left: 18px;
  bottom: 24px;
  background: var(--green);
  animation-delay: -1.6s;
}

@keyframes orbit-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-core-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes orbit-dot-pulse {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.28);
  }
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.console-stats b {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #c8f7ff;
  font-size: 0.78rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.tool-panel,
.workspace-panel,
.flow-panel {
  border-radius: 18px;
  padding: 18px;
}

.workspace-panel {
  position: relative;
  overflow: hidden;
}

.workspace-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
}

.workspace-panel > * {
  position: relative;
  z-index: 1;
}

.panel-heading h2,
.workspace-top h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.tool-list {
  display: grid;
  gap: 10px;
}

.tool-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 12px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.tool-button::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(143, 240, 255, 0.55);
  box-shadow: 0 0 16px rgba(24, 217, 255, 0.42);
}

.tool-button:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 217, 255, 0.4);
}

.tool-button.is-active {
  border-color: rgba(24, 217, 255, 0.66);
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.18), rgba(139, 67, 255, 0.18));
}

.tool-button strong,
.tool-button span {
  display: block;
}

.tool-button strong {
  padding-right: 72px;
}

.tool-button strong em {
  position: absolute;
  top: 12px;
  right: 34px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 214, 111, 0.34);
  border-radius: 999px;
  color: #ffe6a4;
  background: rgba(255, 214, 111, 0.12);
  font-size: 0.64rem;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
}

.tool-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tool-button.is-coming-soon {
  cursor: not-allowed;
  border-color: rgba(255, 214, 111, 0.18);
  background: rgba(255, 214, 111, 0.06);
}

.tool-button.is-coming-soon::before {
  background: rgba(255, 214, 111, 0.72);
  box-shadow: 0 0 16px rgba(255, 214, 111, 0.34);
}

.workspace-top,
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.08);
  font-weight: 900;
  font-size: 0.82rem;
}

.prompt-box {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

textarea {
  min-height: 160px;
  padding: 14px;
  resize: vertical;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

select option {
  color: var(--ink);
}

.prompt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.story-dashboard {
  display: grid;
  gap: 16px;
}

.story-page-shell {
  width: min(1700px, calc(100% - 32px));
}

.story-page-hero {
  grid-template-columns: minmax(0, 1fr);
}

.story-page-dashboard {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.86), rgba(5, 14, 37, 0.94));
  box-shadow: var(--shadow);
}

.story-dashboard[hidden] {
  display: none;
}

.obby-page-shell {
  width: min(1500px, calc(100% - 32px));
}

.obby-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.obby-hero-copy,
.obby-cover-art {
  min-height: clamp(430px, 48vw, 620px);
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.obby-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 58px);
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 217, 255, 0.18), transparent 16rem),
    linear-gradient(145deg, rgba(15, 31, 73, 0.94), rgba(5, 14, 37, 0.96));
}

.obby-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.9;
}

.obby-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.obby-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.obby-cover-art {
  position: relative;
  overflow: hidden;
  margin: 0;
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 232, 166, 0.42), transparent 9rem),
    linear-gradient(180deg, #101b54 0%, #1b2268 36%, #3f1d55 62%, #ff5b25 100%);
}

.obby-cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.obby-cover-art::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -10%;
  height: 42%;
  background:
    radial-gradient(circle at 15% 28%, rgba(255, 232, 166, 0.88), transparent 7rem),
    radial-gradient(circle at 58% 18%, rgba(255, 185, 44, 0.74), transparent 9rem),
    repeating-linear-gradient(135deg, rgba(255, 232, 166, 0.22) 0 12px, rgba(255, 84, 30, 0.5) 12px 28px),
    linear-gradient(180deg, #ff9d2e, #f23d18 42%, #881313);
  filter: saturate(1.25);
}

.lava-sky,
.lava-glow,
.obby-platform,
.obby-avatar,
.lava-shark,
.obby-checkpoint,
.obby-cover-art figcaption {
  position: absolute;
  z-index: 2;
}

.lava-sky {
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(24, 217, 255, 0.24), transparent 10rem),
    radial-gradient(circle at 84% 14%, rgba(224, 50, 255, 0.24), transparent 11rem);
}

.lava-glow {
  left: 8%;
  right: 8%;
  bottom: 20%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 120, 31, 0.36);
  filter: blur(28px);
}

.obby-platform {
  width: clamp(86px, 12vw, 154px);
  height: clamp(34px, 4.8vw, 58px);
  border: 1px solid rgba(143, 240, 255, 0.5);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, #4e78ff, #8b43ff 52%, #18d9ff);
  box-shadow: 0 18px 34px rgba(3, 9, 21, 0.35), 0 0 24px rgba(24, 217, 255, 0.28);
  transform: perspective(620px) rotateX(58deg) rotateZ(-10deg);
}

.platform-one { left: 8%; bottom: 34%; }
.platform-two { left: 29%; bottom: 44%; }
.platform-three { left: 50%; bottom: 54%; }
.platform-four { left: 69%; bottom: 43%; }
.platform-five { right: 7%; bottom: 32%; }

.obby-avatar {
  width: clamp(54px, 6vw, 86px);
  height: clamp(78px, 8vw, 118px);
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(180deg, #ffe8a6 0 28%, #32b8ff 28% 68%, #151f55 68%);
  box-shadow: 0 20px 34px rgba(3, 9, 21, 0.38);
}

.obby-avatar::before,
.obby-avatar::after,
.obby-avatar span::before,
.obby-avatar span::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 9px;
}

.obby-avatar::before {
  left: 18%;
  top: 10%;
  width: 18%;
  height: 7%;
  background: #07103a;
  box-shadow: 28px 0 0 #07103a;
}

.obby-avatar::after {
  left: 26%;
  top: 20%;
  width: 48%;
  height: 5%;
  background: rgba(7, 16, 58, 0.65);
}

.obby-avatar span::before,
.obby-avatar span::after {
  top: 34%;
  width: 22%;
  height: 40%;
  background: #ffe8a6;
}

.obby-avatar span::before { left: -14%; transform: rotate(18deg); }
.obby-avatar span::after { right: -14%; transform: rotate(-22deg); }
.avatar-one { left: 34%; bottom: 51%; transform: rotate(-5deg); }
.avatar-two { right: 24%; bottom: 42%; transform: rotate(8deg) scale(0.82); filter: hue-rotate(62deg); }

.lava-shark {
  width: clamp(78px, 10vw, 134px);
  height: clamp(34px, 4vw, 54px);
  border-radius: 70% 70% 40% 40%;
  background: linear-gradient(180deg, #242d63, #07103a);
  box-shadow: 0 0 24px rgba(255, 232, 166, 0.18);
}

.lava-shark::before {
  content: "";
  position: absolute;
  left: 28%;
  top: -58%;
  width: 30%;
  height: 88%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #07103a;
}

.lava-shark::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 24%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ff0ff;
}

.shark-one { left: 14%; bottom: 13%; transform: rotate(-8deg); }
.shark-two { right: 18%; bottom: 17%; transform: rotate(7deg) scale(0.78); }

.obby-checkpoint {
  right: 10%;
  top: 20%;
  width: clamp(48px, 6vw, 82px);
  height: clamp(98px, 13vw, 176px);
  border-radius: 999px 999px 18px 18px;
  border: 2px solid rgba(143, 240, 255, 0.7);
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.45) 42% 56%, transparent 56%),
    linear-gradient(180deg, rgba(49, 214, 139, 0.72), rgba(24, 217, 255, 0.28));
  box-shadow: 0 0 34px rgba(49, 214, 139, 0.46);
}

.obby-cover-art figcaption {
  left: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 9px 12px;
  border: 1px solid rgba(143, 240, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 9, 21, 0.58);
  font-size: 0.78rem;
  font-weight: 1000;
}

.obby-page-dashboard {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.86), rgba(5, 14, 37, 0.94));
  box-shadow: var(--shadow);
}

.obby-dashboard[hidden] {
  display: none;
}

.obby-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.obby-dashboard-head {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 232, 166, 0.14), transparent 14rem),
    linear-gradient(135deg, rgba(24, 217, 255, 0.11), rgba(139, 67, 255, 0.14));
}

.obby-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.obby-form,
.obby-preview-card {
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.obby-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}

.obby-preview-card h4 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.obby-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.obby-meta-row span,
.obby-section-list small {
  border: 1px solid rgba(143, 240, 255, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #c8f7ff;
  background: rgba(24, 217, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.obby-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(24, 217, 255, 0.22), rgba(139, 67, 255, 0.16)),
    rgba(3, 9, 21, 0.42);
}

.obby-track span {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(143, 240, 255, 0.22);
  border-radius: 12px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(24, 217, 255, 0.18), rgba(139, 67, 255, 0.18)),
    rgba(255, 255, 255, 0.06);
  font-weight: 1000;
}

.obby-section-list {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
}

.obby-section-list article {
  padding: 13px;
  border: 1px solid rgba(160, 218, 255, 0.14);
  border-radius: 12px;
  background: rgba(3, 9, 21, 0.26);
}

.obby-section-list strong {
  display: block;
  color: var(--white);
}

.obby-section-list p {
  margin: 6px 0 10px;
  color: var(--muted);
}

.obby-json-export {
  margin-top: 4px;
}

.obby-json-export textarea {
  min-height: 180px;
  color: #dffbff;
  background: rgba(3, 9, 21, 0.42);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.obby-wallpaper-forge {
  margin-top: 22px;
}

.wallpaper-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 16px;
}

.wallpaper-preview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 8%, rgba(24, 217, 255, 0.2), transparent 13rem),
    radial-gradient(circle at 88% 18%, rgba(224, 50, 255, 0.16), transparent 14rem),
    linear-gradient(145deg, rgba(15, 31, 73, 0.88), rgba(5, 14, 37, 0.94));
  box-shadow: var(--shadow);
}

.wallpaper-preview-card h4 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.wallpaper-preview-grid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(143, 240, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(24, 217, 255, 0.08), rgba(139, 67, 255, 0.1)),
    rgba(3, 9, 21, 0.5);
  background-size: 33.333% 33.333%, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 -70px 70px rgba(3, 9, 21, 0.24);
}

.wallpaper-preview-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  pointer-events: none;
}

.wallpaper-preview-grid span {
  position: relative;
  z-index: 1;
  max-width: 240px;
  color: rgba(226, 240, 255, 0.74);
  font-weight: 900;
  text-align: center;
}

.wallpaper-preview-card img {
  width: min(320px, 100%);
  justify-self: center;
  border: 1px solid rgba(143, 240, 255, 0.24);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(3, 9, 21, 0.3);
}

.story-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.1), rgba(139, 67, 255, 0.12));
}

.story-dashboard-head h3,
.story-form h4,
.story-card-preview h4,
.story-player h4 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.story-multiverse-cover {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 34vw, 430px);
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 217, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 82% 26%, rgba(224, 50, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(3, 9, 21, 0.96), rgba(21, 17, 68, 0.94));
  box-shadow: inset 0 0 90px rgba(24, 217, 255, 0.08), 0 24px 70px rgba(3, 9, 21, 0.34);
}

.story-multiverse-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(143, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.multiverse-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 4vw, 46px);
}

.pixel-world {
  position: relative;
  height: min(74%, 300px);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 217, 255, 0.18), rgba(3, 9, 21, 0.1)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(143, 240, 255, 0.18) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(143, 240, 255, 0.18) 23px 24px);
  border: 1px solid rgba(143, 240, 255, 0.22);
  transform: perspective(620px) rotateY(14deg) rotateX(4deg);
}

.pixel-world span {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8ff0ff, #8b43ff);
  box-shadow: 0 18px 34px rgba(24, 217, 255, 0.24);
}

.pixel-world span:nth-child(1) { left: 18%; top: 20%; }
.pixel-world span:nth-child(2) { left: 42%; top: 42%; background: linear-gradient(135deg, #ffe8a6, #ff75d8); }
.pixel-world span:nth-child(3) { left: 66%; top: 28%; }
.pixel-world span:nth-child(4) { left: 24%; top: 68%; background: linear-gradient(135deg, #37f2a6, #18d9ff); }

.story-portal {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(170px, 24vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--white);
  border: 2px solid rgba(143, 240, 255, 0.46);
  background:
    radial-gradient(circle, rgba(24, 217, 255, 0.3) 0 18%, rgba(139, 67, 255, 0.28) 38%, rgba(3, 9, 21, 0.18) 64%, transparent 70%);
  box-shadow: 0 0 42px rgba(24, 217, 255, 0.3), inset 0 0 48px rgba(139, 67, 255, 0.25);
}

.story-portal strong {
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.85;
  text-shadow: 0 0 28px rgba(24, 217, 255, 0.72);
}

.story-portal span {
  position: absolute;
  bottom: 22%;
  color: #8ff0ff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.block-hero {
  position: absolute;
  right: clamp(92px, 15vw, 250px);
  bottom: 18%;
  width: 110px;
  height: 150px;
  transform: rotate(-5deg);
}

.block-hero span {
  position: absolute;
  display: block;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe8a6, #ff75d8);
  box-shadow: 0 18px 34px rgba(3, 9, 21, 0.35);
}

.block-head { left: 30px; top: 0; width: 52px; height: 52px; }
.block-body { left: 20px; top: 58px; width: 72px; height: 76px; background: linear-gradient(135deg, #18d9ff, #8b43ff) !important; }
.block-arm { top: 66px; width: 28px; height: 68px; }
.block-arm.left { left: -4px; transform: rotate(12deg); }
.block-arm.right { right: -4px; transform: rotate(-18deg); }

.comic-panel {
  position: absolute;
  right: clamp(18px, 5vw, 80px);
  top: 18%;
  width: clamp(118px, 15vw, 210px);
  padding: 16px;
  border-radius: 16px;
  color: #071337;
  background: linear-gradient(135deg, #ffffff, #d9fbff);
  box-shadow: 0 18px 40px rgba(3, 9, 21, 0.32);
  transform: rotate(4deg);
}

.comic-panel span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, #18d9ff, #8b43ff);
  font-weight: 1000;
}

.comic-panel strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
}

.cover-copy {
  position: absolute;
  left: clamp(20px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 40px);
  width: min(520px, 58%);
}

.cover-copy h4 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  line-height: 1;
  text-shadow: 0 4px 26px rgba(3, 9, 21, 0.8);
}

.story-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.story-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  cursor: pointer;
}

.story-tab.is-active {
  color: var(--white);
  border-color: rgba(24, 217, 255, 0.52);
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.22), rgba(139, 67, 255, 0.2));
}

.story-tab-panel {
  display: none;
}

.story-tab-panel.is-active {
  display: block;
}

.story-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.story-workspace-resizable {
  --preview-column-width: 520px;
  grid-template-columns: minmax(360px, 1fr) 24px minmax(320px, var(--preview-column-width));
  gap: 8px;
}

.preview-column-resizer {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 100%;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 14px;
  color: rgba(207, 230, 255, 0.88);
  background: linear-gradient(180deg, rgba(24, 217, 255, 0.08), rgba(139, 67, 255, 0.12));
  cursor: ew-resize;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preview-column-resizer span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(160, 218, 255, 0.24);
  background: rgba(3, 9, 21, 0.36);
  font-size: 0.95rem;
  font-weight: 900;
}

.preview-column-resizer:hover,
.preview-column-resizer:focus-visible {
  border-color: rgba(24, 217, 255, 0.55);
  color: var(--white);
  outline: none;
}

.is-resizing-preview,
.is-resizing-preview * {
  cursor: ew-resize !important;
  user-select: none;
}

.story-form,
.story-card-preview,
.story-player,
.publish-checklist article {
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.story-form {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.story-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.story-range-label {
  grid-column: 1 / -1;
  gap: 9px;
}

.story-range-label span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.story-range-label output {
  color: #8ff0ff;
}

.story-range-label input[type="range"] {
  width: 100%;
  accent-color: #18d9ff;
}

.story-checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(143, 240, 255, 0.18);
  border-radius: 14px;
  color: rgba(226, 240, 255, 0.84);
  background: rgba(255, 255, 255, 0.05);
}

.story-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: #18d9ff;
}

.story-card-preview,
.story-player {
  padding: 16px;
}

.cover-preview-card {
  display: grid;
  gap: 12px;
}

.game-cover-preview {
  position: relative;
  display: block;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(24, 217, 255, 0.32);
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 28%, rgba(139, 67, 255, 0.28), transparent 34%),
    linear-gradient(160deg, rgba(3, 9, 21, 0.74), rgba(12, 30, 67, 0.96));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -140px 120px rgba(3, 9, 21, 0.78), 0 24px 70px rgba(3, 9, 21, 0.34);
}

.game-cover-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 9, 21, 0.16), transparent 38%, rgba(3, 9, 21, 0.24));
  pointer-events: none;
}

.cover-preview-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.gen-alpha-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(143, 240, 255, 0.2);
  background: rgba(3, 9, 21, 0.32);
}

.sticker-stage {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.sticker-cat {
  position: absolute;
  inset: 5px;
  width: 48px;
  height: 48px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(135deg, #8ff0ff, #8b43ff);
  animation: sticker-dance 0.72s ease-in-out infinite alternate;
  opacity: 0;
}

.sticker-cat::before,
.sticker-cat::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 18px;
  height: 18px;
  border-radius: 5px 12px 5px 5px;
  background: #8b43ff;
}

.sticker-cat::before {
  left: 5px;
  transform: rotate(-22deg);
}

.sticker-cat::after {
  right: 5px;
  transform: rotate(22deg);
}

.sticker-cat span {
  position: absolute;
  inset: 16px 12px auto;
  height: 8px;
  border-radius: 999px;
  background: #03122d;
  box-shadow: 16px 0 0 #03122d, 8px 12px 0 -2px rgba(255, 255, 255, 0.92);
}

.sticker-cat-dance {
  animation: sticker-dance 0.72s ease-in-out infinite alternate, sticker-cycle 7.8s linear infinite;
}

.sticker-cat-sad {
  background: linear-gradient(135deg, #d9fbff, #56a7ff);
  animation: sad-kitten-wobble 0.96s ease-in-out infinite alternate, sticker-cycle 7.8s linear infinite 2.6s;
}

.sticker-cat-sad span {
  inset: 14px 10px auto;
  width: 11px;
  height: 15px;
  background: #03122d;
  box-shadow:
    17px 0 0 #03122d,
    2px 13px 0 -3px rgba(143, 240, 255, 0.95),
    19px 13px 0 -3px rgba(143, 240, 255, 0.95),
    9px 24px 0 -4px #03122d;
}

.sticker-cat-laugh {
  background: linear-gradient(135deg, #fff4a3, #ff75d8);
  animation: laugh-cat-bounce 0.52s ease-in-out infinite alternate, sticker-cycle 7.8s linear infinite 5.2s;
}

.sticker-cat-laugh span {
  inset: 14px 10px auto;
  width: 9px;
  height: 6px;
  border-radius: 999px;
  background: #03122d;
  box-shadow:
    19px 0 0 #03122d,
    9px 14px 0 3px #03122d,
    9px 18px 0 4px #ffffff;
}

@keyframes sticker-cycle {
  0%, 30% {
    opacity: 1;
  }
  34%, 100% {
    opacity: 0;
  }
}

@keyframes sticker-dance {
  from {
    transform: translateY(0) rotate(-8deg) scale(0.96);
  }
  to {
    transform: translateY(-8px) rotate(8deg) scale(1.04);
  }
}

@keyframes sad-kitten-wobble {
  from {
    transform: translateY(0) rotate(-3deg) scale(0.98);
  }
  to {
    transform: translateY(3px) rotate(3deg) scale(1.02);
  }
}

@keyframes laugh-cat-bounce {
  from {
    transform: translateY(0) rotate(8deg) scale(0.95);
  }
  to {
    transform: translateY(-10px) rotate(-8deg) scale(1.07);
  }
}

.is-hidden {
  display: none !important;
}

.character-method-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.character-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.character-method-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(143, 240, 255, 0.2);
  border-radius: 18px;
  color: rgba(226, 240, 255, 0.82);
  background: linear-gradient(145deg, rgba(8, 23, 61, 0.9), rgba(32, 17, 74, 0.74));
  text-align: left;
  cursor: pointer;
}

.character-method-card:hover {
  border-color: rgba(24, 217, 255, 0.62);
  transform: translateY(-1px);
}

.character-method-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 900;
}

.character-method-card strong {
  color: var(--white);
  font-size: 1.18rem;
}

.drawing-preview-frame {
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  border: 1px dashed rgba(143, 240, 255, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(226, 240, 255, 0.58);
  font-weight: 900;
  text-align: center;
}

.drawing-preview-frame img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
}

.character-image-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  margin: 10px 0 16px;
  overflow: hidden;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 18%, rgba(24, 217, 255, 0.22), transparent 34%),
    radial-gradient(circle at 76% 72%, rgba(139, 67, 255, 0.24), transparent 38%),
    rgba(255, 255, 255, 0.06);
  color: rgba(226, 240, 255, 0.58);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.character-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.character-image-frame .character-image-action {
  opacity: 0.94;
}

.hero-slot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.hero-slot {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(143, 240, 255, 0.18);
  border-radius: 14px;
  color: rgba(226, 240, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  cursor: pointer;
}

.hero-slot.is-active {
  border-color: rgba(24, 217, 255, 0.62);
  color: var(--white);
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.18), rgba(139, 67, 255, 0.18));
}

.hero-slot span,
.hero-slot em {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-slot strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.character-card-actions .button {
  min-height: 42px;
  padding-inline: 10px;
}

.story-form .button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.story-badge-row,
.story-choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.story-badge-row span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(24, 217, 255, 0.22);
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.scene-card-list {
  display: grid;
  gap: 14px;
  max-height: 760px;
  overflow-y: auto;
  padding-right: 4px;
}

.scene-preview-stack {
  display: grid;
  gap: 14px;
}

.scene-responsive-preview {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.scene-responsive-preview h4 {
  margin-bottom: 6px;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.scene-preview-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.scene-preview-single {
  max-width: 980px;
}

.scene-preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-preview-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(24, 217, 255, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 26% 20%, rgba(24, 217, 255, 0.3), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(139, 67, 255, 0.35), transparent 28%),
    linear-gradient(145deg, rgba(8, 23, 61, 0.96), rgba(32, 17, 74, 0.9));
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 32px rgba(24, 217, 255, 0.08);
}

.scene-preview-frame.has-generated-image {
  border-color: rgba(24, 217, 255, 0.5);
  box-shadow: inset 0 -80px 90px rgba(3, 9, 21, 0.72), 0 18px 45px rgba(24, 217, 255, 0.14);
}

.scene-preview-frame::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(rgba(143, 240, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.scene-preview-frame.has-generated-image::before {
  opacity: 0.16;
}

.scene-enlarge-button,
.scene-image-download-button {
  position: absolute;
  top: 12px;
  z-index: 3;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 9, 21, 0.74);
  box-shadow: 0 12px 28px rgba(3, 9, 21, 0.28);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.scene-enlarge-button {
  right: 54px;
}

.scene-image-download-button {
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.scene-enlarge-button:hover,
.scene-image-download-button:hover {
  border-color: rgba(143, 240, 255, 0.74);
  background: rgba(24, 217, 255, 0.18);
}

.scene-preview-frame > * {
  position: relative;
  z-index: 1;
}

.scene-preview-frame span {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
}

.scene-preview-frame strong {
  color: var(--white);
  line-height: 1.05;
}

.scene-preview-frame p {
  color: rgba(226, 240, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.scene-banner-overlay {
  width: min(92%, 820px);
  min-height: 86px;
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--white);
  font-size: clamp(0.9rem, 1.45vw, 1.24rem);
  font-weight: 900;
  line-height: 1.25;
  text-wrap: balance;
}

.banner-design-preview {
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-items: center;
}

.banner-design-preview .scene-banner-overlay {
  position: absolute;
  z-index: 4;
  width: 56%;
  max-width: 84%;
  min-height: 64px;
  margin: 0;
  padding: 14px 18px;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.banner-design-preview .scene-banner-overlay:active {
  cursor: grabbing;
}

.banner-design-preview .scene-banner-overlay[data-size="small"] {
  min-height: 44px;
  padding: 10px 14px;
  font-size: clamp(0.68rem, 1vw, 0.9rem);
}

.banner-design-preview .scene-banner-overlay[data-size="medium"] {
  min-height: 54px;
  padding: 12px 16px;
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
}

.banner-design-preview .scene-banner-overlay[data-size="large"] {
  font-size: clamp(0.9rem, 1.45vw, 1.24rem);
}

.banner-design-preview .scene-banner-overlay[data-color="dark"] {
  color: #071337;
  text-shadow: none;
}

.banner-design-preview .scene-banner-overlay[data-color="white"] {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(3, 9, 21, 0.82);
}

.banner-design-preview .scene-banner-overlay[data-color="gold"] {
  color: #ffe8a6;
  text-shadow: 0 2px 12px rgba(3, 9, 21, 0.82);
}

.ui-kit-overlay-image,
.ui-kit-button-image {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 28px rgba(3, 9, 21, 0.36));
}

.ui-kit-overlay-image:active,
.ui-kit-button-image:active {
  cursor: grabbing;
}

.ui-kit-overlay-image {
  left: 50%;
  top: 78%;
  width: 66%;
  max-width: 140%;
  max-height: 72%;
}

.ui-kit-overlay-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  transform: none;
  pointer-events: none;
  cursor: default;
}

.ui-kit-overlay-panel {
  left: 50%;
  top: 78%;
  width: 54%;
  max-width: 140%;
  max-height: 72%;
}

.ui-kit-button-image {
  left: 78%;
  top: 78%;
  width: 22%;
  max-width: 52%;
  max-height: 52%;
}

.ui-kit-scene-stack {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.ui-kit-scene-thumb {
  position: relative;
  flex: 0 0 118px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(160, 218, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.ui-kit-scene-thumb.is-active {
  border-color: rgba(24, 217, 255, 0.72);
  box-shadow: 0 0 22px rgba(24, 217, 255, 0.18);
}

.ui-kit-scene-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-kit-scene-thumb strong {
  position: absolute;
  left: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(3, 9, 21, 0.72);
  color: var(--white);
  font-size: 0.7rem;
}

.banner-style-glass {
  border: 1px solid rgba(143, 240, 255, 0.36);
  background: linear-gradient(135deg, rgba(8, 23, 61, 0.72), rgba(32, 17, 74, 0.76));
  box-shadow: 0 18px 44px rgba(3, 9, 21, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.banner-style-comic {
  border: 3px solid rgba(3, 9, 21, 0.92);
  color: #06102a;
  background: #fff7c8;
  box-shadow: 8px 8px 0 rgba(3, 9, 21, 0.7);
}

.banner-style-scroll {
  border: 2px solid rgba(115, 82, 35, 0.72);
  color: #251607;
  background: linear-gradient(135deg, #ffe8b1, #f6c978);
  box-shadow: 0 16px 36px rgba(74, 38, 7, 0.26);
}

.banner-style-terminal {
  border: 1px solid rgba(24, 217, 255, 0.54);
  color: #a8f4ff;
  background: linear-gradient(135deg, rgba(2, 15, 32, 0.9), rgba(7, 37, 58, 0.88));
  box-shadow: 0 0 28px rgba(24, 217, 255, 0.16), inset 0 0 18px rgba(24, 217, 255, 0.08);
}

.banner-style-ui-kit-text {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(3, 9, 21, 0.28), rgba(3, 9, 21, 0.1));
  box-shadow: none;
  text-shadow: 0 2px 12px rgba(3, 9, 21, 0.82);
  backdrop-filter: blur(2px);
}

.banner-style-ui-kit-text[data-color="dark"] {
  color: #071337;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.banner-style-ui-kit-text[data-color="white"] {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(3, 9, 21, 0.3), rgba(3, 9, 21, 0.12));
  text-shadow: 0 2px 12px rgba(3, 9, 21, 0.82);
}

.banner-style-ui-kit-text[data-color="gold"] {
  color: #ffe8a6;
  background: linear-gradient(90deg, rgba(3, 9, 21, 0.3), rgba(3, 9, 21, 0.12));
  text-shadow: 0 2px 12px rgba(3, 9, 21, 0.82);
}

.banner-design-preview .banner-style-ui-kit-text[data-color="dark"] {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.web-view {
  aspect-ratio: 16 / 9;
}

.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 21, 0.82);
  backdrop-filter: blur(14px);
}

.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  max-height: 92vh;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(143, 240, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8, 23, 61, 0.96), rgba(20, 12, 48, 0.96));
  box-shadow: 0 28px 90px rgba(3, 9, 21, 0.62);
}

.image-lightbox-panel figcaption {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.image-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 86px);
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.image-lightbox-close,
.image-lightbox-download {
  position: absolute;
  top: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(3, 9, 21, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.image-lightbox-close {
  right: 14px;
}

.image-lightbox-download {
  right: 78px;
  display: grid;
  place-items: center;
  width: 34px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.image-lightbox-close:hover,
.image-lightbox-download:hover {
  border-color: rgba(143, 240, 255, 0.74);
  background: rgba(24, 217, 255, 0.18);
}

.scene-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(24, 217, 255, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.06);
}

.scene-card-thumbs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 10px;
}

.scene-card-thumb {
  position: relative;
}

.scene-card-thumbs img {
  width: 100%;
  height: clamp(128px, 18vw, 220px);
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 12px;
  object-fit: cover;
}

.scene-card-enlarge-button {
  top: 10px;
  right: 54px;
}

.scene-card-download-button {
  top: 10px;
  right: 10px;
}

.scene-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-size: 0.8rem;
  font-weight: 900;
}

.scene-card p,
.story-card-preview p,
.story-player p,
.publish-checklist p {
  color: var(--muted);
  line-height: 1.5;
}

.scene-card small {
  color: #a8f4ff;
  font-weight: 800;
}

.scene-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.scene-format-row em {
  padding: 5px 8px;
  border: 1px solid rgba(24, 217, 255, 0.18);
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.08);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.story-map-board {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: auto;
  min-height: 340px;
  padding: 18px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(rgba(143, 240, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 240, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 44px 44px;
}

.story-map-connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.story-link path {
  fill: none;
  stroke: rgba(24, 217, 255, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(24, 217, 255, 0.38));
}

.story-link circle {
  fill: #8ff0ff;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(139, 67, 255, 0.62));
}

.story-link text {
  fill: rgba(255, 255, 255, 0.84);
  paint-order: stroke;
  stroke: rgba(3, 9, 21, 0.88);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
}

.map-tool-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.map-tool {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  cursor: pointer;
}

.map-tool.is-active {
  color: var(--white);
  border-color: rgba(24, 217, 255, 0.5);
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.25), rgba(139, 67, 255, 0.2));
  box-shadow: 0 0 22px rgba(24, 217, 255, 0.16);
}

.story-map-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.story-map-tools h4 {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.story-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.story-map-shell > * {
  min-width: 0;
}

.story-map-shell.is-expanded {
  position: fixed;
  inset: 112px 18px 18px;
  z-index: 50;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(24, 217, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(139, 67, 255, 0.24), transparent 30rem),
    #030915;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

body.story-map-open {
  overflow: hidden;
}

body.story-map-open .story-map-tools {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 70;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 20%, rgba(24, 217, 255, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(15, 31, 73, 0.96), rgba(5, 14, 37, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.story-map-shell.is-expanded .story-map-board {
  min-height: calc(100vh - 78px);
}

.story-route-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.94), rgba(5, 14, 37, 0.95));
}

.story-node {
  position: absolute;
  z-index: 2;
  width: 260px;
  min-height: 188px;
  padding: 14px;
  border: 1px solid rgba(24, 217, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.94), rgba(5, 14, 37, 0.95));
  box-shadow: 0 18px 42px rgba(4, 11, 31, 0.2);
  user-select: none;
}

.story-node strong {
  display: block;
  margin-top: 4px;
}

.story-node-type {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(24, 217, 255, 0.18);
  border-radius: 999px;
  color: #8ff0ff;
  background: rgba(24, 217, 255, 0.08);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.story-node p {
  margin-top: 9px;
  color: rgba(224, 234, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}

.story-node.is-selected {
  border-color: rgba(139, 67, 255, 0.72);
  box-shadow: 0 20px 50px rgba(42, 113, 255, 0.22), 0 0 0 2px rgba(139, 67, 255, 0.18);
}

.story-map-board.is-move-mode .story-node {
  cursor: grab;
}

.story-map-board.is-move-mode .story-node:active {
  cursor: grabbing;
}

.story-map-board:not(.is-connect-mode) .node-port {
  opacity: 0.2;
  pointer-events: none;
}

.story-map-board.is-connect-mode .node-port {
  opacity: 1;
}

.node-mini-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.node-mini-actions button {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.node-port {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 16px rgba(24, 217, 255, 0.48);
  cursor: pointer;
}

.node-port:hover {
  transform: scale(1.18);
}

.port-up {
  top: -9px;
  left: calc(50% - 8px);
}

.port-right {
  top: calc(50% - 8px);
  right: -9px;
}

.port-down {
  bottom: -9px;
  left: calc(50% - 8px);
}

.port-left {
  top: calc(50% - 8px);
  left: -9px;
}

.story-node span {
  color: #8ff0ff;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-scene-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(24, 217, 255, 0.18);
  border-radius: 14px;
  background: rgba(24, 217, 255, 0.06);
}

.selected-scene-editor > strong {
  color: var(--white);
}

.danger-button {
  border-color: rgba(255, 125, 151, 0.35);
  color: #ffd8df;
}

.route-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.route-chip-row small {
  color: #a8f4ff;
}

.route-chip {
  min-height: 26px;
  padding: 6px 8px;
  border: 1px solid rgba(24, 217, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 217, 255, 0.08);
  font-weight: 900;
}

.publish-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.publish-checklist article {
  padding: 14px;
}

.publish-checklist span {
  color: #8ff0ff;
  font-weight: 900;
}

.output-board {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(160, 218, 255, 0.14);
}

.text-button {
  border: 0;
  color: #8ff0ff;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.project-board {
  display: grid;
  gap: 12px;
}

.board-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(160, 218, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.board-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--cyan), var(--violet));
}

.board-card strong {
  display: block;
  margin-bottom: 6px;
}

.board-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  font-weight: 900;
}

.builders-section,
.publish-section {
  margin-top: 30px;
  color: var(--ink);
}

.section-heading {
  margin-bottom: 18px;
}

.builders-section .eyebrow,
.publish-section .eyebrow {
  color: #3274ff;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.builder-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 18px;
  padding: 20px;
  color: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.builder-card > * {
  position: relative;
  z-index: 1;
}

.builder-card::after {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -92px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(24, 217, 255, 0.22) 0 24%, rgba(139, 67, 255, 0.16) 42%, transparent 68%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.library-card {
  padding: 0;
  min-height: 360px;
}

.library-card::after {
  display: none;
}

.library-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(160, 218, 255, 0.16);
  background:
    radial-gradient(circle at 25% 18%, rgba(24, 217, 255, 0.24), transparent 12rem),
    linear-gradient(135deg, rgba(24, 217, 255, 0.12), rgba(139, 67, 255, 0.16));
}

.library-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 14, 37, 0.42));
  pointer-events: none;
}

.library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 3rem;
  font-weight: 900;
}

.library-card-body {
  padding: 20px;
}

.marketplace-card {
  min-height: 410px;
}

.market-price {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.92), rgba(139, 67, 255, 0.92));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(24, 217, 255, 0.22);
}

.market-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}

.market-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.marketplace-submit {
  margin-top: 28px;
}

.wide-field {
  grid-column: 1 / -1;
}

.story-engine-workspace {
  align-items: stretch;
}

.story-engine-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-tree-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-tree-stats span {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(222, 239, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
}

.story-tree-list {
  display: grid;
  gap: 10px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}

.story-tree-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.story-tree-item:hover,
.story-tree-item.is-active {
  border-color: rgba(24, 217, 255, 0.58);
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.14), rgba(139, 67, 255, 0.16));
}

.story-tree-item span {
  grid-row: span 3;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(24, 217, 255, 0.92), rgba(139, 67, 255, 0.92));
  font-weight: 900;
}

.story-tree-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-tree-item em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  text-transform: capitalize;
}

.story-tree-item p {
  color: rgba(224, 234, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.4;
}

.builder-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.55;
}

.builder-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 217, 255, 0.36);
  box-shadow: 0 28px 82px rgba(4, 11, 31, 0.28);
}

.auth-shell {
  max-width: 1220px;
}

.auth-hero {
  align-items: stretch;
}

.auth-hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-grid-single {
  grid-template-columns: minmax(0, 620px);
}

.text-link {
  display: inline-flex;
  justify-self: start;
}

.account-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.turnstile-slot {
  min-height: 70px;
}

.turnstile-missing {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px dashed rgba(160, 218, 255, 0.28);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.billing-card {
  min-height: 310px;
}

.credit-topup-section {
  margin-top: 34px;
}

.credit-card {
  min-height: 280px;
}

.credit-card .button {
  margin-top: 14px;
}

.price-line {
  color: var(--white) !important;
  font-size: 2.3rem;
  font-weight: 900;
}

.old-price {
  display: inline-block;
  margin-right: 8px;
  color: rgba(143, 164, 202, 0.78);
  font-size: 0.62em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.promo-note {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: -4px 0 12px;
  padding: 0 10px;
  border: 1px solid rgba(24, 217, 255, 0.28);
  border-radius: 999px;
  color: #a8f4ff;
  background: rgba(24, 217, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.billing-status {
  margin-top: 18px;
  color: var(--ink);
}

.publish-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.publish-form {
  display: grid;
  gap: 14px;
  border-radius: 18px;
  padding: 20px;
  color: var(--white);
}

@media (max-width: 1100px) {
  .studio-grid,
  .studio-hero,
  .obby-hero,
  .publish-section,
  .account-grid,
  .account-forms {
    grid-template-columns: 1fr;
  }

  .builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-workspace,
  .obby-workspace,
  .wallpaper-workspace,
  .publish-checklist {
    grid-template-columns: 1fr;
  }

  .story-workspace-resizable {
    grid-template-columns: 1fr;
  }

  .preview-column-resizer {
    display: none;
  }

  .story-map-board {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .story-map-shell,
  .story-map-shell.is-expanded {
    grid-template-columns: 1fr;
  }

  .obby-cover-art {
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .studio-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .studio-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .studio-shell {
    width: min(100% - 22px, 1400px);
    padding-top: 28px;
  }

  .obby-page-shell {
    width: min(100% - 20px, 1500px);
  }

  .obby-hero-copy,
  .obby-cover-art {
    min-height: 380px;
    border-radius: 18px;
  }

  .obby-hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .platform-one { left: 4%; bottom: 34%; }
  .platform-two { left: 24%; bottom: 45%; }
  .platform-three { left: 48%; bottom: 55%; }
  .platform-four { left: 66%; bottom: 43%; }
  .platform-five { right: 2%; bottom: 31%; }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.8rem);
  }

  .builder-grid {
    grid-template-columns: 1fr;
  }

  .story-dashboard-head {
    flex-direction: column;
  }

  .multiverse-scene {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .pixel-world {
    height: 170px;
    opacity: 0.68;
  }

  .story-portal {
    position: absolute;
    right: 18px;
    top: 24px;
    width: 150px;
  }

  .block-hero {
    right: 40px;
    bottom: 86px;
    transform: scale(0.72) rotate(-5deg);
    transform-origin: bottom right;
  }

  .comic-panel {
    display: none;
  }

  .cover-copy {
    width: calc(100% - 36px);
  }

  .story-form-grid,
  .story-map-board,
  .character-method-grid {
    grid-template-columns: 1fr;
  }

  .scene-preview-pair,
  .scene-preview-actions {
    grid-template-columns: 1fr;
  }

  .web-view {
    width: 100%;
    margin: 0 auto;
  }

  .story-map-tools {
    flex-direction: column;
  }

  body.story-map-open .story-map-tools {
    align-items: stretch;
    min-height: 138px;
  }

  body.story-map-open .map-tool-row {
    justify-content: flex-start;
  }

  .story-map-shell.is-expanded {
    inset: 176px 12px 12px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .workspace-top,
  .output-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-orbit {
    right: 18px;
    width: 118px;
    height: 118px;
    opacity: 0.36;
  }
}

/* Account progress dashboard */
.account-progress-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(36, 216, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 0%, rgba(160, 72, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #050a18 0%, #090f29 48%, #140928 100%);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.account-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 8, 20, 0.86);
  border-bottom: 1px solid rgba(130, 183, 255, 0.18);
  backdrop-filter: blur(18px);
}

.account-topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-topbar nav a,
.account-topbar .header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #f7fbff;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
}

.account-dashboard-shell {
  width: min(1560px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  padding: 28px 0 56px;
}

.account-side {
  min-height: calc(100vh - 110px);
  position: sticky;
  top: 98px;
  align-self: start;
  border: 1px solid rgba(130, 183, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 15, 36, 0.92), rgba(7, 10, 28, 0.84));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  padding: 20px;
  overflow: hidden;
}

.account-side-brand,
.account-side nav a,
.account-help-card {
  color: #fff;
  text-decoration: none;
}

.account-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 1.1rem;
}

.account-side nav {
  display: grid;
  gap: 8px;
}

.account-side nav a {
  border-radius: 16px;
  padding: 14px 16px;
  color: rgba(237, 246, 255, 0.78);
  font-weight: 850;
}

.account-side nav a[aria-current="page"],
.account-side nav a:hover {
  background: linear-gradient(135deg, rgba(129, 77, 255, 0.42), rgba(38, 217, 255, 0.1));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(180, 128, 255, 0.28);
}

.account-side-orbit {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 34px auto 18px;
  filter: drop-shadow(0 22px 34px rgba(98, 94, 255, 0.32));
}

.account-help-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.account-help-card span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(160, 218, 255, 0.24);
}

.account-help-card small,
.account-main p,
.account-panel p,
.account-panel small {
  color: rgba(221, 234, 255, 0.72);
}

.account-main {
  min-width: 0;
}

.account-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.account-page-heading h1 {
  margin: 4px 0 6px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.account-page-heading h1 span {
  color: #9b6cff;
  text-shadow: 0 0 24px rgba(155, 108, 255, 0.72);
}

.account-quick-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px 10px 18px;
  font-weight: 900;
}

.account-quick-stats a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(138, 92, 255, 0.28);
  color: #fff;
  text-decoration: none;
}

.account-profile-hero,
.account-panel,
.account-settings-card,
.progress-dialog {
  border: 1px solid rgba(160, 218, 255, 0.16);
  background:
    radial-gradient(circle at 22% 0%, rgba(50, 213, 255, 0.15), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(156, 80, 255, 0.16), transparent 26rem),
    rgba(12, 22, 52, 0.78);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.account-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) minmax(150px, 0.34fr) minmax(190px, 0.4fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  border-radius: 26px;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.account-avatar-ring {
  width: clamp(118px, 15vw, 172px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(135deg, #24d8ff, #9d55ff, #ff43d1);
  box-shadow: 0 0 42px rgba(127, 88, 255, 0.48);
}

.account-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.account-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-name-row h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.icon-button {
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-level-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
}

.account-level-line span {
  border-radius: 999px;
  background: rgba(140, 82, 255, 0.2);
  color: #d9c8ff;
  padding: 7px 12px;
  font-weight: 900;
}

.account-level-line span:first-child {
  border: 1px solid rgba(190, 116, 255, 0.56);
  background: linear-gradient(135deg, rgba(107, 68, 255, 0.74), rgba(177, 45, 255, 0.62));
  color: #fff;
}

.account-progress-track,
.mini-progress {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(160, 218, 255, 0.12);
}

.account-progress-track span,
.mini-progress span {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f4fff, #20d7ff, #31f5c3);
  box-shadow: 0 0 18px rgba(32, 215, 255, 0.46);
}

.account-hero-stat {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-left: 1px solid rgba(160, 218, 255, 0.12);
  padding-left: clamp(16px, 3vw, 32px);
}

.account-hero-stat strong {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.account-hero-stat p {
  margin: 0;
  font-weight: 800;
}

.stat-icon {
  color: #87f4ff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.account-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.account-panel {
  border-radius: 22px;
  padding: clamp(18px, 2vw, 24px);
}

.account-panel h3 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.account-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.continue-panel,
.account-settings-grid {
  grid-column: span 1;
}

.continue-project {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.continue-project img {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 18px;
  object-fit: cover;
}

.continue-project h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.continue-project span,
.daily-spark-row span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(139, 78, 255, 0.28);
  color: #e2d5ff;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.mini-progress {
  height: 10px;
  margin: 12px 0 4px;
}

.continue-project .button {
  min-height: 42px;
  margin-top: 10px;
  margin-right: 8px;
}

.daily-spark-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 12px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(160, 218, 255, 0.15);
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
}

.daily-spark-row small {
  grid-column: 2;
}

.daily-spark-row em {
  grid-row: span 2;
  color: #d25dff;
  font-style: normal;
  font-weight: 950;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 28px 0 22px;
}

.week-row span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(160, 218, 255, 0.2);
  color: #bfd3f0;
  font-weight: 900;
}

.week-row span.is-complete {
  background: linear-gradient(135deg, #ffb12f, #ff6a2a);
  color: #11182a;
  box-shadow: 0 0 22px rgba(255, 139, 42, 0.36);
}

.week-row span.is-today {
  outline: 2px solid rgba(255, 255, 255, 0.72);
}

.streak-panel {
  text-align: center;
}

.streak-panel strong,
.leaderboard-panel strong,
.credits-panel strong {
  display: block;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 10px 0;
}

.badge-row,
.badge-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.achievement-badge {
  min-height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 7px;
  border: 1px solid rgba(160, 218, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.achievement-badge span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(143, 240, 255, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(37, 217, 255, 0.12), rgba(148, 80, 255, 0.16));
  filter: drop-shadow(0 0 16px rgba(142, 83, 255, 0.34));
}

.achievement-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.achievement-badge.is-locked {
  opacity: 0.52;
}

.achievement-badge.is-locked img {
  filter: grayscale(0.9) saturate(0.6);
}

.badge-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.badge-dots span {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.badge-dots span:first-child {
  background: linear-gradient(90deg, #8f4fff, #20d7ff);
}

.leaderboard-panel,
.credits-panel {
  min-height: 228px;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.account-settings-card {
  border-radius: 20px;
  padding: 0;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.account-settings-card summary,
.settings-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
}

.account-settings-card summary span,
.settings-link span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(139, 78, 255, 0.2);
  color: #8ff0ff;
  font-weight: 900;
}

.account-settings-card summary small,
.settings-link small {
  color: rgba(221, 234, 255, 0.7);
}

.compact-account-form {
  padding: 0 20px 20px;
}

.progress-dialog {
  width: min(780px, calc(100% - 28px));
  color: #fff;
  border-radius: 24px;
  padding: 24px;
}

.progress-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  float: right;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(160, 218, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.progress-dialog .badge-library {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

@media (max-width: 1180px) {
  .account-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .account-side {
    display: none;
  }

  .account-profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .account-hero-stat {
    border-left: 0;
    border-top: 1px solid rgba(160, 218, 255, 0.12);
    padding-left: 0;
    padding-top: 18px;
  }

  .account-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-dashboard-shell {
    width: min(100% - 22px, 680px);
    padding-top: 18px;
  }

  .account-topbar nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .account-page-heading,
  .account-profile-hero,
  .continue-project {
    grid-template-columns: 1fr;
  }

  .account-page-heading {
    align-items: stretch;
  }

  .account-main-grid,
  .account-settings-grid {
    grid-template-columns: 1fr;
  }

  .account-avatar-ring {
    width: 132px;
  }

  .badge-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Simplified OPREALM Studio creator launcher */
.studio-launcher-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #030915;
}

.studio-launcher-body::before {
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.launcher-header {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(3, 9, 21, 0.74), rgba(3, 9, 21, 0.2));
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.launcher-header nav {
  gap: 6px;
}

.launcher-header nav a:not(.button) {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.launcher-header nav a:not(.button):hover,
.launcher-header nav a:not(.button):focus-visible {
  border-color: rgba(160, 218, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.launcher-header .button-primary {
  align-items: center;
  min-height: 40px;
  padding: 2px 20px 0;
  border-radius: 12px;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(61, 124, 255, 0.24);
}

.studio-launcher {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(24, 217, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 8%, rgba(224, 50, 255, 0.22), transparent 30rem),
    #030915;
}

.launcher-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 96px min(5vw, 72px) 42px;
  display: grid;
  align-content: center;
  gap: clamp(24px, 4vw, 42px);
  overflow: hidden;
}

.launcher-bg,
.launcher-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.launcher-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.18) contrast(1.08) brightness(0.78);
  animation: launcherDrift 18s ease-in-out infinite alternate;
}

.launcher-hero-glow {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 9, 21, 0.18), rgba(3, 9, 21, 0.05) 44%, rgba(3, 9, 21, 0.88)),
    radial-gradient(circle at 50% 12%, rgba(3, 9, 21, 0.5), transparent 30rem),
    radial-gradient(circle at 50% 90%, rgba(24, 217, 255, 0.16), transparent 26rem);
}

.launcher-copy {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
  animation: launcherRise 680ms ease-out both;
}

.launcher-copy h1,
.studio-room-hero h1 {
  margin-bottom: 12px;
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(2.85rem, 6.5vw, 5.6rem);
  line-height: 0.88;
  text-shadow: 0 10px 34px rgba(3, 9, 21, 0.62);
}

.launcher-copy h1::after,
.studio-room-hero h1::after {
  display: none;
}

.launcher-copy p:not(.launcher-pill) {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  text-shadow: 0 6px 22px rgba(3, 9, 21, 0.6);
}

.launcher-pill {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(143, 240, 255, 0.32);
  border-radius: 999px;
  color: #8ff0ff;
  background: rgba(3, 9, 21, 0.44);
  font-size: 0.76rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.creation-portals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  width: min(1540px, 100%);
  margin: 0 auto;
  animation: launcherRise 760ms 120ms ease-out both;
}

.creation-card {
  --card-glow: rgba(24, 217, 255, 0.72);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: clamp(300px, 30vw, 390px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 2px solid color-mix(in srgb, var(--card-glow), white 10%);
  border-radius: 28px;
  background: rgba(3, 9, 21, 0.52);
  box-shadow: inset 0 -120px 90px rgba(3, 9, 21, 0.76), 0 28px 70px rgba(3, 9, 21, 0.42), 0 0 34px color-mix(in srgb, var(--card-glow), transparent 66%);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stories-card { --card-glow: rgba(224, 50, 255, 0.78); }
.music-card { --card-glow: rgba(139, 67, 255, 0.84); }
.movies-card { --card-glow: rgba(255, 137, 49, 0.84); }

.creation-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) brightness(0.9);
  transition: transform 420ms ease, filter 420ms ease;
}

.creation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 36%, rgba(3, 9, 21, 0.88));
}

.creation-card:hover {
  border-color: color-mix(in srgb, var(--card-glow), white 32%);
  box-shadow: inset 0 -120px 90px rgba(3, 9, 21, 0.72), 0 34px 90px rgba(3, 9, 21, 0.5), 0 0 46px color-mix(in srgb, var(--card-glow), transparent 28%);
  transform: perspective(900px) translateY(-8px) scale(1.018) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.creation-card:hover > img {
  transform: scale(1.09);
  filter: saturate(1.25) brightness(1.05);
}

.creation-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.48), var(--card-glow));
  box-shadow: 0 0 34px color-mix(in srgb, var(--card-glow), transparent 18%);
}

.creation-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.creation-card strong {
  display: block;
  font-family: "Baloo 2", Inter, sans-serif;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 0.88;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(3, 9, 21, 0.8);
}

.creation-card p {
  max-width: 240px;
  margin: 8px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.launcher-cta {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  width: min(560px, 92vw);
  border-radius: 999px;
  color: #07103a;
  background: linear-gradient(90deg, #18d9ff, #8b43ff 58%, #ff6fd8);
  box-shadow: 0 0 48px rgba(24, 217, 255, 0.34);
  font-weight: 1000;
  font-size: clamp(1rem, 2vw, 1.24rem);
  text-transform: capitalize;
  animation: launcherRise 820ms 220ms ease-out both;
}

.launcher-float {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(24, 217, 255, 0.3));
  opacity: 0.88;
  animation: floatAsset 6s ease-in-out infinite alternate;
}

.float-island { left: 3%; top: 20%; width: min(170px, 18vw); }
.float-portal { right: 7%; top: 26%; width: min(150px, 16vw); animation-delay: -1.6s; }
.float-crystal { left: 13%; bottom: 20%; width: min(90px, 11vw); animation-delay: -2.4s; }
.float-coin { right: 18%; bottom: 16%; width: min(82px, 10vw); animation-delay: -3.2s; }

.continue-row,
.orbit-helper {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.recent-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.recent-project,
.orbit-helper,
.room-option {
  border: 1px solid rgba(160, 218, 255, 0.18);
  background: linear-gradient(145deg, rgba(15, 31, 73, 0.84), rgba(5, 14, 37, 0.9));
  box-shadow: 0 24px 70px rgba(3, 9, 21, 0.28);
}

.recent-project {
  overflow: hidden;
  border-radius: 20px;
}

.recent-project img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.recent-project strong,
.recent-project span {
  display: block;
  padding: 0 14px;
}

.recent-project strong {
  padding-top: 12px;
  color: #fff;
}

.recent-project span {
  padding-bottom: 14px;
  color: #8ff0ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.orbit-helper {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 64px;
  padding: 24px;
  border-radius: 28px;
}

.orbit-helper img {
  width: 190px;
  max-width: 100%;
  filter: drop-shadow(0 0 30px rgba(24, 217, 255, 0.38));
}

.studio-room-body {
  background:
    radial-gradient(circle at 20% -10%, rgba(24, 217, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 84% 0%, rgba(224, 50, 255, 0.2), transparent 34rem),
    #030915;
}

.studio-room-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 70px;
}

.studio-room-hero {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  min-height: 520px;
}

.studio-room-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid rgba(143, 240, 255, 0.28);
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(3, 9, 21, 0.42), 0 0 44px rgba(139, 67, 255, 0.22);
}

.studio-room-hero p:not(.launcher-pill) {
  max-width: 680px;
  color: rgba(226, 240, 255, 0.8);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
}

.room-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.room-option {
  min-height: 180px;
  padding: 22px;
  border-radius: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.room-option:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 217, 255, 0.42);
}

.room-option strong {
  color: #fff;
  font-size: 1.1rem;
}

.room-option p {
  margin: 10px 0 0;
  color: rgba(226, 240, 255, 0.72);
  line-height: 1.5;
}

.reference-forge {
  display: grid;
  gap: 18px;
}

.reference-canvas {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) 42px minmax(170px, 0.9fr) 42px minmax(170px, 0.9fr) 42px minmax(240px, 1.15fr);
  align-items: center;
  gap: 10px;
  min-height: 420px;
  padding: clamp(18px, 3vw, 30px);
  overflow-x: auto;
  border: 1px solid rgba(143, 240, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(24, 217, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 84% 28%, rgba(224, 50, 255, 0.18), transparent 26rem),
    radial-gradient(circle, rgba(143, 240, 255, 0.13) 1px, transparent 1px),
    linear-gradient(145deg, rgba(4, 10, 25, 0.96), rgba(10, 16, 36, 0.98));
  background-size: auto, auto, 24px 24px, auto;
  box-shadow: inset 0 0 70px rgba(4, 9, 24, 0.7), 0 22px 70px rgba(2, 8, 20, 0.35);
}

.reference-node {
  min-width: 170px;
  padding: 14px;
  border: 1px solid rgba(160, 218, 255, 0.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(25, 39, 78, 0.9), rgba(11, 19, 45, 0.94));
  box-shadow: 0 18px 42px rgba(3, 8, 22, 0.32);
}

.reference-node h4 {
  margin: 2px 0 12px;
  color: #fff;
  font-size: 1.05rem;
}

.reference-node input[type="file"] {
  width: 100%;
  margin-top: 10px;
  color: rgba(226, 240, 255, 0.78);
  font-size: 0.78rem;
}

.reference-dropzone,
.reference-output-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(143, 240, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 68, 255, 0.18), transparent 11rem),
    rgba(3, 8, 22, 0.52);
  color: rgba(226, 240, 255, 0.68);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
}

.reference-dropzone {
  aspect-ratio: 1 / 1;
}

.reference-output-preview {
  aspect-ratio: 16 / 10;
}

.reference-dropzone img,
.reference-output-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reference-connector {
  height: 3px;
  min-width: 42px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(143, 240, 255, 0.15), #25d9ff, #8d4dff, rgba(224, 50, 255, 0.18));
  box-shadow: 0 0 18px rgba(24, 217, 255, 0.42);
}

.reference-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reference-control-panel,
.reference-saved-panel {
  border: 1px solid rgba(160, 218, 255, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(26, 42, 82, 0.9), rgba(12, 23, 52, 0.94));
  padding: clamp(18px, 3vw, 28px);
}

.reference-control-panel h4,
.reference-saved-panel h4 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.reference-board-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.reference-board-chip {
  padding: 10px;
  border: 1px solid rgba(143, 240, 255, 0.22);
  border-radius: 16px;
  background: rgba(5, 13, 32, 0.62);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.reference-board-chip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 8px;
}

.reference-board-chip strong,
.reference-board-chip span {
  display: block;
}

.reference-board-chip span {
  color: rgba(226, 240, 255, 0.68);
  font-size: 0.8rem;
  margin-top: 3px;
}

.reference-board-chip button {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(143, 240, 255, 0.28);
  border-radius: 12px;
  background: rgba(143, 68, 255, 0.2);
  color: #fff;
  font-weight: 1000;
  padding: 9px 10px;
  cursor: pointer;
}

.reference-board-chip.empty {
  cursor: default;
}

.studio-describe-main {
  min-height: calc(100vh - 76px);
}

.studio-describe-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 6vw, 78px) clamp(16px, 4vw, 42px);
  overflow: hidden;
}

.studio-describe-hero .launcher-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

.studio-describe-hero .launcher-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(96, 72, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 18% 70%, rgba(24, 217, 255, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(3, 8, 22, 0.35), rgba(3, 8, 22, 0.92));
}

.studio-describe-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2vw, 24px);
  width: min(980px, 100%);
  padding: clamp(28px, 6vw, 74px) clamp(18px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(143, 240, 255, 0.22);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 50% 18%, rgba(35, 217, 255, 0.12), transparent 18rem),
    radial-gradient(circle at 20% 70%, rgba(224, 50, 255, 0.18), transparent 20rem),
    linear-gradient(145deg, rgba(8, 18, 46, 0.86), rgba(11, 15, 38, 0.9));
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.035),
    0 34px 100px rgba(2, 7, 22, 0.58),
    0 0 80px rgba(87, 59, 255, 0.18);
  animation: launcherRise 560ms ease both;
}

.studio-describe-card .describe-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 24%, rgba(255, 82, 221, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 78%, rgba(95, 187, 255, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 14%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 28%, rgba(137, 89, 255, 0.84) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 82%, rgba(34, 215, 255, 0.76) 0 1px, transparent 2px);
  opacity: 0.42;
}

.studio-describe-card .describe-mascot-wrap,
.studio-describe-card .describe-copy,
.studio-describe-card .describe-prompt,
.studio-describe-card .describe-tip,
.studio-describe-card .describe-chips {
  position: relative;
  z-index: 2;
}

.op-icon {
  --icon-url: url("/assets/icons/essential/favorite.svg");
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #8ff0ff 0%, #6d7cff 48%, #f641d5 100%);
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(34, 217, 255, 0.35));
  vertical-align: -0.16em;
}

.op-icon-mic { --icon-url: url("/assets/icons/essential/mic.svg"); }
.op-icon-upload { --icon-url: url("/assets/icons/essential/upload.svg"); }
.op-icon-favorite { --icon-url: url("/assets/icons/essential/favorite.svg"); }
.op-icon-image { --icon-url: url("/assets/icons/essential/image.svg"); }
.op-icon-options,
.op-icon-refresh { --icon-url: url("/assets/icons/essential/options.svg"); }
.op-icon-time { --icon-url: url("/assets/icons/essential/time.svg"); }
.op-icon-dashboard { --icon-url: url("/assets/icons/essential/dashboard.svg"); }
.op-icon-document { --icon-url: url("/assets/icons/essential/document.svg"); }

.studio-describe-card .describe-mascot-wrap {
  display: grid;
  place-items: center;
  width: clamp(108px, 14vw, 164px);
  aspect-ratio: 1;
  margin-bottom: -8px;
  overflow: visible;
}

.studio-describe-card .describe-mascot-glow {
  position: absolute;
  inset: 10% 2% 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 215, 255, 0.46), transparent 42%),
    radial-gradient(circle at 50% 66%, rgba(151, 75, 255, 0.42), transparent 56%);
  filter: blur(15px);
}

.studio-describe-card .describe-mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.36)) drop-shadow(0 0 24px rgba(34, 215, 255, 0.24));
}

.studio-describe-card .describe-orbit {
  position: absolute;
  border: 1px solid rgba(66, 192, 255, 0.24);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.studio-describe-card .describe-orbit-one {
  inset: 18% -10% 8%;
}

.studio-describe-card .describe-orbit-two {
  inset: 8% -18% 0;
  border-color: rgba(155, 88, 255, 0.22);
}

.studio-describe-card .describe-orbit-three {
  inset: 28% 0 15%;
  border-color: rgba(255, 255, 255, 0.15);
}

.studio-describe-card .describe-copy {
  max-width: 840px;
  text-align: center;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.62);
}

.studio-describe-card .describe-copy h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.studio-describe-card .describe-copy h1 span {
  background: linear-gradient(90deg, #25cfff, #735dff 46%, #d957ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.studio-describe-card .describe-copy > p:not(.launcher-pill) {
  max-width: 690px;
  margin: 14px auto 0;
  color: rgba(235, 243, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 850;
}

.studio-describe-card .describe-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  width: min(900px, 100%);
  min-height: clamp(72px, 8vw, 100px);
  padding: clamp(8px, 1.5vw, 16px);
  border: 1px solid rgba(124, 103, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(rgba(9, 17, 45, 0.9), rgba(9, 17, 45, 0.9)) padding-box,
    linear-gradient(92deg, rgba(214, 76, 255, 0.86), rgba(34, 215, 255, 0.88)) border-box;
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 36px rgba(34, 215, 255, 0.12),
    0 0 56px rgba(141, 71, 255, 0.12);
}

.studio-describe-card .describe-prompt:focus-within {
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.045),
    0 0 44px rgba(34, 215, 255, 0.22),
    0 0 72px rgba(141, 71, 255, 0.22);
}

.studio-describe-card .describe-prompt input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.42rem);
  font-weight: 850;
}

.studio-describe-card .describe-prompt input::placeholder {
  color: rgba(235, 243, 255, 0.58);
}

.studio-describe-card .describe-prompt-button {
  display: grid;
  place-items: center;
  width: clamp(50px, 6vw, 72px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.studio-describe-card .describe-prompt-button:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(143, 240, 255, 0.42);
}

.studio-describe-card .describe-prompt-button .op-icon {
  width: clamp(22px, 2.2vw, 30px);
  height: clamp(22px, 2.2vw, 30px);
}

.studio-describe-card .describe-voice-button {
  background: linear-gradient(135deg, #22d7ff, #8d47ff 58%, #e34eff);
  box-shadow: 0 0 26px rgba(141, 71, 255, 0.38), inset 0 0 22px rgba(255, 255, 255, 0.13);
}

.studio-describe-card .describe-voice-button.is-listening {
  animation: voiceRing 1.2s ease-in-out infinite;
}

.studio-describe-card .describe-upload-button {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.075);
}

.studio-describe-card .describe-generate-button {
  background: linear-gradient(135deg, #7b5cff, #28cfff);
  box-shadow: 0 0 32px rgba(34, 215, 255, 0.32);
}

.studio-describe-card .describe-tip {
  margin: -2px 0 0;
  color: rgba(235, 243, 255, 0.76);
  font-weight: 850;
  text-align: center;
}

.studio-describe-card .describe-tip span:last-child {
  color: #35e4ff;
}

.studio-describe-card .describe-chips {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  padding: 6px 4px 4px;
  scrollbar-width: thin;
}

.studio-describe-card .describe-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 13, 34, 0.68);
  color: #fff;
  font: inherit;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.studio-describe-card .describe-chips button:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 240, 255, 0.36);
  background: rgba(21, 35, 76, 0.78);
}

@keyframes voiceRing {
  0%, 100% { box-shadow: 0 0 22px rgba(34, 215, 255, 0.36), 0 0 0 0 rgba(224, 50, 255, 0.32); }
  50% { box-shadow: 0 0 34px rgba(34, 215, 255, 0.58), 0 0 0 12px rgba(224, 50, 255, 0); }
}

@keyframes launcherRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes launcherDrift {
  from { transform: scale(1.06) translate3d(-8px, -4px, 0); }
  to { transform: scale(1.1) translate3d(8px, 4px, 0); }
}

@keyframes floatAsset {
  from { transform: translateY(-8px) rotate(-3deg); }
  to { transform: translateY(12px) rotate(4deg); }
}

@media (max-width: 1120px) {
  .creation-portals,
  .recent-project-grid,
  .room-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-room-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .launcher-header {
    position: sticky;
  }

  .launcher-header nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .launcher-hero {
    min-height: auto;
    padding: 34px 14px 36px;
  }

  .creation-portals,
  .recent-project-grid,
  .room-option-grid,
  .orbit-helper {
    grid-template-columns: 1fr;
  }

  .creation-card {
    min-height: 360px;
  }

  .launcher-float {
    opacity: 0.42;
  }

  .orbit-helper {
    text-align: center;
  }

  .orbit-helper img {
    margin: 0 auto;
  }

  .reference-canvas {
    grid-template-columns: minmax(220px, 1fr);
    min-height: auto;
  }

  .reference-connector {
    width: 3px;
    height: 28px;
    min-width: 3px;
    justify-self: center;
    background: linear-gradient(180deg, rgba(143, 240, 255, 0.15), #25d9ff, #8d4dff, rgba(224, 50, 255, 0.18));
  }

  .studio-describe-hero {
    padding: 26px 12px 34px;
  }

  .studio-describe-card {
    border-radius: 28px;
    padding: 26px 14px;
  }

  .studio-describe-card .describe-copy h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .studio-describe-card .describe-prompt {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 28px;
  }

  .studio-describe-card .describe-upload-button {
    display: none;
  }

  .studio-describe-card .describe-chips {
    justify-content: flex-start;
  }
}
