/* The setup (Word Krieg’s journal 010; specs/local_play.md): the cards, the summary, the settings' sections, the steppers and the small board, as design/setup.html and design/setup_details.html draw them. Structure only: every colour, font and radius is a token. */

/* Start and Done: the footer's one wide button; a refusal under it */
.page__start { width: 100%; min-height: 52px; font-size: var(--font-size-m); }
.setup__refused { margin: 10px 0 0; text-align: center; color: var(--color-danger); font-size: var(--font-size-s); font-weight: var(--font-weight-semibold); }

/* A section of settings, its title and its reset link */
.setup { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 0; background: var(--color-surface); clip-path: var(--shape-cut); }
.setup__head { display: flex; justify-content: space-between; align-items: center; }
.setup__title { margin: 0; font-size: var(--font-size-s); font-weight: var(--font-weight-bold); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.setup__reset { color: var(--color-accent); font-size: var(--font-size-s); font-weight: var(--font-weight-semibold); }

/* The cards a setup chooses between, one on: each in the pill's sunk holder, the chosen in its glass ringed in the accent (Word Krieg’s journal 017, entry 04; journal 006) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 0; border-style: solid; border-width: 0; border-image: var(--frame-pill-holder); image-rendering: pixelated; background: none; text-align: left; }
.choice--on { border-image: var(--frame-pill-glass); }
.choice__title { font-weight: var(--font-weight-bold); }
.choice__hint { color: var(--color-text-muted); font-size: var(--font-size-xs); }
/* The accent's ring, one art pixel wide, on the stepped outline of the glass it surrounds: a layer an art pixel larger than the control, clipped to the ring */
.choice--on::before { content: ""; position: absolute; inset: -2px; background: var(--color-accent); clip-path: var(--shape-ring-glass); pointer-events: none; }

/* The board's field: the label and the steppers stacked, the board beside them */
.field--board { flex-direction: row; align-items: center; gap: 16px; }
.field__stack { flex: 1; display: flex; flex-direction: column; gap: 6px; }

/* A stepper: its name, − and + on the secondary Lip, 36 × 36, the value between */
.stepper { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.stepper__name { flex: 1; font-size: var(--font-size-s); }
.stepper__step { display: flex; align-items: center; justify-content: center; width: 36px; min-height: 36px; font-size: var(--font-size-l); font-weight: var(--font-weight-bold); }
.stepper__step:active:not(:disabled), .stepper__step.stepper__step--pressed { padding-top: 8px; }
.stepper__step:disabled { color: var(--color-disabled-text); cursor: default; }
.stepper__value { min-width: 20px; text-align: center; font-weight: var(--font-weight-bold); font-variant-numeric: tabular-nums; }

/* The board, small: its cells in its shape, in rows centred on each other, each cell sized by the board's builder so the board keeps its width whatever its size; seat 0's start corner Blue, seat 1's Green */
.board-preview { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px; flex: none; align-self: center; border-radius: 0; background: var(--color-bed); }
.board-preview__row { display: flex; gap: 1px; }
.board-preview__cell { border-radius: 0; background: var(--color-tile-grey); }
.board-preview--hexagon { flex-direction: row; align-items: flex-start; gap: 0; }
.board-preview__column { display: flex; flex-direction: column; gap: 1px; }
.board-preview--hexagon .board-preview__cell { border-radius: var(--radius-pill); }
/* Each seat's start corner in its colour, in seat order (journal 009). */
.board-preview__cell--amber { background: var(--color-amber); }
.board-preview__cell--violet { background: var(--color-violet); }
.board-preview__cell--blue { background: var(--color-blue); }
.board-preview__cell--green { background: var(--color-green); }

/* The summary: the small board and the setup's facts; a tap opens the settings */
.proposal { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 16px; border-radius: 0; background: var(--color-surface); text-align: left; clip-path: var(--shape-cut); }
.proposal__head { display: flex; justify-content: space-between; align-items: center; }
.proposal__title { color: var(--color-text-muted); font-size: var(--font-size-s); font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: 0.06em; }
.proposal__change { color: var(--color-accent); font-size: var(--font-size-s); font-weight: var(--font-weight-semibold); }
.proposal__main { display: flex; gap: 18px; align-items: center; }
.proposal__facts { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: baseline; }
.proposal__key { color: var(--color-text-muted); font-size: var(--font-size-s); }
.proposal__fact { font-size: var(--font-size-s); font-weight: var(--font-weight-semibold); }
