/* /clubs/new: Host's page (play/host.css, main.host.is-lobby) with the club's pickers. */
main.clubnew .clubstep--name { --shadow: var(--lime); }
main.clubnew .clubstep--kind { --shadow: var(--cyan); }
main.clubnew .clubstep--colours { --shadow: var(--pink); }
main.clubnew .clubstep--home { --shadow: var(--orange, #ff8a1f); }
main.clubnew .clubstep--about { --shadow: var(--grape, #b388ff); }
main.clubnew .host-step .field + .field, main.clubnew .host-step fieldset + fieldset { margin-top: 18px; }
main.clubnew .field small { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0.7; }
/* the about line: the same white field as the others (m.css .field input), two lines tall */
main.clubnew .field textarea {
  display: block; width: 100%; min-width: 0; min-height: 96px; padding: 14px; resize: vertical;
  font: 700 17px/1.35 var(--body); color: var(--ink); background: #fff;
  border: var(--edge) solid var(--ink); border-radius: 0; box-shadow: 4px 4px 0 var(--pink); appearance: none;
}
main.clubnew .field textarea::placeholder { color: rgba(16, 16, 20, 0.32); font-weight: 600; }
main.clubnew .field textarea:focus-visible { outline-offset: 4px; }

/* kinds: Play's buttons, several can be picked */
main.clubnew .clubkinds { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
main.clubnew .clubkinds .format span { font: 800 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
main.clubnew .clubkinds .format input:disabled + span { opacity: 0.35; }

/* colours: square swatches, the picked one lifted with an ink edge and a lime tick */
.swatches { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.swatch { position: relative; display: block; aspect-ratio: 1; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; height: 100%; background: var(--c); border: 1px solid rgba(241, 239, 230, 0.25); transition: transform var(--fast) var(--out), box-shadow var(--fast); }
.swatch input:checked + span { border: 2px solid var(--paper); box-shadow: 3px 3px 0 var(--pink); transform: translate(-2px, -2px); }
.swatch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.swatch input:disabled { cursor: not-allowed; }
.swatch input:disabled + span { opacity: 0.25; }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* the club card as it will look in the Club list */
.clubpreview { display: grid; margin: 10px 0 18px; padding: 0; list-style: none; }
.clubpreview .gamecard { pointer-events: none; }
main.clubnew .clubpost { display: grid; gap: 10px; }
main.clubnew .clubpost .clubpreview { margin: 0 0 8px; }
main.clubnew .host-done { display: grid; gap: 12px; }
@media (min-width: 1101px) { main.clubnew .clubpost > .field__label, main.clubnew .clubpost .clubpreview { display: none; } }

/* the logo: what the crest looks like now (theirs, or the one made from the colours), and the upload button */
main.clubnew .clublogo { margin-bottom: 18px; }
.clublogo__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.clublogo__img { width: 72px; height: 72px; object-fit: contain; padding: 6px; background: var(--panel-2); border: 1px solid var(--hair); }
.clublogo__pick { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font: 800 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--pink); cursor: pointer; transition: transform var(--fast) var(--out); }
.clublogo__pick:hover { transform: translate(-1px, -1px); }
.clublogo__pick:focus-within { outline: 3px solid var(--cyan); outline-offset: 2px; }
.clublogo__remove { font: 800 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.clublogo__remove:hover { color: var(--pink); }

/* the founder's agreement (club-new.js signPledge): five numbered rules on tilted lime squares, then the signature */
.pledge__rules { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: rule; }
.pledge__rules li { position: relative; padding-left: 40px; counter-increment: rule; }
.pledge__rules li::before {
  content: counter(rule); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 26px; height: 26px;
  font: 800 13px/1 var(--brand); color: var(--ink); background: var(--lime); border: 2px solid var(--ink); rotate: -4deg;
}
.pledge__rules b { display: block; font: 700 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.pledge__rules span { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.4; color: rgba(16, 16, 20, 0.78); }
.pledge__sign { margin-top: 22px; }
.pledge .btn--lime { margin-top: 22px; }
.pledge .btn--lime[disabled] { opacity: 0.45; cursor: not-allowed; }
.pledge .btn--ghost { margin-top: 8px; }
