/**
 * Chalk & Settle — Onboarding & Auth (Phase 3 · screen 1)
 * Wire: onboarding-flow-APPROVED (Philosophy 2 · explore-first)
 * Gold onboarding chrome per wire: guest pill, wall eyebrow, join CTA, selected roster.
 * Proof-card amounts remain the only gold money on the value screen.
 */

:root {
  --ob-dark-bg: #071610;
  --ob-dark-surface: #0c1f16;
  --ob-dark-border: rgba(255, 255, 255, 0.09);
  --ob-dark-text: #f4f0e8;
  --ob-dark-text-dim: #8fa096;
  --ob-dark-text-muted: #a9b5ac;
  --ob-dark-ink-soft: #ede7d6;
  --ob-dark-cta-text: #f2e3b6;
}

/* ── Shared overlays ─────────────────────────────────────────────────────── */
.cs-ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base);
}

.cs-ob-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

.cs-ob-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/* ── 1 · Value (dark welcome) ────────────────────────────────────────────── */
.cs-ob-value {
  background: var(--ob-dark-bg);
  color: var(--ob-dark-text);
}

.cs-ob-brandmark {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-ob-brandmark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}

.cs-ob-brandmark-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ob-dark-ink-soft);
}

.cs-ob-value-body {
  margin-top: 22px;
}

.cs-ob-eyebrow {
  font-family: var(--font-team);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.cs-ob-headline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ob-dark-text);
  line-height: 1.08;
  font-size: 26px;
}

.cs-ob-proof {
  margin-top: 16px;
  background: var(--ob-dark-surface);
  border: 1px solid var(--ob-dark-border);
  border-radius: 14px;
  padding: 12px 13px;
}

.cs-ob-proof-cap {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ob-dark-text-dim);
  margin-bottom: 8px;
}

.cs-ob-proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.cs-ob-proof-row + .cs-ob-proof-row {
  border-top: 1px solid #16301f;
}

.cs-ob-proof-nm {
  font-size: 12px;
  color: #d7ded7;
}

.cs-ob-proof-foot {
  font-size: 9.5px;
  color: var(--ob-dark-text-dim);
  margin-top: 8px;
  text-align: center;
}

.cs-ob-value-cta {
  margin-top: auto;
  padding-bottom: 22px;
}

.cs-ob-btn-primary {
  width: 100%;
  min-height: var(--touch-min);
  background: var(--forest);
  color: var(--paper);
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-btn-primary:active {
  opacity: 0.92;
  transform: scale(0.99);
}

.cs-ob-note {
  text-align: center;
  font-size: 10.5px;
  color: var(--ob-dark-text-dim);
  margin-top: 9px;
  line-height: 1.45;
}

.cs-ob-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--ob-dark-text-muted);
  font-weight: 600;
  margin-top: 13px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-legal {
  font-size: 10px;
  color: var(--ob-dark-text-dim);
  text-align: center;
  line-height: 1.45;
  margin-top: 10px;
}

/* ── Guest launcher chrome (light · on play.html) ─────────────────────────── */
body.cs-ob-guest-mode .greeting {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 23px;
  font-weight: 700;
  color: var(--forest);
  margin-top: 6px;
}

body.cs-ob-guest-mode #catalog-your-label {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-ob-guest-pill {
  font-size: 10.5px;
  color: #9a7b2d;
  font-weight: 600;
  background: #faf0d7;
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-guest-foot {
  margin: 18px 0 8px;
  background: var(--forest);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cs-ob-guest-foot-text {
  font-size: 11px;
  color: #d9e4db;
  line-height: 1.35;
  flex: 1;
}

.cs-ob-guest-foot-btn {
  background: var(--paper);
  color: var(--forest);
  border: none;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

/* ── 3 · Sign-up wall (bottom sheet) ─────────────────────────────────────── */
.cs-ob-wall {
  justify-content: flex-end;
  background: transparent;
}

.cs-ob-wall-dim {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 16, 0.55);
}

.cs-ob-wall-peek {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px;
  pointer-events: none;
}

.cs-ob-peek-title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ob-dark-text);
  font-weight: 700;
  margin-top: 30px;
  opacity: 0.5;
}

.cs-ob-peek-sub {
  font-size: 12px;
  color: var(--ob-dark-text-muted);
  opacity: 0.5;
  margin-top: 4px;
}

.cs-ob-wall-sheet {
  position: relative;
  background: #fdfcf9;
  border-radius: 20px 20px 0 0;
  margin: 0 -20px;
  padding: 8px 20px 22px;
  max-width: 430px;
  width: calc(100% + 40px);
  margin-left: auto;
  margin-right: auto;
  transform: translateY(100%);
  transition: transform var(--motion-base);
}

.cs-ob-wall.is-on .cs-ob-wall-sheet {
  transform: translateY(0);
}

.cs-ob-wall-grab {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 2px auto 14px;
}

.cs-ob-wall-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7b2d;
  font-weight: 600;
  margin-bottom: 7px;
}

.cs-ob-wall-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
}

.cs-ob-wall-copy {
  font-size: 12.5px;
  color: var(--text-secondary, #6b6560);
  margin-top: 8px;
  line-height: 1.5;
}

.cs-ob-wall-auth {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-ob-btn-forest {
  width: 100%;
  min-height: var(--touch-min);
  background: var(--forest);
  color: var(--ob-dark-cta-text);
  border: none;
  border-radius: 11px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-btn-outline {
  width: 100%;
  min-height: var(--touch-min);
  background: var(--paper);
  color: var(--forest);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-wall-note {
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

.cs-ob-wall-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ── 4 · Name step (light) ───────────────────────────────────────────────── */
.cs-ob-name {
  background: var(--cream);
}

.cs-ob-name-top {
  margin-top: 32px;
}

.cs-ob-name-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
}

.cs-ob-name-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.cs-ob-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cs-ob-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #6b6560);
  margin-bottom: 5px;
  display: block;
}

.cs-ob-input {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  font-size: 13px;
  color: var(--forest);
  font-family: var(--font-body);
  box-sizing: border-box;
  min-height: var(--touch-min);
}

.cs-ob-laternote {
  background: #efeae0;
  border: none;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 11px;
  color: #6b655c;
  line-height: 1.45;
  margin-top: 3px;
}

.cs-ob-name-cta {
  margin-top: auto;
  margin-bottom: 20px;
}

.cs-ob-skip {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary, #6b6560);
  margin-top: 11px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: var(--touch-min);
}

/* ── QR · Join (dark) ────────────────────────────────────────────────────── */
.cs-ob-join {
  background: var(--ob-dark-bg);
  color: var(--ob-dark-text);
  min-height: 100dvh;
}

.cs-ob-join-top {
  margin-top: 36px;
}

.cs-ob-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10271b;
  border: 1px solid var(--ob-dark-border);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 10.5px;
  color: #8fb39c;
  font-weight: 500;
}

.cs-ob-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fcf97;
  animation: cs-ob-pulse 1.8s ease infinite;
}

@keyframes cs-ob-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.cs-ob-join-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ob-dark-text);
  line-height: 1.12;
  margin-top: 13px;
}

.cs-ob-join-game {
  font-size: 12px;
  color: var(--ob-dark-text-muted);
  font-weight: 500;
  margin-top: 7px;
}

.cs-ob-join-q {
  font-size: 11.5px;
  color: var(--ob-dark-text-muted);
  margin-top: 13px;
  margin-bottom: 8px;
}

.cs-ob-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-ob-roster-pl {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ob-dark-surface);
  border: 1px solid #1e3528;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-btn-gold {
  width: 100%;
  min-height: var(--touch-min);
  background: #c9a84c;
  color: #071610;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-ob-btn-gold:active {
  opacity: 0.92;
  transform: scale(0.99);
}

.cs-ob-roster-pl.is-sel {
  border-color: #c9a84c;
  background: #11241a;
}

.cs-ob-roster-av {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #16301f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #9fbfac;
  flex-shrink: 0;
}

.cs-ob-roster-pl.is-sel .cs-ob-roster-av {
  background: #c9a84c;
  color: #071610;
}

.cs-ob-roster-nm {
  font-size: 12px;
  color: #d7ded7;
  font-weight: 500;
}

.cs-ob-roster-pl.is-watch .cs-ob-roster-nm {
  color: var(--ob-dark-text-dim);
}

.cs-ob-join-cta {
  margin-top: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-ob-join-foot {
  text-align: center;
  font-size: 10px;
  color: #7e9387;
  line-height: 1.45;
}

.cs-ob-join-signup {
  text-align: center;
  font-size: 12px;
  color: var(--ob-dark-text-muted);
  font-weight: 600;
  margin-top: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: var(--touch-min);
}

.cs-ob-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
