/* Shabbat Runner · общие элементы интерфейса */
.sr, .sr *, .sr *::before, .sr *::after { box-sizing: border-box; }
.sr {
  font-family: var(--sr-font); color: var(--sr-ink); line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* сброс через :where, чтобы у него была нулевая специфичность и классы компонентов всегда побеждали */
:where(.sr) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(.sr) ul { list-style: none; }
:where(.sr) button { font: inherit; color: inherit; }
:where(.sr) a { color: inherit; }
:where(.sr) img { display: block; }
.sr [hidden] { display: none !important; }
.sr :focus-visible { outline: 3px solid var(--sr-teal); outline-offset: 2px; }

/* типографика */
.sr-h1 { font-size: 25px; font-weight: 900; line-height: 1.2; text-wrap: balance; }
.sr-h2 { font-size: 19px; font-weight: 900; line-height: 1.25; }
.sr-text { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--sr-body); }
.sr-text--sm { font-size: 15px; line-height: 1.4; }
.sr-text--strong { font-weight: 800; color: var(--sr-ink); }
.sr-note { font-size: 13px; font-weight: 700; color: var(--sr-muted); }
.sr-warn { font-size: 14px; font-weight: 800; color: var(--sr-clay); }
.sr-link { color: var(--sr-teal); font-weight: 800; }

/* иконки: линейные, 24x24, цвет от родителя */
.sr-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-icon--20 { width: 20px; height: 20px; }
.sr-icon--18 { width: 18px; height: 18px; }
[dir="rtl"] .sr-icon--flip { transform: scaleX(-1); }

/* кнопки */
.sr-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: var(--sr-radius-btn);
  font-size: 17px; font-weight: 900; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer;
}
.sr-btn--gold {
  background: linear-gradient(135deg, var(--sr-cta-1), var(--sr-cta-2));
  border-bottom: 5px solid var(--sr-cta-edge);
  color: #fff; text-shadow: 0 1px 0 rgba(60, 32, 8, .25);
}
.sr-btn--gold:active { filter: brightness(.94); }
.sr-btn--sec {
  min-height: 52px; border-radius: 18px; background: var(--sr-surface); border: 2px solid var(--sr-line);
  color: var(--sr-sand-ink); font-size: 16px;
}
.sr-btn--sec:active { background: var(--sr-sand); }
.sr-btn--text { width: auto; min-height: 44px; padding: 0 10px; background: none; color: var(--sr-muted); font-size: 15px; font-weight: 800; white-space: nowrap; }
.sr-btn--link { color: var(--sr-teal); }
.sr-btn--auto { width: auto; white-space: nowrap; }
.sr-btn--square { width: 56px; min-height: 56px; padding: 0; flex: none; }
.sr-btn--round { width: 44px; min-height: 44px; padding: 0; flex: none; border-radius: 50%; background: none; }
.sr-btn--round-solid { background: rgba(255, 253, 248, .92); }
.sr-btn[disabled] { opacity: .5; cursor: default; }
.sr-btn__spark { color: var(--sr-spark); display: flex; }
.sr-btn--gold .sr-btn__spark { color: inherit; }

/* карточка и плитка иконки */
.sr-card { background: var(--sr-surface); border: 1px solid var(--sr-border); border-radius: var(--sr-radius-card); }
.sr-card--lift { box-shadow: 0 4px 16px rgba(110, 80, 40, .08); }
.sr-tile { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sr-tile--sm { width: 36px; height: 36px; border-radius: 12px; }
.sr-tile--gold { background: var(--sr-gold-tile); color: var(--sr-gold-ink); }
.sr-tile--teal { background: var(--sr-teal-tile); color: var(--sr-teal); }
.sr-tile--clay { background: var(--sr-clay-tile); color: var(--sr-clay); }
.sr-tile--sand { background: var(--sr-sand); color: var(--sr-sand-ink); }

/* плашка: счёт, жизни, таймер, баланс */
.sr-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px;
  background: var(--sr-surface); border: 1px solid var(--sr-border); font-size: 16px; font-weight: 900; white-space: nowrap;
}
.sr-pill__label { font-size: 12px; font-weight: 800; color: var(--sr-muted); }
.sr-pill__icon { display: flex; color: var(--sr-gold-ink); }

/* переключатель */
.sr-switch {
  width: 52px; height: 32px; flex: none; padding: 2px; border-radius: 16px; border: 2px solid #CDB58C; background: #EFE4D0;
  display: flex; justify-content: flex-start; cursor: pointer; transition: background .15s, border-color .15s;
}
.sr-switch__knob { width: 24px; height: 24px; border-radius: 50%; background: var(--sr-surface); box-shadow: 0 1px 3px rgba(43, 29, 18, .3); }
.sr-switch[aria-checked="true"] { background: var(--sr-teal); border-color: var(--sr-teal); justify-content: flex-end; }

/* строка «иконка + заголовок + пояснение»: правила, варианты, ссылки */
.sr-row { display: flex; align-items: center; gap: 12px; }
.sr-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-row__title { font-size: 15px; font-weight: 900; }
.sr-row__text { font-size: 14px; font-weight: 600; color: var(--sr-body); }
.sr-row__text--muted { font-size: 13px; font-weight: 700; color: var(--sr-muted); }
.sr-row__end { display: flex; align-items: center; gap: 4px; color: var(--sr-muted); }
.sr-rows { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.sr-option { padding: 10px 14px; border-radius: 18px; }

/* список ссылок в одной карточке: «не хватает искр» */
.sr-linklist { overflow: hidden; }
.sr-linklist__item { padding: 12px 14px; text-decoration: none; }
.sr-linklist__item + .sr-linklist__item { border-top: 1px solid #EFE4D0; }
.sr-linklist__item .sr-row__title { font-size: 16px; }
.sr-linklist__item .sr-row__text { color: var(--sr-muted); }

/* шаги обучения */
.sr-progress { display: flex; gap: 6px; flex: 1; }
.sr-progress__seg { flex: 1; height: 6px; border-radius: 3px; background: var(--sr-line); }
.sr-progress__seg.is-on { background: var(--sr-cta-1); }

/* остров спонсора */
.sr-sponsor { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; }
.sr-sponsor__text { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--sr-body); }
.sr-sponsor__mail { font-size: 15px; font-weight: 900; color: var(--sr-teal); user-select: all; -webkit-user-select: all; }
