/* ============================================================
   Sound settings UI — پنل «صدا»
   مصرف‌کنندهٔ design tokens موجود (style/theme.css + newStyle.css)
   پیشوند کلاس‌ها: ss- (sound settings)

   دو محل استفاده:
     • پروفایل  → تنظیمات → تب صدا       (.ss-root)
     • لابی     → تنظیمات لابی → تب صدا  (.ss-root.ss-root--compact)
   ============================================================ */

.ss-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  direction: rtl;
  font-family: inherit;
  color: var(--pk-text);
  text-align: right;
}

/* ---------- سربرگ ---------- */
.ss-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 2px 0;
}
.ss-head__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.ss-head__ico {
  font-size: 1.05rem;
  filter: drop-shadow(0 0 8px rgba(200, 170, 110, 0.45));
}
.ss-head__sub {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--pk-text);
  opacity: 0.82;
}
.ss-head .ss-row__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
}

/* ---------- کارت «قطع همه» ---------- */
.ss-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(10, 200, 185, 0.4);
  background: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.16),
    var(--pk-surface-2)
  );
  box-shadow: var(--pk-shadow-md);
}
.ss-master.is-muted {
  border-color: rgba(224, 128, 128, 0.45);
  background: linear-gradient(
    135deg,
    rgba(224, 128, 128, 0.14),
    var(--pk-surface-2)
  );
}
.ss-master__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ss-master__label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.ss-master__hint {
  font-size: 0.7rem;
  color: var(--pk-text);
  opacity: 0.85;
}
.ss-master__btn {
  flex-shrink: 0;
  min-width: 84px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(205, 250, 250, 0.3);
  background: var(--pk-grad-aqua);
  color: var(--pk-on-aqua);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ss-master__btn:hover {
  filter: brightness(1.08);
}
.ss-master__btn:active {
  transform: scale(0.96);
}
.ss-master.is-muted .ss-master__btn {
  background: var(--pk-grad-gold);
  border-color: rgba(240, 230, 210, 0.3);
  color: var(--pk-on-gold);
}

/* ---------- بخش‌ها ---------- */
.ss-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border: 1px solid var(--pk-line-3);
  border-radius: 16px;
  background: var(--pk-grad-panel);
}
.ss-section__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.ss-section__sub {
  margin: 2px 0 8px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--pk-text);
  opacity: 0.78;
}

/* ---------- ردیف‌ها ---------- */
.ss-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--pk-line-3);
}
.ss-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.ss-row.is-disabled {
  opacity: 0.5;
}
.ss-row--switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.ss-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ss-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ss-row__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pk-text-strong);
}
.ss-row__ico {
  font-size: 0.85rem;
  opacity: 0.9;
}
.ss-row__hint {
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--pk-text);
  opacity: 0.75;
}
.ss-row__value {
  flex-shrink: 0;
  min-width: 44px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-3);
  color: var(--pk-gold-1);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ---------- کلید (Switch) ---------- */
.ss-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}
.ss-switch__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ss-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-1);
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
  pointer-events: none;
}
.ss-switch__thumb {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pk-text-2);
  transform: translate(0, -50%);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.ss-switch__input:checked + .ss-switch__track {
  background: var(--pk-grad-aqua);
  border-color: rgba(205, 250, 250, 0.45);
  box-shadow: var(--pk-glow-aqua);
}
.ss-switch__input:checked + .ss-switch__track .ss-switch__thumb {
  background: var(--pk-on-aqua);
  transform: translate(-20px, -50%);
}
.ss-switch__input:disabled {
  cursor: not-allowed;
}
.ss-switch__input:focus-visible + .ss-switch__track {
  box-shadow: var(--pk-focus);
}

/* ---------- اسلایدر ---------- */
.ss-slider {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ss-slider__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  direction: ltr;
}
.ss-slider__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(10, 200, 185, 0.65),
    rgba(200, 170, 110, 0.55)
  );
  border: 1px solid var(--pk-line-3);
}
.ss-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid var(--pk-on-aqua);
  background: var(--pk-grad-aqua);
  box-shadow: var(--pk-shadow-md);
  transition: transform 0.12s ease;
}
.ss-slider__input:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.ss-slider__input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(10, 200, 185, 0.65),
    rgba(200, 170, 110, 0.55)
  );
  border: 1px solid var(--pk-line-3);
}
.ss-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--pk-on-aqua);
  background: var(--pk-aqua);
  box-shadow: var(--pk-shadow-md);
}
.ss-slider__input:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* ---------- دکمه نمونه ---------- */
.ss-preview {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--pk-line-2);
  background: transparent;
  color: var(--pk-gold-2);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.ss-preview:hover {
  background: rgba(200, 170, 110, 0.14);
}
.ss-preview:active {
  transform: scale(0.95);
}
.ss-row.is-disabled .ss-preview {
  pointer-events: none;
}

/* ---------- دکمه‌های پایانی ---------- */
.ss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.ss-actions__btn {
  flex: 1 1 auto;
  min-width: 120px;
  border-radius: 12px !important;
  font-family: inherit;
}
.ss-actions__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.ss-actions__btn--ghost {
  background: transparent !important;
  border: 1px solid var(--pk-line-2) !important;
  color: var(--pk-text-2) !important;
}

