/**
 * Chalk & Settle — Vegas setup wizard (Phase 3 · screen 6)
 * Wires: setup-screen-VEGAS-APPROVED (fixed + left-right)
 */

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

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

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

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

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

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

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

.cs-vg-tf-tabs {
  display: flex;
  gap: 5px;
  background: #efeae0;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 10px;
}

.cs-vg-tf-tab {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: #6b655c;
  padding: 7px 4px;
  border-radius: 7px;
  line-height: 1.3;
  border: none;
  background: transparent;
  cursor: pointer;
  min-height: var(--touch-min);
  -webkit-tap-highlight-color: transparent;
}

.cs-vg-tf-tab.is-on {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cs-vg-tf-tab .cs-vg-tf-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}

.cs-vg-teams {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cs-vg-team {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

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

.cs-vg-team-name {
  font-family: var(--font-section);
  font-style: italic;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
}

.cs-vg-team-swap {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 36px;
  padding: 0 4px;
  -webkit-tap-highlight-color: transparent;
}

.cs-vg-team-players {
  display: flex;
  gap: 7px;
}

.cs-vg-tp {
  flex: 1;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.cs-vg-tp-nm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-vg-tp-st {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

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

.cs-vg-lr-explain {
  display: flex;
  gap: 11px;
  background: #eff3ec;
  border: 1px solid #dde7d6;
  border-radius: 11px;
  padding: 12px 13px;
  align-items: flex-start;
}

.cs-vg-lr-ic {
  flex-shrink: 0;
  line-height: 1.2;
  color: var(--olive);
}

.cs-vg-lr-tx {
  font-size: 12px;
  color: #3f5a40;
  line-height: 1.45;
}

.cs-vg-lr-tx b {
  color: var(--forest);
}

.cs-vg-lr-roster {
  margin-top: 10px;
}

.cs-vg-lr-roster-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.cs-vg-lr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-vg-lr-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 11px 4px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-vg-lr-ch {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

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

.cs-vg-pts-lbl {
  font-size: 12.5px;
  color: #6b655c;
  flex: 1;
}

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

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

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

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

.cs-vg-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-vg-rule-l .cs-vg-rule-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}

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

.cs-vg-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-vg-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  transition: left 0.2s ease, right 0.2s ease;
}

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

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

.cs-vg-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-vg-ovteaser-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

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

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

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

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

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

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

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

.cs-vg-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;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

.cs-vg-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;
  -webkit-tap-highlight-color: transparent;
}

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

.cs-vg-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-vg-sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--stone);
  margin: 6px auto 14px;
}

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

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

.cs-vg-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #d4cec4;
  border-radius: 20px;
  padding: 4px 11px 4px 4px;
  background: var(--cream);
  font-size: 12.5px;
  font-weight: 600;
  color: #6b655c;
  cursor: pointer;
  min-height: var(--touch-min);
}

.cs-vg-pick.is-on {
  border-color: var(--gold);
  background: rgba(154, 123, 45, 0.08);
  color: var(--forest);
}

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

.cs-vg-pick.is-on .cs-vg-pick-av {
  background: var(--gold);
  color: var(--paper);
}

.cs-vg-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-vg-engine-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
