/* Custom character cards. Builds on the site's style.css (tokens, buttons, cards) and landing.css (hero, bands). */
.make h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(40px, 7vw, 76px); line-height: 1; margin: 0 0 14px; }
.make { padding-bottom: clamp(40px, 7vw, 84px); min-height: 46vh; }
.make .lede { max-width: 560px; }
#pick { cursor: pointer; }
#pick:focus-within { outline: 3px solid var(--loot); outline-offset: 2px; }

/* the photos chosen, each with the name for its card and the one colour the character wears */
.drafts { margin: 28px auto 0; max-width: 460px; display: grid; gap: 18px; justify-items: center; }
.drafts ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.drafts li { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.drafts li img { width: 92px; height: 92px; object-fit: cover; border-radius: 9px; flex: none; }
.who { flex: 1; min-width: 0; display: grid; gap: 10px; }
.drafts input[type=text] { width: 100%; height: var(--tap); padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--ink); color: var(--bone); font: 700 18px var(--body); }
.drafts input::placeholder { color: var(--muted); font-weight: 400; }
.drafts input[type=text]:focus-visible { outline: 0; border-color: var(--loot); }
.swatches { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px 6px; }
.swatches label { position: relative; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; }
.swatches span { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(242,237,228,.4); transition: transform .1s; }   /* the thin rim keeps black and navy visible on the dark row */
.swatches input:checked + span { transform: scale(1.12); box-shadow: 0 0 0 3px var(--ink-2), 0 0 0 5px var(--bone); }
.swatches input:focus-visible + span { outline: 3px solid var(--loot); outline-offset: 6px; }
.drafts .x { font-size: 24px; line-height: 1; color: var(--muted); align-self: flex-start; }
.oops { color: #ffb4ad; margin: 18px 0 0; }
.fine { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* the cards */
.made-band h2 { margin-bottom: 28px; }
.made-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 44px 32px; }
.made { display: grid; gap: 16px; justify-items: start; align-content: start; }
.pair { display: flex; gap: clamp(10px, 2.4vw, 20px); --cw: clamp(136px, 42vw, 200px); }
.pair .card { aspect-ratio: 50.8 / 88.9; }   /* the printed card: 2 × 3.5 in */
.status { margin: 0; color: #3a352f; }
.status.bad { color: var(--danger); font-weight: 700; }
.acts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.acts .btn { min-height: 40px; padding: 0 16px; font-size: 16px; }
.linkbtn { background: none; border: 0; padding: 8px 2px; font-weight: 700; color: var(--muted-dark); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* a face still being drawn: its deck's icon, pulsing while it is the one in progress */
.drawing { align-self: center; display: flex; color: #cfc6b8; margin-bottom: 30cqw; }
.drawing .ic { width: 34cqw; height: 34cqw; }
.drawing.now { animation: drawing 1.3s ease-in-out infinite alternate; }
.card.zombie .drawing.now { color: #b9cdaa; }
@keyframes drawing { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawing.now { animation: none; } }

.drop-veil { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(22,20,18,.86); border: 4px dashed var(--loot); pointer-events: none; }
.drop-veil span { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(30px, 6vw, 54px); }

@media (max-width: 480px) {
  .drafts li { gap: 10px; padding: 8px; }
  .drafts li img { width: 72px; height: 72px; }
  .swatches { grid-template-columns: repeat(6, 32px); gap: 2px; }
  .swatches label { width: 32px; height: 32px; }
  .drafts .x { width: 36px; height: 36px; }
}
