/**
 * Chalk & Settle — Nine-Point setup wizard (Phase 3 · screen 8)
 * Wire: setup-screen-NINEPOINT-APPROVED · June 11 2026
 */

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

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

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

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

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

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

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

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

.cs-np-prow:last-child {
  margin-bottom: 0;
}

.cs-np-prow-av {
  width: 28px;
  height: 28px;
  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-np-prow-nm {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  flex: 1;
  min-width: 0;
}

.cs-np-prow-st {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.cs-np-prow-edit {
  color: #c8c2b8;
  font-size: 13px;
  margin-left: 4px;
  flex-shrink: 0;
}

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

.cs-np-board {
  display: flex;
  gap: 7px;
}

.cs-np-pip {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 6px;
  text-align: center;
}

.cs-np-pip-n {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
}

.cs-np-pip-l {
  font-family: var(--font-body);
  font-size: 11px;
  color: #8a8378;
  margin-top: 6px;
}

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

.cs-np-board-note b {
  color: #6b655c;
  font-weight: 600;
}

.cs-np-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;
}

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

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

.cs-np-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-np-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-np-toggle.is-on {
  background: var(--forest);
}

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

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

.cs-np-pts-lbl {
  font-family: var(--font-body);
  font-size: 13px;
  color: #6b655c;
  flex: 1;
}

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

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

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

.cs-np-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;
  -moz-appearance: textfield;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.cs-np-edit-field {
  margin-bottom: 12px;
}

.cs-np-edit-lbl {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cs-np-edit-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest);
  background: var(--cream);
}

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

  width: 100%;
  margin-top: 8px;
  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;
  min-height: var(--touch-min);
}
