/* ==========================================================================
   Prediction League — design system v4
   Mobile-first · RTL · scoped under .pl-scope / .pl-sheet so theme CSS
   cannot leak in and ours cannot leak out.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
.pl-scope,
.pl-sheet {
  --pl-font: 'PL Vazirmatn', Vazirmatn, Tahoma, system-ui, sans-serif;

  /* brand & sports (overridable from settings / Elementor) */
  --pl-brand: #2b59ff;
  --pl-on-brand: #ffffff;
  --pl-vb: #ff8a1f;
  --pl-fb: #10b26c;
  --pl-volt: #c6f135;

  /* neutrals — light */
  --pl-bg: #f3f5fa;
  --pl-surface: #ffffff;
  --pl-surface-2: #f5f7fc;
  --pl-surface-3: #eceff7;
  --pl-line: #e3e8f2;
  --pl-line-strong: #cfd6e4;
  --pl-text: #0e1726;
  --pl-text-2: #36415a;
  --pl-muted: #5d6884;
  --pl-ink: #0d1424;

  /* semantic */
  --pl-success: #12a150;
  --pl-success-soft: #e5f7ec;
  --pl-danger: #e5484d;
  --pl-danger-soft: #fdecec;
  --pl-warn: #c47a00;
  --pl-warn-soft: #fff4dc;
  --pl-gold: #f2b233;
  --pl-silver: #a9b4c6;
  --pl-bronze: #d58a51;

  /* derived */
  --pl-brand-ink: var(--pl-brand);
  --pl-brand-soft: color-mix(in srgb, var(--pl-brand) 10%, var(--pl-surface));
  --pl-brand-line: color-mix(in srgb, var(--pl-brand) 35%, var(--pl-surface));
  --pl-sport: var(--pl-vb);
  --pl-sport-soft: color-mix(in srgb, var(--pl-sport) 14%, var(--pl-surface));

  /* shape, depth, motion */
  --pl-radius: 20px;
  --pl-radius-sm: calc(var(--pl-radius) * .6);
  --pl-radius-xs: calc(var(--pl-radius) * .4);
  --pl-shadow-sm: 0 1px 2px rgba(14, 23, 38, .06);
  --pl-shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 8px 24px -12px rgba(14, 23, 38, .18);
  --pl-shadow-lg: 0 24px 64px -24px rgba(14, 23, 38, .45);
  --pl-ease: cubic-bezier(.2, .8, .2, 1);
  --pl-fast: 140ms;
  --pl-mid: 220ms;
  --pl-slow: 320ms;
}

.pl-scope[data-pl-sport="football"],
.pl-scope .pl-match--fb { --pl-sport: var(--pl-fb); }
.pl-scope .pl-match--vb { --pl-sport: var(--pl-vb); }

/* derived tokens are re-declared where their inputs can change (sport, mode) */
.pl-scope .pl-match {
  --pl-brand-soft: color-mix(in srgb, var(--pl-brand) 10%, var(--pl-surface));
  --pl-brand-line: color-mix(in srgb, var(--pl-brand) 35%, var(--pl-surface));
  --pl-sport-soft: color-mix(in srgb, var(--pl-sport) 14%, var(--pl-surface));
}

/* dark */
.pl-scope[data-pl-mode="dark"],
.pl-sheet[data-pl-mode="dark"],
.pl-scope .pl-match[data-pl-mode="dark"] {
  --pl-bg: #0a1020;
  --pl-surface: #121a2c;
  --pl-surface-2: #172138;
  --pl-surface-3: #1e2943;
  --pl-line: #243049;
  --pl-line-strong: #33415f;
  --pl-text: #eaf0ff;
  --pl-text-2: #c4cde3;
  --pl-muted: #94a0bd;
  --pl-success-soft: rgba(18, 161, 80, .16);
  --pl-danger-soft: rgba(229, 72, 77, .16);
  --pl-warn: #f5b83d;
  --pl-warn-soft: rgba(245, 184, 61, .14);
  --pl-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -16px rgba(0, 0, 0, .6);
  --pl-brand-ink: color-mix(in srgb, var(--pl-brand) 50%, white);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .pl-scope[data-pl-mode="auto"],
  .pl-sheet[data-pl-mode="auto"] {
    --pl-bg: #0a1020;
    --pl-surface: #121a2c;
    --pl-surface-2: #172138;
    --pl-surface-3: #1e2943;
    --pl-line: #243049;
    --pl-line-strong: #33415f;
    --pl-text: #eaf0ff;
    --pl-text-2: #c4cde3;
    --pl-muted: #94a0bd;
    --pl-success-soft: rgba(18, 161, 80, .16);
    --pl-danger-soft: rgba(229, 72, 77, .16);
    --pl-warn: #f5b83d;
    --pl-warn-soft: rgba(245, 184, 61, .14);
    --pl-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -16px rgba(0, 0, 0, .6);
    --pl-brand-ink: color-mix(in srgb, var(--pl-brand) 50%, white);
    color-scheme: dark;
  }
}

.pl-el-mode-dark .pl-scope, .pl-el-mode-dark .pl-scope .pl-match {
  --pl-bg: #0a1020; --pl-surface: #121a2c; --pl-surface-2: #172138; --pl-surface-3: #1e2943;
  --pl-line: #243049; --pl-line-strong: #33415f; --pl-text: #eaf0ff; --pl-text-2: #c4cde3; --pl-muted: #94a0bd;
  --pl-success-soft: rgba(18, 161, 80, .16); --pl-danger-soft: rgba(229, 72, 77, .16); --pl-warn: #f5b83d; --pl-warn-soft: rgba(245, 184, 61, .14);
  --pl-brand-ink: color-mix(in srgb, var(--pl-brand) 50%, white);
  color-scheme: dark;
}
.pl-el-mode-light .pl-scope, .pl-el-mode-light .pl-scope .pl-match {
  --pl-bg: #f3f5fa; --pl-surface: #ffffff; --pl-surface-2: #f5f7fc; --pl-surface-3: #eceff7;
  --pl-line: #e3e8f2; --pl-line-strong: #cfd6e4; --pl-text: #0e1726; --pl-text-2: #36415a; --pl-muted: #5d6884;
  --pl-success-soft: #e5f7ec; --pl-danger-soft: #fdecec; --pl-warn: #c47a00; --pl-warn-soft: #fff4dc;
  --pl-brand-ink: var(--pl-brand);
  color-scheme: light;
}

/* 2. Scoped base ----------------------------------------------------------- */
.pl-scope,
.pl-sheet {
  font-family: var(--pl-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pl-text);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "ss01";
}
.pl-scope *, .pl-scope *::before, .pl-scope *::after,
.pl-sheet *, .pl-sheet *::before, .pl-sheet *::after { box-sizing: border-box; }
.pl-scope :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure),
.pl-sheet :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.pl-scope :where(ul, ol), .pl-sheet :where(ul, ol) { list-style: none; }
.pl-scope :where(h1, h2, h3, h4), .pl-sheet :where(h1, h2, h3, h4) { font-family: inherit; color: inherit; letter-spacing: 0; line-height: 1.35; }
.pl-scope :where(button, input, select, textarea),
.pl-sheet :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.pl-scope :where(button), .pl-sheet :where(button) { cursor: pointer; background: none; border: 0; margin: 0; padding: 0; box-shadow: none; min-height: 0; line-height: inherit; }
.pl-scope :where(a), .pl-sheet :where(a) { color: var(--pl-brand-ink); text-decoration: none; }
.pl-scope :where(img), .pl-sheet :where(img) { max-width: 100%; height: auto; display: block; }
.pl-scope b, .pl-scope strong, .pl-sheet b, .pl-sheet strong { font-weight: 700; }
.pl-icon { flex: none; display: inline-block; vertical-align: middle; }
.pl-scope .screen-reader-text,
.pl-sheet .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pl-scope :focus-visible, .pl-sheet :focus-visible {
  outline: 2px solid var(--pl-brand);
  outline-offset: 2px;
  border-radius: var(--pl-radius-xs);
}
.pl-scope [hidden], .pl-sheet [hidden] { display: none !important; }