/* ============================================================
   حالت فشرده (مودال لابی)
   ============================================================ */
.ss-root--compact {
  gap: 9px;
}
.ss-root--compact .ss-head__title {
  font-size: 0.88rem;
}
.ss-root--compact .ss-master {
  padding: 9px 11px;
  border-radius: 14px;
}
.ss-root--compact .ss-section {
  padding: 8px 10px 10px;
  border-radius: 14px;
}
.ss-root--compact .ss-row {
  padding: 7px 2px;
}
.ss-root--compact .ss-head__title .ss-row__icon {
  width: 20px;
  height: 20px;
}

/* ============================================================
   دکمه‌ی تنظیمات در هدر لابی

   توجه: اندازه، رنگ و حالت‌های hover/active این دکمه در newStyle.css
   تعریف شده‌اند و همان‌جا با سایر دکمه‌های هدر یکدست می‌شوند.
   اینجا فقط چیزی اضافه نکنید که با --lobby-hit تضاد داشته باشد،
   چون sound.css بعد از newStyle.css بارگذاری می‌شود.
   ============================================================ */
.lobby-header__settings {
  font-size: 1.05rem;
  line-height: 1;
}

/* ============================================================
   مودال تنظیمات لابی (تب‌دار)
   ============================================================ */
.ls-modal {
  align-items: center;
  justify-content: center;
  padding: 12px;
  direction: rtl;
}
.ls-modal__content {
  display: flex;
  flex-direction: column;
  width: min(96%, 520px);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}
.ls-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pk-line-3);
}
.ls-modal__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.ls-modal__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-1);
  color: var(--pk-text-2);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.ls-modal__close:hover {
  background: var(--pk-surface-3);
  color: var(--pk-gold-1);
}
.ls-modal__close:active {
  transform: scale(0.94);
}

/* تب‌ها */
.ls-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ls-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--pk-line);
  border-bottom: none;
  background: var(--pk-surface-2);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.ls-tab.is-active {
  background: linear-gradient(
    160deg,
    rgba(10, 200, 185, 0.18),
    var(--pk-surface-2)
  );
  border-color: rgba(10, 200, 185, 0.55);
  color: var(--pk-gold-1);
}
.ls-tab__badge {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(10, 200, 185, 0.22);
  color: var(--pk-aqua);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* بدنه */
.ls-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--pk-line-3);
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.ls-pane {
  display: none;
}
.ls-pane.is-active {
  display: block;
}
.ls-pane__empty {
  padding: 18px 8px;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--pk-text);
  opacity: 0.8;
  text-align: center;
}

/* ---------- تب «اطلاعات لابی» ---------- */
.ls-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ls-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-3);
  background: var(--pk-surface-2);
  font-size: 0.78rem;
}
.ls-info__key {
  color: var(--pk-text);
  opacity: 0.85;
}
.ls-info__value {
  color: var(--pk-gold-1);
  font-weight: 700;
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}
.ls-info__value--rtl {
  direction: rtl;
}

/* ---------- تب «اعضا» ---------- */
.ls-members {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ls-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-3);
  background: var(--pk-surface-2);
  font-size: 0.78rem;
  color: var(--pk-text-strong);
}
.ls-member__avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-3) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pk-gold-1);
}
.ls-member__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-member__tag {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid var(--pk-line-2);
  color: var(--pk-gold-2);
}
.ls-member__tag--owner {
  border-color: rgba(200, 170, 110, 0.6);
  background: rgba(200, 170, 110, 0.16);
}
.ls-member__tag--ready {
  border-color: rgba(10, 200, 185, 0.55);
  background: rgba(10, 200, 185, 0.16);
  color: var(--pk-aqua);
}

/* ============================================================
   تنظیمات بازی (GameConfig) — فرم داخل تب لابی و مرحله‌ی ساخت
   ============================================================ */
