/* =========================================================================
   ПокерСистема — Onboarding (первый вход)
   Тёмный премиальный poker SaaS. Всё заскоуплено под #ps-onboarding,
   чтобы не конфликтовать с main.css. Переиспользуем переменные темы
   (--bg-primary, --accent, --accent-3, --transition и т.д.) с фолбэками.
   ========================================================================= */

#ps-onboarding {
  --ps-ob-bg: var(--bg-primary, #0a0e13);
  --ps-ob-bg-2: var(--bg-secondary, #0f1419);
  --ps-ob-card: var(--bg-elevated, #151d26);
  --ps-ob-accent: var(--accent, #ef4444);
  --ps-ob-accent-2: #A32632;          /* глубокий винный акцент (red luxe) */
  --ps-ob-gold: var(--accent-3, #E0B24F);
  --ps-ob-text: var(--text, #f1f5f9);
  --ps-ob-text-2: var(--text-2, #cbd5e1);
  --ps-ob-muted: var(--muted, #94a3b8);
  --ps-ob-brd: var(--brd, #1e293b);
  --ps-ob-grad: linear-gradient(135deg, var(--ps-ob-accent) 0%, var(--ps-ob-accent-2) 100%);
  --ps-ob-t: 240ms cubic-bezier(.4, 0, .2, 1);

  position: fixed;
  inset: 0;
  z-index: 100000;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(239,68,68,.11), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(163,38,50,.18), transparent 55%),
    var(--ps-ob-bg);
  color: var(--ps-ob-text);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--ps-ob-t);
  -webkit-tap-highlight-color: transparent;
}
#ps-onboarding.ps-ob-visible { opacity: 1; }
#ps-onboarding[hidden] { display: none !important; }

html.ps-ob-lock, body.ps-ob-lock { overflow: hidden !important; }

/* ---------- Top bar ---------- */
.ps-ob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    calc(var(--tg-csafe-top, env(safe-area-inset-top, 0px)) + 14px)
    18px 8px;
  flex: 0 0 auto;
}
.ps-ob-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 15px;
}
.ps-ob-brand i {
  font-size: 18px;
  background: var(--ps-ob-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ps-ob-skip {
  border: 0;
  background: transparent;
  color: var(--ps-ob-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color var(--ps-ob-t), background var(--ps-ob-t);
}
.ps-ob-skip:hover { color: var(--ps-ob-text); background: rgba(255,255,255,.05); }
.ps-ob-skip:active { transform: scale(.97); }

/* ---------- Carousel ---------- */
.ps-ob-viewport { flex: 1 1 auto; overflow: hidden; position: relative; }
.ps-ob-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform var(--ps-ob-t);
  will-change: transform;
}
.ps-ob-panel {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
}
.ps-ob-panel::-webkit-scrollbar { width: 0; height: 0; }

/* generic intro animation when a panel becomes active */
.ps-ob-panel .ps-ob-rise {
  opacity: 0;
  transform: translateY(14px);
}
.ps-ob-panel.is-active .ps-ob-rise {
  opacity: 1;
  transform: none;
  transition: opacity 360ms ease, transform 360ms cubic-bezier(.2,.7,.2,1);
}
.ps-ob-panel.is-active .ps-ob-rise:nth-child(2) { transition-delay: 50ms; }
.ps-ob-panel.is-active .ps-ob-rise:nth-child(3) { transition-delay: 100ms; }
.ps-ob-panel.is-active .ps-ob-rise:nth-child(4) { transition-delay: 150ms; }
.ps-ob-panel.is-active .ps-ob-rise:nth-child(5) { transition-delay: 200ms; }

.ps-ob-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ps-ob-accent);
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ps-ob-h1 {
  font-size: clamp(26px, 8vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.5px;
}
.ps-ob-h1 .ps-ob-grad-text {
  background: linear-gradient(120deg, var(--ps-ob-accent) 0%, var(--ps-ob-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ps-ob-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--ps-ob-text);
  margin: 0 0 8px;
}
.ps-ob-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ps-ob-text-2);
  margin: 0 0 16px;
  max-width: 38ch;
}

/* ---------- Buttons ---------- */
.ps-ob-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--ps-ob-grad);
  padding: 16px 22px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  box-shadow: 0 10px 26px -8px rgba(163,38,50,.5);
  transition: transform var(--ps-ob-t), box-shadow var(--ps-ob-t), filter var(--ps-ob-t), opacity var(--ps-ob-t);
}
.ps-ob-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -8px rgba(163,38,50,.62); filter: brightness(1.04); }
.ps-ob-btn:active { transform: translateY(0) scale(.985); }
.ps-ob-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.3); transform: none; }