/* 3. Primitives ------------------------------------------------------------ */
.pl-scope .pl-btn,
.pl-sheet .pl-btn {
  --b-bg: var(--pl-surface-3);
  --b-fg: var(--pl-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 14px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: transform var(--pl-fast) var(--pl-ease), background-color var(--pl-mid) var(--pl-ease), box-shadow var(--pl-mid) var(--pl-ease), opacity var(--pl-mid);
  user-select: none;
}
.pl-scope .pl-btn:active, .pl-sheet .pl-btn:active { transform: scale(.97); }
.pl-scope .pl-btn--primary, .pl-sheet .pl-btn--primary {
  --b-bg: var(--pl-brand); --b-fg: var(--pl-on-brand);
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--pl-brand) 80%, transparent);
}
.pl-scope .pl-btn--primary:hover, .pl-sheet .pl-btn--primary:hover { --b-bg: color-mix(in srgb, var(--pl-brand) 88%, black); }
.pl-scope .pl-btn--soft, .pl-sheet .pl-btn--soft { --b-bg: var(--pl-brand-soft); --b-fg: var(--pl-brand); }
.pl-scope .pl-btn--ghost, .pl-sheet .pl-btn--ghost { --b-bg: transparent; --b-fg: var(--pl-text-2); border-color: var(--pl-line); }
.pl-scope .pl-btn--ghost:hover { --b-bg: var(--pl-surface-2); }
.pl-scope .pl-btn--danger { --b-fg: var(--pl-danger); }
.pl-scope .pl-btn--sm, .pl-sheet .pl-btn--sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.pl-scope .pl-btn--lg, .pl-sheet .pl-btn--lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.pl-scope .pl-btn--block, .pl-sheet .pl-btn--block { width: 100%; }
.pl-scope .pl-btn:disabled, .pl-sheet .pl-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.pl-scope .pl-btn.is-loading, .pl-sheet .pl-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.pl-scope .pl-btn.is-loading::after, .pl-sheet .pl-btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--b-fg) 30%, transparent); border-top-color: var(--b-fg);
  animation: pl-spin .7s linear infinite;
}

.pl-scope .pl-icon-btn, .pl-sheet .pl-icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 14px; color: var(--pl-text-2); background: var(--pl-surface-2);
  border: 1px solid var(--pl-line);
  transition: background-color var(--pl-mid), color var(--pl-mid), transform var(--pl-fast);
}
.pl-scope .pl-icon-btn:hover { background: var(--pl-surface-3); }
.pl-scope .pl-icon-btn:active { transform: scale(.94); }
.pl-scope .pl-icon-btn--danger { color: var(--pl-danger); background: var(--pl-danger-soft); border-color: transparent; }
.pl-scope .pl-icon-btn--glass { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }

.pl-scope .pl-link, .pl-sheet .pl-link {
  display: inline-flex; align-items: center; gap: 4px; color: var(--pl-brand-ink);
  font-weight: 700; font-size: 13.5px; min-height: 32px;
}
.pl-sheet .pl-link--center { display: flex; margin: 10px auto 0; }

.pl-scope .pl-alert, .pl-sheet .pl-alert {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-radius: 14px; font-size: 14px; font-weight: 500; margin-bottom: 14px;
  background: var(--pl-surface-2); color: var(--pl-text-2); border: 1px solid var(--pl-line);
}
.pl-scope .pl-alert--success, .pl-sheet .pl-alert--success { background: var(--pl-success-soft); color: var(--pl-success); border-color: transparent; }
.pl-scope .pl-alert--error, .pl-sheet .pl-alert--error { background: var(--pl-danger-soft); color: var(--pl-danger); border-color: transparent; }

.pl-scope .pl-msg { font-size: 13px; font-weight: 600; min-height: 0; }
.pl-scope .pl-msg:empty { display: none; }
.pl-scope .pl-msg.is-error { color: var(--pl-danger); }
.pl-scope .pl-msg.is-success { color: var(--pl-success); }

.pl-scope .pl-pair { display: inline-flex; align-items: center; gap: 4px; direction: rtl; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-scope .pl-pair i { font-style: normal; opacity: .45; font-weight: 500; }
.pl-scope .pl-pair.is-final { color: var(--pl-text); }

.pl-scope .pl-muted-note { display: inline-flex; align-items: center; gap: 6px; color: var(--pl-muted); font-size: 13px; font-weight: 500; }

.pl-scope .pl-select {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--pl-surface); border: 1px solid var(--pl-line); color: var(--pl-muted);
  transition: border-color var(--pl-mid);
}
.pl-scope .pl-select:focus-within { border-color: var(--pl-brand-ink); }
.pl-scope .pl-select select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0;
  color: var(--pl-text); font-weight: 600; font-size: 14px; padding: 0 0 0 22px; margin: 0;
  min-width: 120px; height: 42px; cursor: pointer; box-shadow: none;
}
.pl-scope .pl-select__chev { position: absolute; left: 12px; pointer-events: none; }
.pl-scope .pl-select--sm { min-height: 36px; padding: 0 10px; border-radius: 12px; }
.pl-scope .pl-select--sm select { height: 34px; min-width: 96px; font-size: 13px; }

.pl-scope .pl-empty {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 36px 20px; border-radius: var(--pl-radius);
  background: var(--pl-surface); border: 1px dashed var(--pl-line-strong); color: var(--pl-muted);
  grid-column: 1 / -1;
}
.pl-scope .pl-empty strong { color: var(--pl-text); font-size: 16px; }
.pl-scope .pl-empty p { font-size: 13.5px; max-width: 34ch; }
.pl-scope .pl-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--pl-sport-soft); color: var(--pl-sport); margin-bottom: 4px; }

/* status pill + countdown */
.pl-scope .pl-status {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--pl-surface-3); color: var(--pl-muted);
}
.pl-scope .pl-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pl-scope .pl-status--open { background: var(--pl-success-soft); color: var(--pl-success); }
.pl-scope .pl-status--open i { box-shadow: 0 0 0 0 currentColor; animation: pl-pulse 1.8s infinite; }
.pl-scope .pl-status--live { background: var(--pl-danger-soft); color: var(--pl-danger); }
.pl-scope .pl-status--live i { animation: pl-pulse 1.2s infinite; }
.pl-scope .pl-status--finished { background: var(--pl-surface-3); color: var(--pl-text-2); }
.pl-scope .pl-status--locked { background: var(--pl-warn-soft); color: var(--pl-warn); }

.pl-scope .pl-countdown {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  background: var(--pl-brand-soft); color: var(--pl-brand-ink); font-variant-numeric: tabular-nums;
}
.pl-scope .pl-countdown__suffix { font-weight: 500; opacity: .8; }
.pl-scope .pl-countdown.is-urgent { background: var(--pl-danger-soft); color: var(--pl-danger); }
.pl-scope .pl-countdown.is-over { background: var(--pl-warn-soft); color: var(--pl-warn); }
.pl-scope .pl-countdown.is-done { background: var(--pl-surface-3); color: var(--pl-text-2); }

