@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --base: #07060f;
  --ink: #f6f3ff;
  --muted: #b7b1cf;
  --soft: #8d87a8;
  --accent: #8f6cff;
  --line: rgba(224, 216, 255, .14);
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(143, 108, 255, .34), transparent 58%),
    radial-gradient(680px 460px at 100% 0%, rgba(54, 200, 255, .16), transparent 52%),
    radial-gradient(520px 380px at 50% 110%, rgba(143, 108, 255, .16), transparent 50%),
    var(--base);
}
html { overflow-x: clip; min-height: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.mode-public { background: #07060f; }
body.mode-public .land-hero-art, body.mode-public .land-mesh, body.mode-public .land-twinkle { display: none; }
body.mode-editor .land-hero-art { display: none; }
.land-hero-art {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("../assets/brand/hero.webp") center / cover no-repeat;
  opacity: .72;
}
.land-mesh { position: fixed; inset: -12vh; z-index: -1; pointer-events: none; overflow: hidden; }
.land-mesh span { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .42; }
.land-mesh .m1 { width: 50vmax; height: 50vmax; left: -10%; top: -16%; background: #8f6cff; animation: mesh-drift 24s ease-in-out infinite alternate; }
.land-mesh .m2 { width: 38vmax; height: 38vmax; right: -8%; top: 6%; background: #36c8ff; animation: mesh-drift 30s ease-in-out infinite alternate-reverse; }
.land-mesh .m3 { width: 34vmax; height: 34vmax; left: 28%; bottom: -12%; background: #ff6ad5; opacity: .28; animation: mesh-drift 26s ease-in-out infinite alternate; }
.land-twinkle {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #c9b8ff, transparent),
    radial-gradient(1.4px 1.4px at 72% 18%, #fff, transparent),
    radial-gradient(1px 1px at 84% 62%, #36c8ff, transparent),
    radial-gradient(1.2px 1.2px at 46% 40%, #fff, transparent),
    radial-gradient(1px 1px at 62% 82%, #e9e4ff, transparent);
  background-repeat: repeat;
  background-size: 280px 220px;
  opacity: .55;
  animation: twinkle 5.5s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .28; } 50% { opacity: .7; } }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gl-page .enter-button:focus-visible { outline: none; }
.gl-page .enter-button:focus-visible .enter-tag { outline: 2px solid #fff; outline-offset: 4px; }
.sr, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: 8px; transform: translateY(-140%);
  background: #fff; color: #140e24; padding: 8px 12px; border-radius: 999px; z-index: 5;
}
.skip:focus { transform: none; }
.ico { width: 22px; height: 22px; display: block; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-size: 13px; letter-spacing: .16em; }
.wordmark span span, .splash-brand span { color: var(--muted); font-weight: 500; }

.land-header, .land-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 16px; max-width: 1120px; margin: 0 auto;
}
.land-nav { display: flex; gap: 4px; align-items: center; }
.land-nav a { color: var(--muted); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.land-nav a:hover { color: #fff; }
#app, .land, .ed-shell, .ed-layout, .ed-main, .ed-form { max-width: 100%; min-width: 0; }
.land, .ed-main, .ed-form, .ed-layout { overflow-x: clip; }
.land {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px 40px;
}
.hero { display: grid; gap: 28px; align-items: center; padding: 12px 0 20px; }
.eyebrow { margin: 0 0 8px; color: #d5cbff; letter-spacing: .18em; font-size: 12px; text-transform: uppercase; }
.hero h1, .notice-card h1, .ed-gate h1 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 8vw, 64px); letter-spacing: -.03em; line-height: 1.05;
}
.lede { font-size: 18px; color: var(--muted); max-width: 42rem; }
.land-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.land-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
  background: #f4f0ff; color: #1a1030; text-decoration: none; font-weight: 650;
}
.land-button:hover { background: #fff; }
.land-button.land-button-quiet {
  background: transparent;
  color: #e9e4ff;
  border: 1px solid rgba(143, 108, 255, .5);
}
.land-button.land-button-quiet:hover {
  color: #fff;
  box-shadow: 0 0 22px rgba(143, 108, 255, .55);
}
.land-points { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.land-points li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.mode-note { color: #ddd4ff; background: rgba(143, 108, 255, .12); border: 1px solid rgba(185, 166, 255, .3); padding: 10px 12px; border-radius: 12px; }

.land-mock {
  border-radius: 28px; padding: 18px 16px 16px; text-align: center;
  background: linear-gradient(180deg, rgba(28, 22, 52, .9), rgba(10, 8, 20, .92));
  border: 1px solid rgba(185, 166, 255, .35);
  box-shadow: 0 30px 80px -36px #000, 0 0 80px -28px rgba(143, 108, 255, .8);
  animation: mock-float 6.5s ease-in-out infinite;
}
@keyframes mock-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.land-mock-banner { height: 84px; margin: -18px -16px 0; border-radius: 28px 28px 0 0; background: radial-gradient(circle at 80% 30%, #b9a6ff, transparent 42%), linear-gradient(160deg, #2a2150, #120c22); }
.land-mock-avatar { width: 72px; height: 72px; margin: -36px auto 8px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff 0 18%, #d9ccff 19% 34%, #8f6cff 35% 70%, #1a1330 71%); border: 4px solid #120e22; box-shadow: 0 0 0 2px #8f6cff; }
.land-mock h2 { margin: 0; font-family: var(--font-display); font-size: 28px; }
.land-mock p { margin: 6px 0 0; color: var(--muted); }
.land-mock-links { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.land-mock-links span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ffffff12; border: 1px solid #ffffff22; font-size: 11px; }

.section-title { font-family: var(--font-display); font-size: 22px; margin: 28px 0 8px; }
.themes, .steps { display: grid; gap: 12px; }
.theme-card, .step {
  display: block; text-decoration: none; border-radius: 18px; padding: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.theme-card { min-height: 116px; }
.theme-card strong, .step strong { display: block; margin-bottom: 4px; }
.theme-card span, .step span { color: var(--muted); font-size: 14px; }
.theme-card i { display: block; height: 36px; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(90deg, var(--c), transparent); }
.steps { margin-bottom: 10px; }
.land-footer { color: var(--soft); font-size: 13px; flex-wrap: wrap; }
.land-footer a { color: #ddd6ff; }

.notice-card, .ed-gate {
  max-width: 520px; margin: 10vh auto; padding: 28px 20px; text-align: left;
}
.auth-providers, .auth-email-row { display: grid; gap: 10px; margin: 14px 0; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; border: 0; border-radius: 14px;
  font-weight: 650; font-size: 15px; cursor: pointer;
}
.auth-btn:disabled { opacity: .6; }
.auth-btn[hidden] { display: none; }
.auth-google { background: #fff; color: #1f1f1f; }
.auth-discord { background: #5865f2; color: #fff; }
.auth-twitch { background: #9146ff; color: #fff; }
.auth-facebook { background: #1877f2; color: #fff; }
.auth-email { background: #8f6cff; color: #fff; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-email-row input {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: inherit; padding: 0 12px;
}
.editor-gate {
  min-height: 28rem;
  background: rgba(18, 14, 34, .45);
  border: 1px solid rgba(143, 108, 255, .45);
  border-radius: 28px;
  box-shadow: 0 24px 70px -28px #000, 0 0 40px rgba(143, 108, 255, .2);
  backdrop-filter: blur(24px) saturate(150%);
}
body[data-route="editor"] #app { min-height: 70vh; }
.boot-note { padding: 24px 16px; color: var(--muted); }

.ed-shell { max-width: 1180px; margin: 0 auto; padding: 8px 14px 32px; }
.ed-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0 14px; }
.ed-header-actions, .ed-savebar, .ed-preview-bar, .accent-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ed-layout { display: grid; gap: 18px; }
.ed-form, .ed-preview {
  background: rgba(10, 8, 20, .72); border: 1px solid var(--line); border-radius: 24px; padding: 8px 14px 16px;
}
fieldset { border: 0; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
legend { font-family: var(--font-display); padding: 8px 0; }
.ed-field { display: grid; gap: 6px; margin: 10px 0; }
.ed-label { margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
.ed-input, .ed-hex {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #0c0a14; color: var(--ink);
}
textarea.ed-input { min-height: 96px; resize: vertical; }
.ed-hint { margin: 4px 0 8px; color: var(--soft); font-size: 13px; }
.ed-hint[data-state="good"] { color: #b6f3d4; }
.ed-hint[data-state="bad"] { color: #ffb4c8; }
.ed-right { text-align: right; }
.ed-banner { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: rgba(143, 108, 255, .12); color: #e4dcff; }
.ed-status { min-height: 1.4em; color: #ddd6ff; }
.ed-status[data-state="saved"] { color: #b6f3d4; }
.ed-status[data-state="saving"] { color: #e9e4ff; }
.ed-status[data-state="unsaved"] { color: #ffb4c8; }
.frame-presets { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.frame-choice { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-height: 96px; padding: 8px; }
.frame-choice img { width: 64px; height: 64px; object-fit: contain; background: none; }
.choice-row, .splash-grid, .splash-presets, .market-grid, .market-card, .market-copy, .ed-row, .ed-row-fields { min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.splash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.splash-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.splash-preset { position: relative; min-height: 72px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #120c22; color: #fff; }
.splash-preset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preset-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #8f6cff88, transparent 55%), linear-gradient(160deg, #24183f, #090712); }
.splash-preset span:last-child { position: relative; z-index: 1; font-size: 11px; padding: 8px; display: block; text-shadow: 0 1px 6px #000; }
.splash-preset[aria-selected="true"], .splash-preset[aria-checked="true"] { outline: 2px solid #d9ccff; outline-offset: 2px; }
.logo-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.logo-preset { min-width: 0; min-height: 88px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #e9e4ff; padding: 8px; }
.logo-preset img { width: 64px; height: 64px; object-fit: contain; background: none; display: block; margin: 0 auto 4px; filter: drop-shadow(0 0 10px rgba(143,108,255,.65)); }
.logo-preset[aria-checked="true"] { outline: 2px solid #d9ccff; outline-offset: 2px; }
.splash-pick { display: grid; gap: 6px; justify-items: stretch; text-align: center; border-radius: 16px; padding: 8px; min-height: 96px; }
.splash-mini { position: relative; height: 52px; border-radius: 10px; overflow: hidden; background: #100c1c; display: grid; place-items: center; }
.splash-mini i { font-family: "Unbounded", sans-serif; font-style: normal; font-size: 14px; position: relative; z-index: 1; }
.splash-mini b { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 6px; left: 10px; }
.choice, .swatch, .ed-text, .switch {
  border: 1px solid var(--line); background: #ffffff08; color: var(--ink); border-radius: 999px; min-height: 40px; padding: 0 12px;
}
.choice[aria-pressed="true"], .swatch[aria-pressed="true"], .choice[aria-checked="true"], .swatch[aria-checked="true"], .switch[aria-checked="true"] {
  border-color: #c9b8ff; background: rgba(143, 108, 255, .2);
}
.swatch { display: inline-flex; align-items: center; gap: 8px; }
.swatch-chip { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--swatch), var(--swatch-base)); box-shadow: 0 0 0 1px #ffffff33; }
.switch { display: flex; width: 100%; text-align: left; gap: 10px; border-radius: 14px; margin: 8px 0; padding: 10px 12px; }
.switch-ui { width: 36px; height: 22px; border-radius: 999px; background: #ffffff22; position: relative; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] .switch-ui { background: var(--accent); }
.switch[aria-checked="true"] .switch-ui::after { transform: translateX(14px); }
.accent-row input[type="color"] { width: 56px; height: 48px; padding: 0; border: 0; background: transparent; }
.ed-hex { max-width: 120px; }
.ed-stack { display: grid; gap: 10px; }
.ed-row { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: #ffffff06; }
.ed-row-fields { display: grid; gap: 8px; }
.ed-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-platform { font-size: 12px; letter-spacing: .04em; color: #ddd6ff; }
.ed-file { max-width: 100%; }
.ed-text { text-decoration: none; display: inline-flex; align-items: center; }
.ed-text:disabled { opacity: .4; cursor: not-allowed; }
.preview-frame {
  height: min(78svh, 820px); overflow: auto; border-radius: 22px; background: #05040c;
  border: 1px solid var(--line); position: relative;
}
.preview-fab { display: none; }
.ed-preview-bar { justify-content: space-between; padding: 4px 2px 10px; }
.ed-preview-bar h2 { margin: 0; font-size: 16px; font-weight: 600; }

@media (min-width: 720px) {
  .themes, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .splash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ed-row-actions { grid-column: 2; }
}
.ed-preview .gl-page {
  position: absolute; inset: 0; min-height: 0; overflow: auto;
}
.ed-preview .gl-page .scene,
.ed-preview .gl-page .entrance,
.ed-preview .gl-page .fx-host { position: absolute; inset: 0; }
@media (max-width: 979px) {
  .ed-layout { display: flex; flex-direction: column; }
  .ed-shell { padding-bottom: 32px; }
  .ed-preview { display: none; }
  .ed-preview.is-open {
    display: block; position: relative; order: -1; z-index: 1;
    inset: auto; max-height: none; margin: 0 0 16px; padding: 0;
    background: transparent; box-shadow: none; border: 0;
  }
  .ed-preview.is-open .preview-frame { height: min(70svh, 640px); overflow: hidden; }
  .preview-fab {
    display: inline-flex; align-items: center; justify-content: center;
    position: static; z-index: auto;
    min-height: 44px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px;
    background: #fff; color: #140e24; font-weight: 650;
  }
}
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); padding-top: 18px; }
  .ed-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); align-items: start; }
  .ed-preview { position: sticky; top: 12px; }
  .preview-frame { height: calc(100svh - 92px); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .switch-ui::after { transition: none; }
  .land-mesh span, .land-mock { animation: none !important; }
}
@keyframes mesh-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }
