/**
 * Chalk & Settle — Scotch setup wizard (Phase 3 · screen 4)
 * Wire: setup-screen-SCOTCH-APPROVED
 */

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

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

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

.cs-sc-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-sc-game {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #1b3d2f;
  font-weight: 600;
}

.cs-sc-game svg {
  flex-shrink: 0;
}

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

.cs-sc-sec {
  margin-top: 16px;
}

.cs-sc-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-sc-hint {
  color: #c8c2b8;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: auto;
}

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

.cs-sc-team-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cs-sc-team-name {
  font-family: var(--font-display-alt, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 15px;
  color: var(--forest);
  font-weight: 600;
}

.cs-sc-team-slots {
  display: flex;
  gap: 7px;
}

.cs-sc-slot {
  flex: 1;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: var(--touch-min);
  font-family: inherit;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.cs-sc-slot-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--olive);
  flex-shrink: 0;
}

.cs-sc-slot-nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.cs-sc-slot-st {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.cs-sc-slot-st--zero {
  color: #9a7b2d;
  font-weight: 500;
}

.cs-sc-slot-st--gets {
  color: #3b6d11;
  font-weight: 500;
}

.cs-sc-slot-edit {
  margin-left: auto;
  color: #c8c2b8;
  font-size: 13px;
  flex-shrink: 0;
}

.cs-sc-vs {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}

.cs-sc-note {
  font-size: 12px;
  color: #8a8378;
  margin-top: 10px;
  line-height: 1.4;
  padding: 0 2px;
}

.cs-sc-pts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-sc-pts-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.cs-sc-pts-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.cs-sc-pts-in {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 9px;
  padding: 8px 11px;
}

.cs-sc-pts-in .cs-sc-cur {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #9a7b2d;
}

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

.cs-sc-escal {
  background: #fbf9f4;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.cs-sc-escal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
}

.cs-sc-escal-row + .cs-sc-escal-row {
  border-top: 1px solid #efeae0;
}

.cs-sc-escal-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-sc-mult {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #9a7b2d;
  background: #f3ecd9;
  border-radius: 5px;
  padding: 2px 7px;
}

.cs-sc-escal-s {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.cs-sc-rule {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.cs-sc-rule-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}

.cs-sc-rule-s {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.cs-sc-rule-s em {
  font-style: italic;
}

.cs-sc-toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--stone);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-sc-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  transition: left 0.2s ease, right 0.2s ease;
}

.cs-sc-toggle.is-on {
  background: var(--forest);
}

.cs-sc-toggle.is-on::after {
  left: auto;
  right: 2px;
}

.cs-sc-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;
  font-family: inherit;
  text-align: left;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

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

.cs-sc-ovteaser-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}

.cs-sc-ovteaser-s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.cs-sc-ovteaser-chev {
  margin-left: auto;
  color: #c8c2b8;
  font-size: 20px;
  flex-shrink: 0;
}

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

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

.cs-sc-opt-lbl {
  font-size: 11px;
  color: #8a8378;
  margin-bottom: 5px;
}

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

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

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

.cs-sc-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-size: 14px;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
  min-height: 26px;
  -webkit-tap-highlight-color: transparent;
}

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

.cs-sc-btn-start {
  width: 100%;
  min-height: var(--touch-min);
  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;
  -webkit-tap-highlight-color: transparent;
}

.cs-sc-btn-start:active {
  opacity: 0.94;
  transform: scale(0.99);
}

.cs-sc-scrim {
  position: fixed;
  inset: 0;
  z-index: 540;
  background: rgba(27, 61, 47, 0.34);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

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

.cs-sc-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--cream);
  border-radius: 26px 26px 0 0;
  padding: 8px 20px 22px;
  max-height: 88vh;
  overflow-y: auto;
}

.cs-sc-sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--stone);
  margin: 6px auto 14px;
}

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

.cs-sc-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-sc-pick {
  border: 1.5px solid var(--stone);
  border-radius: 9px;
  padding: 10px 14px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  min-height: var(--touch-min);
}

.cs-sc-pick.is-on {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

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

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