/* Hero "create a club" card (partials/landing-create.php,
   assets/js/landing-create.js). Sits in the dark hero and takes its --accent
   from the active club type, so the card recolours with the tabs. */

.lpc {
    --lpc-line: rgba(255, 255, 255, 0.12);
    --lpc-fill: rgba(255, 255, 255, 0.045);
    --lpc-field: rgba(4, 14, 13, 0.42);
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: 590px;
    display: flex;
    flex-direction: column;
    text-align: left;
    color: var(--ink);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
    border: 1px solid var(--lpc-line);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.lpc .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lpc [hidden] { display: none !important; }
.lpc button { font-family: inherit; }
.lpc .material-icons { line-height: 1; }

/* ── The club, as it is being built ─────────────────────────────── */
.lpc__club {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lpc__art {
    position: relative;
    flex: 0 0 52px; height: 52px;
    border-radius: 13px;
    overflow: hidden;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: background 0.4s;
}
.lpc__art .material-icons { font-size: 26px; color: var(--accent); transition: color 0.4s; }
.lpc__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: lpcPop 0.4s ease; }
.lpc__club-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lpc__club-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__club-text span { font-size: 0.8rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dots + Start over mirror the name/meta rows; the button keeps its space while hidden so the dots never jump */
.lpc__club-text strong, .lpc__club-text span { line-height: 1.3; }
.lpc__club-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lpc__club-side .lpc__dots { height: calc(1.02rem * 1.3); align-items: center; }
.lpc__club-side .lpc__reset { padding: 0; font-size: 0.8rem; line-height: 1.3; white-space: nowrap; }
.lpc__club-side .lpc__reset[hidden] { display: block; visibility: hidden; }
.lpc__dots { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
.lpc__dots li {
    width: 8px; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    transition: width 0.3s ease, background 0.3s;
}
.lpc__dots li.is-done { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.lpc__dots li.is-on { width: 22px; background: var(--accent); }

/* ── Steps ─────────────────────────────────────────────────────── */
.lpc__body { flex: 1; padding: 24px 22px 6px; }
.lpc__step.is-on { animation: lpcIn 0.35s cubic-bezier(.2, .8, .2, 1); }
.lpc__count {
    margin: 0 0 6px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent);
    transition: color 0.4s;
}
.lpc__h { margin: 0 0 18px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }

/* Type tiles + pace options share one look. */
.lpc__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lpc__types[hidden], .lpc__join[hidden] { display: none; }

/* Step 1 heading + Join With Code, which swaps the grid for a code box */
.lpc__h-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.lpc__h-row .lpc__h { margin: 0; }
.lpc__join-toggle {
    flex: none; margin-top: 2px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px 7px 11px; border-radius: 999px;
    border: 1px solid var(--lpc-line); background: var(--lpc-fill);
    color: var(--ink); font-size: 0.8rem; font-weight: 700; white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.lpc__join-toggle .material-icons { font-size: 17px; color: var(--accent); }
.lpc__join-toggle:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lpc__join-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lpc__join-toggle[hidden], .lpc__club-side[hidden] { display: none; }
/* Desktop: moved into the card header, centered on the club name + meta */
.lpc__club > .lpc__join-toggle { margin: 0 0 0 auto; align-self: center; }
.lpc__join {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 18px; border-radius: 16px;
    border: 1px dashed var(--lpc-line); background: var(--lpc-fill);
    animation: lpcIn 0.3s cubic-bezier(.2, .8, .2, 1);
}
.lpc__code {
    width: 100%; max-width: 260px;
    padding: 14px 16px; border-radius: 14px;
    border: 1px solid var(--lpc-line); background: rgba(0, 0, 0, 0.25);
    color: var(--ink); text-align: center; text-transform: uppercase;
    font: 800 1.6rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.18em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lpc__code::placeholder { color: rgba(226, 240, 238, 0.22); }
.lpc__code:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lpc__join-msg { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--sub); text-align: center; }
.lpc__join-msg.is-err { color: #fca5a5; }
.lpc__type, .lpc__pace {
    position: relative;
    border: 1px solid var(--lpc-line);
    background: var(--lpc-fill);
    color: var(--ink);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.12s;
}
.lpc__type:hover, .lpc__pace:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.lpc__type:active, .lpc__pace:active { transform: scale(0.97); }
.lpc__type:focus-visible, .lpc__pace:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lpc__type.is-on, .lpc__pace.is-on {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.lpc__type {
    aspect-ratio: 1 / 0.82;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 6px;
}
.lpc__type .material-icons { font-size: 30px; color: var(--sub); transition: color 0.2s; }
.lpc__type.is-on .material-icons { color: var(--accent); }
.lpc__type-label { font-size: 0.9rem; font-weight: 700; }
.lpc__type small {
    position: absolute; top: 8px; right: 8px;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12); color: var(--sub);
}
.lpc__type[data-soon] .material-icons, .lpc__type[data-soon] .lpc__type-label { opacity: 0.55; }
.lpc__soon { margin: 14px 0 0; font-size: 0.86rem; color: var(--sub); }

.lpc__paces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lpc__pace { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; text-align: left; }
.lpc__pace strong { font-size: 0.98rem; font-weight: 800; }
.lpc__pace span { font-size: 0.8rem; color: var(--sub); line-height: 1.35; }

/* Fields */
.lpc__field { display: block; margin: 0 0 12px; }
.lpc__field input, .lpc__field textarea, .lpc__search input {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--lpc-field);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lpc__field input::placeholder, .lpc__field textarea::placeholder, .lpc__search input::placeholder { color: rgba(226, 240, 238, 0.38); }
.lpc__field input:focus, .lpc__field textarea:focus, .lpc__search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.lpc__field input[data-lpc-name] { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.lpc__field textarea { resize: none; font-size: 0.95rem; line-height: 1.5; }
.lpc__field--sm { margin-top: 18px; }
.lpc__label { display: block; margin: 0 0 7px; font-size: 0.8rem; font-weight: 700; color: var(--sub); }
.lpc__label em { font-style: normal; font-weight: 500; opacity: 0.7; margin-left: 4px; }
.lpc__field--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lpc__field--row .lpc__label { margin: 0; }
.lpc__field--row input { width: auto; padding: 10px 12px; font-size: 0.92rem; color-scheme: dark; }

.lpc__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.lpc__chip {
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background: none; color: var(--sub);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lpc__chip:hover { color: var(--ink); border-color: var(--accent); border-style: solid; background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* First pick */
.lpc__search { position: relative; }
.lpc__search > .material-icons { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--sub); pointer-events: none; }
.lpc__search input { padding-left: 44px; padding-right: 42px; }
.lpc__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lpc__spin {
    position: absolute; right: 15px; top: 50%;
    width: 16px; height: 16px; margin-top: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent);
    animation: lpcSpin 0.7s linear infinite;
}
.lpc__results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 286px; overflow-y: auto; overscroll-behavior: contain; }
.lpc__results:empty { display: none; }
.lpc__res {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; margin: 0;
    border: 0; border-radius: 12px;
    background: none; color: var(--ink); text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.lpc__res:hover, .lpc__res:focus-visible { background: rgba(255, 255, 255, 0.07); outline: none; }
.lpc__res img, .lpc__res-ph {
    flex: 0 0 44px; width: 44px; height: 44px;
    border-radius: 8px; object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}
.lpc__res-ph { display: grid; place-items: center; font-size: 22px; color: var(--sub); }
.lpc[data-shape="tall"] .lpc__res img:not([data-shape]), .lpc__res img[data-shape="tall"] { flex-basis: 36px; width: 36px; height: 54px; border-radius: 5px; }
.lpc[data-shape="wide"] .lpc__res img:not([data-shape]), .lpc__res img[data-shape="wide"] { flex-basis: 72px; width: 72px; height: 41px; border-radius: 6px; }
.lpc__res img[data-shape="square"] { flex-basis: 44px; width: 44px; height: 44px; border-radius: 8px; }
.lpc__res > span:not(.material-icons) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lpc__res strong { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__res small { font-size: 0.78rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__res-add { font-size: 22px; color: var(--accent); opacity: 0; transition: opacity 0.15s; }
.lpc__res:hover .lpc__res-add, .lpc__res:focus-visible .lpc__res-add { opacity: 1; }
.lpc__res.is-busy { opacity: 0.6; pointer-events: none; }
.lpc__hint { margin: 12px 2px 0; font-size: 0.84rem; line-height: 1.5; color: var(--sub); }
.lpc__hint:empty { display: none; }
/* Rotation TV: the chosen show, its seasons, then the episode list (.lpc__results) */
.lpc__eps-show { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lpc__eps-show .material-icons { font-size: 20px; color: var(--accent); }
.lpc__eps-show strong { flex: 1; min-width: 0; font-size: 0.98rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__eps-show .lpc__link { flex: none; }
.lpc__seasons {
    display: flex; gap: 6px; margin-top: 10px; padding-bottom: 2px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.lpc__seasons::-webkit-scrollbar { display: none; }
.lpc__season {
    flex: none;
    font-size: 0.8rem; font-weight: 700;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: none; color: var(--sub);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lpc__season:hover { color: var(--ink); border-color: var(--accent); }
.lpc__season.is-on { color: #06201d; border-color: var(--accent); background: var(--accent); }
.lpc__picked {
    display: flex; align-items: center; gap: 16px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    animation: lpcPop 0.35s ease;
}
.lpc__picked img { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; object-fit: cover; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
/* Art shape (landing-create.js): the club type's usual shape until the image
   loads, then the image's own (img[data-shape]). Albums and podcasts stay square. */
.lpc[data-shape="tall"] .lpc__picked img:not([data-shape]), .lpc__picked img[data-shape="tall"] { flex-basis: 72px; width: 72px; height: 108px; border-radius: 8px; }
.lpc[data-shape="wide"] .lpc__picked img:not([data-shape]), .lpc__picked img[data-shape="wide"] { flex-basis: 152px; width: 152px; height: 86px; border-radius: 10px; }
.lpc__picked img[data-shape="square"] { flex-basis: 96px; width: 96px; height: 96px; border-radius: 12px; }
.lpc__picked > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lpc__picked-k { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lpc__picked strong { font-size: 1.05rem; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lpc__picked span:last-child { font-size: 0.84rem; color: var(--sub); }

/* Review */
.lpc__review { margin: 0; border-radius: 16px; border: 1px solid var(--lpc-line); background: var(--lpc-fill); }
.lpc__review > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; }
.lpc__review > div + div { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lpc__review dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); }
.lpc__review dd { margin: 0; font-size: 0.94rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__fine { margin: 14px 2px 0; font-size: 0.82rem; line-height: 1.55; color: var(--sub); }
.lpc__err { margin: 10px 2px 0; font-size: 0.86rem; font-weight: 600; color: #fca5a5; }

/* ── Footer ────────────────────────────────────────────────────── */
.lpc__foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px 22px; }
.lpc__link {
    border: 0; background: none; padding: 4px 2px;
    font-size: 0.84rem; font-weight: 700;
    color: var(--accent);
    cursor: pointer;
}
.lpc__link:hover { text-decoration: underline; }
.lpc__back {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: none; padding: 10px 6px;
    font-size: 0.9rem; font-weight: 700; color: var(--sub);
    cursor: pointer;
}
.lpc__back:hover { color: var(--ink); }
.lpc__back .material-icons { font-size: 18px; }
.lpc__reset { color: var(--sub); font-weight: 600; }
.lpc__next {
    margin-left: auto;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    border: 0; border-radius: 999px;
    background: var(--accent); color: #06201d;
    font-size: 0.95rem; font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent);
    transition: background 0.4s, transform 0.12s, box-shadow 0.2s, opacity 0.2s;
}
.lpc__next .material-icons { font-size: 19px; }
.lpc__next:hover { transform: translateY(-1px); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 42%, transparent); }
.lpc__next:active { transform: scale(0.97); }
.lpc__next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lpc__next:disabled { opacity: 0.38; cursor: not-allowed; transform: none; box-shadow: none; }
.lpc__next.is-launch { padding: 14px 26px; font-size: 1rem; }

@keyframes lpcIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes lpcPop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes lpcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .lpc__step.is-on, .lpc__art img, .lpc__picked, .lpc__join { animation: none; }
}


/* Phones */
@media (max-width: 575.98px) {
    .lpc { min-height: 0; border-radius: 22px; }
    .lpc__club { padding: 14px 16px; gap: 12px; }
    .lpc__art { flex-basis: 46px; height: 46px; }
    .lpc__body { padding: 20px 16px 4px; }
    .lpc__h { font-size: 1.22rem; }
    .lpc__types { gap: 8px; }
    .lpc__type .material-icons { font-size: 26px; }
    .lpc__type-label { font-size: 0.82rem; }
    .lpc__paces { gap: 8px; }
    .lpc__pace { padding: 12px; }
    .lpc__picked img { flex-basis: 76px; width: 76px; height: 76px; }
    .lpc__review > div { grid-template-columns: 78px minmax(0, 1fr) auto; padding: 12px 14px; }
    .lpc__foot { padding: 14px 16px 18px; }
    .lpc__field textarea, .lpc__field--row input, .lpc__search input { font-size: 16px; }   /* no iOS zoom */
}

/* Auth modal note when a club is waiting to launch (index.php). */
.ra-modal-pending {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 0 0 16px;
    padding: 11px 13px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--auth-c) 14%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--auth-c) 35%, transparent);
    color: var(--ink);
    font-size: 0.86rem; line-height: 1.45;
}
.ra-modal-pending .material-icons { font-size: 19px; color: var(--auth-c); margin-top: 1px; }

/* Auto-advance progress: a thin white line along the card's bottom edge that
   fills left to right over one advance (--lp-adv). Only while the hero is
   cycling (.lp-auto); landing-showcase.js restarts it (.is-run) each step. */
.lpc__progress {
    position: absolute; inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}
.lpc__progress i {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: #fff;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.3s;
}
.lp-auto .lpc__progress i { opacity: 0.5; }
.lp-auto .lpc__progress i.is-run { animation: lpcProgress var(--lp-adv, 4.01s) linear forwards; }
@keyframes lpcProgress { to { transform: scaleX(1); } }

/* Pause / play for the auto-advance (step 1 only; Back takes its spot later). */
.lpc__play {
    width: 34px; height: 34px;
    flex: 0 0 34px;
    display: grid; place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--lpc-line);
    background: var(--lpc-fill);
    color: var(--sub);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lpc__play:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); }
.lpc__play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lpc__play .material-icons { font-size: 18px; }

/* ── TV: Rotation Club / Rewatch Party ─────────────────────────── */
.lpc__modes { display: grid; gap: 10px; }
.lpc__mode {
    display: flex; align-items: center; gap: 14px;
    padding: 16px; text-align: left;
    border: 1px solid var(--lpc-line); background: var(--lpc-fill); color: var(--ink);
    border-radius: 16px; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.12s;
}
.lpc__mode:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.lpc__mode:active { transform: scale(0.98); }
.lpc__mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lpc__mode.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lpc__mode > .material-icons {
    flex: 0 0 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; font-size: 24px;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.lpc__mode > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.lpc__mode strong { font-size: 1rem; font-weight: 800; }
.lpc__mode small { font-size: 0.82rem; line-height: 1.4; color: var(--sub); }

/* ── Club rules ────────────────────────────────────────────────── */
.lpc__lede { margin: -8px 0 14px; font-size: 0.86rem; line-height: 1.5; color: var(--sub); }
.lpc__rules {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 372px; overflow-y: auto; overscroll-behavior: contain;
    margin: 0 -4px; padding: 2px 4px;
}
.lpc__rule { border: 1px solid var(--lpc-line); background: var(--lpc-fill); border-radius: 14px; transition: border-color 0.2s, background 0.2s; }
.lpc__rule.is-on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.lpc__rule-head {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.lpc__rule-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.lpc__rule-icon { font-size: 20px; color: var(--sub); }
.lpc__rule.is-on .lpc__rule-icon { color: var(--accent); }
.lpc__rule-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lpc__rule-text strong { font-size: 0.92rem; font-weight: 700; }
.lpc__rule-text small { font-size: 0.78rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__rule.is-todo .lpc__rule-text small { color: #fcd34d; }
.lpc__switch { flex: 0 0 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background 0.2s; }
.lpc__switch i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.lpc__rule.is-on .lpc__switch { background: var(--accent); }
.lpc__rule.is-on .lpc__switch i { transform: translateX(14px); background: #06201d; }
.lpc__rule-ed { padding: 2px 14px 14px; animation: lpcIn 0.25s ease; }
.lpc__ed-hint { margin: 0 0 10px; font-size: 0.8rem; color: var(--sub); line-height: 1.45; }
.lpc__years { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lpc__years span { color: var(--sub); font-size: 0.85rem; }
.lpc__years input, .lpc__auto input, .lpc__filter {
    font: inherit; font-size: 16px; color: var(--ink);
    background: var(--lpc-field); border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px; padding: 9px 12px; outline: none; color-scheme: dark;
}
.lpc__years input { width: 104px; }
.lpc__years input:focus, .lpc__auto input:focus, .lpc__filter:focus { border-color: var(--accent); }
.lpc__auto { position: relative; }
.lpc__auto > .material-icons { position: absolute; left: 10px; top: 10px; font-size: 18px; color: var(--sub); pointer-events: none; }
.lpc__auto input { width: 100%; padding-left: 36px; }
.lpc__sugg { list-style: none; margin: 6px 0 0; padding: 0; }
.lpc__sugg:empty { display: none; }
.lpc__sugg button {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.lpc__sugg button:hover, .lpc__sugg button:focus-visible { background: rgba(255, 255, 255, 0.07); outline: none; }
.lpc__sugg img, .lpc__sugg button > .material-icons { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 18px; color: var(--sub); }
.lpc__sugg span { min-width: 0; display: flex; flex-direction: column; }
.lpc__sugg strong { font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__sugg small { font-size: 0.74rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc__sugg-note { font-size: 0.8rem; color: var(--sub); padding: 4px 2px; }
.lpc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lpc__tags:empty { display: none; }
.lpc__tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 4px 4px 11px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink);
}
.lpc__tag button { border: 0; background: none; color: var(--sub); padding: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.lpc__tag button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); }
.lpc__tag .material-icons { font-size: 14px; }
.lpc__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.lpc__opts--scroll { max-height: 168px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.lpc__opt {
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 11px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16); background: none; color: var(--sub);
    cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lpc__opt:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.lpc__opt.is-on { color: #06201d; background: var(--accent); border-color: var(--accent); }
.lpc__opt[hidden] { display: none; }
.lpc__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lpc-field); margin-bottom: 10px; }
.lpc__seg button { border: 0; background: none; color: var(--sub); font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.lpc__seg button.is-on { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.lpc__filter { display: block; width: 100%; margin-bottom: 10px; font-size: 16px; }

/* First pick: the active rules, and results that don't fit them */
.lpc__rulenote {
    display: flex; align-items: flex-start; gap: 8px;
    margin: -6px 0 12px; padding: 9px 12px;
    border-radius: 12px; font-size: 0.8rem; line-height: 1.45; color: var(--sub);
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.lpc__rulenote .material-icons { font-size: 17px; color: var(--accent); margin-top: 1px; }
.lpc__results li.is-bad .lpc__res { opacity: 0.75; }
.lpc__results li.is-bad .lpc__res-add { opacity: 1; color: #fca5a5; }
.lpc__res em { font-style: normal; font-size: 0.76rem; line-height: 1.35; color: #fca5a5; white-space: normal; }

/* "You can change this later" notes on each step. */
.lpc__later {
    display: flex; align-items: flex-start; gap: 7px;
    margin: 14px 2px 0;
    font-size: 0.8rem; line-height: 1.45; color: var(--sub);
}
.lpc__later .material-icons { font-size: 15px; margin-top: 2px; color: var(--accent); opacity: 0.85; }

/* Keyboard-highlighted autocomplete row (Up / Down, Enter takes it). */
.lpc__res.is-active, .lpc__sugg button.is-active { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.lpc__res.is-active .lpc__res-add { opacity: 1; }

/* Quick check: tap the named icon (ajax/landing-human.php). */
.lpc__lede strong { color: var(--ink); }
.lpc__check { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.lpc__check-opt {
    aspect-ratio: 1;
    display: grid; place-items: center;
    border: 1px solid var(--lpc-line); background: var(--lpc-fill); color: var(--ink);
    border-radius: 16px; cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.12s;
}
.lpc__check-opt .material-icons { font-size: 34px; }
.lpc__check-opt:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.lpc__check-opt:active { transform: scale(0.95); }
.lpc__check-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lpc__check-opt.is-picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lpc__check-ok {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 10px;
    padding: 18px; border-radius: 16px;
    font-weight: 700;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    animation: lpcPop 0.3s ease;
}
.lpc__check-ok .material-icons { color: var(--accent); font-size: 26px; }
.lpc__check-msg { margin: 12px 2px 0; min-height: 1.2em; font-size: 0.84rem; color: #fca5a5; }
.lpc__check.is-shake { animation: lpcShake 0.35s ease; }
@keyframes lpcShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .lpc__check.is-shake { animation: none; } }
.lpc__hint a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Phones: name suggestions are one swipeable row instead of wrapping. */
@media (max-width: 575.98px) {
    .lpc__chips {
        flex-wrap: nowrap;
        overflow-x: auto; overscroll-behavior-x: contain;
        margin: 0 -16px; padding: 2px 16px 4px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
                mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
    }
    .lpc__chips::-webkit-scrollbar { display: none; }
    .lpc__chip { flex: 0 0 auto; white-space: nowrap; }
}

/* ── Log in / Sign up modal on phones (index.php #raModal) ─────────────
   A bottom sheet like the site's other phone modals (Create a Club, Join;
   partials/create-club-modal.php): slides up from the bottom, 22px top
   corners, grab handle, clears the home indicator. Dark, like the desktop modal. */
@media (max-width: 991px) {
    .ra-modal-overlay { align-items: flex-end; padding: 0; overflow: hidden; }
    .ra-modal {
        max-width: 100%;
        max-height: 92dvh;
        margin: 0;
        overflow-y: auto; overscroll-behavior: contain;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
        transition: transform .35s cubic-bezier(0.32, 0.72, 0, 1);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .ra-modal-overlay.open .ra-modal { transform: none; }
    .ra-modal::before {   /* the grab handle */
        content: ""; display: block;
        width: 38px; height: 5px; margin: 8px auto 0;
        border-radius: 99px;
        background: rgba(255, 255, 255, 0.28);
    }
    .ra-modal-close { top: 12px; right: 12px; }
    .ra-modal-body { padding: 14px 14px 18px; }
    .ra-modal-head { padding-left: 8px; }
    .ra-modal-card { padding: 14px 14px 16px; }
    .ra-modal-tab { min-height: 44px; }
    .ra-field input { font-size: 16px; }   /* no iOS zoom on focus */
    .ra-oauth-row > a { height: 50px; border-radius: 14px; }
    .ra-modal-pending { border-radius: 14px; }
    .ra-modal-switch a { display: inline-flex; align-items: center; min-height: 44px; }
}
