.tp-friends{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:14px 0 4px}
.tp-friend{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:16px;background:#fff;border:2px solid #ead8f0;font-size:13px}
.tp-friend img{width:100%;max-width:120px;height:auto}.tp-friend[aria-pressed=true]{border-color:#a1549b;background:#fbf0fb;box-shadow:inset 0 -3px #d8a86b}
.tp-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 14px}.tp-presets .primary{background:linear-gradient(100deg,#6d3c83,#a1549b);color:#fff;border:0}
.tp-presets button.on{outline:3px solid #d8a86b;outline-offset:1px}
.tabs button{min-height:44px}
.tp-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:14px}.tp-swatches button{height:40px;padding:0;border-radius:10px;border:2px solid #dfcde6}
.tp-swatches button.sel{outline:3px solid #6d3c83;outline-offset:2px}.tp-swatches button.card{position:relative}.tp-swatches button.card:after{content:'♥';position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 0 3px #000;font-size:14px}
.tp-dl{display:block;text-align:center;border:1px solid #d9c5e7;background:#fff;color:#593673;border-radius:12px;padding:11px 8px;font-weight:700;text-decoration:none;font-size:13px}
.tp-scene{min-height:0;padding:12px}#puppetArt{width:100%;max-width:560px;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 6px 20px #54325b30}#puppetArt svg{display:block;width:100%;height:auto}
@media(max-width:600px){.tp-friends{grid-template-columns:repeat(4,1fr)}}
@media(max-width:480px){.tp-friends{grid-template-columns:repeat(3,1fr)}.tp-swatches{grid-template-columns:repeat(5,1fr)}}
@media(max-width:860px){
.tp-scene{padding:4px;min-height:0}
#puppetArt{width:100%;height:100%;max-width:none;margin:0;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;box-shadow:none}
#puppetArt svg{width:auto;height:auto;max-width:100%;max-height:100%}
}
@media(min-width:861px){
.preview #puppetArt{max-width:100%;height:100%}
.preview #puppetArt svg{width:auto;height:auto;max-width:100%;max-height:100%}
}