/* logos & avatars */
.pl-scope .pl-logo {
  --s: 60px;
  display: grid; place-items: center; width: var(--s); height: var(--s); flex: none;
  border-radius: 50%; overflow: hidden; background: var(--pl-surface);
  box-shadow: 0 0 0 1px var(--pl-line), 0 6px 14px -8px rgba(14, 23, 38, .35);
}
.pl-scope .pl-logo img { width: 100%; height: 100%; object-fit: cover; }
.pl-scope .pl-logo--text { font-size: calc(var(--s) * .55); line-height: 1; }
.pl-scope .pl-logo--initial { background: var(--pl-sport-soft); color: var(--pl-sport); font-weight: 900; font-size: calc(var(--s) * .42); }

.pl-scope .pl-avatar {
  --s: 44px; display: grid; place-items: center; width: var(--s); height: var(--s); flex: none;
  border-radius: 50%; overflow: hidden; background: var(--pl-brand-soft); color: var(--pl-brand-ink);
  font-weight: 900; font-size: calc(var(--s) * .42);
}
.pl-scope .pl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pl-scope .pl-avatar--lg { --s: 60px; }
.pl-scope .pl-avatar--xl { --s: 88px; }

/* 4. Grid of cards --------------------------------------------------------- */
.pl-scope.pl-matches { container-type: inline-size; display: grid; gap: 16px; }
.pl-scope .pl-grid {
  --pl-n: var(--pl-cols-m, 1);
  --pl-gap: 16px;
  display: grid; gap: var(--pl-gap);
  grid-template-columns: repeat(auto-fill, minmax(max(290px, (100% - (var(--pl-n) - 1) * var(--pl-gap)) / var(--pl-n)), 1fr));
}
@container (max-width: 330px) { .pl-scope .pl-grid { grid-template-columns: 1fr; } }
@container (min-width: 640px) { .pl-scope .pl-grid { --pl-n: var(--pl-cols-t, 2); } }
@container (min-width: 1000px) { .pl-scope .pl-grid { --pl-n: var(--pl-cols, 3); --pl-gap: 20px; } }
.pl-scope .pl-grid.is-loading { opacity: .5; pointer-events: none; transition: opacity var(--pl-mid); }

/* 5. Toolbar: title, day tabs, league select ------------------------------- */
.pl-scope .pl-toolbar {
  display: grid; gap: 14px; padding: 14px;
  background: var(--pl-surface); border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow-sm);
}
.pl-scope .pl-toolbar__title { display: flex; align-items: center; gap: 12px; }
.pl-scope .pl-toolbar__title strong { display: block; font-size: 17px; font-weight: 800; }
.pl-scope .pl-toolbar__title small { display: block; color: var(--pl-muted); font-size: 12.5px; }
.pl-scope .pl-toolbar__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--pl-sport-soft); color: var(--pl-sport); flex: none; }
.pl-scope .pl-toolbar__controls { display: grid; gap: 10px; min-width: 0; }
.pl-scope .pl-toolbar .pl-select { width: 100%; }
.pl-scope .pl-toolbar .pl-select select { flex: 1; }
@container (min-width: 760px) {
  .pl-scope .pl-toolbar { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 12px 14px 12px 12px; }
  .pl-scope .pl-toolbar__controls { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; }
}

.pl-scope .pl-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  padding: 4px; border-radius: 16px; background: var(--pl-surface-2); border: 1px solid var(--pl-line);
  overscroll-behavior-x: contain;
}
.pl-scope .pl-tabs::-webkit-scrollbar { display: none; }
.pl-scope .pl-tab {
  flex: 1 0 auto; display: grid; justify-items: center; align-content: center; gap: 0;
  min-width: 64px; min-height: 48px; padding: 4px 12px; border-radius: 12px; scroll-snap-align: start;
  color: var(--pl-muted); transition: background-color var(--pl-mid) var(--pl-ease), color var(--pl-mid), box-shadow var(--pl-mid);
}
.pl-scope .pl-tab b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.pl-scope .pl-tab small { font-size: 11px; font-weight: 500; line-height: 1.3; opacity: .85; }
.pl-scope .pl-tab:hover { color: var(--pl-text); }
.pl-scope .pl-tab.is-active { background: var(--pl-surface); color: var(--pl-brand-ink); box-shadow: var(--pl-shadow-sm), 0 0 0 1px var(--pl-line); }
.pl-scope .pl-tab.is-active b { font-weight: 800; }

.pl-scope .pl-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--pl-surface-2); border: 1px solid var(--pl-line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pl-scope .pl-seg::-webkit-scrollbar { display: none; }
.pl-scope .pl-seg__btn { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--pl-muted); white-space: nowrap; transition: background-color var(--pl-mid), color var(--pl-mid); }
.pl-scope .pl-seg__btn.is-active { background: var(--pl-surface); color: var(--pl-text); font-weight: 800; box-shadow: var(--pl-shadow-sm); }

/* 6. Match card ------------------------------------------------------------ */
.pl-scope .pl-match {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 14px; border-radius: var(--pl-radius);
  background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow);
  color: var(--pl-text); isolation: isolate; overflow: hidden;
  transition: box-shadow var(--pl-mid) var(--pl-ease), transform var(--pl-mid) var(--pl-ease), border-color var(--pl-mid);
  animation: pl-rise var(--pl-slow) var(--pl-ease) both;
}
.pl-scope .pl-match::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--pl-sport) 30%, var(--pl-sport) 70%, transparent);
  opacity: .9;
}
.pl-scope .pl-match.is-finished::before { background: linear-gradient(90deg, transparent, var(--pl-line-strong) 30%, var(--pl-line-strong) 70%, transparent); }
@media (hover: hover) { .pl-scope .pl-match.is-open:hover { box-shadow: var(--pl-shadow), 0 18px 40px -24px color-mix(in srgb, var(--pl-sport) 70%, transparent); transform: translateY(-2px); } }

.pl-scope .pl-match__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pl-scope .pl-league {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 28px; padding: 0 10px 0 12px;
  border-radius: 10px; background: var(--pl-sport-soft); color: var(--pl-text);
}
.pl-scope .pl-league .pl-icon { color: var(--pl-sport); }
.pl-scope .pl-league b { font-size: 12.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pl-scope .pl-match__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pl-scope .pl-when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pl-text-2); white-space: nowrap; }
.pl-scope .pl-when .pl-icon { color: var(--pl-muted); }
.pl-scope .pl-when em { font-style: normal; font-weight: 800; color: var(--pl-text); padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--pl-line-strong); }