.ps-ob-btn--ghost {
  background: rgba(255,255,255,.05);
  color: var(--ps-ob-text);
  border: 1px solid var(--ps-ob-brd);
  box-shadow: none;
}
.ps-ob-btn--ghost:hover { background: rgba(255,255,255,.09); box-shadow: none; filter: none; }

.ps-ob-btn--tg { background: linear-gradient(135deg, #2aabee 0%, #229ED9 100%); box-shadow: 0 10px 26px -8px rgba(34,158,217,.6); }
.ps-ob-btn--tg:hover { box-shadow: 0 16px 32px -8px rgba(34,158,217,.7); }

.ps-ob-link {
  border: 0;
  background: transparent;
  color: var(--ps-ob-text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px;
  text-decoration: none;
  display: inline-block;
  transition: color var(--ps-ob-t);
}
.ps-ob-link u { text-underline-offset: 3px; }
.ps-ob-link:hover { color: var(--ps-ob-text); }

/* sticky CTA area at bottom of a panel */
.ps-ob-cta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ps-ob-hint {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ps-ob-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
}
.ps-ob-hint i { animation: ps-ob-nudge 1.4s ease-in-out infinite; }
@keyframes ps-ob-nudge { 0%,100%{ transform: translateX(0);} 50%{ transform: translateX(5px);} }

/* ---------- Hero artwork ---------- */
.ps-ob-hero-art {
  position: relative;
  align-self: center;
  width: min(228px, 58vw);
  aspect-ratio: 1;
  margin: 10px 0 22px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(125% 125% at 26% 16%, rgba(239,68,68,.40), transparent 56%),
    radial-gradient(125% 125% at 80% 88%, rgba(163,38,50,.55), transparent 58%),
    linear-gradient(165deg, #1d2632 0%, var(--ps-ob-card) 58%, #0e141b 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 26px 55px -16px rgba(0,0,0,.78),
    0 0 64px -14px rgba(239,68,68,.42),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(255,255,255,.03);
}
/* Медленный световой свип по плитке (заклипован радиусом карточки) */
.ps-ob-hero-art::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(224,178,79,.12) 38deg,
    rgba(239,68,68,.22) 86deg,
    transparent 150deg,
    transparent 360deg);
  animation: ps-ob-spin 16s linear infinite;
}
.ps-ob-hero-art .ps-ob-spark {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 70%);
}

/* ---------- Dots ---------- */
.ps-ob-dots {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 calc(var(--tg-csafe-bottom, env(safe-area-inset-bottom, 0px)) + 14px);
}
.ps-ob-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  transition: width var(--ps-ob-t), background var(--ps-ob-t);
}
.ps-ob-dot.is-active { width: 22px; background: var(--ps-ob-grad); }

/* ---------- Gallery (screen 2) ---------- */
.ps-ob-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 -4px 4px;
  scrollbar-width: none;
}
.ps-ob-chips::-webkit-scrollbar { display: none; }
.ps-ob-chip {
  flex: 0 0 auto;
  border: 1px solid var(--ps-ob-brd);
  background: rgba(255,255,255,.04);
  color: var(--ps-ob-text-2);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ps-ob-t), color var(--ps-ob-t), border-color var(--ps-ob-t);
}
.ps-ob-chip.is-active { background: var(--ps-ob-grad); color: #fff; border-color: transparent; }

.ps-ob-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ps-ob-brd);
  background: var(--ps-ob-card);
  cursor: pointer;
  display: block;
}
.ps-ob-shot--big { margin-bottom: 12px; }
.ps-ob-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.ps-ob-shot:hover img { transform: scale(1.04); }
.ps-ob-shot .ps-ob-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(239,68,68,.28), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(163,38,50,.26), transparent 55%),
    var(--ps-ob-card);
}
.ps-ob-shot .ps-ob-ph i { font-size: 54px; color: rgba(255,255,255,.85); }
.ps-ob-shot .ps-ob-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}
.ps-ob-shot .ps-ob-zoom {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  font-size: 16px; color: #fff;
}

