/**
 * Chalk & Settle — Skins setup wizard (Phase 3 · screen 9 · standalone)
 * Wire: setup-screen-SKINS-APPROVED · June 10 2026
 */

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

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

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

.cs-sk-back {
  font-family: var(--font-body);
  font-size: 14px;
  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-sk-game {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

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

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

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

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

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

.cs-sk-p-name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  flex: 1;
  min-width: 0;
}

.cs-sk-p-ch {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 10px;
  flex-shrink: 0;
}

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

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

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

.cs-sk-p-strokes--gross {
  color: #6b655c;
  font-weight: 500;
}

.cs-sk-pot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
}

.cs-sk-pot-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  background: #efeae0;
  border-radius: 9px;
  padding: 3px;
}

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

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

.cs-sk-pot-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cs-sk-pot-field {
  flex: 1;
  min-width: 0;
}

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

.cs-sk-pot-in {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 10px;
  padding: 9px 12px;
}

.cs-sk-cur {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.cs-sk-pot-in input {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}

.cs-sk-pot-in input::-webkit-outer-spin-button,
.cs-sk-pot-in input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-sk-pot-calc {
  text-align: right;
  flex-shrink: 0;
}

.cs-sk-pot-big {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--forest);
}

.cs-sk-pot-sm {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.cs-sk-pot-foot {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8a8378;
  margin-top: 11px;
  line-height: 1.4;
  border-top: 1px solid #efeae0;
  padding-top: 10px;
}

.cs-sk-pot-foot b {
  color: var(--forest);
  font-family: var(--font-mono);
  font-weight: 600;
}

.cs-sk-type-seg {
  display: flex;
  gap: 5px;
  background: #efeae0;
  border-radius: 9px;
  padding: 3px;
}

.cs-sk-type-opt {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: #6b655c;
  padding: 7px;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-sk-type-opt.is-on {
  background: var(--paper);
  color: var(--forest);
}

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

.cs-sk-rule:last-child {
  margin-bottom: 0;
}

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

.cs-sk-rule-s {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.35;
}

.cs-sk-toggle {
  width: 40px;
  height: 23px;
  border-radius: 12px;
  background: var(--stone);
  position: relative;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

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

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

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

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

.cs-sk-opt-lbl {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: #8a8378;
  margin-bottom: 4px;
}

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

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

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

.cs-sk-opt-btn {
  width: 24px;
  height: 24px;
  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-sk-startbar {
  position: sticky;
  bottom: 0;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.cs-sk-start-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.cs-sk-summary-primary {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-sk-summary-secondary {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

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

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