/* board */
.pl-scope .pl-board { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.pl-scope .pl-board__teams {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 8px;
  padding: 10px; border-radius: calc(var(--pl-radius) - 4px);
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--pl-sport) 12%, transparent), transparent 60%),
    var(--pl-surface-2);
  border: 1px solid var(--pl-line);
}
.pl-scope .pl-team {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  min-width: 0; padding: 12px 6px 10px; border-radius: 16px; text-align: center;
  background: transparent; border: 2px solid transparent; color: var(--pl-text);
  transition: background-color var(--pl-mid) var(--pl-ease), border-color var(--pl-mid) var(--pl-ease), transform var(--pl-fast) var(--pl-ease), box-shadow var(--pl-mid);
}
.pl-scope button.pl-team { cursor: pointer; width: 100%; }
@media (hover: hover) { .pl-scope button.pl-team:hover { background: var(--pl-surface); box-shadow: var(--pl-shadow-sm); } }
.pl-scope button.pl-team:active { transform: scale(.97); }
.pl-scope .pl-team__name { font-weight: 800; font-size: 14.5px; line-height: 1.35; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-scope .pl-team__role { font-size: 11px; color: var(--pl-muted); font-weight: 500; line-height: 1; }
.pl-scope .pl-team__badge {
  position: absolute; top: 6px; inset-inline-start: 6px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--pl-brand); color: var(--pl-on-brand);
  transform: scale(0); transition: transform var(--pl-mid) var(--pl-ease);
}
.pl-scope .pl-team.is-picked { background: var(--pl-surface); border-color: var(--pl-brand-ink); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--pl-brand) 90%, transparent); }
.pl-scope .pl-team.is-picked .pl-team__badge { transform: scale(1); }
.pl-scope .pl-team.is-picked .pl-logo { box-shadow: 0 0 0 3px var(--pl-brand-soft), 0 0 0 1px var(--pl-brand-line); }
.pl-scope .pl-team.is-winner { background: var(--pl-surface); border-color: color-mix(in srgb, var(--pl-gold) 70%, var(--pl-surface)); }
.pl-scope .pl-team.is-winner .pl-team__badge { transform: scale(1); background: var(--pl-gold); color: #3a2600; }
.pl-scope .pl-match.is-finished .pl-team:not(.is-winner) { opacity: .62; }

.pl-scope .pl-score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; padding: 0 2px; }
.pl-scope .pl-score__line {
  display: inline-flex; align-items: center; gap: 6px; direction: rtl;
  font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums;
  color: var(--pl-text);
}
.pl-scope .pl-score__line b { min-width: .9em; text-align: center; font-weight: 900; transition: color var(--pl-mid); }
.pl-scope .pl-score__line i { font-style: normal; font-weight: 500; color: var(--pl-muted); font-size: .7em; transform: translateY(-2px); }
.pl-scope .pl-score__line.is-final { color: var(--pl-text); }
.pl-scope .pl-score__line b.is-bump { animation: pl-bump var(--pl-slow) var(--pl-ease); }
.pl-scope .pl-score__vs { font-size: 15px; font-weight: 900; color: var(--pl-muted); letter-spacing: .08em; padding: 6px 10px; border-radius: 10px; border: 1px dashed var(--pl-line-strong); line-height: 1; }
.pl-scope .pl-score__label { font-size: 11.5px; color: var(--pl-muted); font-weight: 600; white-space: nowrap; }

/* volleyball: tap a team to make it the winner, + / − for the loser's sets */
.pl-scope .pl-team--pick { padding: 8px 6px 10px; }
.pl-scope .pl-team__pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
  padding: 4px 2px 2px; border-radius: 12px; color: inherit; text-align: center; cursor: pointer;
  transition: transform var(--pl-fast) var(--pl-ease);
}
.pl-scope .pl-team__pick:active { transform: scale(.97); }
@media (hover: hover) { .pl-scope .pl-team--pick:not(.is-picked):hover { background: var(--pl-surface); box-shadow: var(--pl-shadow-sm); } }
.pl-scope .pl-stepper b { min-width: 34px; text-align: center; font-size: 19px; font-weight: 900; line-height: 34px; font-variant-numeric: tabular-nums; color: var(--pl-text); }
.pl-scope .pl-stepper b.is-bump { animation: pl-bump var(--pl-slow) var(--pl-ease); }
.pl-scope .pl-team--pick.is-picked .pl-stepper { border-color: var(--pl-brand-line); background: var(--pl-brand-soft); }
.pl-scope .pl-team--pick.is-picked .pl-stepper b { color: var(--pl-brand-ink); }
.pl-scope .pl-pick-hint { margin: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--pl-muted); }
.pl-scope .pl-vbpick .pl-score__line b { color: var(--pl-text); }

/* football: steppers */
.pl-scope .pl-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; background: var(--pl-surface); border: 1px solid var(--pl-line); direction: ltr; }
.pl-scope .pl-stepper button {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--pl-surface-2); color: var(--pl-text); transition: background-color var(--pl-mid), transform var(--pl-fast), opacity var(--pl-mid);
}
.pl-scope .pl-stepper button:not(:disabled):hover { background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-scope .pl-stepper button:not(:disabled):active { transform: scale(.9); }
.pl-scope .pl-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.pl-scope .pl-stepper input {
  width: 38px; height: 34px; padding: 0; border: 0; background: transparent; text-align: center;
  font-size: 19px; font-weight: 900; color: var(--pl-text); font-variant-numeric: tabular-nums; box-shadow: none; outline: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.pl-scope .pl-stepper input::-webkit-outer-spin-button, .pl-scope .pl-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* footer */
.pl-scope .pl-match__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 2px; }
.pl-scope .pl-actions { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; }
.pl-scope .pl-actions .pl-btn--block { flex: 1; }
.pl-scope .pl-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--pl-text-2); padding: 6px 10px; border-radius: 10px; background: var(--pl-surface-2); }
.pl-scope .pl-mine .pl-icon { color: var(--pl-brand-ink); }
.pl-scope .pl-points { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 800; background: var(--pl-surface-3); color: var(--pl-muted); }
.pl-scope .pl-points.is-earned { background: var(--pl-success-soft); color: var(--pl-success); }
.pl-scope .pl-reason { flex-basis: 100%; font-size: 12.5px; color: var(--pl-muted); display: flex; gap: 6px; align-items: center; }

/* compact variant */
.pl-scope .pl-match--compact { padding: 12px; gap: 10px; }
.pl-scope .pl-match--compact .pl-logo { --s: 44px; }
.pl-scope .pl-match--compact .pl-score__line { font-size: 26px; }
.pl-scope .pl-match--compact .pl-team__role { display: none; }

/* narrow cards */
@container (max-width: 340px) {
  .pl-scope .pl-logo { --s: 48px; }
  .pl-scope .pl-score { min-width: 60px; }
  .pl-scope .pl-score__line { font-size: 28px; }
  .pl-scope .pl-team__name { font-size: 13.5px; }
  .pl-scope .pl-countdown__suffix { display: none; }
  .pl-scope .pl-stepper button { width: 30px; height: 30px; }
  .pl-scope .pl-stepper input { width: 30px; }
}
@container (min-width: 460px) {
  .pl-scope .pl-match .pl-logo { --s: 68px; }
  .pl-scope .pl-score__line { font-size: 40px; }
}