.ps-ob-thumbs {
  display: flex; gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ps-ob-thumbs::-webkit-scrollbar { display: none; }
.ps-ob-thumb {
  flex: 0 0 84px;
  width: 84px; height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--ps-ob-card);
  cursor: pointer;
  position: relative;
  transition: border-color var(--ps-ob-t), transform var(--ps-ob-t);
}
.ps-ob-thumb.is-active { border-color: var(--ps-ob-accent); }
.ps-ob-thumb:active { transform: scale(.96); }
.ps-ob-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-ob-thumb .ps-ob-ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ps-ob-bg-2); }
.ps-ob-thumb .ps-ob-ph i { font-size: 22px; color: rgba(255,255,255,.65); }

/* ---------- Fullscreen viewer ---------- */
.ps-ob-viewer {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(4,7,11,.96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--ps-ob-t);
}
.ps-ob-viewer.is-open { opacity: 1; }
.ps-ob-viewer[hidden] { display: none !important; }
.ps-ob-viewer-top {
  display: flex; justify-content: flex-end;
  padding: calc(var(--tg-csafe-top, env(safe-area-inset-top, 0px)) + 12px) 16px 4px;
}
.ps-ob-viewer-close {
  width: 42px; height: 42px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.08); color: #fff; font-size: 22px;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--ps-ob-t), transform var(--ps-ob-t);
}
.ps-ob-viewer-close:hover { background: rgba(255,255,255,.16); }
.ps-ob-viewer-close:active { transform: scale(.94); }
.ps-ob-viewer-stage {
  flex: 1 1 auto;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 12px;
  overflow: hidden;
}
.ps-ob-viewer-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  border: 1px solid var(--ps-ob-brd);
  background: var(--ps-ob-card);
  object-fit: contain;
  transition: opacity 200ms ease;
}
.ps-ob-viewer-ph {
  width: min(92%, 520px);
  aspect-ratio: 16/10;
  border-radius: 16px;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(239,68,68,.28), transparent 55%),
    var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
}
.ps-ob-viewer-ph i { font-size: 80px; color: rgba(255,255,255,.85); }
.ps-ob-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.1); color: #fff;
  font-size: 24px; cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--ps-ob-t), transform var(--ps-ob-t);
}
.ps-ob-nav:hover { background: rgba(255,255,255,.2); }
.ps-ob-nav:active { transform: translateY(-50%) scale(.92); }
.ps-ob-nav--prev { left: 8px; }
.ps-ob-nav--next { right: 8px; }
.ps-ob-viewer-meta {
  flex: 0 0 auto;
  padding: 14px 22px calc(var(--tg-csafe-bottom, env(safe-area-inset-bottom, 0px)) + 22px);
  text-align: center;
}
.ps-ob-viewer-meta b { display: block; font-size: 15px; margin-bottom: 4px; }
.ps-ob-viewer-meta span { font-size: 13px; color: var(--ps-ob-text-2); }
.ps-ob-viewer-count { font-size: 12px; color: var(--ps-ob-muted); margin-top: 8px; }

/* ---------- Tournament cards (screen 3) ---------- */
.ps-ob-list { display: flex; flex-direction: column; gap: 12px; }
.ps-ob-tcard {
  background: var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 16px;
  padding: 16px;
  transition: border-color var(--ps-ob-t), transform var(--ps-ob-t);
}
.ps-ob-tcard:hover { border-color: var(--ps-ob-brd-2, #334155); }
.ps-ob-tcard h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.ps-ob-trow { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.ps-ob-tmeta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ps-ob-text-2); }
.ps-ob-tmeta i { color: var(--ps-ob-accent); font-size: 15px; }
.ps-ob-tprice { color: var(--ps-ob-gold); font-weight: 700; }
.ps-ob-seats {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.08);
  overflow: hidden; margin-bottom: 12px;
}
.ps-ob-seats > span { display: block; height: 100%; background: var(--ps-ob-grad); border-radius: 999px; transition: width var(--ps-ob-t); }
.ps-ob-tcard .ps-ob-btn { font-size: 14.5px; padding: 12px 18px; }
.ps-ob-empty {
  text-align: center; color: var(--ps-ob-muted);
  padding: 28px 12px; font-size: 14px;
}
.ps-ob-empty i { font-size: 38px; display: block; margin-bottom: 10px; color: rgba(255,255,255,.4); }

