/* prgvs — оформление контента (блоки pg-*), тёмная тема YOOtheme stakecasinojp.com */
:root {
  --pg-bg: #232428;
  --pg-card: #2a2b30;
  --pg-card2: #303137;
  --pg-line: rgba(255, 255, 255, .08);
  --pg-text: #b4b4b9;
  --pg-head: #fff;
  --pg-acc: #00fd26;
  --pg-acc-soft: rgba(0, 253, 38, .1);
  --pg-acc-line: rgba(0, 253, 38, .35);
  --pg-warn: #f5b942;
  --pg-warn-soft: rgba(245, 185, 66, .08);
  --pg-bad: #ff6b6b;
  --pg-r: 14px;
  --pg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- раскладка: контент + боковая колонка ---------- */
.pg-page { color: var(--pg-text); }
.uk-grid:has(.pg-side-wrap) h1 { font-weight: 700; font-size: 40px; line-height: 1.35; }
.pg-page h2, .uk-grid:has(.pg-side-wrap) h2 { margin: 56px 0 18px; padding-top: 6px; font-size: 28px; font-weight: 700; line-height: 1.35; color: var(--pg-head); scroll-margin-top: 90px; }
.pg-page h3 { margin: 32px 0 12px; font-size: 20px; font-weight: 700; color: var(--pg-head); }
.pg-page p { margin: 0 0 16px; }
.pg-page a:where(:not(.pg-btn):not(.uk-button)) { color: var(--pg-acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-page img { border-radius: var(--pg-r); }
/* бонус-баннер главной (вся картинка — ссылка /go/stake/) */
.pg-page a.pg-banner { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--pg-line); transition: transform .2s, box-shadow .2s; }
.pg-page a.pg-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 253, 38, .18); }
.pg-page a.pg-banner img { display: block; width: 100%; height: auto; }
.pg-hero { margin: 0 0 8px !important; }
.pg-hero img { display: block; width: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--pg-line); }
.pg-side { position: sticky; top: 100px; display: grid; gap: 16px; }
/* колонка YOOtheme тянется на высоту строки — иначе sticky не работает */
.uk-grid > :has(.pg-side-wrap) > *, .pg-side-wrap { height: 100%; }
/* колонки не растягиваются широкими таблицами (у flex-элемента min-width: auto) */
.uk-grid:has(.pg-side-wrap) > * { min-width: 0; }