/* 7. Football filter bar & specials --------------------------------------- */
.pl-scope .pl-filterbar { display: grid; gap: 10px; }
.pl-scope .pl-filterbar .pl-select { width: 100%; }
.pl-scope .pl-filterbar .pl-select select { flex: 1; }
@container (min-width: 640px) { .pl-scope .pl-filterbar { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }

.pl-scope .pl-tournament { display: inline-flex; align-items: center; gap: 4px; color: var(--pl-muted); font-size: 12px; font-weight: 600; }
.pl-scope .pl-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 8px; background: var(--pl-surface-3); color: var(--pl-text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pl-scope .pl-match__tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }

.pl-scope .pl-specials { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pl-scope .pl-special { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--pl-radius); background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow); }
.pl-scope .pl-special__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-scope .pl-special h4 { font-size: 16px; font-weight: 800; }
.pl-scope .pl-special__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--pl-muted); font-size: 12.5px; }
.pl-scope .pl-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pl-scope .pl-option { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--pl-line); background: var(--pl-surface-2); cursor: pointer; font-weight: 700; font-size: 14px; transition: border-color var(--pl-mid), background-color var(--pl-mid); }
.pl-scope .pl-option input { position: absolute; opacity: 0; pointer-events: none; }
.pl-scope .pl-option i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--pl-line-strong); flex: none; display: grid; place-items: center; transition: border-color var(--pl-mid), background-color var(--pl-mid); }
.pl-scope .pl-option:has(input:checked), .pl-scope .pl-option.is-selected { border-color: var(--pl-brand-ink); background: var(--pl-brand-soft); }
.pl-scope .pl-option:has(input:checked) i, .pl-scope .pl-option.is-selected i { border-color: var(--pl-brand-ink); background: radial-gradient(circle, var(--pl-brand) 45%, transparent 50%); }
.pl-scope .pl-option:has(input:focus-visible) { outline: 2px solid var(--pl-brand); outline-offset: 2px; }
.pl-scope .pl-option.is-correct { border-color: var(--pl-success); background: var(--pl-success-soft); }
.pl-scope .pl-answer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; }

/* 8. Boards: leaderboard, standings, panels -------------------------------- */
.pl-scope.pl-board-card, .pl-scope .pl-panel, .pl-scope.pl-panel {
  container-type: inline-size;
  display: grid; gap: 14px; padding: 16px; border-radius: var(--pl-radius);
  background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow);
}
.pl-scope .pl-card-head, .pl-scope .pl-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pl-scope .pl-card-head__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-scope .pl-card-head h3, .pl-scope .pl-panel__head h3 { font-size: 17px; font-weight: 800; }
.pl-scope .pl-card-head small, .pl-scope .pl-panel__head small { display: block; font-size: 12.5px; color: var(--pl-muted); font-weight: 500; }
.pl-scope .pl-card-head__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); flex: none; }
.pl-scope .pl-card-head__icon.is-gold { background: color-mix(in srgb, var(--pl-gold) 18%, var(--pl-surface)); color: #b7791f; }
.pl-scope .pl-card-head .pl-select { min-width: 0; }

/* podium */
.pl-scope .pl-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 8px 4px 0; }
.pl-scope .pl-podium__item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; animation: pl-rise var(--pl-slow) var(--pl-ease) both; }
.pl-scope .pl-podium__item--1 { animation-delay: 60ms; }
.pl-scope .pl-podium__item--3 { animation-delay: 120ms; }
.pl-scope .pl-podium__avatar {
  --c: var(--pl-silver);
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--pl-surface-2); color: var(--pl-muted); box-shadow: 0 0 0 3px var(--c), 0 10px 20px -12px var(--c);
}
.pl-scope .pl-podium__item--1 .pl-podium__avatar { --c: var(--pl-gold); width: 66px; height: 66px; }
.pl-scope .pl-podium__item--3 .pl-podium__avatar { --c: var(--pl-bronze); }
.pl-scope .pl-podium__avatar em { position: absolute; bottom: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #1d1300; font-style: normal; font-weight: 900; font-size: 12px; box-shadow: 0 0 0 2px var(--pl-surface); }
.pl-scope .pl-podium__crown { position: absolute; top: -16px; color: var(--pl-gold); font-style: normal; }
.pl-scope .pl-podium__name { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--pl-text-2); direction: ltr; unicode-bidi: isolate; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-scope .pl-podium__pts { font-size: 18px; font-weight: 900; line-height: 1.1; }
.pl-scope .pl-podium__pts small { display: block; font-size: 11px; font-weight: 500; color: var(--pl-muted); }
.pl-scope .pl-podium__step { width: 100%; border-radius: 14px 14px 6px 6px; margin-top: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--pl-silver) 30%, var(--pl-surface)), var(--pl-surface-2)); height: 38px; }
.pl-scope .pl-podium__item--1 .pl-podium__step { height: 58px; background: linear-gradient(180deg, color-mix(in srgb, var(--pl-gold) 36%, var(--pl-surface)), var(--pl-surface-2)); }
.pl-scope .pl-podium__item--3 .pl-podium__step { height: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--pl-bronze) 30%, var(--pl-surface)), var(--pl-surface-2)); }
.pl-scope .pl-podium__item.is-me .pl-podium__name { color: var(--pl-brand-ink); }

.pl-scope .pl-ranks { display: grid; gap: 6px; counter-reset: none; }
.pl-scope .pl-rank { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border-radius: 14px; background: var(--pl-surface-2); border: 1px solid transparent; }
.pl-scope .pl-rank.is-me { border-color: var(--pl-brand-line); background: var(--pl-brand-soft); }
.pl-scope .pl-rank__no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--pl-surface); font-weight: 800; font-size: 13px; color: var(--pl-text-2); box-shadow: var(--pl-shadow-sm); }
.pl-scope .pl-rank__who { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.pl-scope .pl-rank__who bdi { direction: ltr; unicode-bidi: isolate; font-weight: 700; font-size: 14px; }
.pl-scope .pl-rank__who em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--pl-brand); color: var(--pl-on-brand); }
.pl-scope .pl-rank__who small { width: 100%; font-size: 11.5px; color: var(--pl-muted); line-height: 1.2; }
.pl-scope .pl-rank__pts { font-size: 17px; font-weight: 900; text-align: left; line-height: 1.1; }
.pl-scope .pl-rank__pts small { display: block; font-size: 10.5px; color: var(--pl-muted); font-weight: 500; }
.pl-scope .pl-leaders__body { display: grid; gap: 14px; transition: opacity var(--pl-mid); }
.pl-scope [data-pl-body].is-loading { opacity: .45; pointer-events: none; }

/* standings table — fits phones without horizontal scroll */
.pl-scope .pl-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.pl-scope .pl-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 13.5px; table-layout: auto; margin: 0; background: none; border: 0; }
.pl-scope .pl-table th { padding: 6px 4px; font-size: 11.5px; font-weight: 700; color: var(--pl-muted); text-align: center; white-space: nowrap; background: none; border: 0; }
.pl-scope .pl-table th.pl-table__team { text-align: right; }
.pl-scope .pl-table td { padding: 8px 4px; text-align: center; background: var(--pl-surface-2); border: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--pl-text-2); }
.pl-scope .pl-table td:first-child { border-radius: 0 12px 12px 0; position: relative; }
.pl-scope .pl-table td:last-child { border-radius: 12px 0 0 12px; }
.pl-scope .pl-table tr.is-top .pl-table__rank span { background: var(--pl-success-soft); color: var(--pl-success); }
.pl-scope .pl-table tr.is-danger .pl-table__rank span { background: var(--pl-danger-soft); color: var(--pl-danger); }
.pl-scope .pl-table__sets .pl-pair { font-weight: 600; gap: 2px; }
.pl-scope .pl-table__rank span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; font-weight: 800; color: var(--pl-text); }
.pl-scope .pl-table__team { text-align: right !important; width: 100%; }
.pl-scope .pl-table__teamcell { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.pl-scope .pl-table__teamcell .pl-logo { --s: 28px; box-shadow: 0 0 0 1px var(--pl-line); }
.pl-scope .pl-table__teamcell b { font-weight: 800; color: var(--pl-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.pl-scope .pl-table__pts strong { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); font-weight: 900; }
.pl-scope .pl-formguide { display: inline-flex; gap: 3px; direction: rtl; }
.pl-scope .pl-formguide i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pl-scope .pl-formguide i.is-w, .pl-scope .pl-legend i.is-w { background: var(--pl-success); }
.pl-scope .pl-formguide i.is-l, .pl-scope .pl-legend i.is-l { background: var(--pl-danger); opacity: .8; }
.pl-scope .pl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--pl-muted); }
.pl-scope .pl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pl-scope .pl-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pl-scope .pl-legend i.is-top { background: var(--pl-success); }
.pl-scope .pl-legend i.is-danger { background: var(--pl-danger); }
.pl-scope .pl-legend i.is-w, .pl-scope .pl-legend i.is-l { border-radius: 50%; width: 8px; height: 8px; }
@container (max-width: 420px) {
  .pl-scope .pl-table { font-size: 12.5px; }
  .pl-scope .pl-table th, .pl-scope .pl-table td { padding-inline: 3px; }
  .pl-scope .pl-table__teamcell .pl-logo { --s: 24px; }
  .pl-scope .pl-table__teamcell b { max-width: 9ch; }
  .pl-scope .pl-table__form, .pl-scope .pl-legend__form { display: none; }
}
@container (min-width: 640px) { .pl-scope .pl-table td { padding-block: 10px; } .pl-scope .pl-table__teamcell .pl-logo { --s: 32px; } }