/* ---------- Rating placeholder (screen 4) ---------- */
.ps-ob-podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 12px;
  margin: 6px 0 18px;
}
.ps-ob-pod {
  flex: 0 0 84px;
  background: var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 14px 14px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 14px 6px 12px;
  position: relative;
}
.ps-ob-pod .ps-ob-medal {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  margin-bottom: 10px; color: #1a1206;
}
.ps-ob-pod--1 { height: 150px; }
.ps-ob-pod--1 .ps-ob-medal { background: linear-gradient(135deg,#ffe08a,#E0B24F); box-shadow: 0 0 20px rgba(224,178,79,.5); }
.ps-ob-pod--2 { height: 120px; }
.ps-ob-pod--2 .ps-ob-medal { background: linear-gradient(135deg,#e8edf3,#aab6c4); }
.ps-ob-pod--3 { height: 100px; }
.ps-ob-pod--3 .ps-ob-medal { background: linear-gradient(135deg,#f0b483,#c97b4a); }
.ps-ob-pod .ps-ob-lock { font-size: 18px; color: var(--ps-ob-muted); }
.ps-ob-rating-note {
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px dashed var(--ps-ob-brd);
  border-radius: 14px;
  padding: 16px;
  color: var(--ps-ob-text-2);
  font-size: 14px;
}
.ps-ob-rating-note b { color: var(--ps-ob-text); display:block; margin-bottom: 4px; }

/* ---------- Feature grid (screen 5) ---------- */
.ps-ob-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ps-ob-feat {
  background: var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 14px;
  padding: 14px;
  transition: transform var(--ps-ob-t), border-color var(--ps-ob-t);
}
.ps-ob-feat:hover { transform: translateY(-2px); border-color: rgba(239,68,68,.4); }
.ps-ob-feat i {
  font-size: 22px;
  background: var(--ps-ob-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px; display: block;
}
.ps-ob-feat b { font-size: 13.5px; font-weight: 700; display: block; }

/* ---------- FAQ accordion (screen 6) ---------- */
.ps-ob-faq { display: flex; flex-direction: column; gap: 8px; }
.ps-ob-acc {
  background: var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 14px;
  overflow: hidden;
}
.ps-ob-acc-q {
  width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ps-ob-text);
  font: inherit; font-size: 14.5px; font-weight: 700;
  padding: 15px 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ps-ob-acc-q i { transition: transform var(--ps-ob-t); color: var(--ps-ob-accent); flex: 0 0 auto; }
.ps-ob-acc.is-open .ps-ob-acc-q i { transform: rotate(180deg); }
.ps-ob-acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--ps-ob-t);
}
.ps-ob-acc-a > div {
  padding: 0 16px 15px;
  font-size: 14px; line-height: 1.5; color: var(--ps-ob-text-2);
}

/* ---------- Registration panel ---------- */
.ps-ob-reg { align-items: center; text-align: center; }
.ps-ob-reg-logo {
  width: 76px; height: 76px; border-radius: 20px;
  display: grid; place-items: center; margin: 8px 0 16px;
  background: var(--ps-ob-grad);
  box-shadow: 0 14px 30px -8px rgba(163,38,50,.55);
}
.ps-ob-reg-logo i { font-size: 38px; color: #fff; }
.ps-ob-reg .ps-ob-h1 { text-align: center; }
.ps-ob-reg-actions { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ps-ob-or {
  display: flex; align-items: center; gap: 12px;
  color: var(--ps-ob-muted); font-size: 12px; font-weight: 600;
  margin: 6px 0;
}
.ps-ob-or::before, .ps-ob-or::after { content: ""; flex: 1; height: 1px; background: var(--ps-ob-brd); }

.ps-ob-consent {
  width: 100%; max-width: 380px;
  text-align: left;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0 4px;
  display: flex; flex-direction: column; gap: 12px;
}
.ps-ob-check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.ps-ob-check input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--ps-ob-accent);
  cursor: pointer;
}
.ps-ob-check span { font-size: 12.5px; line-height: 1.45; color: var(--ps-ob-text-2); }
.ps-ob-check a { color: var(--ps-ob-accent); text-underline-offset: 2px; }
.ps-ob-back {
  position: absolute;
  top: calc(var(--tg-csafe-top, env(safe-area-inset-top, 0px)) + 8px);
  left: 12px;
  z-index: 2;
  width: 40px; height: 40px; border-radius: 12px;
  border: 0; background: rgba(255,255,255,.06); color: var(--ps-ob-text);
  font-size: 22px; cursor: pointer; display: none;
  place-items: center;
  transition: background var(--ps-ob-t);
}
.ps-ob-back:hover { background: rgba(255,255,255,.12); }
#ps-onboarding.ps-ob-on-reg .ps-ob-back { display: grid; }
#ps-onboarding.ps-ob-on-reg .ps-ob-top,
#ps-onboarding.ps-ob-on-reg .ps-ob-dots { visibility: hidden; }

/* preview mode (повторный просмотр «О приложении») — прячем «решающие» CTA */
#ps-onboarding.ps-ob-preview .ps-ob-resolve { display: none !important; }

@media (min-width: 720px) {
  .ps-ob-panel { padding-left: max(20px, calc(50vw - 340px)); padding-right: max(20px, calc(50vw - 340px)); }
  .ps-ob-features { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #ps-onboarding, .ps-ob-track, .ps-ob-panel .ps-ob-rise, .ps-ob-viewer { transition: none !important; }
  .ps-ob-hint i { animation: none !important; }
}


/* ---------- Лого клуба (поверх иконки-фолбэка) + бренд платформы ПокерСистема ---------- */
.ps-ob-logo-img { z-index: 1; }
.ps-ob-hero-art .ps-ob-logo-img,
.ps-ob-reg-logo .ps-ob-logo-img,
.ps-ob-brand-mark .ps-ob-logo-img {
  position: absolute;
  object-fit: contain;
  display: block;
}
.ps-ob-hero-art .ps-ob-logo-img { inset: 16%; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.ps-ob-reg-logo { position: relative; overflow: hidden; }
.ps-ob-reg-logo .ps-ob-logo-img { inset: 15%; }
.ps-ob-brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
}
.ps-ob-brand-mark .ps-ob-logo-img { inset: 0; width: 100%; height: 100%; }

/* монограмма «PS» — логотип платформы (масштабируется, в фирменном red luxe) */
.ps-ob-ps-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--ps-ob-accent), var(--ps-ob-accent-2));
  box-shadow: 0 3px 10px -2px rgba(163,38,50,.55), inset 0 1px 0 rgba(255,255,255,.28);
}
.ps-ob-ps-badge--sm { width: 18px; height: 18px; border-radius: 5px; font-size: 9px; }

.ps-ob-credit {
  margin-top: 10px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ps-ob-muted);
}

.ps-ob-poweredby {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--ps-ob-brd);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ps-ob-text-2);
}
.ps-ob-poweredby b { color: var(--ps-ob-text); }