.ls-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 6px;
  direction: rtl;
}
.ls-form--readonly {
  opacity: 0.72;
}
.ls-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ls-field__label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.ls-field__hint {
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--pk-text-2);
}
.ls-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-2);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pk-gold-2) 50%),
    linear-gradient(135deg, var(--pk-gold-2) 50%, transparent 50%);
  background-position: calc(0% + 14px) calc(50% + 2px), calc(0% + 19px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.ls-select:focus {
  outline: none;
  border-color: rgba(10, 200, 185, 0.6);
}
.ls-select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* دکمه‌های سگمنتی (تک‌نفره/تیمی، ۱/۳/۵) */
.gc-seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gc-seg__btn {
  flex: 1 1 0;
  min-width: 84px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-2);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gc-seg__btn:hover:not(:disabled) {
  border-color: var(--pk-gold-3);
}
.gc-seg__btn.is-active {
  background: linear-gradient(160deg, rgba(10, 200, 185, 0.22), var(--pk-surface-2));
  border-color: rgba(10, 200, 185, 0.6);
  color: var(--pk-gold-1);
}
.gc-seg__btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* جفت‌های هم‌تیمی منچ */
.gc-pairs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gc-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 1 1 0;
  min-width: 132px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--pk-line-2);
  background: var(--pk-surface-2);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gc-pair:hover:not(:disabled) {
  border-color: var(--pk-gold-3);
}
.gc-pair.is-active {
  background: linear-gradient(160deg, rgba(10, 200, 185, 0.22), var(--pk-surface-2));
  border-color: rgba(10, 200, 185, 0.6);
  color: var(--pk-gold-1);
}
.gc-pair:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.gc-pair__plus {
  color: var(--pk-text-2);
  font-weight: 400;
}
.gc-pair__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.gc-pair__dot--red { background: #e04a4a; }
.gc-pair__dot--blue { background: #3f7ce0; }
.gc-pair__dot--green { background: #3fae63; }
.gc-pair__dot--yellow { background: #e0c341; }

/* وضعیت فرم */
.ls-form__status {
  min-height: 18px;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--pk-text-2);
  white-space: pre-line;
}
.ls-form__status--pending { color: var(--pk-gold-2); }
.ls-form__status--ok { color: var(--pk-aqua); }
.ls-form__status--error { color: #ff7b7b; }
.ls-form__notice {
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(200, 170, 110, 0.42);
  background: rgba(200, 170, 110, 0.1);
  color: var(--pk-gold-2);
  font-size: 0.74rem;
  line-height: 1.7;
}

/* مرحله‌ی تنظیمات در انتخابگر بازی */
.gamePicker-styles {
  padding: 4px 2px 10px;
  max-height: 52vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.gamePicker-item__cfg {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.7rem;
  opacity: 0.75;
}

/* نشانگر خلاصه‌ی تنظیمات در هدر لابی
   استایل کامل در newStyle.css تعریف شده است (هم‌راستا با بج ظرفیت).
   چون sound.css بعد از آن لود می‌شود، اینجا فقط رنگ را override می‌کنیم
   تا با تم آبی‌فیروزه‌ای صداسازی هم‌خوان بماند.

   توجه: `config` اطلاعاتِ ثانویه است؛ اگر هم‌رنگ بج `۰/۲` شود، هر دو
   یک‌وزن دیده می‌شوند و چشم نمی‌داند کدام مهم‌تر است. پس طلاییِ
   کم‌رنگ (--pk-text-2) نگه داشته می‌شود، نه فیروزه‌ای. */
.lobby-header__config {
  color: var(--pk-text-2);
  font-weight: 600;
}

/* ============================================================
   پروفایل: ردیف دکمه‌ی «تنظیمات» (بعد از رتبه‌بندی)
   ============================================================ */
.st-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0;
  width: 100%;
  max-width: 420px;
  direction: rtl;
}
.st-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--pk-line-2);
  background: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.18),
    rgba(200, 170, 110, 0.08)
  );
  color: var(--pk-gold-1);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.st-profile-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(10, 200, 185, 0.28),
    rgba(200, 170, 110, 0.12)
  );
}
.st-profile-btn:active {
  transform: scale(0.96);
}
.st-profile-btn__icon {
  font-size: 1rem;
  color: var(--pk-aqua);
  filter: drop-shadow(0 0 8px rgba(10, 200, 185, 0.45));
}
.st-profile-btn__hint {
  min-width: 42px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pk-surface-3);
  border: 1px solid var(--pk-line);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: var(--pk-text-2);
}
.st-profile-btn__hint.is-muted {
  border-color: rgba(224, 128, 128, 0.55);
  color: var(--pk-danger);
}

/* ============================================================
   مودال «تنظیمات» پروفایل
   ============================================================ */
.st-modal {
  align-items: center;
  justify-content: center;
  padding: 12px;
  direction: rtl;
}
.st-modal__content {
  display: flex;
  flex-direction: column;
  width: min(96%, 520px);
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}
.st-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pk-line-3);
}
.st-modal__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--pk-gold-1);
}
.st-modal__close {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--pk-line);
  background: var(--pk-surface-1);
  color: var(--pk-text-2);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.st-modal__close:hover {
  background: var(--pk-surface-3);
  color: var(--pk-gold-1);
}
.st-modal__close:active {
  transform: scale(0.94);
}

.st-tabs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.st-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--pk-line);
  border-bottom: none;
  background: var(--pk-surface-2);
  color: var(--pk-text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.st-tab.is-active {
  background: linear-gradient(
    160deg,
    rgba(10, 200, 185, 0.18),
    var(--pk-surface-2)
  );
  border-color: rgba(10, 200, 185, 0.55);
  color: var(--pk-gold-1);
}
.st-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--pk-line-3);
  scrollbar-width: thin;
  scrollbar-color: var(--pk-gold-3) transparent;
}
.st-pane {
  display: none;
}
.st-pane.is-active {
  display: block;
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 480px) {
  .ls-modal__content,
  .st-modal__content {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }
  .ss-actions__btn {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-master__btn,
  .ss-switch__thumb,
  .ss-switch__track,
  .ss-preview,
  .ls-modal__close,
  .lobby-header__settings {
    transition: none;
  }
}