/* stats tiles */
.pl-scope.pl-stats { container-type: inline-size; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 640px) { .pl-scope.pl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-scope .pl-stat { display: grid; gap: 2px; padding: 14px; border-radius: var(--pl-radius); background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow-sm); }
.pl-scope .pl-stat__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); margin-bottom: 6px; }
.pl-scope .pl-stat strong { font-size: 24px; font-weight: 900; line-height: 1.2; }
.pl-scope .pl-stat span { font-size: 12.5px; color: var(--pl-muted); }

.pl-scope.pl-myscore { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow-sm); }
.pl-scope .pl-myscore__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--pl-gold) 18%, var(--pl-surface)); color: #b7791f; }
.pl-scope.pl-myscore span { color: var(--pl-muted); font-size: 13px; }
.pl-scope.pl-myscore strong { font-size: 22px; font-weight: 900; }

/* login gate */
.pl-scope .pl-gate { display: grid; gap: 14px; justify-items: start; padding: 18px; border-radius: var(--pl-radius); background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow); }
.pl-scope .pl-gate__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-scope .pl-gate__text strong { display: block; font-size: 16px; font-weight: 800; }
.pl-scope .pl-gate__text span { display: block; font-size: 13.5px; color: var(--pl-muted); }
@media (min-width: 640px) { .pl-scope .pl-gate { grid-template-columns: auto 1fr auto; align-items: center; } }

/* header login entry */
.pl-scope.pl-login-entry { display: inline-flex; vertical-align: middle; }
.pl-scope .pl-userchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--pl-surface); border: 1px solid var(--pl-line); color: var(--pl-text); font-weight: 700; font-size: 13.5px; }
.pl-scope .pl-userchip__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--pl-brand-soft); color: var(--pl-brand-ink); font-weight: 900; }
.pl-scope .pl-userchip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pl-scope .pl-userchip__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 9. User dashboard -------------------------------------------------------- */
.pl-scope.pl-dash { container-type: inline-size; display: grid; gap: 16px; }
.pl-scope .pl-hero {
  position: relative; display: grid; gap: 16px; padding: 18px; border-radius: calc(var(--pl-radius) + 4px); overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--pl-brand) 75%, transparent), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--pl-vb) 40%, transparent), transparent 65%),
    var(--pl-ink);
  box-shadow: var(--pl-shadow-lg);
}
.pl-scope .pl-hero::after {
  /* court lines */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 54px, #fff 55px, #fff 57px, transparent 58px);
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.pl-scope .pl-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-scope .pl-hero__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-scope .pl-hero__id .pl-avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .14); color: #fff; }
.pl-scope .pl-hero__id small { display: block; font-size: 12px; opacity: .75; }
.pl-scope .pl-hero__id h2 { font-size: 20px; font-weight: 900; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-scope .pl-hero__phone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .85; }
.pl-scope .pl-hero__phone bdi { direction: ltr; unicode-bidi: isolate; }
.pl-scope .pl-hero__score { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pl-scope .pl-hero__score span { display: block; font-size: 12.5px; opacity: .75; }
.pl-scope .pl-hero__score strong { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.pl-scope .pl-hero__rank { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 14px; background: var(--pl-volt); color: #142000; }
.pl-scope .pl-hero__rank span { display: inline; opacity: .8; font-size: 12.5px; font-weight: 600; }
.pl-scope .pl-hero__rank b { font-size: 20px; font-weight: 900; }
.pl-scope .pl-hero__progress { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 12.5px; }
.pl-scope .pl-hero__progress span { opacity: .8; }
.pl-scope .pl-hero__progress i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pl-scope .pl-hero__progress em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pl-volt), #7ee787); transform-origin: right; animation: pl-grow 900ms var(--pl-ease) both; }

.pl-scope .pl-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 720px) { .pl-scope .pl-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pl-scope .pl-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i l" "i v" "i s"; align-items: center; column-gap: 10px; padding: 12px; border-radius: 16px; background: var(--pl-surface); border: 1px solid var(--pl-line); box-shadow: var(--pl-shadow-sm); }
.pl-scope .pl-tile__icon { grid-area: i; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-scope .pl-tile > span:not(.pl-tile__icon) { grid-area: l; font-size: 12px; color: var(--pl-muted); line-height: 1.3; }
.pl-scope .pl-tile strong { grid-area: v; font-size: 20px; font-weight: 900; line-height: 1.2; }
.pl-scope .pl-tile small { grid-area: s; font-size: 11px; color: var(--pl-muted); }

.pl-scope .pl-chipnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pl-scope .pl-chipnav::-webkit-scrollbar { display: none; }
.pl-scope .pl-chipnav a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 99px; white-space: nowrap; background: var(--pl-surface); border: 1px solid var(--pl-line); color: var(--pl-text-2); font-weight: 700; font-size: 13.5px; transition: border-color var(--pl-mid), color var(--pl-mid); }
.pl-scope .pl-chipnav a:hover { border-color: var(--pl-brand-line); color: var(--pl-brand-ink); }

.pl-scope .pl-dash__split { display: grid; gap: 16px; }
@container (min-width: 900px) { .pl-scope .pl-dash__split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

.pl-scope .pl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-scope .pl-kpis div { padding: 10px; border-radius: 14px; background: var(--pl-surface-2); text-align: center; }
.pl-scope .pl-kpis span { display: block; font-size: 11.5px; color: var(--pl-muted); }
.pl-scope .pl-kpis strong { font-size: 22px; font-weight: 900; }
.pl-scope .pl-kpis .is-accent { background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-scope .pl-minilead { display: grid; gap: 8px; margin-top: 12px; }
.pl-scope .pl-minilead > strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pl-scope .pl-minilead ol { display: grid; gap: 4px; }
.pl-scope .pl-minilead li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--pl-surface-2); font-size: 13px; }
.pl-scope .pl-minilead i { font-style: normal; font-weight: 800; color: var(--pl-muted); }
.pl-scope .pl-minilead bdi { direction: ltr; unicode-bidi: isolate; text-align: right; }
.pl-scope .pl-facts { display: grid; gap: 2px; margin-top: 4px; }
.pl-scope .pl-facts div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pl-line); font-size: 13px; }
.pl-scope .pl-facts dt { display: inline-flex; align-items: center; gap: 6px; color: var(--pl-muted); }
.pl-scope .pl-facts dd { font-weight: 700; color: var(--pl-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

/* history */
.pl-scope .pl-hists { display: grid; gap: 10px; }
.pl-scope .pl-hist { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--pl-surface-2); border: 1px solid var(--pl-line); position: relative; }
.pl-scope .pl-hist::before { content: ""; position: absolute; inset-block: 12px; right: 0; width: 3px; border-radius: 3px 0 0 3px; background: var(--pl-line-strong); }
.pl-scope .pl-hist.is-live::before { background: var(--pl-brand); }
.pl-scope .pl-hist.is-won::before { background: var(--pl-success); }
.pl-scope .pl-hist.is-lost::before { background: var(--pl-danger); }
.pl-scope .pl-hist__main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.pl-scope .pl-hist__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-scope .pl-hist__team:last-child { flex-direction: row-reverse; text-align: left; }
.pl-scope .pl-hist__team .pl-logo { --s: 34px; }
.pl-scope .pl-hist__team b { font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-scope .pl-hist__score { display: grid; justify-items: center; gap: 0; }
.pl-scope .pl-hist__score .pl-pair { font-size: 20px; }
.pl-scope .pl-hist__score small { font-size: 10.5px; color: var(--pl-muted); }
.pl-scope .pl-hist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--pl-muted); }
.pl-scope .pl-hist__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.pl-scope .pl-hist__state { margin-inline-start: auto; height: 24px; padding: 0 10px; border-radius: 99px; font-weight: 800; font-size: 11.5px; background: var(--pl-surface-3); color: var(--pl-text-2); }
.pl-scope .pl-hist.is-live .pl-hist__state { background: var(--pl-brand-soft); color: var(--pl-brand-ink); }
.pl-scope .pl-hist.is-won .pl-hist__state { background: var(--pl-success-soft); color: var(--pl-success); }
.pl-scope .pl-hist.is-lost .pl-hist__state { background: var(--pl-danger-soft); color: var(--pl-danger); }
.pl-scope .pl-hist__actions { display: flex; gap: 8px; }
.pl-scope .pl-hist__editor { display: grid; gap: 10px; padding: 10px; border-radius: 14px; background: var(--pl-surface); border: 1px solid var(--pl-brand-line); animation: pl-rise var(--pl-mid) var(--pl-ease); }
.pl-scope .pl-board__teams--mini { padding: 6px; }
.pl-scope .pl-board__teams--mini .pl-logo { --s: 40px; }
.pl-scope .pl-board__teams--mini .pl-team__role { display: none; }
.pl-scope .pl-board__teams--mini .pl-score__line { font-size: 26px; }
.pl-scope .pl-board__teams--mini .pl-score { min-width: 56px; }
.pl-scope .pl-hist__editbar { display: flex; justify-content: flex-end; gap: 8px; }