/* ---------- шапка статьи ---------- */
.pg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pg-meta span { padding: 5px 14px; border: 1px solid var(--pg-line); border-radius: 999px; font-size: 13px; line-height: 1.5; color: var(--pg-text); background: var(--pg-card); }
.pg-meta .pg-meta-ok { color: var(--pg-acc); border-color: var(--pg-acc-line); background: var(--pg-acc-soft); }
.pg-note { margin: 0 0 26px; padding: 14px 18px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); font-size: 13px; line-height: 1.75; color: #8d8d93; }
.pg-lead { font-size: 17px; line-height: 1.85; color: #d2d2d6; }
.pg-label { margin: 34px 0 12px !important; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--pg-head); }
.pg-small { font-size: 13px; color: #8d8d93; }

/* ---------- карточки цифр ---------- */
.pg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 30px; }
.pg-stat { padding: 18px 18px 16px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); }
.pg-stat b { display: block; margin-bottom: 6px; font-family: var(--pg-mono); font-size: 24px; font-weight: 600; color: var(--pg-head); }
.pg-stat span { display: block; font-size: 13px; line-height: 1.6; color: #8d8d93; }

/* ---------- бонус ---------- */
.pg-promo { position: relative; overflow: hidden; margin: 0 0 30px; padding: 28px 30px 20px; border: 1px solid var(--pg-acc-line); border-radius: 18px; background: linear-gradient(135deg, rgba(0, 253, 38, .12), rgba(0, 253, 38, .03) 60%), var(--pg-card); }
.pg-promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 18px dashed rgba(0, 253, 38, .12); border-radius: 50%; pointer-events: none; }
.pg-badge { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 6px; background: var(--pg-acc); color: #111; font-size: 12px; font-weight: 700; }
.pg-promo p { margin: 0; }
.pg-promo .pg-promo-sub { font-size: 15px; font-weight: 700; color: #d2d2d6; }
.pg-promo .pg-promo-title { margin: 4px 0 2px; font-size: 42px; font-weight: 800; line-height: 1.2; color: var(--pg-head); }
.pg-promo .pg-promo-add { font-size: 15px; color: var(--pg-acc); }
.pg-promo-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 22px 0 18px; }
.pg-promo-facts { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.pg-promo-facts dt { font-size: 12px; color: #8d8d93; }
.pg-promo-facts dd { margin: 2px 0 0; font-family: var(--pg-mono); font-size: 14px; color: var(--pg-head); }
.pg-promo-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; }
.pg-page a.pg-promo-more { font-size: 13px; color: #d2d2d6; }
.pg-promo .pg-promo-foot { padding-top: 14px; border-top: 1px solid var(--pg-line); font-size: 12px; color: #8d8d93; }

/* ---------- кнопки и CTA ---------- */
.pg-btn { display: inline-block; padding: 13px 30px; border-radius: 10px; background: var(--pg-acc); color: #111 !important; font-weight: 700; font-size: 15px; line-height: 1.4; text-align: center; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.pg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 253, 38, .25); }
.pg-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0; padding: 20px 24px; border: 1px solid var(--pg-acc-line); border-radius: var(--pg-r); background: var(--pg-acc-soft); }
.pg-cta p { margin: 0 !important; }
.pg-cta b { display: block; font-size: 16px; color: var(--pg-head); }
.pg-cta span { display: block; font-size: 13px; color: #a0a0a6; }

/* ---------- выноски ---------- */
.pg-callout { margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--pg-line); border-left-width: 4px; border-radius: var(--pg-r); background: var(--pg-card); }
.pg-callout p:last-child { margin-bottom: 0; }
.pg-callout .pg-callout-title { margin-bottom: 8px; font-weight: 700; color: var(--pg-head); }
.pg-callout-warn { border-color: rgba(245, 185, 66, .35); border-left-color: var(--pg-warn); background: var(--pg-warn-soft); }
.pg-callout-warn .pg-callout-title { color: var(--pg-warn); }
.pg-callout-info { border-left-color: #5aa9ff; }
.pg-callout-help { border-left-color: var(--pg-acc); background: var(--pg-acc-soft); }

/* ---------- таблицы (pg-table + обычные таблицы в тексте страниц) ---------- */
.pg-table, .uk-section .uk-panel > table:not([class]) { width: 100%; margin: 0 0 22px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--pg-card); font-size: 14px; }
.pg-table thead, .pg-table thead tr, .uk-section .uk-panel > table:not([class]) thead, .uk-section .uk-panel > table:not([class]) thead tr { background: var(--pg-card2) !important; }
.pg-table th, .uk-section .uk-panel > table:not([class]) th { padding: 14px 18px; border-bottom: 2px solid var(--pg-acc-line); background: var(--pg-card2) !important; color: #d2d2d6 !important; font-size: 12px; font-weight: 700; text-align: left; }
.pg-table td, .uk-section .uk-panel > table:not([class]) td { padding: 13px 18px; border-bottom: 1px solid var(--pg-line); vertical-align: top; }
.pg-table th, .pg-table td, .uk-section .uk-panel > table:not([class]) th, .uk-section .uk-panel > table:not([class]) td { border-left: 0 !important; border-right: 0 !important; }
.pg-table tr:last-child td, .uk-section .uk-panel > table:not([class]) tr:last-child td { border-bottom: 0; }
.pg-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.pg-table-kv td:first-child { width: 32%; color: var(--pg-head); font-weight: 500; }
.pg-table-num td:not(:first-child), .pg-table-num th:not(:first-child) { text-align: right !important; font-family: var(--pg-mono); white-space: nowrap; }
.pg-table-num td:first-child { color: var(--pg-head); }
.pg-code { display: inline-block; min-width: 46px; margin-right: 10px; font-family: var(--pg-mono); font-size: 12px; color: var(--pg-acc); }
.pg-tier { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pg-tier-bronze { background: rgba(205, 127, 50, .18); color: #e0a06a; }
.pg-tier-silver { background: rgba(192, 192, 200, .16); color: #d6d6de; }
.pg-tier-gold { background: rgba(240, 200, 60, .16); color: #f2cf55; }
.pg-tier-platinum { background: rgba(120, 200, 220, .14); color: #8fd6e8; }
.pg-tier-diamond { background: rgba(110, 140, 255, .16); color: #a3b4ff; }
.pg-tier-obsidian { background: rgba(170, 100, 255, .18); color: #c9a2ff; }

/* ---------- шаги ---------- */
.pg-steps { counter-reset: pg-step; list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.pg-steps li { counter-increment: pg-step; position: relative; padding: 16px 18px 16px 70px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); }
.pg-steps li::before { content: counter(pg-step, decimal-leading-zero); position: absolute; left: 18px; top: 15px; width: 36px; height: 36px; border-radius: 10px; background: var(--pg-acc-soft); border: 1px solid var(--pg-acc-line); color: var(--pg-acc); font-family: var(--pg-mono); font-size: 14px; line-height: 36px; text-align: center; }
.pg-steps li strong { display: block; margin-bottom: 2px; color: var(--pg-head); }

/* ---------- карточки ---------- */
.pg-cards { display: grid; gap: 12px; margin: 0 0 24px; }
.pg-cards-2 { grid-template-columns: repeat(2, 1fr); }
.pg-cards-3 { grid-template-columns: repeat(3, 1fr); }
.pg-card { padding: 18px 20px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); font-size: 14px; line-height: 1.75; }
.pg-card p { margin: 0 0 6px; }
.pg-card p:last-child { margin: 0; }
.pg-card .pg-card-icon { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.pg-card .pg-card-title { font-size: 16px; font-weight: 700; color: var(--pg-head); }
.pg-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--pg-acc-soft); color: var(--pg-acc); font-family: var(--pg-mono); font-size: 11px; font-weight: 600; vertical-align: middle; }

/* ---------- схема Provably Fair ---------- */
.pg-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.pg-flow span { padding: 9px 14px; border: 1px solid var(--pg-line); border-radius: 10px; background: var(--pg-card); color: var(--pg-head); font-size: 14px; }
.pg-flow i { font-style: normal; color: var(--pg-acc); font-weight: 700; }
.pg-flow .pg-flow-result { border-color: var(--pg-acc-line); background: var(--pg-acc-soft); color: var(--pg-acc); }

/* ---------- теги ---------- */
.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pg-tags li { padding: 7px 14px; border: 1px solid var(--pg-line); border-radius: 999px; background: var(--pg-card); color: #d2d2d6; font-size: 14px; }

/* ---------- плюсы / минусы ---------- */
.pg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.pg-pros, .pg-cons { padding: 20px 22px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); }
.pg-pros { border-top: 3px solid var(--pg-acc); }
.pg-cons { border-top: 3px solid var(--pg-bad); }
.pg-page .pg-pros h3, .pg-page .pg-cons h3 { margin: 0 0 12px; font-size: 18px; }
.pg-pros ul, .pg-cons ul { margin: 0; padding: 0; list-style: none; }
.pg-pros li, .pg-cons li { position: relative; padding: 0 0 10px 26px; font-size: 14px; line-height: 1.7; }
.pg-pros li::before { content: "✓"; position: absolute; left: 0; color: var(--pg-acc); font-weight: 700; }
.pg-cons li::before { content: "!"; position: absolute; left: 4px; color: var(--pg-bad); font-weight: 700; }

/* ---------- связанные статьи ---------- */
.pg-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.pg-page .pg-links a { display: block; padding: 14px 40px 14px 18px; position: relative; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); color: var(--pg-head); font-size: 14px; text-decoration: none; }
.pg-page .pg-links a::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--pg-acc); }
.pg-page .pg-links a:hover { border-color: var(--pg-acc-line); }

/* ---------- автор ---------- */
.pg-author { display: flex; gap: 18px; align-items: flex-start; margin: 30px 0 0; padding: 22px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); font-size: 14px; }
.pg-author p { margin: 0 0 6px; }
.pg-author .pg-author-avatar { flex: 0 0 52px; height: 52px; margin: 0; border-radius: 50%; background: var(--pg-acc-soft); border: 1px solid var(--pg-acc-line); color: var(--pg-acc); font-size: 20px; font-weight: 700; line-height: 50px; text-align: center; }
.pg-author .pg-author-name { font-weight: 700; color: var(--pg-head); }

/* ---------- боковая колонка ---------- */
.pg-box { padding: 20px; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); }
.pg-box p { margin: 0; }
.pg-box-promo { border-color: var(--pg-acc-line); background: linear-gradient(160deg, rgba(0, 253, 38, .13), rgba(0, 253, 38, .03)), var(--pg-card); }
.pg-box-promo .pg-box-label { font-size: 12px; font-weight: 700; color: var(--pg-acc); }
.pg-box-promo .pg-box-big { margin: 6px 0 2px; font-size: 26px; font-weight: 800; color: var(--pg-head); }
.pg-box-promo .pg-box-sub { margin-bottom: 14px; font-size: 13px; color: #a0a0a6; }
.pg-box-promo .pg-btn { display: block; }
.pg-toc .pg-box-label, .pg-box-lic .pg-box-label { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--pg-head); }
.pg-toc ol { margin: 0; padding: 0; list-style: none; }
.pg-page .pg-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #b4b4b9; font-size: 14px; line-height: 1.5; text-decoration: none; }
.pg-page .pg-toc a:hover, .pg-page .pg-toc a.is-active { background: var(--pg-card2); color: var(--pg-head); }
.pg-toc a span { flex: 0 0 auto; font-family: var(--pg-mono); font-size: 11px; line-height: 21px; color: #6d6d73; }
.pg-toc a.is-active span { color: var(--pg-acc); }
.pg-box-lic b { display: block; color: var(--pg-head); font-size: 14px; }
.pg-box-lic code { display: block; margin: 4px 0 12px; padding: 0; border: 0; background: none; color: #d2d2d6; font-family: var(--pg-mono); font-size: 12px; }
.pg-page .pg-box-lic a { font-size: 13px; }

/* ---------- FAQ (аккордеон YOOtheme) на страницах с pg-разметкой ---------- */
.uk-grid:has(.pg-side-wrap) .uk-accordion > * { margin-top: 10px !important; padding: 0; border: 1px solid var(--pg-line); border-radius: var(--pg-r); background: var(--pg-card); }
.uk-grid:has(.pg-side-wrap) .uk-accordion > .uk-open { border-color: var(--pg-acc-line); }
.uk-grid:has(.pg-side-wrap) .uk-accordion-title { padding: 16px 20px; font-family: inherit; font-size: 16px; text-transform: none; }
.uk-grid:has(.pg-side-wrap) .uk-accordion-content { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.8; }

/* ---------- блок слотов темы внутри статьи ---------- */
.pg-page .vj-slots { margin: 6px 0 26px; --vj-slots-gap-x: 14px; --vj-slots-gap-y: 18px; }
.pg-page .vj-slots .vj-slots__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
.pg-page .vj-slot-card__media { border-radius: 12px; border-color: var(--pg-line); }
.pg-page .vj-slot-card__actions { width: 84%; }
.pg-page a.vj-slot-card__button { display: flex; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--pg-acc); color: #111 !important; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none !important; box-shadow: none; }
.pg-page a.vj-slot-card__button:hover { background: #3dff5c; color: #111 !important; }
.pg-page .vj-slot-card__title { margin-top: 10px; font-family: inherit; font-size: 14px; text-transform: none; }

/* ---------- футер: служебные ссылки ---------- */
.pg-foot-links { margin-bottom: 10px !important; font-size: 13px; line-height: 2; }
.pg-foot-links a { color: #b4b4b9; text-decoration: none; }
.pg-foot-links a:hover { color: var(--pg-acc); }

/* ---------- мобильные ---------- */
@media (max-width: 959px) {
  .pg-side { position: static; }
  .pg-toc { display: none; }
}
@media (max-width: 640px) {
  .pg-page h2 { margin-top: 42px; font-size: 23px; }
  .pg-stats { grid-template-columns: repeat(2, 1fr); }
  .pg-stat b { font-size: 20px; }
  .pg-cards-2, .pg-cards-3, .pg-proscons, .pg-links { grid-template-columns: 1fr; }
  .pg-promo { padding: 22px 18px 16px; }
  .pg-promo .pg-promo-title { font-size: 32px; }
  .pg-promo-cta, .pg-promo-cta .pg-btn, .pg-cta .pg-btn { width: 100%; }
  .pg-table, .uk-section .uk-panel > table:not([class]) { display: block; min-width: 0 !important; max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .uk-grid:has(.pg-side-wrap) h1 { font-size: 28px; }
  .pg-table th, .pg-table td { padding: 11px 12px; }
  .pg-table-kv td:first-child { width: auto; }
  .pg-steps li { padding-left: 62px; }
}