/* ---------- Живая статистика клуба (онбординг) ---------- */
.ps-ob-stats {
  display: flex;
  gap: 10px;
  align-self: stretch;
  margin: 2px 0 16px;
}
.ps-ob-stats[hidden] { display: none; }
.ps-ob-stat {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.ps-ob-stat b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.3px;
  background: linear-gradient(120deg, var(--ps-ob-accent) 0%, var(--ps-ob-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ps-ob-stat span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--ps-ob-muted);
}


/* =========================================================================
   v2 — улучшенный HERO, слайд-шоу клуба (экран 1), живой рейтинг (экран 3),
   корректное отображение логотипа (без «двух логотипов»).
   ========================================================================= */

/* Лого клуба идёт перед иконкой-фолбэком: при наличии картинки иконка скрыта —
   остаётся ОДИН логотип. Если фото не загрузилось (onerror удаляет <img>),
   иконка снова проявляется. */
#ps-onboarding .ps-ob-logo-img + i { display: none !important; }

/* ---------- HERO: премиальная подача логотипа (медальон + кольцо + свечение) ---------- */
.ps-ob-hero-art { position: relative; }

/* Пульсирующее свечение за медальоном */
.ps-ob-hero-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(circle, rgba(239,68,68,.70), rgba(224,178,79,.22) 44%, transparent 72%);
  filter: blur(18px);
  animation: ps-ob-pulse 4.5s ease-in-out infinite;
}

