:root{--tg-bg: #14131a;--tg-text: #f4f3ff;--tg-card: #211f2b;--tg-button: #8b5cf6;--tg-button-text: #ffffff;--tg-hint: #9a98ad;--accent: #c879ff;--good: #3ddc97}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;height:100%}body{background:var(--tg-bg);color:var(--tg-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overscroll-behavior:none}.app{max-width:480px;margin:0 auto;padding:16px 16px 32px;min-height:100%;display:flex;flex-direction:column;gap:16px}h1{font-size:24px;margin:4px 0}h2{font-size:19px;margin:0}.hint{color:var(--tg-hint);font-size:14px;line-height:1.4}.card{background:var(--tg-card);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:14px;padding:14px 18px;font-size:16px;font-weight:600;background:var(--tg-button);color:var(--tg-button-text);cursor:pointer;transition:transform .06s ease,opacity .2s}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.4}.btn.secondary{background:transparent;border:1.5px solid var(--tg-hint);color:var(--tg-text)}.btn.ghost{background:#ffffff0f;color:var(--tg-text)}.btn.full{width:100%}.row{display:flex;gap:10px;flex-wrap:wrap}input[type=text]{background:#ffffff12;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px 14px;font-size:16px;color:var(--tg-text);width:100%}.svg-box{display:flex;justify-content:center;align-items:center}.svg-box svg{max-width:100%;height:auto}.palette{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.part-tile{background:#ffffff0f;border:2px solid transparent;border-radius:14px;padding:8px;text-align:center;font-size:12px;cursor:pointer;display:flex;flex-direction:column;gap:6px;align-items:center}.part-tile.active{border-color:var(--accent);background:#c879ff24}.part-tile .thumb{width:100%;aspect-ratio:1;background:#0003;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center}.part-tile .thumb svg{max-width:100%;max-height:100%;height:auto}.part-tile.locked{opacity:.55}.badge{font-size:10px;padding:1px 6px;border-radius:8px;background:var(--accent);color:#fff}.skins{display:flex;gap:10px;flex-wrap:wrap}.swatch{width:34px;height:34px;border-radius:50%;border:3px solid transparent;cursor:pointer}.swatch.active{border-color:#fff;transform:scale(1.1)}.connector{background:#ffffff0d;border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px}.connector .meta{display:flex;gap:8px;font-size:12px;color:var(--tg-hint);flex-wrap:wrap;justify-content:center}.connector .chip{background:#ffffff14;border-radius:8px;padding:2px 8px}.pass{text-align:center;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;min-height:60vh}.pass .big{font-size:56px}.reveal-face{animation:pop .7s cubic-bezier(.22,1.4,.4,1)}@keyframes pop{0%{transform:scale(.2) rotate(-8deg);opacity:0}60%{transform:scale(1.05) rotate(2deg)}to{transform:scale(1) rotate(0);opacity:1}}.authors{text-align:center;font-size:14px;color:var(--tg-hint)}.authors b{color:var(--accent)}.progress{display:flex;gap:6px;justify-content:center}.progress .dot{width:9px;height:9px;border-radius:50%;background:#ffffff2e}.progress .dot.done{background:var(--good)}.progress .dot.current{background:var(--accent)}.error{color:#ff7a7a;font-size:14px}.center{text-align:center}.spacer{flex:1}
