.sgtpm{--ink:#354750;--muted:#708089;max-width:740px;margin:18px auto;padding:22px 20px;background:#fff;border:1px solid #e5e9eb;border-radius:20px;color:var(--ink);font-family:inherit;box-sizing:border-box}.sgtpm *{box-sizing:border-box}.sgtpm-brand{font-size:11px;letter-spacing:.09em;color:#75838c;font-weight:700}.sgtpm-brand span{color:#f06d8d}.sgtpm-intro{text-align:center;padding:25px 10px 18px}.sgtpm-overline{font-size:12px;color:#86939b}.sgtpm-sparkle{font-size:18px;color:#9da9af;margin:6px}.sgtpm-intro h2{font-size:clamp(25px,5vw,32px)!important;margin:0 0 10px!important;background:none!important;border:0!important;color:#354750!important;padding:0!important;line-height:1.3}.sgtpm-intro p{font-size:13px;color:#71808a;line-height:1.8;margin:0}.sgtpm-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.sgtpm-preview{position:sticky;top:18px;border:1px solid #e5e8eb;border-radius:18px;background:#fafbfc;padding:14px;text-align:center}.sgtpm-preview canvas{width:100%;max-width:320px;aspect-ratio:1;display:block;margin:auto;border-radius:12px}.sgtpm-hint{font-size:11px;color:#86939b;margin:10px 0 0}.sgtpm-controls fieldset{border:0;border-top:1px solid #eceff1;padding:14px 0 13px;margin:0;min-width:0}.sgtpm-controls legend{font-size:13px;font-weight:700;color:#354750;padding:0 0 6px}.sgtpm-colors,.sgtpm-choices{display:flex;flex-wrap:wrap;gap:8px}.sgtpm button{font-family:inherit;cursor:pointer;touch-action:manipulation}.sgtpm-colors button{width:54px;height:51px;border:1px solid #e1e5e8;border-radius:12px;background:#fff;padding:7px}.sgtpm-colors img{width:100%;height:100%;object-fit:contain}.sgtpm-choices button{border:1px solid #dce3e7;border-radius:25px;background:#fff;color:#586a73;padding:9px 12px;font-size:12px;min-height:38px}.sgtpm button.selected{border:2px solid #6b8999;background:#f1f7fa;color:#354750;font-weight:700}.sgtpm button:focus-visible{outline:3px solid #8ebde0;outline-offset:2px}.sgtpm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.sgtpm-download{background:#737d84!important;border:0!important;border-radius:30px!important;color:#fff!important;padding:13px 19px!important;font-weight:700;font-size:13px}.sgtpm-reset{border:1px solid #dce3e7!important;border-radius:30px!important;background:#fff!important;color:#586a73!important;padding:12px 16px!important;font-size:13px}.sgtpm-footer{border-top:1px solid #eceff1;margin-top:20px;padding-top:13px;text-align:center;color:#85929a;font-size:11px}@media(max-width:600px){.sgtpm{padding:14px;border-radius:16px}.sgtpm-layout{grid-template-columns:1fr;gap:14px}.sgtpm-preview{position:static;padding:8px}.sgtpm-preview canvas{max-width:240px}.sgtpm-intro{padding:20px 6px}.sgtpm-colors button{width:57px;height:52px}}@media(prefers-reduced-motion:reduce){.sgtpm *{animation:none!important;transition:none!important}}

/* v0.2.0: match the shooter visual language */
.sgtpm{--ink:#303942;--muted:#687781;border-radius:22px;border-color:#e4e7e9;box-shadow:0 5px 24px #27313b0a}
.sgtpm-brand{display:flex;justify-content:space-between;align-items:center;letter-spacing:.13em}
.sgtpm-sound{border:1px solid #d6dce0;background:#fff;color:#647079;border-radius:100px;padding:6px 12px;font-size:12px}
.sgtpm-intro{padding:28px 10px 25px;border-bottom:1px solid #e0e5e7;margin-bottom:17px}
.sgtpm-overline{font-size:clamp(15px,3.3vw,18px);font-weight:700;color:#35434c;letter-spacing:.015em}
.sgtpm-sparkle{font-size:17px;color:#87949b;margin:8px 0}
.sgtpm-intro h2{font-size:clamp(26px,5.4vw,34px)!important;font-weight:750!important;letter-spacing:.025em!important}
.sgtpm-choices button{transition:background .15s,transform .15s}.sgtpm-choices button:active,.sgtpm-colors button:active{transform:scale(.94)}
.sgtpm-share{background:#647580!important;color:white!important;border:0!important;border-radius:30px!important;padding:13px 19px!important;font-weight:700!important;font-size:13px}
@media(max-width:600px){.sgtpm-intro{padding:22px 6px 20px}.sgtpm-actions button{flex:1 1 auto}}

/* v0.3.0: compact mobile maker and draggable rounded decorations */
.sgtpm-tabs{display:none}.sgtpm-preview canvas{touch-action:none;cursor:grab}.sgtpm-preview canvas:active{cursor:grabbing}.sgtpm-move{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:6px;font-size:11px;color:#6d7e87}.sgtpm-center{border:1px solid #dce3e7;border-radius:20px;background:white;color:#647580;padding:5px 10px;font-size:11px}
@media(max-width:600px){.sgtpm{padding:10px;margin:6px auto}.sgtpm-brand{font-size:10px}.sgtpm-intro{padding:9px 4px 10px;margin-bottom:9px}.sgtpm-intro h2{font-size:24px!important;margin:0 0 3px!important}.sgtpm-intro p{font-size:11px;line-height:1.45}.sgtpm-overline{font-size:12px}.sgtpm-sparkle{font-size:13px;margin:2px}.sgtpm-layout{gap:6px}.sgtpm-preview{position:sticky;top:0;z-index:5;background:#fff;border-radius:14px;padding:5px;box-shadow:0 5px 12px #23313a13}.sgtpm-preview canvas{width:min(100%,185px);max-width:185px}.sgtpm-hint{margin:3px 0 0;font-size:10px}.sgtpm-move{margin:3px 0 0}.sgtpm-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:4px 0 6px}.sgtpm-tabs button{border:1px solid #e0e5e8;background:#f7f9fa;color:#677983;border-radius:11px;padding:10px 1px;font-size:11px;min-width:0}.sgtpm-tabs button.active{background:#e9f3f8;border-color:#7fa8bd;color:#354750;font-weight:700}.sgtpm-controls fieldset{display:none;padding:7px 0 9px;border-top:0}.sgtpm-controls fieldset.sgtpm-panel-active{display:block}.sgtpm-controls legend{font-size:12px}.sgtpm-choices{gap:6px}.sgtpm-choices button{padding:9px 11px}.sgtpm-actions{margin-top:8px}.sgtpm-actions button{font-size:12px!important;padding:10px 12px!important}.sgtpm-footer{margin-top:8px}}

/* v0.4.0: consistent shooter-like title and working tabs on all screen sizes */
.sgtpm{max-width:740px}
.sgtpm-brand{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;letter-spacing:.025em;color:#7a8992}
.sgtpm-sound{background:#fff;border:1px solid #dce3e7;border-radius:999px;padding:8px 12px;color:#65747d;font-size:11px}
.sgtpm-intro{border-bottom:1px solid #e1e6e9;margin-bottom:16px}
.sgtpm-overline{font-size:17px;font-weight:700;color:#354750;letter-spacing:0}
.sgtpm-sparkle{font-size:17px;color:#82929a;margin:6px 0}
.sgtpm-intro h2{font-size:clamp(27px,5.3vw,34px)!important;letter-spacing:.02em!important}
.sgtpm-move{display:none!important}
.sgtpm-tabs{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:0 0 12px}
.sgtpm-tabs button{min-width:0;padding:11px 2px;border-radius:11px;border:1px solid #dfe5e8;background:#f7f9fa;color:#667782;font-size:12px;font-weight:600}
.sgtpm-tabs button.active{background:#e9f3f8;border-color:#7fa8bd;color:#354750;font-weight:700}
.sgtpm-controls fieldset{display:none!important;border-top:0;padding:5px 0 10px}
.sgtpm-controls fieldset.sgtpm-panel-active{display:block!important}
.sgtpm-preview canvas{cursor:grab;touch-action:none}
@media(max-width:600px){
.sgtpm{padding:12px;margin:6px auto}
.sgtpm-intro{padding:10px 3px 12px;margin-bottom:10px}
.sgtpm-overline{font-size:14px}
.sgtpm-sparkle{font-size:14px;margin:3px 0}
.sgtpm-intro h2{font-size:27px!important}
.sgtpm-layout{display:flex;flex-direction:column;gap:8px}
.sgtpm-preview{position:sticky;top:0;z-index:8;align-self:stretch;width:100%;padding:5px 8px;background:#fff;box-shadow:0 4px 13px #263c4810}
.sgtpm-preview canvas{width:min(100%,170px);max-width:170px}
.sgtpm-controls{width:100%;min-width:0}
.sgtpm-tabs{gap:3px;margin:3px 0 7px}
.sgtpm-tabs button{font-size:11px;padding:10px 1px}
.sgtpm-controls fieldset{padding:5px 0 8px}
.sgtpm-hint{font-size:10px;margin:3px 0 0}
}

/* v0.5.0: neutral brand label, consistent with shooter */
.sgtpm .sgtpm-brand span{color:#75838c!important;}
.sgtpm-preview canvas{touch-action:none!important;cursor:grab;}
.sgtpm-preview canvas:active{cursor:grabbing;}

/* v0.6: drop-to-delete, overlay never exported to the PNG canvas */
.sgtpm-canvas-wrap{position:relative;width:100%;max-width:320px;margin:0 auto}
.sgtpm-canvas-wrap canvas{width:100%!important;max-width:none!important}
.sgtpm-trash{position:absolute;right:8px;bottom:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:66px;height:66px;border:1px dashed #b7c1c7;border-radius:15px;background:#f4f7f9ed;color:#74818a;pointer-events:none;transition:background .14s,transform .14s,border-color .14s;z-index:2}
.sgtpm-trash span{font-size:10px;font-weight:700;line-height:1.2}
.sgtpm-trash-hot{background:#ffe7ec;border-color:#ec839c;color:#c25370;transform:scale(1.08)}
@media(max-width:600px){.sgtpm-canvas-wrap{max-width:185px}.sgtpm-trash{width:46px;height:46px;right:2px;bottom:2px;border-radius:10px}.sgtpm-trash svg{width:18px;height:18px}.sgtpm-trash span{font-size:9px}}

/* v0.7: compact upper-left trash target, without label or box */
.sgtpm .sgtpm-trash{top:9px!important;left:9px!important;right:auto!important;bottom:auto!important;width:44px!important;height:44px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(245,248,250,.94)!important;color:#71828c!important;box-shadow:0 1px 6px rgba(45,70,80,.10);pointer-events:none!important;z-index:4;transform:none!important}
.sgtpm .sgtpm-trash svg{width:24px!important;height:24px!important}
.sgtpm .sgtpm-trash-hot{background:#ffe2e9!important;color:#bf536f!important;transform:scale(1.15)!important;box-shadow:0 0 0 5px rgba(239,126,155,.14)!important}
.sgtpm .sgtpm-trash span{display:none!important}
@media(max-width:600px){.sgtpm .sgtpm-trash{top:5px!important;left:5px!important;width:38px!important;height:38px!important}.sgtpm .sgtpm-trash svg{width:21px!important;height:21px!important}}

/* v1.0.1: dragged decoration renders above the upper-left trash icon. */
.sgtpm .sgtpm-canvas-wrap{position:relative}
.sgtpm .sgtpm-drag-overlay{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;pointer-events:none!important;z-index:10!important;background:transparent!important;box-shadow:none!important}

/* v1.0.3: breathing room between game title and description */
.sgtpm .sgtpm-intro h2{margin-bottom:18px!important;}
.sgtpm .sgtpm-intro p{line-height:1.75;}
@media(max-width:600px){.sgtpm .sgtpm-intro h2{margin-bottom:17px!important;}.sgtpm .sgtpm-intro p{line-height:1.65;}}
/* v1.1.0: extra decoration choices, original layout preserved */
.sgtpm canvas{touch-action:none}
.sgtpm-choices button{white-space:nowrap}
