/* Onboarding (/welcome), the rules summary shown to guests before a game, and the legal pages (/terms, /privacy, /rules).
   Built on the sign-in card (account.css) and the site tokens, so light and dark both follow the device. */

.si-card--wide { width: min(720px, 100%); }
.si-card [tabindex="-1"]:focus { outline: none; }
.ob-link { display: inline-flex; align-items: center; gap: 6px; justify-content: center; background: none; border: 0; padding: 6px 4px; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ob-link:hover { color: var(--ink); }
.ob-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.ob-link .bz-icon { width: 16px; height: 16px; }

/* Step indicator */
.ob-steps { margin-bottom: 20px; }
.ob-steps__list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; gap: 6px; align-items: flex-start; }
.ob-dot { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.ob-dot::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 3px; border-radius: 3px; background: var(--line); }
.ob-dot:first-child::before { display: none; }
.ob-dot.is-done::before, .ob-dot.is-now::before { background: var(--teal); }
.ob-dot__mark { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; background: var(--soft); color: var(--muted); border: 2px solid var(--line); position: relative; z-index: 1; }
.ob-dot.is-done .ob-dot__mark { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }
.ob-dot.is-now .ob-dot__mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-dot__mark .bz-icon { width: 14px; height: 14px; }
.ob-dot__label { font-size: 12px; font-weight: 600; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-dot.is-now .ob-dot__label { color: var(--ink); }
.ob-steps__count { margin: 0; text-align: center; }
/* Phones: seven columns are too narrow for any name, so the dots keep their names for screen readers only and the line under
   them names the current step in full. */
.ob-steps__name { display: none; }
@media (max-width: 480px) {
  .ob-dot__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ob-steps__name { display: inline; }
}

/* Terms summary */
.ob-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ob-bullets li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.ob-bullets__ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal-ink); }
.ob-bullets__ic .bz-icon { width: 18px; height: 18px; }

/* Chips */
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips--big .bz-chip { padding: 11px 20px; font-size: 16px; }
.ob-chips .bz-chip:disabled { opacity: .45; cursor: not-allowed; }
.ob-chips .bz-icon { width: 16px; height: 16px; }
.ob-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 600; }
.ob-bad { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--accent-text); font-weight: 600; }
.ob-ok .bz-icon, .ob-bad .bz-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ob-status { margin: 0; min-height: 1.5em; font-size: 14px; }

/* Look */
.ob-look { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 20px; align-items: start; }
.ob-look__stage { aspect-ratio: 4 / 5; border-radius: 22px; background: var(--soft); overflow: hidden; }
.ob-look__opts { gap: 14px; }
.ob-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); background: var(--sw, #888); padding: 0; cursor: pointer; }
.ob-swatch:hover { border-color: var(--muted); }
.ob-swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.ob-swatch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 560px) { .ob-look { grid-template-columns: 1fr; } .ob-look__stage { max-width: 200px; justify-self: center; width: 100%; } }

/* Friends */
.ob-code { background: var(--soft); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ob-code__val { font-family: var(--font-head); font-size: 30px; letter-spacing: .06em; }

/* Privacy */
.ob-pv { display: grid; grid-template-columns: 1fr minmax(160px, 210px); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ob-pv:first-child { border-top: 0; padding-top: 0; }
.ob-pv p { margin: 2px 0 0; }
@media (max-width: 560px) { .ob-pv { grid-template-columns: 1fr; } }

/* Buttons under optional steps */
.ob-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ob-foot__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Legal pages */
.lg-page { gap: 18px; max-width: 860px; }
.lg-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-doc { background: var(--surface); border-radius: 24px; padding: 28px 32px; line-height: 1.6; overflow-wrap: anywhere; }
.lg-doc h1 { font-family: var(--font-head); font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.lg-doc h2 { font-family: var(--font-head); font-size: 26px; margin: 28px 0 8px; }
.lg-doc h3 { font-family: var(--font-head); font-size: 20px; margin: 20px 0 6px; }
.lg-doc p { margin: 0 0 12px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 12px; padding-left: 24px; }
.lg-doc ul { list-style: disc; }
.lg-doc ul ul { list-style: circle; }
.lg-doc ol { list-style: decimal; }
.lg-doc li { margin: 4px 0; }
.lg-doc li > ul, .lg-doc li > ol { margin: 4px 0 0; }
.lg-doc blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--play); background: var(--level-soft); color: var(--level-ink); border-radius: 0 12px 12px 0; }
.lg-doc blockquote p { margin: 0; }
.lg-doc code { background: var(--soft); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.lg-doc pre.lg-code { margin: 0 0 14px; padding: 14px 16px; background: var(--soft); border: 2px solid var(--line); border-radius: 14px; overflow-x: auto; line-height: 1.45; font-size: 14px; }
.lg-doc pre.lg-code code { background: none; padding: 0; border-radius: 0; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.lg-doc a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .lg-doc a { color: #9DB6FF; }
.lg-table { overflow-x: auto; margin: 0 0 14px; border: 2px solid var(--line); border-radius: 14px; }
.lg-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.lg-doc .lg-table th { white-space: nowrap; }
.lg-doc .lg-table td:first-child, .lg-doc .lg-table td code { white-space: nowrap; }
.lg-table th { background: var(--soft); font-weight: 600; }
.lg-table tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .lg-doc { padding: 20px 18px; border-radius: 18px; } .lg-doc h1 { font-size: 32px; } }

/* The three agreements, each its own checkbox (owner rule 2026-10-16). */
.ob-agree { border: 0; margin: 0; padding: 12px 14px; border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.ob-agree__row { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.ob-agree__row input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); cursor: pointer; }