/* Вращающееся градиентное кольцо red -> gold */
.ps-ob-hero-ring {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(from 0deg,
    rgba(255,255,255,0) 0deg,
    rgba(239,68,68,0) 30deg,
    rgba(239,68,68,1) 128deg,
    rgba(255,120,90,1) 175deg,
    rgba(224,178,79,1) 215deg,
    rgba(255,255,255,0) 300deg,
    rgba(255,255,255,0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 5px rgba(239,68,68,.65)) drop-shadow(0 0 9px rgba(224,178,79,.35));
  animation: ps-ob-spin 7s linear infinite;
}
/* Тонкое статичное кольцо — чёткая окружность под вращающимся */
.ps-ob-hero-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 34px rgba(255,255,255,.05);
}

/* Медальон-плита: на ней аккуратно ложится ЛЮБОЙ логотип клуба */
.ps-ob-hero-mark {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 54%;
  height: 54%;
  padding: 11%;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(0,0,0,.16)),
    var(--ps-ob-card);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 18px 38px -16px rgba(0,0,0,.70),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 0 22px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
/* Верхний блик на плите */
.ps-ob-hero-mark::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0; height: 42%;
  border-radius: 24px 24px 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent);
  opacity: .7;
  pointer-events: none;
}
/* Иконка-фолбэк (нет лого клуба) — фирменная пика в red/gold */
.ps-ob-hero-art .ps-ob-hero-mark i {
  position: relative;
  font-size: clamp(52px, 18vw, 84px);
  line-height: 1;
  /* color наследуется в ::before-глиф remixicon — НЕ используем text-fill:transparent,
     иначе иконка станет невидимой (фон-градиент к ::before не применяется). */
  color: var(--ps-ob-gold);
  filter:
    drop-shadow(0 6px 14px rgba(0,0,0,.55))
    drop-shadow(0 0 16px rgba(224,178,79,.40))
    drop-shadow(0 0 26px rgba(239,68,68,.30));
}
/* Логотип клуба: вписан в плиту с отступом, скруглён вместе с ней */
.ps-ob-hero-mark .ps-ob-logo-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

@keyframes ps-ob-pulse { 0%,100% { opacity:.65; transform:scale(.98); } 50% { opacity:1; transform:scale(1.06); } }
@keyframes ps-ob-spin { to { transform: rotate(360deg); } }

