* { box-sizing: border-box; margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #0e0b16; color: #f2eefc; }
.wrap { max-width: 860px; margin: 0 auto; padding: 28px 20px 80px; }
header { text-align: center; padding: 26px 0 10px; }
header h1 { font-size: 28px; letter-spacing: .5px; }
header h1 span { color: #b48cff; }
header p { color: #a99cc4; margin-top: 6px; }
.card { background: #171226; border: 1px solid #2c2344; border-radius: 16px; padding: 22px; margin-top: 22px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toggle { display: flex; border: 1px solid #3a2d5c; border-radius: 12px; overflow: hidden; }
.toggle button { background: transparent; color: #cbb8f5; border: 0; padding: 12px 22px; font-size: 15px; cursor: pointer; }
.toggle button.on { background: #7c4dff; color: white; }
.price { margin-left: auto; font-size: 22px; font-weight: 700; color: #ffd28a; }
.grid1 { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; max-width: 320px; margin-left: auto; margin-right: auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; max-width: 520px; margin-left: auto; margin-right: auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.slot { position: relative; aspect-ratio: 1; border: 2px dashed #3a2d5c; border-radius: 12px; overflow: hidden; cursor: pointer; background: #100c1c; display: flex; align-items: center; justify-content: center; color: #6d5f92; font: inherit; font-size: 14px; padding: 0; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled { border-style: solid; border-color: #7c4dff; }
.cta { display: block; width: 100%; margin-top: 22px; background: linear-gradient(90deg,#7c4dff,#b48cff); color: white; font-size: 18px; font-weight: 700; border: 0; border-radius: 14px; padding: 16px; cursor: pointer; }
.cta:disabled { opacity: .45; cursor: wait; }
.note { color: #8f81b5; font-size: 13px; margin-top: 12px; text-align: center; }
#stage { width: 100%; height: 480px; border-radius: 14px; background: radial-gradient(circle, #251b40 0%, #07050e 100%); }
.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb { position: relative; width: 72px; height: 72px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid #3a2d5c; background: #100c1c; cursor: pointer; }
.thumb.on { border-color: #7c4dff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span { position: absolute; left: 4px; bottom: 2px; font-size: 11px; text-shadow: 0 1px 3px #000; }
.h2 { font-size: 17px; }
.editor { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.crop { position: relative; flex: 1 1 320px; min-width: 260px; max-width: 460px; overflow: hidden; border: 2px solid #7c4dff; border-radius: 10px; background: #000; cursor: grab; touch-action: none; }
.crop:active { cursor: grabbing; }
.crop img { position: absolute; user-select: none; -webkit-user-drag: none; }
.controls { flex: 0 1 220px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.controls label { color: #cbb8f5; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.controls input[type=range] { accent-color: #7c4dff; }
.ghost { background: transparent; color: #cbb8f5; border: 1px solid #3a2d5c; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.hint { color: #8f81b5; font-size: 12px; line-height: 1.5; }
.meta { color: #a99cc4; font-size: 13px; margin-top: 14px; }
.spin-hint { color: #6d5f92; font-size: 12px; text-align: center; margin-top: 8px; }
.input-lbl { display: flex; flex-direction: column; gap: 6px; color: #cbb8f5; font-size: 14px; }
.input-lbl input, .input-lbl select, .input-lbl textarea { background: #100c1c; border: 1px solid #3a2d5c; color: #fff; padding: 12px; border-radius: 8px; font: inherit; }
.input-lbl input:focus, .input-lbl select:focus, .input-lbl textarea:focus { outline: none; border-color: #7c4dff; }
.input-lbl.full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; margin-bottom: 24px; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }
