/**
 * Chalk & Settle — 3-4-5 setup wizard (Phase 3 · screen 11)
 * Wire: setup-screen-3-4-5-APPROVED (v3 · June 15 2026)
 */

.cs-cu-screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0;
  max-width: 430px;
}

.cs-cu-screen.u-hidden {
  display: none;
}

.cs-cu-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  flex-shrink: 0;
}

.cs-cu-back {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--forest);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  min-height: var(--touch-min);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-game {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cs-cu-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 14px;
}

.cs-cu-sec {
  margin-top: 18px;
}

.cs-cu-sec-h {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.cs-cu-hint {
  color: #c8c2b8;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: auto;
}

.cs-cu-note {
  font-size: 12px;
  color: #8a8378;
  margin-top: 9px;
  line-height: 1.45;
  padding: 0 2px;
}

.cs-cu-note b {
  color: var(--olive);
  font-weight: 600;
}

.cs-cu-team {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.cs-cu-team-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}

.cs-cu-team-nm {
  font-family: var(--font-team);
  font-style: italic;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
}

.cs-cu-team-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.cs-cu-pchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-cu-pchip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
}

.cs-cu-pchip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--olive);
  flex-shrink: 0;
}

.cs-cu-pchip-nm {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-cu-team-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #efeae0;
  font-family: var(--font-body);
  font-size: 12px;
  color: #8a8378;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-who {
  font-weight: 600;
  color: var(--forest);
}

.cs-cu-host {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.cs-cu-edit {
  margin-left: auto;
  color: #c8c2b8;
  font-size: 13px;
}

.cs-cu-addteam {
  background: transparent;
  border: 1.5px dashed #c8c2b8;
  border-radius: 11px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #6b655c;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-cap-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 7px;
}

.cs-cu-invite {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 8px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-invite-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
}

.cs-cu-invite-t {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-cu-invite-s {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.cs-cu-invite-chev {
  margin-left: auto;
  color: #c8c2b8;
  font-size: 18px;
}

.cs-cu-rules-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}

.cs-cu-rule-grp {
  padding: 9px 0;
}

.cs-cu-rule-grp + .cs-cu-rule-grp {
  border-top: 1px solid #efeae0;
}

.cs-cu-rule-lbl {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-cu-rule-take {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--olive);
  font-weight: 600;
}

.cs-cu-rule-chiprow {
  display: flex;
  gap: 6px;
}

.cs-cu-rule-chip {
  flex: 1;
  border: 1.5px solid var(--stone);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: #6b655c;
  font-weight: 500;
  background: var(--cream);
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-rule-chip.is-on {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.cs-cu-house {
  width: 100%;
  min-height: 84px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--forest);
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.cs-cu-house::placeholder {
  color: #c0b9ad;
}

.cs-cu-house-examples {
  font-family: var(--font-body);
  font-size: 12px;
  color: #8a8378;
  margin-top: 8px;
  line-height: 1.45;
  padding: 0 2px;
}

.cs-cu-editnote {
  background: rgba(27, 61, 47, 0.05);
  border: 1px solid rgba(27, 61, 47, 0.12);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 8px;
}

.cs-cu-editnote-ic {
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}

.cs-cu-editnote-tx {
  font-family: var(--font-body);
  font-size: 12px;
  color: #5c6b5e;
  line-height: 1.45;
}

.cs-cu-editnote-tx b {
  color: var(--forest);
  font-weight: 600;
}

.cs-cu-settle-row {
  display: flex;
  gap: 6px;
  margin-bottom: 9px;
}

.cs-cu-settle-opt {
  flex: 1;
  border: 1.5px solid var(--stone);
  border-radius: 10px;
  padding: 11px 8px;
  text-align: center;
  background: var(--paper);
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-settle-opt.is-on {
  border-color: var(--forest);
  background: rgba(27, 61, 47, 0.06);
}

.cs-cu-settle-t {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.cs-cu-settle-s {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: #8a8378;
  margin-top: 3px;
  line-height: 1.3;
}

.cs-cu-stake-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-cu-stake-lbl {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--forest);
  font-weight: 500;
}

.cs-cu-stake-in {
  display: flex;
  align-items: center;
}

.cs-cu-stake-cur {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
}

.cs-cu-stake-in input {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--forest);
  width: 36px;
  text-align: right;
  outline: none;
}

.cs-cu-ovteaser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-ovteaser-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--forest);
}

.cs-cu-ovteaser-t {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}

.cs-cu-ovteaser-s {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.cs-cu-ovteaser-chev {
  margin-left: auto;
  color: #c8c2b8;
  font-size: 20px;
}

.cs-cu-opt-row {
  display: flex;
  gap: 8px;
}

.cs-cu-opt-card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.cs-cu-opt-lbl {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8a8378;
  margin-bottom: 5px;
}

.cs-cu-opt-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-cu-v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
}

.cs-cu-opt-step {
  display: flex;
  gap: 5px;
}

.cs-cu-opt-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid var(--stone);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-startbar {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.cs-cu-btn-start {
  width: 100%;
  background: var(--forest);
  color: #f2e3b6;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-cu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 33, 29, 0.35);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.cs-cu-scrim.is-on {
  display: flex;
}

.cs-cu-sheet {
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 430px;
  max-height: 70vh;
  overflow-y: auto;
}

.cs-cu-sheet-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--forest);
  margin-bottom: 12px;
}

.cs-cu-scorer-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest);
  margin-bottom: 8px;
  cursor: pointer;
  min-height: var(--touch-min);
}

.cs-cu-scorer-opt.is-on {
  border-color: var(--forest);
  background: rgba(27, 61, 47, 0.06);
}

.cs-cu-sheet-done {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--forest);
  color: #f2e3b6;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--touch-min);
}

.cs-cu-engine-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