/* ---------- Слайд-шоу клуба (экран 1) ---------- */
.ps-ob-slideshow {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 4px 0 6px;
  background: var(--ps-ob-card);
  border: 1px solid var(--ps-ob-brd);
  box-shadow: var(--shadow-lg, 0 18px 40px -16px rgba(0,0,0,.7));
}
.ps-ob-slides { position: relative; width: 100%; aspect-ratio: 4 / 5; }
@media (min-aspect-ratio: 3/4) { .ps-ob-slides { aspect-ratio: 16 / 11; } }
.ps-ob-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.05);
  transition: opacity 700ms ease, transform 6000ms ease;
  pointer-events: none;
}
.ps-ob-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.ps-ob-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-ob-slide.is-ph img { display: none; }
.ps-ob-slide-ph {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(239,68,68,.30), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(163,38,50,.30), transparent 55%),
    var(--ps-ob-card);
}
.ps-ob-slide.is-ph .ps-ob-slide-ph { display: flex; }
.ps-ob-slide-ph i { font-size: 56px; color: rgba(255,255,255,.9); }
.ps-ob-slide-ph span { font-size: 14px; font-weight: 700; color: var(--ps-ob-text); }
.ps-ob-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.80), transparent);
  z-index: 2;
}
.ps-ob-slide-zoom {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.40); backdrop-filter: blur(4px);
  color: #fff; font-size: 15px; z-index: 3;
  opacity: 0; transition: opacity var(--ps-ob-t);
}
.ps-ob-slide.is-active .ps-ob-slide-zoom { opacity: .9; }
.ps-ob-slide.is-ph .ps-ob-slide-zoom { display: none; }
.ps-ob-snav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.40); color: #fff;
  font-size: 22px; cursor: pointer; z-index: 4;
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background var(--ps-ob-t), transform var(--ps-ob-t);
}
.ps-ob-snav:hover { background: rgba(0,0,0,.62); }
.ps-ob-snav:active { transform: translateY(-50%) scale(.92); }
.ps-ob-snav--prev { left: 10px; }
.ps-ob-snav--next { right: 10px; }
.ps-ob-slide-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 7px; z-index: 4;
}
.ps-ob-sdot {
  width: 7px; height: 7px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: width var(--ps-ob-t), background var(--ps-ob-t);
}
.ps-ob-sdot.is-active { width: 20px; background: #fff; }

/* ---------- Живой рейтинг (экран 3) ---------- */
.ps-ob-rating { display: flex; flex-direction: column; gap: 14px; }
.ps-ob-podium--live { align-items: flex-end; justify-content: center; margin: 18px 0 4px; gap: 10px; }
.ps-ob-podium--live .ps-ob-pod {
  flex: 1 1 0; min-width: 0;
  padding: 12px 8px 14px;
  justify-content: flex-start;
}
.ps-ob-podium--live .ps-ob-pod--1 { height: 172px; }
.ps-ob-podium--live .ps-ob-pod--2 { height: 142px; }
.ps-ob-podium--live .ps-ob-pod--3 { height: 120px; }
.ps-ob-podium--live .ps-ob-pod .ps-ob-medal { margin-bottom: 6px; width: 34px; height: 34px; font-size: 14px; }
.ps-ob-pod-crown {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-size: 24px; color: var(--ps-ob-gold);
  filter: drop-shadow(0 2px 8px rgba(224,178,79,.6));
}
.ps-ob-pod-name {
  max-width: 100%;
  font-size: 12.5px; font-weight: 700; color: var(--ps-ob-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center; line-height: 1.2;
}
.ps-ob-pod-pts {
  margin-top: 3px;
  font-size: 15px; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--ps-ob-accent) 0%, var(--ps-ob-gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ps-ob-pod-pts span {
  font-size: 10px; font-weight: 600; margin-left: 3px;
  color: var(--ps-ob-muted); -webkit-text-fill-color: var(--ps-ob-muted);
}
.ps-ob-rank { display: flex; flex-direction: column; gap: 6px; }
.ps-ob-rank-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--ps-ob-brd);
  border-radius: 12px;
  padding: 11px 14px;
}
.ps-ob-rank-pos { flex: 0 0 22px; text-align: center; font-size: 13px; font-weight: 800; color: var(--ps-ob-muted); }
.ps-ob-rank-name {
  flex: 1 1 auto; min-width: 0;
  font-size: 14px; font-weight: 600; color: var(--ps-ob-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-ob-rank-pts { flex: 0 0 auto; font-size: 14px; font-weight: 800; color: var(--ps-ob-gold); }

@media (prefers-reduced-motion: reduce) {
  .ps-ob-hero-glow, .ps-ob-hero-ring, .ps-ob-hero-art::after { animation: none !important; }
  .ps-ob-slide { transition: opacity 300ms ease !important; transform: none !important; }
  .ps-ob-slide.is-active { transform: none !important; }
}

/* ---- Кликабельная ссылка на платформу ПокерСистема ---- */
.ps-ob-ps-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: color var(--ps-ob-t);
}
.ps-ob-ps-link:hover { color: var(--ps-ob-text); text-decoration: underline; text-underline-offset: 2px; }
.ps-ob-poweredby .ps-ob-ps-link { color: var(--ps-ob-text); display: inline; }
