@font-face { font-family: 'exe Inter'; font-weight: 100 900; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'exe Jost'; font-weight: 100 900; font-display: swap; src: url('/fonts/jost.woff2') format('woff2'); }
:root { --bg: #0a0a0a; --surface: #141414; --surface2: #1e1e1e; --border: #2a2a2a; --text: #f0f0f0; --text-dim: #888; --accent: #ff90e8; --on-accent: #000; }
body.light-mode { --bg: #f5f5f5; --surface: #fff; --surface2: #f0f0f0; --border: #e0e0e0; --text: #1a1a1a; --text-dim: #666; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 'exe Inter', 'Helvetica Neue', Arial, sans-serif; }
h1, h2 { font-family: 'exe Jost', Futura, Arial, sans-serif; letter-spacing: -.01em; }
h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.05; font-weight: 900; }
h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
h2 span { display: inline-block; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--accent); color: var(--on-accent); text-align: center; line-height: 24px; font-size: 13px; }
.dim { margin: 0; color: var(--text-dim); }
h3 { margin: 0 0 14px; font: 500 22px/1.2 'exe Jost', Futura, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.site-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: stretch; justify-content: space-between; height: 62px; background: #fff; color: #000; border-bottom: 2px solid #000; font: 400 14px/1 'exe Jost', Futura, Arial, sans-serif; text-transform: uppercase; }
.site-nav a { color: inherit; text-decoration: none; }
.site-home { display: flex; align-items: center; padding: 0 14px; }
.site-home img { display: block; width: 50px; height: 50px; }
.site-nav nav { display: flex; align-items: center; gap: 80px; }
.site-nav nav a { padding: 8px 0; background: linear-gradient(#ff90e8, #ff90e8) left bottom / 0 2px no-repeat; transition: background-size .2s ease; }
.site-nav nav a:hover { background-size: 100% 2px; }
.site-join { display: flex; align-items: center; padding: 0 34px; background: #000; color: #fff !important; font-size: 18px; transition: background .2s ease, color .2s ease; }
.site-join:hover { background: #ff90e8; color: #000 !important; }
.mode { position: absolute; top: 32px; right: 24px; z-index: 1; padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.app { position: relative; display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 32px; max-width: 1400px; margin: 0 auto; padding: 32px 24px; align-items: start; }
section { margin-top: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.field { display: block; margin: 14px 0 6px; padding: 0; font-size: 13px; color: var(--text-dim); }
h2 + .field { margin-top: 0; }
.fold { display: flex; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.fold::after { content: ''; width: 8px; height: 8px; margin: 0 4px 0 auto; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(-135deg); transition: transform .15s ease; }
section.folded .fold::after { transform: rotate(45deg); }
section.folded h2 { margin-bottom: 0; }
section.folded > :not(h2) { display: none; }
input:not([type=checkbox]):not([type=radio]):not([type=color]), select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); font: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { margin: 8px 0 0; color: var(--text-dim); font-size: 13px; }
.hint:empty { display: none; }
.hint.bad { color: #ff7a7a; }
body.light-mode .hint.bad { color: #c62828; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg { margin-top: 14px; }
.seg legend { margin-top: 0; }
.seg .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; min-height: 40px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 14px; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.plist { max-height: 300px; overflow-y: auto; margin-top: 10px; border-top: 1px solid var(--border); }
.plist .check { padding: 6px 0; border-bottom: 1px solid var(--border); }
.plist img { width: 44px; height: 44px; object-fit: contain; flex: none; background: #fff; border-radius: 4px; }
.plist small { display: block; color: var(--text-dim); }
.plist.off { opacity: .45; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color { display: flex; gap: 8px; align-items: center; }
input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); cursor: pointer; flex: none; }
.stagecol { position: sticky; top: 94px; min-width: 0; }
.previewbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.previewbar h2 { margin: 0; }
.canvas { position: relative; }
.bgicon { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.bgicon input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.preview { min-height: 320px; max-height: calc(100vh - 340px); overflow-y: auto; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #111; }
.tryline { margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.empty { margin: 0; padding: 96px 0; text-align: center; opacity: .6; }
.codebox { margin-top: 16px; }
.codehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.codehead h2 { margin: 0; }
.primary { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer; }
.how { margin: 0 0 12px; font-size: 14px; }
.legal { max-height: 240px; overflow-y: auto; padding: 12px; background: var(--surface2); border-radius: 6px; font-size: 13px; }
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin-bottom: 0; }
pre { margin: 0; padding: 12px; overflow-x: auto; background: var(--surface2); border-radius: 6px; font: 12.5px/1.5 Menlo, ui-monospace, monospace; }
.site-footer { margin-top: 48px; padding: 32px 24px 24px; background: #000; color: #fff; font-family: 'exe Jost', Futura, Arial, sans-serif; text-align: center; }
.site-footer a { color: inherit; text-decoration: none; }
.foot-cols { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; }
.foot-cols a { display: block; padding: 10px 0; font-size: 20px; line-height: 1.3; }
.foot-cols a:hover { color: #ff90e8; }
.foot-logo { position: absolute; left: -12px; top: 36px; width: 84px; height: 84px; }
.foot-funding { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 32px; max-width: 760px; margin: 40px auto 24px; }
.foot-funding img { display: block; height: 48px; width: auto; max-width: 100%; }
.foot-funding img.tall { height: 56px; }
.foot-copy { margin: 0; font-size: 14px; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .mode { top: 20px; right: 16px; }
  h1 { padding-right: 72px; }
  .site-nav { height: 44px; }
  .site-home { padding: 0 10px; }
  .site-home img { width: 36px; height: 36px; }
  .site-nav nav { flex: 1; justify-content: flex-end; gap: 14px; padding-right: 14px; }
  .site-join { display: none; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot-logo { position: static; margin: 0 auto; width: 72px; height: 72px; }
  .stagecol { position: static; }
  .preview { max-height: none; }
  h1 { font-size: 28px; }
}
