:root {
  --sky-top: #b4d6ea;
  --sky-low: #e9f1f3;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #dddddd;
  --bar: rgba(247, 247, 247, 0.8);
  --drop: rgba(20, 36, 48, 0.22);
  --r-sm: 10px;
  --r: 16px;
  --lift: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 28px rgba(20, 36, 48, 0.08);
  --lift-hover: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px rgba(20, 36, 48, 0.14);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #0c1625; --sky-low: #182433; --bg: #0a0a0a; --surface: #151515; --ink: #f2f2f2;
    --muted: #9b9b9b; --line: #272727; --bar: rgba(10, 10, 10, 0.78); --drop: rgba(0, 0, 0, 0.5);
    --lift: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 28px rgba(0, 0, 0, 0.3);
    --lift-hover: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.55; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-stretch: 112%; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.sr { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 0.95rem var(--display); letter-spacing: -0.01em; border: 0; border-radius: var(--r-sm);
  padding: 12px 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn-dark { color: var(--bg); background: var(--ink); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-light { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.btn-light:hover { box-shadow: 0 0 0 1px var(--muted); }
.btn:active { transform: scale(0.97); }
.join .btn-light { color: #111111; background: #f2f2f2; box-shadow: none; }
.join .btn-light:hover { background: #ffffff; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-stretch: 112%; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { flex: none; width: 1.5em; height: 1.5em; }
.nav-links { display: flex; gap: 12px; align-items: center; font-size: 0.95rem; }
.link { text-decoration: none; color: var(--muted); margin-right: 12px; transition: color 0.15s; }
.link:hover { color: var(--ink); }
.progress { display: none; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--line); font-weight: 700; font-size: 0.9rem; }
.link-btn { border: 0; background: none; padding: 6px 10px; border-radius: 999px; color: var(--muted); font: 500 0.88rem var(--display); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.link-btn:hover { color: var(--ink); background: var(--line); }

.sky { padding-top: 70px; background: linear-gradient(var(--sky-top), var(--sky-low) 72%, var(--bg)); }
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding-block: 56px 48px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.lede { margin-top: 22px; font-size: 1.18rem; max-width: 30em; color: var(--muted); }
.prompt { margin-top: 32px; display: flex; gap: 6px; padding: 6px; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift); transition: box-shadow 0.15s; }
.prompt:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 10px 28px rgba(20, 36, 48, 0.1); }
.prompt input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.02rem var(--display); padding: 10px 12px; }
.prompt input:focus { outline: none; }
.prompt { position: relative; }
.typer { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; max-width: calc(100% - 150px); overflow: hidden; white-space: nowrap; pointer-events: none; color: var(--muted); font: 500 1.02rem var(--display); }
.typer { white-space: pre; }
.typer i { font-style: normal; font-size: 0; animation-timing-function: steps(1, end); animation-iteration-count: infinite; }
.typer::after { content: ""; flex: none; width: 2px; height: 1.2em; margin-left: 2px; background: var(--ink); animation: caret 1s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) {
  .typer i { animation: none !important; }
  .typer i.first { font-size: 1em; }
  .typer::after { animation: none; }
}
.prompt input:focus ~ .typer, .prompt input:not(:placeholder-shown) ~ .typer { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.try { margin-top: 18px; font-size: 0.92rem; color: var(--muted); line-height: 1.9; }
.try a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color 0.15s; }
.try a:hover, .try a[aria-current="true"] { text-decoration-color: var(--ink); }

.stage { position: relative; min-width: 0; }
.stage img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; animation: float 7s ease-in-out infinite alternate; }
.shadow { position: absolute; left: 20%; right: 20%; bottom: 9%; height: 11%; border-radius: 50%; background: radial-gradient(closest-side, var(--drop), transparent); animation: breathe 7s ease-in-out infinite alternate; }
.stats { position: relative; font: 0.78rem var(--mono); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(0.92); opacity: 0.75; } }

section { padding-block: 104px; scroll-margin-top: 64px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.head h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14ch; }
.head p { max-width: 30em; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shot { display: grid; gap: 12px; min-width: 0; text-decoration: none; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: linear-gradient(var(--sky-low), var(--surface)); border-radius: var(--r); box-shadow: var(--lift); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.shot:hover img { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.shot q { font-weight: 600; }
.shot small { display: block; font: 0.75rem var(--mono); color: var(--muted); margin-top: 2px; }

.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift); overflow: hidden; transition: box-shadow 0.3s var(--ease); }
.step:hover { box-shadow: var(--lift-hover); }
.step-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(var(--sky-top), var(--sky-low)); border-bottom: 1px solid var(--line); }
.step-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-visual img.rough { image-rendering: pixelated; }
.step-body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.step-num { font: 500 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step-body p { color: var(--muted); }
.mock-field { display: flex; align-items: center; width: 86%; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--lift); font-weight: 500; font-size: 0.9rem; }
.mock-field span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-caret { flex: none; width: 2px; height: 1.15em; margin-left: 2px; background: var(--ink); animation: caret 1s steps(1, end) infinite; }
.mock-btn { flex: none; margin-left: auto; padding: 7px 12px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 700; }
.sel { position: absolute; left: 24%; top: 24%; width: 30%; height: 30%; border: 2px dashed rgba(255, 255, 255, 0.95); border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--lift); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.chip.mono { font: 500 0.75rem var(--mono); }

.join { padding-block: 0 104px; }
.join-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 56px; border-radius: 24px; background: linear-gradient(180deg, #1d1d1d, #111111); color: #f2f2f2; box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.22); }
.join h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.join p { margin-top: 16px; color: rgba(242, 242, 242, 0.7); max-width: 28em; }
.waitlist { display: flex; gap: 6px; padding: 6px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.waitlist:focus-within { box-shadow: 0 0 0 2px #f2f2f2; }
.waitlist input { flex: 1; min-width: 0; border: 0; background: transparent; color: #f2f2f2; font: 500 1rem var(--display); padding: 10px 12px; }
.waitlist input::placeholder { color: rgba(242, 242, 242, 0.45); }
.waitlist input:focus { outline: none; }
.join .msg { margin-top: 14px; font-size: 0.95rem; color: #f2f2f2; }

footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-block: 36px; }
.foot-brand { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.foot-brand .brand { color: var(--ink); font-size: 1.1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.92rem; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.foot-links a:hover { color: var(--ink); }

.login { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); min-height: 100vh; min-height: 100dvh; }
.login-side { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 28px clamp(24px, 5vw, 72px); text-align: center; }
.login-box { display: grid; justify-items: center; width: 100%; max-width: 420px; margin-block: auto; }
.login-box h1 { font-size: clamp(2.6rem, 4.6vw, 3.8rem); }
.login-lede { margin-top: 16px; color: var(--muted); font-size: 1.08rem; text-wrap: balance; }
.btn-roblox { gap: 12px; width: 100%; margin-top: 36px; padding: 16px 20px; font-size: 1.02rem; border-radius: 12px; }
.btn-roblox svg { width: 20px; height: 20px; }
.alt-login { margin-top: 18px; font-size: 0.92rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 0.15s, text-decoration-color 0.15s; }
.alt-login:hover { color: var(--ink); text-decoration-color: var(--ink); }
.login-msg { width: 100%; margin-top: 24px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--lift); font-size: 0.9rem; color: var(--muted); }
.login-fine { font-size: 0.8rem; color: var(--muted); }
.login-side > .brand { align-self: flex-start; }
.login-fine a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.login-box > *, .login-art { animation: up 0.8s var(--ease) both; }
.login-box > :nth-child(2) { animation-delay: 0.06s; }
.login-box > :nth-child(3) { animation-delay: 0.12s; }
.login-box > :nth-child(n+4) { animation-delay: 0.18s; }
.login-art { animation-delay: 0.1s; }

.login-art { --mx: 0; --my: 0; --px: 50%; --py: 50%; position: relative; margin: 12px; border-radius: 28px; overflow: hidden; perspective: 1300px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: linear-gradient(160deg, var(--sky-top), var(--sky-low)); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.art-dots, .art-spot { position: absolute; inset: -40px; pointer-events: none; }
.art-dots { background: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.6px) 0 0 / 22px 22px; translate: calc(var(--mx) * -16px) calc(var(--my) * -16px); animation: dots 24s linear infinite; }
.art-spot { inset: 0; opacity: 0; transition: opacity 0.4s; background: radial-gradient(260px circle at var(--px) var(--py), rgba(255, 213, 108, 0.16), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.5) 1.2px, transparent 1.8px) 0 0 / 22px 22px; -webkit-mask: radial-gradient(220px circle at var(--px) var(--py), #000 0%, transparent 75%); mask: radial-gradient(220px circle at var(--px) var(--py), #000 0%, transparent 75%); }
.login-art.hot .art-spot { opacity: 1; }
.art-glow { position: absolute; left: 50%; top: 50%; width: 75%; aspect-ratio: 1; translate: calc(-50% + var(--mx) * 40px) calc(-50% + var(--my) * 40px); border-radius: 50%; pointer-events: none; background: conic-gradient(from 0deg, rgba(255, 213, 108, 0.22), rgba(68, 199, 117, 0.18), rgba(59, 160, 227, 0.22), rgba(255, 213, 108, 0.22)); filter: blur(70px); animation: spin 18s linear infinite; }
.art-scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--my) * -7deg)) rotateY(calc(var(--mx) * 9deg)); }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.l-main { transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0); }
.l-a { transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 20px), 40px); }
.l-b { transform: translate3d(calc(var(--mx) * 36px), calc(var(--my) * 28px), 70px); }

.art-main { position: absolute; left: 50%; top: 50%; width: min(78%, 640px); translate: -50% -48%; animation: float 7s ease-in-out infinite alternate; }
.gen-stack { position: relative; aspect-ratio: 5 / 4; }
.gen { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; animation: gen 15s linear infinite both; }
@keyframes gen {
  0% { opacity: 1; z-index: 2; clip-path: inset(0 0 100% 0); filter: brightness(1.8) saturate(0.4); }
  8% { clip-path: inset(0 0 0 0); filter: brightness(1.8) saturate(0.4); }
  13% { filter: none; }
  30% { z-index: 2; }
  30.01% { z-index: 1; }
  36% { opacity: 1; }
  41% { opacity: 0; z-index: 1; clip-path: inset(0 0 0 0); filter: none; }
  100% { opacity: 0; z-index: 1; clip-path: inset(0 0 0 0); filter: none; }
}
.scan { position: absolute; left: 4%; right: 4%; top: 0; height: 3px; z-index: 3; border-radius: 3px; opacity: 0; background: linear-gradient(90deg, transparent, #ffd56c 20%, #fff 50%, #44c775 80%, transparent); box-shadow: 0 0 18px 4px rgba(255, 213, 108, 0.55), 0 0 60px 10px rgba(59, 160, 227, 0.25); animation: scan 5s linear infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 2% { opacity: 1; } 24% { top: 100%; opacity: 1; } 27%, 100% { top: 100%; opacity: 0; } }
.caps { position: absolute; left: 6%; bottom: 0; height: 36px; width: 70%; }
.cap { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--lift); color: var(--ink); font: 600 0.85rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: cap 15s var(--ease) infinite both; }
.cap::before { content: "> "; font-family: var(--mono); color: var(--muted); }
@keyframes cap { 0% { opacity: 0; translate: 0 10px; } 3%, 31% { opacity: 1; translate: 0 0; } 34%, 100% { opacity: 0; translate: 0 -8px; } }

.art-card { position: absolute; margin: 0; }
.art-card img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
.art-card figcaption { font: 500 0.72rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-a, .art-b { width: min(27%, 220px); padding: 8px 8px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--lift), 0 30px 60px rgba(0, 0, 0, 0.35); animation: float 6s ease-in-out infinite alternate; }
.art-a img, .art-b img { border-radius: 10px; background: linear-gradient(var(--sky-top), var(--sky-low)); }
.art-a figcaption, .art-b figcaption { margin: 8px 4px 0; }
.art-a { left: 8%; top: 9%; rotate: -4deg; animation-delay: -2s; }
.art-b { right: 8%; bottom: 9%; rotate: 3deg; animation-delay: -4s; }

.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; bottom: -10px; border-radius: 50%; background: #ffd56c; box-shadow: 0 0 10px 2px rgba(255, 213, 108, 0.6); opacity: 0; animation: rise linear infinite; }
.sparks i:nth-child(3n) { background: #8fe0ad; box-shadow: 0 0 10px 2px rgba(68, 199, 117, 0.6); }
.sparks i:nth-child(3n+1) { background: #9fd3f5; box-shadow: 0 0 10px 2px rgba(59, 160, 227, 0.6); }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.9; } 80% { opacity: 0.5; } 100% { transform: translate(var(--drift), -105vh); opacity: 0; } }
.trail { position: absolute; z-index: 5; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: var(--hue); box-shadow: 0 0 12px 3px var(--hue); animation: trail 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
@keyframes trail { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
.login-art::after { content: ""; position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255, 213, 108, 0.9); opacity: 0; pointer-events: none; z-index: 5; }
.login-art.pulse::after { animation: ring 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(14); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes dots { to { background-position: 22px -88px; } }

.btn-disabled { opacity: 0.45; cursor: not-allowed; }
.app-body { background: var(--bg); }
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.app-side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 20px 16px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.app-side .brand { padding: 2px 6px; font-size: 1.2rem; }
.new-btn { gap: 10px; justify-content: flex-start; padding: 12px 14px; color: var(--surface); background: var(--ink); }
.new-btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--surface)); }
.new-btn svg { width: 18px; height: 18px; }
.side-head { display: flex; justify-content: space-between; padding: 6px 6px 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.side-empty { padding: 0 6px; font-size: 0.92rem; color: var(--muted); }
.side-list { display: grid; gap: 2px; margin-inline: -4px; overflow-y: auto; min-height: 0; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; text-decoration: none; transition: background-color 0.15s; }
.side-item:hover, .side-item.active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.side-item img { flex: none; width: 40px; height: 32px; border-radius: 6px; object-fit: cover; background: linear-gradient(var(--sky-top), var(--sky-low)); }
.side-text { display: grid; min-width: 0; }
.side-title { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-time { font-size: 0.75rem; color: var(--muted); }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.create-warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 213, 108, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 213, 108, 0.35); color: var(--ink); font-size: 0.85rem; }
.side-credits { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 14px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.credit-count { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 6px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 700 0.95rem var(--display); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 0.15s; }
.credit-count:hover, .credit-count[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.credit-count svg { width: 18px; height: 18px; color: #ffd56c; }
.upgrade-btn { padding: 7px 14px; font-size: 0.82rem; color: #1a1406; background: #ffd56c; }
.upgrade-btn:hover { background: #ffe08f; }
.credit-pop { position: absolute; z-index: 30; left: calc(100% + 26px); bottom: -6px; width: 300px; display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--sky-top) 60%, var(--surface)), var(--surface) 55%); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.5); animation: pop-in 0.18s var(--ease); }
.credit-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } }
.pop-top { display: flex; align-items: center; gap: 14px; }
.pop-ring { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(#ffd56c calc(var(--fill) * 1%), color-mix(in srgb, var(--ink) 10%, transparent) 0); }
.pop-ring span { font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pop-sum { display: grid; min-width: 0; }
.pop-sum strong { font-size: 1.7rem; font-weight: 800; font-stretch: 85%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pop-sum span { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.pop-log { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pop-log-head { margin: 0 0 8px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pop-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pop-log li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.pop-log-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-log-amt { flex: none; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.pop-log-empty { margin: 0; color: var(--muted); font-size: 0.85rem; }
.pop-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 0.9rem var(--display); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.15s; }
.pop-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pop-btn svg { width: 18px; height: 18px; color: #ffd56c; }

.plans { width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, 0.6); overflow: auto; }
.plans[open] { animation: plans-in 0.25s var(--ease); }
@keyframes plans-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.plans::backdrop { background: rgba(4, 8, 14, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.plans-panel { display: grid; gap: 18px; padding: 24px; }
.plans-head { display: flex; align-items: flex-start; gap: 14px; }
.plans-head > div { flex: 1; min-width: 0; }
.plans-head h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.plans-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.plans-head form { margin: 0; }
.plans-balance { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.plans-balance svg { width: 16px; height: 16px; color: #ffd56c; }
.close-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); cursor: pointer; }
.close-btn:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.close-btn svg { width: 18px; height: 18px; }
.pro-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; padding: 22px; border-radius: 20px; overflow: hidden; background: #0c1625; color: #fff; isolation: isolate; }
.pro-bg { position: absolute; z-index: -2; right: -12%; top: 50%; width: 70%; transform: translateY(-50%); opacity: 0.55; }
.pro-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #0c1625 38%, rgba(12, 22, 37, 0.55) 70%, rgba(12, 22, 37, 0.85)); }
.pro-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #ffd56c; color: #1a1406; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pro-info h3 { margin: 10px 0 14px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.pro-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 0.86rem; font-weight: 600; }
.pro-feats li { display: flex; align-items: center; gap: 8px; }
.pro-feats svg { flex: none; width: 16px; height: 16px; color: #78be6e; }
.pro-buy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; }
.pro-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pro-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.pro-price span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.pro-btn { justify-content: center; gap: 8px; width: 100%; padding: 12px; color: #1a1406; background: #ffd56c; font-weight: 800; }
.pro-btn:hover { background: #ffe08f; }
.pro-btn svg { width: 18px; height: 18px; }
.pro-buy small { font-size: 0.76rem; color: rgba(255, 255, 255, 0.65); }
.packs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.packs-head h3 { font-size: 1.05rem; font-weight: 800; }
.packs-head span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pack { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; padding: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.15s, background-color 0.15s; }
.pack:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); }
.pack img { width: 52px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(var(--sky-top), var(--sky-low)); }
.pack-text { display: grid; min-width: 0; }
.pack-text strong { font-size: 1rem; font-weight: 800; }
.pack-text span { color: #6eb4e6; font-size: 0.76rem; font-weight: 700; }
.pack-btn { grid-column: 1 / -1; padding: 9px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font: 800 0.92rem var(--display); cursor: pointer; transition: background-color 0.15s; }
.pack-btn:hover { background: var(--ink); color: var(--bg); }
.plans-note { position: sticky; bottom: 16px; width: fit-content; margin: -8px auto 16px; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px rgba(255, 213, 108, 0.45), 0 10px 30px rgba(0, 0, 0, 0.4); font-size: 0.88rem; font-weight: 600; }
.plans-note[hidden] { display: none; }
@media (max-width: 720px) {
  .pro-banner { grid-template-columns: minmax(0, 1fr); }
  .pro-feats, .packs { grid-template-columns: minmax(0, 1fr); }
  .plans-balance { display: none; }
}
@media (max-width: 860px) {
  .credit-pop { left: 0; bottom: calc(100% + 10px); }
}
.account { width: min(820px, calc(100% - 32px)); max-width: none; height: min(540px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, 0.6); overflow: hidden; }
.account[open] { display: grid; grid-template-columns: 230px minmax(0, 1fr); animation: plans-in 0.25s var(--ease); }
.account::backdrop { background: rgba(4, 8, 14, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.acct-nav { display: flex; flex-direction: column; gap: 4px; padding: 24px 14px 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--sky-top) 70%, var(--surface)), color-mix(in srgb, var(--ink) 3%, var(--surface))); border-right: 1px solid var(--line); }
.acct-head { padding: 0 10px 16px; }
.acct-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.acct-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.acct-tab { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 700 0.92rem var(--display); text-align: left; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.acct-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.acct-tab.on { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: inset 3px 0 0 #6eb4e6; }
.acct-tab svg { width: 18px; height: 18px; }
.acct-since { margin: auto 0 0; padding: 0 10px; color: var(--muted); font-size: 0.76rem; }
.acct-body { position: relative; min-width: 0; padding: 26px 28px; overflow: auto; }
.acct-close { position: absolute; top: 16px; right: 16px; margin: 0; }
.acct-panel { display: grid; gap: 14px; align-content: start; padding: 0; }
.acct-panel[hidden] { display: none; }
.acct-card { display: flex; align-items: center; gap: 16px; margin-right: 48px; padding: 18px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.acct-card[hidden] { display: none; }
.acct-avatar .avatar { width: 60px; height: 60px; font-size: 1.4rem; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #6eb4e6; }
.acct-who { flex: 1; display: grid; min-width: 0; }
.acct-who strong { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who span { color: var(--muted); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-label { margin-top: 10px; color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.acct-label.danger { color: #ff8a7e; }
.acct-links { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.acct-links li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.acct-links li + li { border-top: 1px solid var(--line); }
.acct-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.acct-icon svg { width: 20px; height: 20px; }
.acct-icon.roblox { color: var(--ink); }
.acct-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.acct-text strong { font-size: 0.95rem; }
.acct-text span { color: var(--muted); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; }
.acct-badge { flex: none; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.acct-badge.ok { background: rgba(120, 190, 110, 0.14); color: #8fd184; }
.acct-row { display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.acct-row form { margin: 0; }
.acct-ghost { padding: 9px 14px; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 0.86rem; }
.acct-ghost:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.acct-danger { box-shadow: inset 0 0 0 1px rgba(255, 107, 94, 0.35); background: rgba(255, 107, 94, 0.05); }
.acct-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.acct-check input { width: 16px; height: 16px; accent-color: #ff6b5e; }
.acct-delete { padding: 9px 16px; color: #fff; background: #d9473b; font-size: 0.86rem; }
.acct-delete:hover { background: #ee5649; }
@media (max-width: 680px) {
  .account[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 32px); }
  .acct-nav { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .acct-head { width: 100%; padding-bottom: 8px; }
  .acct-since { display: none; }
  .acct-card,   .acct-body { position: static; }
  .acct-row { flex-direction: column; align-items: stretch; }
}
.side-user { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px 6px 6px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 0.15s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.user-btn > svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.side-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 10px); padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 -18px 50px rgba(0, 0, 0, 0.45); animation: menu-in 0.16s var(--ease); }
.user-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(6px); } }
.menu-who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 10px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--sky-top) 80%, transparent), transparent); }
.menu-id { display: grid; min-width: 0; }
.menu-id strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-id span { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 0.9rem var(--display); text-align: left; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.menu-item:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.menu-item svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.menu-item[aria-disabled="true"] { cursor: default; color: var(--muted); }
.menu-out { color: #ff8a7e; }
.menu-out svg { color: currentColor; }
.menu-out:hover { background: rgba(255, 107, 94, 0.1); }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.icon-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); font-weight: 700; font-size: 0.9rem; }
.link-btn { border: 0; background: none; padding: 6px 10px; border-radius: 999px; color: var(--muted); font: 500 0.88rem var(--display); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.link-btn:hover { color: var(--ink); background: var(--line); }
.link-btn.danger:hover { color: #ff6b5e; }

.app-main { min-width: 0; padding: 28px clamp(20px, 3vw, 40px) 64px; background: linear-gradient(var(--sky-top), var(--bg) 420px); }




.home-center { position: relative; display: flex; flex-direction: column; align-items: stretch; width: min(720px, 100%); margin: 0 auto; padding-top: clamp(48px, 28vh, 280px); }
.home-center::before { content: ""; position: absolute; z-index: 0; left: 50%; top: clamp(0px, 18vh, 200px); width: 120%; height: 360px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(70, 150, 200, 0.16), rgba(120, 190, 110, 0.06) 55%, transparent); pointer-events: none; }
.home-center > * { position: relative; z-index: 1; }
.composer { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border: 1px solid transparent; border-radius: 24px; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--ang), rgba(110, 180, 230, 0.35), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.06) 60%, rgba(255, 213, 108, 0.3)) border-box; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px rgba(0, 0, 0, 0.35); transition: box-shadow 0.25s var(--ease), background 0.25s; }
.composer:focus-within { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--ang), rgba(110, 180, 230, 0.8), rgba(120, 190, 110, 0.45) 50%, rgba(255, 213, 108, 0.75)) border-box; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(110, 180, 230, 0.1); }
.composer textarea { width: 100%; min-height: 56px; resize: none; border: 0; padding: 2px 4px; background: none; color: var(--ink); font: 500 1.1rem/1.5 var(--display); caret-color: #ffd56c; }
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.composer-bar { display: flex; align-items: center; justify-content: flex-end; }
.composer-right { display: flex; align-items: center; gap: 12px; }
.send-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--muted); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.composer.has-text .send-btn:not(:disabled) { background: #ffd56c; color: #1a1406; box-shadow: 0 6px 18px rgba(255, 213, 108, 0.3); }
.composer.has-text .send-btn:not(:disabled):hover { transform: translateY(-1px) scale(1.04); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.send-btn svg { width: 20px; height: 20px; }
.composer-under { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.under-hint kbd { padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--ink) 12%, transparent); font: 600 0.74rem var(--display); color: var(--ink); }
.under-credits { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.under-credits svg { width: 15px; height: 15px; color: #ffd56c; }
.home-center .create-warn { margin-top: 16px; }
.suggest-label { margin: 40px 0 12px 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.suggest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.suggest-chip { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.suggest-chip:hover { transform: translateY(-2px); background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent), 0 10px 24px rgba(0, 0, 0, 0.3); }
.suggest-chip img { flex: none; width: 56px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(var(--sky-top), var(--sky-low)); transition: transform 0.3s var(--ease); }
.suggest-chip:hover img { transform: scale(1.06); }
.suggest-chip span { min-width: 0; line-height: 1.3; }
@media (max-width: 560px) { .suggest { grid-template-columns: minmax(0, 1fr); } .under-hint { display: none; } }

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 135deg; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } }
@keyframes turn { to { --ang: 495deg; } }
@keyframes drift { 0% { transform: translateX(-50%) scale(1); opacity: 0.85; } 50% { transform: translateX(-46%) translateY(14px) scale(1.12); opacity: 1; } 100% { transform: translateX(-54%) translateY(-8px) scale(0.96); opacity: 0.8; } }
@keyframes ready { 0%, 100% { box-shadow: 0 6px 18px rgba(255, 213, 108, 0.3); } 50% { box-shadow: 0 6px 26px rgba(255, 213, 108, 0.55), 0 0 0 6px rgba(255, 213, 108, 0.08); } }
.home-center::before { animation: drift 14s ease-in-out infinite alternate; }
.composer { animation: rise 0.7s var(--ease) both, turn 10s linear infinite; }
.composer:focus-within { animation-duration: 0.7s, 4s; }
.composer-under { animation: rise 0.7s var(--ease) 0.1s both; }
.home-center .create-warn { animation: rise 0.6s var(--ease) 0.15s both; }
.suggest-label { animation: rise 0.7s var(--ease) 0.2s both; }
.suggest-chip { animation: rise 0.7s var(--ease) both; }
.suggest-chip:nth-child(1) { animation-delay: 0.26s; }
.suggest-chip:nth-child(2) { animation-delay: 0.32s; }
.suggest-chip:nth-child(3) { animation-delay: 0.38s; }
.suggest-chip:nth-child(4) { animation-delay: 0.44s; }
.composer.has-text .send-btn:not(:disabled) { animation: ready 2.2s ease-in-out infinite; }
.app-side > .brand, .new-btn, .side-head, .side-empty { animation: slide-in 0.5s var(--ease) both; }
.new-btn { animation-delay: 0.05s; }
.side-head, .side-empty { animation-delay: 0.1s; }
.side-item { animation: slide-in 0.5s var(--ease) both; }
.side-item:nth-child(1) { animation-delay: 0.14s; }
.side-item:nth-child(2) { animation-delay: 0.18s; }
.side-item:nth-child(3) { animation-delay: 0.22s; }
.side-item:nth-child(4) { animation-delay: 0.26s; }
.side-item:nth-child(5) { animation-delay: 0.3s; }
.side-item:nth-child(n + 6) { animation-delay: 0.34s; }
.side-foot { animation: rise 0.6s var(--ease) 0.2s both; }
.detail-view { animation: rise 0.7s var(--ease) both; }
.detail-side { animation: rise 0.7s var(--ease) 0.1s both; }
.detail-view img { animation: float 6s ease-in-out 0.7s infinite alternate; }
@keyframes float { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .app-side *, .app-main *, .home-center::before { animation: none !important; }
}

.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 18px; height: 18px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 18px; align-items: start; }
.detail-view { border-radius: 18px; overflow: hidden; background: linear-gradient(var(--sky-top), var(--sky-low)); box-shadow: 0 0 0 1px var(--line); }
.detail-view img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; }
.detail-side { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.detail-title { font-size: 1.7rem; font-stretch: 100%; line-height: 1.15; }
.detail-note { color: var(--muted); font-size: 0.92rem; }
.detail-side form { margin: 0; justify-self: center; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: static; height: auto; }
  .side-list { max-height: 220px; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  }

@keyframes up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .stage { animation: up 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.stage { animation-delay: 0.2s; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .topbar { animation: bar linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes bar {
      from { background: transparent; box-shadow: 0 1px 0 transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
      to { background: var(--bar); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    }
    .hero { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift { to { transform: translateY(80px); opacity: 0.3; } }

    .reveal, .shot { animation: up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .steps > .reveal:nth-child(2), .shot:nth-child(3n+2) { animation-range: entry 10% cover 38%; }
    .steps > .reveal:nth-child(3), .shot:nth-child(3n+3) { animation-range: entry 20% cover 46%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage img, .shadow, .hero-copy > *, .stage, .login-box > *, .login-art, .art-card, .art-main, .art-dots, .art-glow, .scan, .sparks { animation: none; }
  .sparks { display: none; }
  .gen, .cap { animation: none; opacity: 0; }
  .gen:first-child, .cap:first-child { opacity: 1; }
}

@media (max-width: 920px) {
  .hero, .join-inner { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .link { display: none; }
  section { padding-block: 72px; }
  .join { padding-block: 0 72px; }
  .join-inner { padding: 36px 28px; }
  .login, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .prompt, .waitlist { flex-direction: column; }
}