/* bonuses */
.pl-scope .pl-bonus { display: grid; gap: 8px; }
.pl-scope .pl-bonus li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--pl-surface-2); }
.pl-scope .pl-bonus__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, var(--pl-gold) 18%, var(--pl-surface)); color: #b7791f; }
.pl-scope .pl-bonus strong { flex: 1; font-size: 14px; }
.pl-scope .pl-bonus b { color: var(--pl-success); font-weight: 900; }

/* drawer */
.pl-scope .pl-drawer { position: fixed; inset: 0; z-index: 99990; }
.pl-scope .pl-drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 24, .5); backdrop-filter: blur(3px); animation: pl-fade var(--pl-mid) var(--pl-ease); }
.pl-scope .pl-drawer__panel { position: absolute; inset-block: 0; right: 0; width: min(320px, 86vw); padding: 16px; background: var(--pl-surface); color: var(--pl-text); box-shadow: var(--pl-shadow-lg); animation: pl-slide-in var(--pl-slow) var(--pl-ease); display: grid; align-content: start; gap: 12px; overflow-y: auto; }
.pl-scope .pl-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.pl-scope .pl-drawer__head strong { font-size: 16px; font-weight: 800; }
.pl-scope .pl-drawer__list { display: grid; gap: 4px; }
.pl-scope .pl-drawer__list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--pl-text); font-weight: 700; font-size: 14.5px; transition: background-color var(--pl-mid); }
.pl-scope .pl-drawer__list a:hover { background: var(--pl-surface-2); }
.pl-scope .pl-drawer__list a .pl-icon { color: var(--pl-muted); }

