/**
 * Chalk & Settle — Wolf setup wizard (Phase 3 · screen 7)
 * Wire: setup-screen-WOLF-APPROVED · June 10 2026
 */

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

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

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

.cs-wf-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-wf-game {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6b4c9a;
  font-weight: 600;
}

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

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

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

.cs-wf-players {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-wf-player {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  touch-action: none;
}

.cs-wf-player.is-dragging {
  opacity: 0.55;
}

.cs-wf-p-ord {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #efe7f3;
  color: #6b4c9a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.cs-wf-p-av {
  width: 25px;
  height: 25px;
  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-wf-p-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  flex: 1;
  min-width: 0;
}

.cs-wf-p-hcp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-right: 4px;
  flex-shrink: 0;
}

.cs-wf-p-strokes {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6b655c;
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}

.cs-wf-p-strokes.gets {
  color: #3b6d11;
  font-weight: 500;
}

.cs-wf-p-strokes.zero {
  color: var(--gold);
  font-weight: 500;
}

.cs-wf-p-drag {
  color: #c8c2b8;
  font-size: 14px;
  margin-left: 4px;
  cursor: grab;
  flex-shrink: 0;
  padding: 4px;
  user-select: none;
}

.cs-wf-order-note {
  font-size: 11px;
  color: #8a8378;
  margin-top: 7px;
  line-height: 1.4;
}

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

.cs-wf-pts-val {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efeae0;
}

.cs-wf-pts-val .cs-wf-pts-lbl {
  font-size: 12px;
  color: #6b655c;
  flex: 1;
}

.cs-wf-pts-in {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid #d4cec4;
  border-radius: 9px;
  padding: 6px 10px;
}

.cs-wf-cur {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

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

.cs-wf-pts-awards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-wf-award {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-wf-award-nm {
  font-size: 12.5px;
  color: var(--forest);
  flex: 1;
}

.cs-wf-award-desc {
  font-size: 10.5px;
  color: var(--muted);
}

.cs-wf-award-v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #6b4c9a;
  background: #efe7f3;
  border-radius: 7px;
  padding: 3px 9px;
  flex-shrink: 0;
}

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

.cs-wf-rule-l .cs-wf-rule-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.cs-wf-rule-l .cs-wf-rule-s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.cs-wf-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #d4cec4;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-wf-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
}

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

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

.cs-wf-toggle-sm {
  width: 32px;
  height: 19px;
}

.cs-wf-toggle-sm::after {
  width: 15px;
  height: 15px;
}

.cs-wf-mh {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

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

.cs-wf-mh-l .cs-wf-mh-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.cs-wf-mh-l .cs-wf-mh-s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.cs-wf-mh-expand {
  border-top: 1px solid #efeae0;
  background: #fbf9f4;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cs-wf-mh-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cs-wf-mhname {
  font-size: 12px;
  color: #6b655c;
}

.cs-wf-mh-pick {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 36px;
  padding: 0 4px;
}

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

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

.cs-wf-ovteaser-t {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

.cs-wf-ovteaser-s {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

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

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

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

.cs-wf-opt-lbl {
  font-size: 10px;
  color: #8a8378;
  margin-bottom: 4px;
}

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

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

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

.cs-wf-opt-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid #d4cec4;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
}

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

.cs-wf-confirm {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  padding: 0 2px;
  gap: 8px;
}

.cs-wf-confirm-games {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  flex-shrink: 0;
}

.cs-wf-confirm-mode {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-align: right;
}

.cs-wf-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: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cs-wf-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-wf-scrim.is-on {
  display: flex;
}

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

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

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

.cs-wf-money-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.cs-wf-money-hole {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  min-height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.cs-wf-money-hole.has-mult {
  border-color: rgba(154, 123, 45, 0.35);
  background: rgba(154, 123, 45, 0.08);
  color: var(--gold);
}

.cs-wf-money-par {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  font-size: 8px;
  line-height: 1;
  opacity: 0.65;
}

.cs-wf-money-num {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.cs-wf-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;
  margin-top: 12px;
}

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