/* /starters — admin: compose and pick the starter avatars */
.starters { max-width: 1040px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 28px; }
.starters-head h2 { margin: 0 0 6px; font-size: 28px; }
.starters-head p { margin: 0; font-size: 14px; max-width: 70ch; }

.composer { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.composer .stage { position: relative; }
.composer canvas#avatar { width: 320px; height: 320px; border-radius: 16px; image-rendering: pixelated; box-shadow: 0 1px 0 var(--border), 0 10px 30px rgba(0,0,0,.08); display: block; }
.taken-tag { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #b91c1c; color: #fff; }
.taken-tag[hidden] { display: none; }
.composer-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.slot-rows { display: flex; flex-direction: column; gap: 6px; }
.slot-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px 32px; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); }
.slot-row.kept { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.slot-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-left: 4px; }
.slot-label .px { font-size: 16.5px; }
.combo { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; min-width: 0; text-align: left; }
.combo:hover { border-color: var(--muted); }
.combo img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 6px; background: var(--subtle); flex: none; }
.combo b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo b.none { color: var(--muted); padding-left: 6px; }
.combo .caret { color: var(--muted); font-size: 11px; }
.combo .rarity-ic { font-size: 16.5px; }
.slot-row .lock[aria-pressed="true"] { color: var(--fg); background: var(--subtle); }
.slot-row .btn-icon .px { font-size: 16.5px; }
.commons { padding: 0; }
.composer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-actions .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.composer-actions .btn .px { font-size: 16.5px; }

.chosen { display: flex; flex-direction: column; gap: 12px; }
.chosen-head { display: flex; align-items: baseline; gap: 12px; }
.chosen-head h3 { margin: 0; font-size: 20px; }
.chosen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.chosen-grid .empty { grid-column: 1 / -1; margin: 0; }
.chosen-card { position: relative; }
.chosen-card canvas { width: 100%; aspect-ratio: 1; border-radius: 10px; image-rendering: pixelated; cursor: pointer; display: block; box-shadow: 0 1px 0 var(--border); }
.chosen-card canvas:hover, .chosen-card.current canvas { outline: 2px solid var(--fg); outline-offset: 1px; }
.chosen-card .del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.chosen-card:hover .del { display: flex; }
.chosen-card .del .px { font-size: 11px; }

/* Search picker */
.picker-pop { position: absolute; z-index: 50; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); overflow: hidden; }
.picker-pop[hidden] { display: none; }
.picker-pop input { height: 40px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--border); outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; }
.picker-list { max-height: 340px; overflow: auto; padding: 4px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 8px; cursor: pointer; }
.pick-row.active { background: var(--subtle); }
.pick-row.used img, .pick-row.used .pick-txt b { opacity: .55; }
.pick-row.selected .pick-txt b::after { content: " ✓"; }
.pick-row img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 6px; background: var(--subtle); flex: none; }
.pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pick-txt b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-txt small { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row .rarity-ic { font-size: 16.5px; }
.pick-none { color: var(--muted); padding: 8px; }
.pick-empty { padding: 12px; margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  .starters { padding: 20px 16px 48px; }
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer canvas#avatar { width: 100%; height: auto; aspect-ratio: 1; max-width: 340px; }
  .slot-row { grid-template-columns: 84px minmax(0, 1fr) 32px 32px; }
}
