:root{color-scheme:dark;--bg: #0b0f19;--surface: #141b2d;--surface-2: #1d2740;--border: #2a3759;--text: #f1f5f9;--muted: #94a3b8;--accent: #38bdf8;--accent-strong: #0284c7;--danger: #f87171}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;min-height:100%}.hidden{display:none!important}.app{max-width:520px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.gate{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}.gate-card{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px 22px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.gate-emoji{font-size:56px}.gate-card h1{font-size:24px}.gate-card p{color:var(--muted);font-size:15px;line-height:1.4}.creator{display:flex;flex-direction:column;min-height:100dvh;padding:12px 12px 92px;gap:12px}.top-bar{display:grid;grid-template-columns:126px 1fr;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:10px;align-items:center}.preview-wrap{width:126px;height:126px;background:radial-gradient(circle at 50% 45%,#233354,#111827);border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.preview-wrap.compact{width:180px;height:180px}.preview-wrap canvas{width:100%;height:100%;display:block}.identity-col{display:flex;flex-direction:column;gap:8px;min-width:0}.field-label{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}#name-input,#search-input{width:100%;min-height:44px;padding:10px 12px;font-size:16px;font-weight:600;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;outline:none}#name-input:focus,#search-input:focus{border-color:var(--accent)}.color-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.swatch{width:100%;aspect-ratio:1;min-width:26px;min-height:26px;border-radius:50%;border:2px solid rgba(255,255,255,.25);cursor:pointer;padding:0}.swatch.active{border:3px solid #fff;box-shadow:0 0 0 2px var(--accent)}@media(max-width:410px){.top-bar{grid-template-columns:112px 1fr}.preview-wrap{width:112px;height:112px}.color-grid{grid-template-columns:repeat(4,1fr)}.swatch{min-height:36px}}.wardrobe{display:flex;flex-direction:column;gap:10px;flex:1}.search-row{display:flex;gap:8px}.secondary-btn{min-width:48px;min-height:44px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:20px;cursor:pointer}.slot-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:var(--surface);padding:4px;border-radius:12px;border:1px solid var(--border)}.tab{min-height:44px;border:none;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer}.tab.active{background:var(--accent-strong);color:#fff}.tab.has-item:after{content:"•";display:inline-block;margin-left:3px;color:#fde047}.item-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}@media(min-width:420px){.item-grid{grid-template-columns:repeat(4,1fr)}}.item-card{background:var(--surface);border:2px solid var(--border);border-radius:12px;padding:6px;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:var(--text);text-align:center}.item-card.active{border-color:var(--accent);background:var(--surface-2)}.item-card img{width:64px;height:64px;object-fit:contain;pointer-events:none}.item-card .item-name{font-size:11px;line-height:1.15;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%}.item-card.active .item-name{color:#fff;font-weight:600}.none-icon{width:48px;height:48px;border-radius:50%;border:2px dashed var(--muted);display:flex;align-items:center;justify-content:center;font-size:20px;color:var(--muted)}.sentinel{height:24px}.submit-bar{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:520px;background:#0b0f19f0;border-top:1px solid var(--border);padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.primary-btn{width:100%;min-height:50px;border:none;border-radius:12px;background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;font-size:18px;font-weight:800;cursor:pointer}.primary-btn:disabled{opacity:.6}.error-msg{color:var(--danger);font-size:13px;font-weight:600;text-align:center}