/* forms */
.pl-scope .pl-profile { display: grid; gap: 16px; }
.pl-scope .pl-form, .pl-sheet .pl-form { display: grid; gap: 14px; }
.pl-scope .pl-form--verify { padding: 14px; border-radius: 16px; background: var(--pl-warn-soft); }
.pl-scope .pl-form__grid, .pl-sheet .pl-form__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pl-scope .pl-field, .pl-sheet .pl-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pl-text-2); }
.pl-scope .pl-field--wide { grid-column: 1 / -1; }
.pl-scope .pl-field small { font-weight: 500; color: var(--pl-muted); font-size: 11.5px; }
.pl-scope .pl-field input, .pl-sheet .pl-field input {
  width: 100%; height: 48px; padding: 0 14px; margin: 0; border-radius: 14px; border: 1.5px solid var(--pl-line);
  background: var(--pl-surface); color: var(--pl-text); font-size: 15px; font-weight: 600; outline: 0; box-shadow: none;
  transition: border-color var(--pl-mid), box-shadow var(--pl-mid);
}
.pl-scope .pl-field input:focus, .pl-sheet .pl-field input:focus { border-color: var(--pl-brand-ink); box-shadow: 0 0 0 4px var(--pl-brand-soft); }
.pl-scope .pl-field input[dir="ltr"], .pl-sheet .pl-field input[dir="ltr"] { text-align: left; }
.pl-scope .pl-uploader { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pl-scope .pl-uploader__actions { display: flex; gap: 8px; }
.pl-scope .pl-uploader small { color: var(--pl-muted); font-size: 12px; }
@container (min-width: 640px) {
  .pl-scope .pl-uploader { grid-template-columns: auto 1fr; justify-items: start; text-align: right; align-items: center; column-gap: 16px; }
  .pl-scope .pl-uploader .pl-avatar { grid-row: span 2; }
}

/* 10. Auth sheet (mobile bottom sheet → desktop dialog) -------------------- */
.pl-sheet { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; }
.pl-sheet[hidden] { display: none !important; }
.pl-sheet__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 24, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--pl-slow) var(--pl-ease); }
.pl-sheet__panel {
  position: relative; width: 100%; max-height: min(92vh, 100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0;
  background: var(--pl-surface); color: var(--pl-text); box-shadow: var(--pl-shadow-lg);
  transform: translateY(100%); transition: transform var(--pl-slow) var(--pl-ease);
  outline: 0;
}
.pl-sheet.is-open .pl-sheet__backdrop { opacity: 1; }
.pl-sheet.is-open .pl-sheet__panel { transform: translateY(var(--pl-drag, 0px)); }
.pl-sheet.is-dragging .pl-sheet__panel { transition: none; }
.pl-sheet__grip { display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--pl-line-strong); margin: 0 auto 10px; }
.pl-sheet .pl-sheet__close { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--pl-muted); background: var(--pl-surface-2); }
.pl-sheet .pl-sheet__close:hover { color: var(--pl-text); }
.pl-auth__badge { display: flex; justify-content: center; margin: 8px 0 12px; }
.pl-auth__badge span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; color: #fff; box-shadow: 0 0 0 4px var(--pl-surface); }
.pl-auth__badge span:first-child { background: linear-gradient(135deg, var(--pl-vb), color-mix(in srgb, var(--pl-vb) 60%, #b4231b)); transform: rotate(-8deg) translateX(-6px); }
.pl-auth__badge span:last-child { background: linear-gradient(135deg, var(--pl-fb), color-mix(in srgb, var(--pl-fb) 60%, #064e3b)); transform: rotate(8deg) translateX(6px); }
.pl-sheet h2 { font-size: 21px; font-weight: 900; text-align: center; }
.pl-auth__sub { text-align: center; color: var(--pl-muted); font-size: 13.5px; margin: 6px auto 18px !important; max-width: 36ch; }
.pl-auth__step { display: grid; gap: 14px; animation: pl-rise var(--pl-mid) var(--pl-ease); }
.pl-sheet .pl-field--lg > span:first-child { font-size: 13px; }
.pl-sheet .pl-input { position: relative; display: flex; align-items: center; }
.pl-sheet .pl-input .pl-icon { position: absolute; right: 16px; color: var(--pl-muted); pointer-events: none; }
.pl-sheet .pl-input input { height: 58px; padding: 0 48px 0 16px; font-size: 20px; font-weight: 800; letter-spacing: .06em; border-radius: 16px; text-align: left; }
.pl-sheet .pl-input input::placeholder { color: var(--pl-line-strong); font-weight: 600; }
.pl-auth__note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--pl-muted); font-size: 12px; text-align: center; }
.pl-auth__to { text-align: center; font-size: 13.5px; color: var(--pl-text-2); line-height: 1.9; }
.pl-auth__to bdi { font-weight: 800; color: var(--pl-text); unicode-bidi: isolate; }
.pl-auth__to .pl-link { margin-inline-start: 4px; vertical-align: middle; }
.pl-otp { position: relative; direction: ltr; }
.pl-otp__input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 2;
  font-size: 16px; color: transparent; caret-color: transparent; border: 0; background: transparent; letter-spacing: 3em;
}
.pl-otp__cells { display: grid; grid-template-columns: repeat(var(--pl-len, 5), minmax(0, 1fr)); gap: 8px; max-width: calc(var(--pl-len, 5) * 64px); margin: 0 auto; }
.pl-otp__cells span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.12; max-height: 64px; border-radius: 16px;
  border: 1.5px solid var(--pl-line); background: var(--pl-surface-2);
  font-size: 26px; font-weight: 900; color: var(--pl-text); transition: border-color var(--pl-fast), background-color var(--pl-fast), transform var(--pl-fast);
}
.pl-otp__cells span.is-filled { border-color: var(--pl-line-strong); background: var(--pl-surface); }
.pl-otp__cells span.is-active { border-color: var(--pl-brand-ink); box-shadow: 0 0 0 4px var(--pl-brand-soft); }
.pl-otp__cells span.is-active:empty::after { content: ""; width: 2px; height: 26px; background: var(--pl-brand); animation: pl-blink 1s steps(1) infinite; }
.pl-otp.is-error .pl-otp__cells span { border-color: var(--pl-danger); animation: pl-shake 380ms var(--pl-ease); }
.pl-otp.is-success .pl-otp__cells span { border-color: var(--pl-success); background: var(--pl-success-soft); }
.pl-auth__meta { display: flex; justify-content: center; align-items: center; min-height: 32px; font-size: 13px; color: var(--pl-muted); }
.pl-auth__meta [data-pl-timer] { display: inline-flex; align-items: center; gap: 6px; }
.pl-auth__meta b { color: var(--pl-text); font-variant-numeric: tabular-nums; }
.pl-auth__welcome { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--pl-success-soft); }
.pl-auth__welcome > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--pl-success); color: #fff; flex: none; }
.pl-auth__welcome strong { display: block; color: var(--pl-success); font-size: 15px; }
.pl-auth__welcome small { display: block; color: var(--pl-text-2); font-size: 12.5px; }
.pl-auth__done { justify-items: center; text-align: center; padding: 10px 0 6px; }
.pl-auth__done-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--pl-success); color: #fff; box-shadow: 0 0 0 10px var(--pl-success-soft); animation: pl-pop 480ms var(--pl-ease) both; }
.pl-auth__done strong { font-size: 18px; font-weight: 900; margin-top: 8px; }
.pl-auth__done small { color: var(--pl-muted); }
.pl-auth__external { margin-bottom: 12px; }
.pl-sheet .pl-alert { justify-content: center; text-align: center; }
html.pl-lock, html.pl-lock body { overflow: hidden !important; }

@media (min-width: 720px) {
  .pl-sheet { align-items: center; padding: 24px; }
  .pl-sheet__panel { width: 440px; border-radius: 28px; padding: 28px 30px 26px; transform: translateY(16px) scale(.96); opacity: 0; transition: transform var(--pl-slow) var(--pl-ease), opacity var(--pl-mid) var(--pl-ease); }
  .pl-sheet.is-open .pl-sheet__panel { transform: none; opacity: 1; }
  .pl-sheet__grip { display: none; }
}

/* toast */
.pl-toast-host { position: fixed; z-index: 999998; inset-inline: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.pl-toast { display: inline-flex; align-items: center; gap: 8px; max-width: 420px; padding: 12px 16px; border-radius: 16px; background: #0e1726; color: #fff; font: 600 14px/1.5 var(--pl-font, 'PL Vazirmatn', Tahoma, sans-serif); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); direction: rtl; animation: pl-toast-in var(--pl-slow) var(--pl-ease) both; pointer-events: auto; }
.pl-toast.is-success .pl-icon { color: #7ee787; }
.pl-toast.is-error .pl-icon { color: #ff8a8a; }
.pl-toast.is-leaving { animation: pl-toast-out var(--pl-mid) var(--pl-ease) both; }

/* single + misc */
.pl-scope.pl-single { max-width: 560px; }
.pl-scope .pl-skeleton { border-radius: var(--pl-radius); min-height: 240px; background: linear-gradient(90deg, var(--pl-surface-2), var(--pl-surface-3), var(--pl-surface-2)); background-size: 200% 100%; animation: pl-shimmer 1.2s linear infinite; }

/* 11. Motion --------------------------------------------------------------- */
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pl-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes pl-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes pl-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pl-blink { 50% { opacity: 0; } }
@keyframes pl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pl-shimmer { to { background-position: -200% 0; } }
@keyframes pl-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pl-toast-out { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .pl-scope *, .pl-scope *::before, .pl-scope *::after,
  .pl-sheet *, .pl-sheet *::before, .pl-sheet *::after, .pl-toast {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}

/* steppers always fit inside their team tile */
.pl-scope .pl-team .pl-stepper { width: 100%; max-width: 132px; justify-content: space-between; gap: 2px; }
.pl-scope .pl-team .pl-stepper button { width: 32px; height: 32px; flex: none; }
.pl-scope .pl-team .pl-stepper input, .pl-scope .pl-team .pl-stepper b { width: auto; min-width: 26px; flex: 1; }


