* { box-sizing:border-box; }
body { margin:0; background:var(--site-bg); color:var(--text-primary); font-family:var(--font-sans); -webkit-font-smoothing:antialiased; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button { font:inherit; cursor:pointer; } a { color:inherit; }
button:disabled { cursor:default; }
p,h1,h2 { margin:0; }
[hidden] { display:none!important; }
button:focus-visible,a:focus-visible,canvas:focus-visible { outline:2px solid var(--accent-cyan); outline-offset:5px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; z-index:200; top:12px; left:12px; padding:12px 18px; border-radius:8px; background:#edf0ff; color:#151722; transform:translateY(-160%); }
.skip-link:focus { transform:none; }
.coming-soon-banner { display:flex; align-items:center; justify-content:center; gap:18px; padding:16px 40px; border-bottom:1px solid #818cf83d; background:linear-gradient(110deg,#181a2b,#151928); color:#c6ccec; }
.coming-soon-banner strong { flex-shrink:0; color:#f1f2ff; font-size:12px; font-weight:650; }
.coming-soon-banner p { font-size:12px; line-height:1.65; }
.creator-shell { width:min(100% - 80px,960px); margin:0 auto; padding:56px 0 64px; }
.creator-intro { margin-bottom:40px; }
.creator-title { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.creator-title h1 { font-size:clamp(30px,4vw,42px); font-weight:550; letter-spacing:-1.6px; line-height:1.2; }
.demo-pill { color:#b8bef2; border:1px solid #444663; background:#818cf80c; border-radius:5px; padding:5px 8px; font:10px var(--font-mono); }
.creator-intro>p { color:#a0a3b5; font-size:13px; line-height:1.7; margin-top:13px; }
.creator-intro>p>span { color:#73788e; margin-left:5px; }
.creator-section+.creator-section { margin-top:30px; }
.section-label { display:flex; align-items:center; gap:12px; margin-bottom:14px; min-height:24px; }
.step-number { color:#69738e; font:11px var(--font-mono); }
.section-label h2 { font-size:14px; font-weight:500; letter-spacing:-.1px; }
.local-note { color:#777e91; font-size:11px; margin-left:auto; }
.upload-area { position:relative; background:linear-gradient(120deg,#14151e90,#101116); border:1px dashed #3b4055; border-radius:12px; transition:border-color .2s,background .2s; }
.upload-area:hover,.upload-area.is-dragging { border-color:#a5b4fc; background:#181b2b; }
.upload-area.is-dragging { outline:3px solid #818cf820; }
.upload-area.is-selected { border-style:solid; border-color:#333747; }
.upload-area.is-busy { pointer-events:none; opacity:.65; }
.upload-target { display:block; width:100%; min-height:176px; background:none; border:0; padding:25px; border-radius:12px; color:#e2e6f1; }
.upload-empty { display:flex; flex-direction:column; align-items:center; gap:9px; }
.upload-empty>strong { font-size:14px; font-weight:500; }
.upload-empty>span:last-child { font-size:12px; color:#81889e; }
.choose-file-text { color:#b9c4f3; }
.upload-icon { width:35px; height:35px; color:#8b97c7; margin-bottom:4px; }
.upload-icon svg { width:100%; height:100%; }
.upload-selected { display:flex; align-items:center; gap:24px; text-align:left; }
.upload-selected img { display:block; width:110px; height:126px; object-fit:contain; background:#0b0c11; border:1px solid #2e3244; border-radius:7px; }
.file-info { min-width:0; display:flex; flex:1; flex-direction:column; gap:10px; padding-right:24px; }
.file-info strong { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
#file-detail { font:10px var(--font-mono); color:#7f889f; }
.replace-label { font-size:12px; color:#b5c1f3; margin-top:7px; display:flex; align-items:center; gap:10px; }
.remove-image { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:32px; height:32px; color:#9ca3b9; border:1px solid #343849; background:#171923; border-radius:7px; }
.remove-image:hover { color:white; border-color:#7e88aa; }
.upload-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:15px; }
.upload-footer>p { font-size:10px; color:#767e94; line-height:1.7; }
.upload-footer>p>span { padding:0 5px; }
.creator-button { display:inline-flex; justify-content:center; align-items:center; gap:24px; min-height:44px; padding:12px 18px; border:1px solid transparent; border-radius:8px; text-decoration:none; white-space:nowrap; font-size:12px; font-weight:500; transition:background .2s,border-color .2s; }
.creator-button .ui-icon { font-size:16px; }
.creator-button.primary { color:#171b2a; background:#e9edff; }
.creator-button.primary:hover:not(:disabled) { background:white; }
.creator-button.primary:disabled { background:#232634; color:#7b829a; border-color:#303445; }
.creator-button.secondary { color:#d9dfee; border-color:#35394a; background:#151720; }
.creator-button.secondary:hover { border-color:#8590b5; background:#1c2030; }
.creator-error { color:#ffb1b1; font-size:12px; line-height:1.6; margin-top:14px; }
.progress-section { padding:20px 22px; background:#12141d; border:1px solid #303447; border-radius:10px; }
.progress-section .section-label { margin-bottom:13px; }
.progress-status { color:#a9b6da; font-size:11px; margin-left:auto; }
.progress-percent { color:#d9e1fb; font:11px var(--font-mono); min-width:30px; text-align:right; }
progress { appearance:none; display:block; width:100%; height:4px; border:0; background:#282d40; border-radius:8px; overflow:hidden; }
progress::-webkit-progress-bar { background:#282d40; border-radius:8px; }
progress::-webkit-progress-value { background:linear-gradient(90deg,#8bb5ff,#c2b4ff); border-radius:8px; transition:width .35s; }
progress::-moz-progress-bar { background:linear-gradient(90deg,#8bb5ff,#c2b4ff); border-radius:8px; }
.sample-label { display:flex; align-items:center; gap:7px; color:#a3aed0; font:10px var(--font-mono); margin-left:auto; }
.sample-label>span { background:#9caaf6; width:5px; height:5px; border-radius:50%; }
.preview-stage { position:relative; height:410px; overflow:hidden; border:1px solid #2d3040; border-radius:12px; background:radial-gradient(ellipse at 50% 45%,#191b2e 0%,#101117 58%,#0e0f14 100%); }
.preview-grid { position:absolute; inset:0; opacity:.16; background-image:linear-gradient(#51566e44 1px,transparent 1px),linear-gradient(90deg,#51566e44 1px,transparent 1px); background-size:40px 40px; mask-image:radial-gradient(ellipse at center,black,transparent 72%); pointer-events:none; }
.preview-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; z-index:1; pointer-events:none; }
.empty-splat { width:78px; height:78px; color:#6f7ba8; filter:drop-shadow(0 0 16px #818cf823); }
.preview-placeholder>p { color:#777f99; font-size:12px; }
.preview-stage[aria-busy="true"] .empty-splat { animation:splat-breathe 1.8s ease-in-out infinite; }
.preview-canvas { position:absolute; inset:0; opacity:0; transition:opacity .4s; }
.preview-stage.is-ready .preview-canvas { opacity:1; }
.preview-canvas canvas { display:block; width:100%; height:100%; cursor:grab; touch-action:none; }
.preview-canvas canvas:active { cursor:grabbing; }
.preview-hint { position:absolute; bottom:19px; left:0; right:0; z-index:2; pointer-events:none; text-align:center; color:#8b94af; font-size:10px; }
.preview-hint>span,.preview-footer>p>span { padding:0 7px; color:#4f586f; }
.preview-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px; }
.preview-footer>p { font-size:10px; color:#818ba6; }
.preview-actions { display:flex; gap:10px; }
@keyframes splat-breathe { 50% { opacity:.35; transform:scale(.94); } }
@media(max-width:600px) {
  .coming-soon-banner { flex-direction:column; align-items:flex-start; gap:5px; padding:14px 20px; }
  .creator-shell { width:calc(100% - 36px); padding:34px 0 38px; }
  .creator-intro { margin-bottom:30px; }
  .creator-title { gap:12px; }
  .creator-title h1 { font-size:30px; letter-spacing:-1px; }
  .creator-intro>p>span { display:block; margin-left:0; }
  .local-note { font-size:9px; }
  .upload-target { min-height:180px; padding:20px; }
  .upload-selected { gap:16px; }
  .upload-selected img { width:88px; height:114px; }
  .file-info strong { font-size:12px; }
  .upload-footer { flex-direction:column; align-items:stretch; gap:13px; }
  .upload-footer>p { text-align:center; }
  .creator-button { min-height:46px; }
  .progress-section { padding:17px 16px; }
  .progress-status { font-size:10px; }
  .preview-stage { height:380px; }
  .preview-footer { flex-direction:column; align-items:stretch; gap:14px; }
  .preview-footer>p { text-align:center; }
  .preview-actions { flex-direction:column; }
  .preview-actions>a { width:100%; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
