/* ==========================================================================
   JUEGOS CONTENT STYLES — Dark Theme
   Стили для всех элементов контента внутри .je-article__body
   Gutenberg blocks + classic HTML elements
   ========================================================================== */

/* ==========================================================================
   HEADINGS
   ========================================================================== */

.je-article__body h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--je-text);
    line-height: 1.25;
    margin: 2.5rem 0 1rem;
}

.je-article__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--je-text);
    line-height: 1.3;
    margin: 2.5rem 0 0.85rem;
}

.je-article__body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--je-text);
    line-height: 1.35;
    margin: 2rem 0 0.75rem;
}

.je-article__body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--je-text);
    line-height: 1.4;
    margin: 1.75rem 0 0.65rem;
}

.je-article__body h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--je-text);
    line-height: 1.45;
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.je-article__body h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--je-text-secondary);
    line-height: 1.5;
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* First heading after article start — no top margin */
.je-article__body > h2:first-child,
.je-article__body > h3:first-child {
    margin-top: 0;
}

/* ==========================================================================
   PARAGRAPHS & INLINE
   ========================================================================== */

.je-article__body p {
    margin: 0 0 1.15rem;
    color: var(--je-text-secondary);
    font-size: 0.935rem;
    line-height: 1.75;
}

/* Lead / intro paragraph */
.je-article__body .is-style-je-lead,
.je-article__body .je-lead {
    font-size: 1.1rem;
    color: #b8bcc5;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.je-article__body strong,
.je-article__body b {
    color: var(--je-text);
    font-weight: 600;
}

.je-article__body em,
.je-article__body i {
    font-style: italic;
}

.je-article__body u {
    text-decoration-color: var(--je-accent);
    text-underline-offset: 3px;
}

.je-article__body s,
.je-article__body del {
    color: var(--je-text-secondary);
}

.je-article__body mark {
    background: rgba(0, 212, 170, 0.2);
    color: var(--je-text);
    padding: 0.1em 0.3em;
    border-radius: 3px;
}

.je-article__body small {
    font-size: 0.82rem;
    color: var(--je-text-secondary);
}

.je-article__body abbr[title] {
    text-decoration: underline dotted var(--je-accent);
    cursor: help;
}

.je-article__body sup,
.je-article__body sub {
    font-size: 0.75em;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.je-article__body a {
    color: var(--je-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 212, 170, 0.4);
    text-underline-offset: 2px;
    transition: color var(--je-transition), text-decoration-color var(--je-transition);
}

.je-article__body a:hover {
    color: var(--je-accent-hover);
    text-decoration-color: var(--je-accent-hover);
}

/* External link indicator */
.je-article__body a[target="_blank"]::after {
    content: '\2009\2197';
    font-size: 0.75em;
    vertical-align: super;
    text-decoration: none;
    display: inline;
}

/* Don't show arrow on buttons/CTA links */
.je-cta-block a[target="_blank"]::after,
.je-article__body .wp-block-button__link[target="_blank"]::after {
    content: none;
}

/* ==========================================================================
   LISTS
   ========================================================================== */

.je-article__body ul,
.je-article__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    color: var(--je-text-secondary);
    font-size: 0.935rem;
    line-height: 1.75;
}

.je-article__body ul {
    list-style: none;
    padding-left: 0;
}

.je-article__body ul > li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}

.je-article__body ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--je-accent);
    border-radius: 50%;
}

.je-article__body ol > li {
    margin-bottom: 0.4rem;
}

.je-article__body ol > li::marker {
    color: var(--je-accent);
    font-weight: 600;
}

/* Nested lists */
.je-article__body ul ul,
.je-article__body ol ol,
.je-article__body ul ol,
.je-article__body ol ul {
    margin: 0.4rem 0 0.4rem 0;
}

.je-article__body ul ul > li::before {
    background: transparent;
    border: 1.5px solid var(--je-accent);
}

/* ==========================================================================
   BLOCKQUOTE
   ========================================================================== */

.je-article__body blockquote,
.je-article__body .wp-block-quote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--je-accent);
    background: var(--je-input-bg);
    border-radius: 0 var(--je-radius-sm) var(--je-radius-sm) 0;
    quotes: none;
}

.je-article__body blockquote::before,
.je-article__body blockquote::after,
.je-article__body .wp-block-quote::before,
.je-article__body .wp-block-quote::after {
    content: none;
    display: none;
}

.je-article__body blockquote p,
.je-article__body .wp-block-quote p {
    color: #b8bcc5;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.je-article__body blockquote p:last-child,
.je-article__body .wp-block-quote p:last-child {
    margin-bottom: 0;
}

.je-article__body blockquote cite,
.je-article__body .wp-block-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--je-text-secondary);
    font-style: normal;
}

.je-article__body blockquote cite::before {
    content: '— ';
}

/* ==========================================================================
   PULLQUOTE
   ========================================================================== */

.je-article__body .wp-block-pullquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-top: 3px solid var(--je-accent);
    border-bottom: 3px solid var(--je-accent);
    border-left: none;
    background: transparent;
    text-align: center;
    border-radius: 0;
    quotes: none;
}

.je-article__body .wp-block-pullquote::before,
.je-article__body .wp-block-pullquote::after {
    content: none;
    display: none;
}

.je-article__body .wp-block-pullquote blockquote {
    border-left: none;
    background: transparent;
    padding: 0;
    margin: 0;
    quotes: none;
}

.je-article__body .wp-block-pullquote blockquote::before,
.je-article__body .wp-block-pullquote blockquote::after {
    content: none;
    display: none;
}

.je-article__body .wp-block-pullquote p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--je-text);
    font-style: italic;
}

.je-article__body .wp-block-pullquote cite {
    color: var(--je-text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.je-article__body table,
.je-article__body .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--je-input-bg);
    font-size: 0.875rem;
    border: none;
}

.je-article__body .wp-block-table {
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: var(--je-radius-sm);
    background: var(--je-input-bg);
}

.je-article__body .wp-block-table table {
    margin: 0;
    border-radius: 0;
}

.je-article__body table th,
.je-article__body .wp-block-table th {
    background: var(--je-input-bg);
    color: var(--je-text);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    border-bottom: 2px solid var(--je-border);
}

.je-article__body table td,
.je-article__body .wp-block-table td {
    padding: 0.7rem 1rem;
    color: var(--je-text-secondary);
    border: none;
    border-bottom: 1px solid var(--je-border);
}

.je-article__body table tr:last-child td {
    border-bottom: none;
}

/* Striped table */
.je-article__body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.je-article__body .wp-block-table figcaption {
    font-size: 0.78rem;
    color: var(--je-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* ==========================================================================
   IMAGES & FIGURES
   ========================================================================== */

.je-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--je-radius-sm);
}

.je-article__body .wp-block-image {
    margin: 1.5rem 0;
}

.je-article__body .wp-block-image img {
    display: block;
}

.je-article__body .wp-block-image.aligncenter {
    text-align: center;
}

.je-article__body .wp-block-image.aligncenter img {
    width: 100%;
    max-width: 100%;
}

.je-article__body .wp-block-image.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
}

.je-article__body .wp-block-image.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
}

.je-article__body figure {
    margin: 0;
}

.je-article__body figcaption,
.je-article__body .wp-block-image figcaption {
    font-size: 0.78rem;
    color: var(--je-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ==========================================================================
   COLUMNS
   ========================================================================== */

.je-article__body .wp-block-columns {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.je-article__body .wp-block-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .je-article__body .wp-block-columns {
        flex-direction: column;
    }
}

/* ==========================================================================
   DETAILS / FAQ (Accordion)
   ========================================================================== */

.je-article__body details,
.je-article__body .wp-block-details {
    margin: 0.5rem 0;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm);
    overflow: hidden;
}

.je-article__body details summary,
.je-article__body .wp-block-details summary {
    padding: 0.9rem 1.25rem;
    font-weight: 600;
    font-size: 0.935rem;
    color: var(--je-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--je-transition);
    list-style: none;
}

.je-article__body details summary::-webkit-details-marker {
    display: none;
}

.je-article__body details summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--je-accent);
    transition: transform var(--je-transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.je-article__body details[open] summary::after {
    content: '−';
}

.je-article__body details summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Sigue Leyendo — related posts block at the bottom of long pages.
   2-column grid on desktop, 1-column on mobile. Arrow + descriptive
   anchor pattern (methodology Gl. 7 L8). */
.je-article__body .je-sigue {
    margin: 2.5rem 0 1rem;
    padding: 1.5rem 1.25rem 1rem;
    background: var(--je-input-bg);
    border-radius: var(--je-radius-sm);
}
.je-article__body .je-sigue__title {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--je-text);
}
.je-article__body .je-sigue__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 2rem;
}
.je-article__body .je-sigue__item {
    margin: 0;
    padding: 0;
}
.je-article__body .je-sigue__item::before {
    content: none;
}
.je-article__body .je-sigue__link {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: var(--je-accent);
    text-decoration: none;
    text-underline-offset: 3px;
    line-height: 1.45;
}
.je-article__body .je-sigue__link:hover {
    color: var(--je-text);
}
.je-article__body .je-sigue__arrow {
    flex-shrink: 0;
    font-size: 1.05em;
    color: var(--je-accent);
    text-decoration: none;
}
.je-article__body .je-sigue__label {
    text-decoration: underline;
}
.je-article__body .je-sigue__link:hover .je-sigue__label {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .je-article__body .je-sigue__list {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

/* Complaint ledger — structured trust-intent table on /opiniones/.
   Methodology Gl. 10 L12; competitor pattern (AskGamblers ES). */
.je-article__body .je-complaint-ledger {
    width: 100%;
    margin: 1rem 0 1.5rem;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.je-article__body .je-complaint-ledger thead th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: var(--je-input-bg);
    border-bottom: 2px solid var(--je-border);
    font-weight: 700;
    color: var(--je-text);
}
.je-article__body .je-complaint-ledger tbody th[scope="row"] {
    padding: 0.65rem 0.75rem;
    background: var(--je-input-bg);
    font-weight: 700;
    color: var(--je-text);
    text-align: left;
    vertical-align: top;
    width: 32%;
}
.je-article__body .je-complaint-ledger tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--je-border);
    vertical-align: top;
}

/* Reviewed-by / Fact-checked-by — second-author E-E-A-T block on
   YMYL pages. Healthline pattern. Methodology Gl. 5 L4. */
.je-article__body .je-reviewed-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 1.5rem;
    padding: 0.6rem 1rem;
    background: var(--je-input-bg);
    border: 1px dashed var(--je-border);
    border-radius: var(--je-radius-sm);
    font-size: 0.88rem;
}
.je-article__body .je-reviewed-by__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.je-article__body .je-reviewed-by__meta { line-height: 1.35; }
.je-article__body .je-reviewed-by__line {
    margin: 0;
    color: var(--je-text);
}
.je-article__body .je-reviewed-by__label {
    font-weight: 700;
    color: var(--je-accent);
}
.je-article__body .je-reviewed-by__line a {
    color: var(--je-text);
    font-weight: 600;
    text-decoration: none;
}
.je-article__body .je-reviewed-by__line a:hover { text-decoration: underline; }
.je-article__body .je-reviewed-by__date {
    margin: 0;
    color: var(--je-text-muted-strong, #777);
    font-size: 0.78rem;
}

/* En Resumen — TLDR block at the top of game review pages.
   AI-engine citation target + Speakable cssSelector anchor.
   Methodology Gl. 9 Lesson 6. */
.je-article__body .je-resumen {
    margin: 1rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm);
}
.je-article__body .je-resumen__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--je-text);
    letter-spacing: 0.01em;
}
.je-article__body .je-resumen__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.je-article__body .je-resumen__list > li {
    margin-bottom: 0.4rem;
    line-height: 1.55;
    color: var(--je-text);
}
.je-article__body .je-resumen__list > li:last-child { margin-bottom: 0; }
.je-article__body .je-resumen__label {
    font-weight: 700;
    color: var(--je-text);
}

/* Glosario — definition list of casino/slot terms.
   DefinedTermSet schema source (Methodology Gl. 15 L15.2). */
.je-article__body .je-glosario {
    margin: 1.5rem 0 2rem;
}
.je-article__body .je-glosario dt {
    font-weight: 700;
    color: var(--je-accent);
    font-size: 1.05rem;
    margin-top: 1.25rem;
    scroll-margin-top: 90px;
}
.je-article__body .je-glosario dt:first-child {
    margin-top: 0;
}
.je-article__body .je-glosario dd {
    margin: 0.35rem 0 0;
    line-height: 1.6;
    color: var(--je-text);
}

/* TOC — visible navigation block injected after intro.
   Powers SERP sitelinks via named anchors. Methodology Gl. 1 L5. */
.je-article__body .je-toc {
    margin: 1.5rem 0 2rem;
    padding: 1rem 1.25rem;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm);
}
.je-article__body .je-toc__title {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--je-text-muted-strong, #666);
}
.je-article__body .je-toc__list {
    margin: 0;
    padding-left: 1.5rem;
    list-style: decimal;
    columns: 2;
    column-gap: 2rem;
}
.je-article__body .je-toc__list > li {
    margin-bottom: 0.25rem;
    line-height: 1.45;
    break-inside: avoid;
}
@media (max-width: 640px) {
    .je-article__body .je-toc__list { columns: 1; }
}
.je-article__body .je-toc__list a {
    color: var(--je-accent);
    text-decoration: none;
}
.je-article__body .je-toc__list a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .je-article__body .je-resumen,
    .je-article__body .je-toc { padding: 1rem; }
}

/* Author profile (/autor/<slug>/) — bio header block. */
.je-author-profile {
    margin: 1rem 0 2rem;
}
.je-author-profile__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm);
}
.je-author-profile__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.je-author-profile__meta { flex: 1; }
.je-author-profile__role {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--je-text);
}
.je-author-profile__title {
    margin: 0 0 0.5rem;
    color: var(--je-text-muted-strong, #777);
    font-size: 0.92rem;
}
.je-author-profile__sameas {
    margin: 0;
    font-size: 0.9rem;
}
.je-author-profile__sameas a {
    color: var(--je-accent);
    text-decoration: none;
}
.je-author-profile__sameas a:hover { text-decoration: underline; }

/* Author byline — compact author signature at top of articles. */
.je-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 1.5rem;
    padding: 0.5rem 0;
}
.je-byline__photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.je-byline__meta { font-size: 0.9rem; line-height: 1.4; }
.je-byline__author { margin: 0; font-weight: 600; color: var(--je-text); }
.je-byline__author a { color: inherit; text-decoration: none; }
.je-byline__author a:hover { text-decoration: underline; }
.je-byline__date { margin: 0; color: var(--je-text-muted-strong, #777); font-size: 0.82rem; }

@media (max-width: 480px) {
    .je-author-profile__header { flex-direction: column; text-align: center; }
    .je-author-profile__photo { width: 100px; height: 100px; }
}

/* FAQ H3 inside <summary> — visible heading for PAA capture & FAQPage
   schema name<=>page-text byte-match. Visually inert: inherits all type
   tokens from summary so the accordion layout (flex + ±icon) is
   preserved. See inc/je-faq-h3.php for the markup transform. */
.je-article__body details summary h3.je-faq-q,
.je-article__body .wp-block-details summary h3.je-faq-q {
    display: inline;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.je-article__body details > *:not(summary) {
    padding: 0 1.25rem;
}

.je-article__body details > p:last-child {
    padding-bottom: 1rem;
}

/* FAQ wrapper */
.je-article__body .je-faq {
    margin: 1.5rem 0;
}

.je-article__body .je-faq details {
    margin: 0;
    border-radius: 0;
    border-bottom: none;
}

.je-article__body .je-faq details:first-child {
    border-radius: var(--je-radius-sm) var(--je-radius-sm) 0 0;
}

.je-article__body .je-faq details:last-child {
    border-radius: 0 0 var(--je-radius-sm) var(--je-radius-sm);
    border-bottom: 1px solid var(--je-border);
}

/* ==========================================================================
   CODE
   ========================================================================== */

.je-article__body code {
    background: var(--je-input-bg);
    color: var(--je-accent);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
}

.je-article__body pre,
.je-article__body .wp-block-code {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm);
    overflow-x: auto;
}

.je-article__body pre code,
.je-article__body .wp-block-code code {
    background: transparent;
    padding: 0;
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--je-text-secondary);
}

/* ==========================================================================
   SEPARATOR / DIVIDER
   ========================================================================== */

.je-article__body hr,
.je-article__body .wp-block-separator {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--je-border);
}

.je-article__body .wp-block-separator.is-style-wide {
    border-top-width: 2px;
}

.je-article__body .wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
}

.je-article__body .wp-block-separator.is-style-dots::before {
    content: '···';
    color: var(--je-text-muted);
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.je-article__body .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.je-article__body .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: var(--je-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--je-transition);
    cursor: pointer;
    border: none;
    background: var(--je-accent);
    color: var(--je-bg);
}

.je-article__body .wp-block-button__link:hover {
    background: var(--je-accent-hover);
    box-shadow: 0 4px 20px var(--je-accent-glow);
    color: var(--je-bg);
    border-bottom: none;
}

/* Outline style */
.je-article__body .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--je-accent);
    color: var(--je-accent);
}

.je-article__body .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--je-accent);
    color: var(--je-bg);
}

/* ==========================================================================
   CALLOUT / NOTICE BOXES
   Custom blocks using <div class="je-callout je-callout--{type}">
   ========================================================================== */

.je-article__body .je-callout {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: var(--je-radius-sm);
    border-left: 4px solid;
    font-size: 0.9rem;
    line-height: 1.65;
}

.je-article__body .je-callout p {
    margin: 0 0 0.5rem;
    color: inherit;
}

.je-article__body .je-callout p:last-child {
    margin-bottom: 0;
}

.je-article__body .je-callout__title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Info */
.je-callout--info {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--je-text-secondary);
}

.je-callout--info .je-callout__title {
    color: #7ba8e6;
}

/* Warning */
.je-callout--warning {
    background: rgba(245, 166, 35, 0.05);
    border-color: rgba(245, 166, 35, 0.5);
    color: var(--je-text-secondary);
}

.je-callout--warning .je-callout__title {
    color: #d4a44a;
}

/* Tip / Success */
.je-callout--tip {
    background: rgba(0, 212, 170, 0.04);
    border-color: rgba(0, 212, 170, 0.5);
    color: var(--je-text-secondary);
}

.je-callout--tip .je-callout__title {
    color: var(--je-accent);
}

/* Danger */
.je-callout--danger {
    background: rgba(255, 71, 87, 0.05);
    border-color: rgba(255, 71, 87, 0.5);
    color: var(--je-text-secondary);
}

.je-callout--danger .je-callout__title {
    color: #e06570;
}

/* ==========================================================================
   PROS / CONS
   ========================================================================== */

.je-article__body .je-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.je-article__body .je-pros-cons--pros,
.je-article__body .je-pros-cons--cons {
    padding: 1.25rem;
    border-radius: var(--je-radius-sm);
    border: 1px solid var(--je-border);
    background: var(--je-input-bg);
}

.je-article__body .je-pros-cons__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.je-article__body .je-pros-cons--pros .je-pros-cons__title {
    color: #34d399;
}

.je-article__body .je-pros-cons--cons .je-pros-cons__title {
    color: #f87171;
}

.je-article__body .je-pros-cons ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.je-article__body .je-pros-cons ul > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--je-text-secondary);
}

.je-article__body .je-pros-cons ul > li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 0.95rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.je-article__body .je-pros-cons--pros ul > li::before {
    content: '✓';
    color: #34d399;
}

.je-article__body .je-pros-cons--cons ul > li::before {
    content: '−';
    color: #f87171;
}

.je-article__body .je-pros-cons ul > li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .je-article__body .je-pros-cons {
        grid-template-columns: 1fr;
    }
}

/* Light theme — Pros/Cons */
[data-theme="light"] .je-article__body .je-pros-cons--pros .je-pros-cons__title {
    color: #059669;
}

[data-theme="light"] .je-article__body .je-pros-cons--cons .je-pros-cons__title {
    color: #dc2626;
}

[data-theme="light"] .je-article__body .je-pros-cons--pros ul > li::before {
    color: #059669;
}

[data-theme="light"] .je-article__body .je-pros-cons--cons ul > li::before {
    color: #dc2626;
}

/* ==========================================================================
   PROS / CONS — Compatibility layer
   Поддержка 3 BEM-вариантов, которые исторически встречаются в content/:
     - новый __col:   .je-pros-cons__col + __col--pros / __col--cons
     - старый flat:   .je-pros / .je-cons (с <h3> без класса)
     - смешанный:     .je-pros-cons__pros / __cons + .je-pros-cons__list
   Значения зеркалят правила 716-810 чтобы во всех 3 вариантах рендер
   выглядел идентично.
   ========================================================================== */

/* Box */
.je-article__body .je-pros-cons__col,
.je-article__body .je-pros,
.je-article__body .je-cons,
.je-article__body .je-pros-cons__pros,
.je-article__body .je-pros-cons__cons {
    padding: 1.25rem;
    border-radius: var(--je-radius-sm);
    border: 1px solid var(--je-border);
    background: var(--je-input-bg);
}

/* Title — общие свойства */
.je-article__body .je-pros > h3,
.je-article__body .je-cons > h3,
.je-article__body .je-pros__title,
.je-article__body .je-cons__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Title color — pros */
.je-article__body .je-pros-cons__col--pros .je-pros-cons__title,
.je-article__body .je-pros-cons__pros .je-pros-cons__title,
.je-article__body .je-pros > h3,
.je-article__body .je-pros .je-pros__title {
    color: #34d399;
}

/* Title color — cons */
.je-article__body .je-pros-cons__col--cons .je-pros-cons__title,
.je-article__body .je-pros-cons__cons .je-pros-cons__title,
.je-article__body .je-cons > h3,
.je-article__body .je-cons .je-cons__title {
    color: #f87171;
}

/* Lists в flat-варианте (где <ul> сразу в .je-pros / .je-cons) */
.je-article__body .je-pros ul,
.je-article__body .je-cons ul,
.je-article__body .je-pros-cons__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.je-article__body .je-pros ul > li,
.je-article__body .je-cons ul > li,
.je-article__body .je-pros-cons__list > li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--je-text-secondary);
}

.je-article__body .je-pros ul > li::before,
.je-article__body .je-cons ul > li::before,
.je-article__body .je-pros-cons__list > li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 0.95rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

.je-article__body .je-pros ul > li:last-child,
.je-article__body .je-cons ul > li:last-child,
.je-article__body .je-pros-cons__list > li:last-child {
    margin-bottom: 0;
}

/* Icons ✓ — pros */
.je-article__body .je-pros-cons__col--pros ul > li::before,
.je-article__body .je-pros-cons__pros ul > li::before,
.je-article__body .je-pros ul > li::before {
    content: '✓';
    color: #34d399;
}

/* Icons − — cons */
.je-article__body .je-pros-cons__col--cons ul > li::before,
.je-article__body .je-pros-cons__cons ul > li::before,
.je-article__body .je-cons ul > li::before {
    content: '−';
    color: #f87171;
}

/* Light theme — title colors */
[data-theme="light"] .je-article__body .je-pros-cons__col--pros .je-pros-cons__title,
[data-theme="light"] .je-article__body .je-pros-cons__pros .je-pros-cons__title,
[data-theme="light"] .je-article__body .je-pros > h3,
[data-theme="light"] .je-article__body .je-pros .je-pros__title {
    color: #059669;
}

[data-theme="light"] .je-article__body .je-pros-cons__col--cons .je-pros-cons__title,
[data-theme="light"] .je-article__body .je-pros-cons__cons .je-pros-cons__title,
[data-theme="light"] .je-article__body .je-cons > h3,
[data-theme="light"] .je-article__body .je-cons .je-cons__title {
    color: #dc2626;
}

/* Light theme — bullet colors */
[data-theme="light"] .je-article__body .je-pros-cons__col--pros ul > li::before,
[data-theme="light"] .je-article__body .je-pros-cons__pros ul > li::before,
[data-theme="light"] .je-article__body .je-pros ul > li::before {
    color: #059669;
}

[data-theme="light"] .je-article__body .je-pros-cons__col--cons ul > li::before,
[data-theme="light"] .je-article__body .je-pros-cons__cons ul > li::before,
[data-theme="light"] .je-article__body .je-cons ul > li::before {
    color: #dc2626;
}

/* ==========================================================================
   FIGURE — .je-figure (image + figcaption внутри статьи)
   ========================================================================== */
.je-article__body .je-figure {
    margin: 1.5rem 0;
    border-radius: var(--je-radius-sm);
    overflow: hidden;
    border: 1px solid var(--je-border);
    background: var(--je-input-bg);
}

.je-article__body .je-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.je-article__body .je-figure figcaption {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--je-text-secondary);
    text-align: center;
    font-style: italic;
    border-top: 1px solid var(--je-border);
}

/* ==========================================================================
   AVISO — .je-aviso (notice/warning paragraph)
   ========================================================================== */
.je-article__body .je-aviso {
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
    background: rgba(255, 71, 87, 0.06);
    border-left: 3px solid rgba(255, 71, 87, 0.6);
    border-radius: var(--je-radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--je-text-secondary);
}

.je-article__body .je-aviso strong {
    color: var(--je-text);
}

[data-theme="light"] .je-article__body .je-aviso {
    background: rgba(220, 38, 38, 0.06);
    border-left-color: rgba(220, 38, 38, 0.6);
}

/* ==========================================================================
   COVER IMAGE
   ========================================================================== */

.je-article__body .wp-block-cover {
    margin: 1.5rem 0;
    border-radius: var(--je-radius);
    overflow: hidden;
    min-height: 250px;
}

/* ==========================================================================
   GROUP / BOX
   ========================================================================== */

.je-article__body .wp-block-group {
    margin: 1.5rem 0;
}

.je-article__body .wp-block-group.has-background {
    padding: 1.25rem 1.5rem;
    border-radius: var(--je-radius-sm);
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.je-article__body .wp-block-gallery {
    margin: 1.5rem 0;
    gap: 0.75rem;
}

.je-article__body .wp-block-gallery .wp-block-image img {
    border-radius: var(--je-radius-sm);
}

/* ==========================================================================
   EMBED / VIDEO
   ========================================================================== */

.je-article__body .wp-block-embed {
    margin: 1.5rem 0;
}

.je-article__body .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--je-radius-sm);
}

.je-article__body .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .je-article__body h1 { font-size: 1.6rem; }
    .je-article__body h2 { font-size: 1.3rem; }
    .je-article__body h3 { font-size: 1.1rem; }
    .je-article__body h4 { font-size: 1rem; }

    .je-article__body .wp-block-image.alignleft,
    .je-article__body .wp-block-image.alignright {
        float: none;
        max-width: 100%;
        margin: 1rem 0;
    }

    .je-article__body table {
        font-size: 0.8rem;
    }

    .je-article__body table th,
    .je-article__body table td {
        padding: 0.5rem 0.65rem;
    }

    .je-article__body .wp-block-pullquote p {
        font-size: 1.05rem;
    }
}

@media (min-width: 769px) {
    .je-article__body h2 {
        margin-top: 3.5rem;
    }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES (content)
   ========================================================================== */

/* Lead paragraph — uses hardcoded color */
[data-theme="light"] .je-article__body .je-lead,
[data-theme="light"] .je-article__body .is-style-je-lead {
    color: var(--je-text-secondary);
}

/* Blockquote text — hardcoded #b8bcc5 in dark, override for light */
[data-theme="light"] .je-article__body blockquote p,
[data-theme="light"] .je-article__body .wp-block-quote p {
    color: var(--je-text-secondary);
}

/* Mark highlight — adjust for light bg */
[data-theme="light"] .je-article__body mark {
    background: rgba(0, 135, 110, 0.12);
}

/* Callouts — more visible backgrounds on white */
[data-theme="light"] .je-callout--info {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
}

[data-theme="light"] .je-callout--info .je-callout__title {
    color: #2563eb;
}

[data-theme="light"] .je-callout--warning {
    background: rgba(245, 166, 35, 0.06);
    border-color: #d97706;
}

[data-theme="light"] .je-callout--warning .je-callout__title {
    color: #b45309;
}

[data-theme="light"] .je-callout--tip {
    background: rgba(0, 135, 110, 0.05);
    border-color: var(--je-accent);
}

[data-theme="light"] .je-callout--danger {
    background: rgba(220, 38, 38, 0.05);
    border-color: #dc2626;
}

[data-theme="light"] .je-callout--danger .je-callout__title {
    color: #d42222;
}

/* Buttons: white text on accent bg */
[data-theme="light"] .je-article__body .wp-block-button__link {
    color: #ffffff;
}

[data-theme="light"] .je-article__body .wp-block-button__link:hover {
    color: #ffffff;
}

[data-theme="light"] .je-article__body .wp-block-button.is-style-outline .wp-block-button__link:hover {
    color: #ffffff;
}

/* Striped table — darker stripe on light */
[data-theme="light"] .je-article__body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.02);
}

/* Separator dots */
[data-theme="light"] .je-article__body .wp-block-separator.is-style-dots::before {
    color: var(--je-text-muted);
}

/* Details hover */
[data-theme="light"] .je-article__body details summary:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   CTA BLOCKS (affiliate only) — v2 (2026-05-04, premium upgrade)
   ========================================================================== */

.je-cta-block {
    position: relative;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(0, 213, 141, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 178, 199, 0.06) 0%, rgba(0, 213, 141, 0.04) 100%);
    border: 1px solid rgba(0, 213, 141, 0.22);
    border-radius: 14px;
    padding: 2.5rem 2.75rem;
    margin: 3rem 0;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 36px -16px rgba(0, 213, 141, 0.22);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Hover lift micro-interaction */
.je-cta-block:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 213, 141, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 18px 48px -18px rgba(0, 213, 141, 0.36);
}

.je-article__body .je-cta-block__title,
.je-cta-block .je-cta-block__title {
    color: var(--je-text);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 0.6rem;
    line-height: 1.22;
}

.je-article__body .je-cta-block__text,
.je-cta-block .je-cta-block__text {
    color: var(--je-text-secondary);
    font-size: 1.02rem;
    font-weight: 400;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
    max-width: 560px;
    opacity: 0.92;
}

.je-cta-block .wp-block-buttons {
    justify-content: center;
    margin: 0;
}

.je-article__body .je-cta-block .wp-block-button__link,
.je-cta-block .wp-block-button__link {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 3.25rem 1rem 2.5rem;
    min-height: 54px;
    border-radius: 30px;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 22px -6px rgba(0, 213, 141, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease, padding 0.22s ease;
}

/* Gradient button (logo colors) + shine animation */
.je-btn-shine {
    background: linear-gradient(135deg, #00B2C7, #00D58D) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    border: none !important;
}

.je-btn-shine:hover {
    background: linear-gradient(135deg, #00c4da, #00e89a) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px -8px rgba(0, 213, 141, 0.55) !important;
}

@keyframes je-shine {
    0%   { left: -100%; }
    28%, 100% { left: 130%; }
}

.je-cta-block .wp-block-button__link.je-btn-shine::after,
.je-btn-shine::after {
    content: '' !important;
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0)    0%,
        rgba(255, 255, 255, 0.18) 35%,
        rgba(255, 255, 255, 0.6)  50%,
        rgba(255, 255, 255, 0.18) 65%,
        rgba(255, 255, 255, 0)   100%
    );
    transform: skewX(-22deg);
    animation: je-shine 5.25s cubic-bezier(0.45, 0.05, 0.2, 1) infinite;
    pointer-events: none;
}

/* Arrow icon on right side of CTA buttons inside je-cta-block */
.je-cta-block .wp-block-button__link::before {
    content: '→';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.22s ease;
    line-height: 1;
}

.je-cta-block .wp-block-button__link:hover::before {
    transform: translateY(-50%) translateX(4px);
}

/* Light theme variant */
[data-theme="light"] .je-cta-block {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(0, 125, 102, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 178, 199, 0.04) 0%, rgba(0, 125, 102, 0.03) 100%);
    border-color: rgba(0, 125, 102, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 12px 36px -16px rgba(0, 125, 102, 0.18);
}

[data-theme="light"] .je-cta-block:hover {
    border-color: rgba(0, 125, 102, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 18px 48px -18px rgba(0, 125, 102, 0.28);
}

[data-theme="light"] .je-cta-block__title {
    color: #006b58;
}

[data-theme="light"] .je-btn-shine {
    color: #fff !important;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .je-cta-block {
        padding: 1.75rem 1.5rem 1.75rem 1.75rem;
        margin: 2rem 0;
    }
    .je-cta-block .je-cta-block__title {
        font-size: 1.32rem;
    }
    .je-cta-block .je-cta-block__text {
        font-size: 0.96rem;
    }
    .je-cta-block .wp-block-button__link {
        font-size: 0.98rem;
        padding: 0.9rem 2.85rem 0.9rem 2.1rem;
        min-height: 50px;
    }
}

/* ==========================================================================
   JACKPOT animation on CTA buttons (je-jackpot.js wraps content)
   ========================================================================== */

.je-jp-btn {
    /* Stable width across phases — JS sets min-width to original text width.
       Inline-flex + centering keeps reels/win/reward visually centered. */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px; /* fallback if JS measurement fails */
}
.je-jp-btn .je-jp-text {
    display: inline-block;
    line-height: inherit;
}
.je-jp-btn .je-jp-reels,
.je-jp-btn .je-jp-win,
.je-jp-btn .je-jp-reward {
    display: none;
}

/* Hide text + arrow during animation phases */
.je-jp-btn.je-jp-spinning .je-jp-text,
.je-jp-btn.je-jp-stopped .je-jp-text,
.je-jp-btn.je-jp-win .je-jp-text,
.je-jp-btn.je-jp-reward .je-jp-text {
    display: none;
}
.je-cta-block .wp-block-button__link.je-jp-btn.je-jp-spinning::before,
.je-cta-block .wp-block-button__link.je-jp-btn.je-jp-stopped::before,
.je-cta-block .wp-block-button__link.je-jp-btn.je-jp-win::before,
.je-cta-block .wp-block-button__link.je-jp-btn.je-jp-reward::before {
    content: none !important;
}

/* Show reels during spinning + stopped */
.je-jp-btn.je-jp-spinning .je-jp-reels,
.je-jp-btn.je-jp-stopped .je-jp-reels {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    line-height: 1;
}

/* Reel container — fixed-size window with overflow:hidden */
.je-jp-btn .je-jp-reel {
    height: 1.4em;
    width: 1.4em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}
.je-jp-btn .je-jp-reel .je-jp-strip {
    display: block;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.je-jp-btn .je-jp-reel .je-jp-strip > * {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.4em;
    line-height: 1;
    font-weight: 900;
    font-size: 0.85em;
    color: #fff;
    text-align: center;
    width: 100%;
    letter-spacing: 0;
    box-sizing: border-box;
}
.je-jp-btn .je-jp-reel .je-jp-seven {
    color: #ffe44d;
    text-shadow: 0 0 8px rgba(255, 200, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Same font-size as siblings for consistent baseline; rely on glow for emphasis */
}

/* Spin animation — strip = 25 items × 1.4em.
   Translate -96% (24/25) to land on the 25th item (je-jp-seven).
   Cubic-bezier with very fast start, smooth deceleration → slot-machine feel. */
@keyframes je-jp-spin {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -96%, 0); }
}
.je-jp-btn.je-jp-spinning .je-jp-reel--1 .je-jp-strip {
    animation: je-jp-spin 1.4s cubic-bezier(0.18, 0.0, 0.30, 1.0) forwards;
}
.je-jp-btn.je-jp-spinning .je-jp-reel--2 .je-jp-strip {
    animation: je-jp-spin 1.7s cubic-bezier(0.18, 0.0, 0.30, 1.0) forwards;
}
.je-jp-btn.je-jp-spinning .je-jp-reel--3 .je-jp-strip {
    animation: je-jp-spin 2.0s cubic-bezier(0.18, 0.0, 0.30, 1.0) forwards;
}

/* Stopped state — reels hold at the 7 (transform locked). */
.je-jp-btn.je-jp-stopped .je-jp-reel .je-jp-strip {
    transform: translate3d(0, -96%, 0);
}
/* Pulse glow on stopped 7s */
@keyframes je-jp-seven-glow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 200, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.5); }
    50%      { text-shadow: 0 0 16px rgba(255, 200, 0, 1), 0 0 4px rgba(255, 200, 0, 0.8); }
}
.je-jp-btn.je-jp-stopped .je-jp-seven {
    animation: je-jp-seven-glow 0.5s ease-in-out infinite;
}

/* Win flash */
.je-jp-btn.je-jp-win .je-jp-win {
    display: inline-block;
    color: #ffe44d;
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.02em;
    text-shadow: 0 0 14px rgba(255, 200, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: je-jp-win-flash 0.35s ease-out alternate infinite;
}
@keyframes je-jp-win-flash {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.08); opacity: 1; }
}

/* Reward */
.je-jp-btn.je-jp-reward .je-jp-reward {
    display: inline-block;
    color: #ffe44d;
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: 0.02em;
    text-shadow: 0 0 16px rgba(255, 200, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: je-jp-reward-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1.0);
}
@keyframes je-jp-reward-pop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.18); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Reduce-motion fallback */
@media (prefers-reduced-motion: reduce) {
    .je-jp-btn.je-jp-spinning .je-jp-reel .je-jp-strip,
    .je-jp-btn.je-jp-stopped .je-jp-seven,
    .je-jp-btn.je-jp-win .je-jp-win,
    .je-jp-btn.je-jp-reward .je-jp-reward {
        animation: none;
    }
}

/* ==========================================================================
   DEMO CONTAINER (iframe)
   ========================================================================== */

.je-demo-container {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    min-height: 450px;
    margin: 1.5rem 0;
    background: var(--je-input-bg);
    border: 1px solid var(--je-border);
    border-radius: var(--je-radius-sm, 6px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.je-demo-container iframe {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .je-demo-container {
        min-height: 300px;
    }
}

/* ==========================================================================
   DEMO OVERLAY (lazy-load + bonus card)
   ========================================================================== */

.je-demo-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 21, 27, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: var(--je-radius-sm, 6px);
    transition: opacity 0.35s ease;
}

.je-demo-overlay--hidden {
    opacity: 0;
    pointer-events: none;
}

.je-demo-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
}

/* Play button — uses existing .je-btn-shine gradient + animation */
.je-demo-overlay__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--je-radius-sm, 8px);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    min-height: 48px;
    border: none;
    text-align: center;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
    /* .je-btn-shine provides background, color, ::after shine */
}

.je-demo-overlay__play:hover,
.je-demo-overlay__play:focus,
.je-demo-overlay__play:active {
    text-decoration: none !important;
}

/* Center multi-line text inside the button (the inner <span> holds the label) */
.je-demo-overlay__play span {
    text-align: center;
    display: inline-block;
    line-height: 1.25;
}

.je-demo-overlay__play svg {
    flex-shrink: 0;
}

/* Bonus card — eye-catching, animated */
.je-demo-overlay__bonus {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.4rem 1.3rem;
    border-radius: var(--je-radius-sm, 10px);
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(255, 200, 60, 0.22) 0%, rgba(255, 110, 60, 0.16) 45%, rgba(20, 12, 30, 0.55) 100%);
    width: 100%;
    text-align: center;
    isolation: isolate;
    overflow: visible;
    box-shadow:
        0 0 0 1px rgba(255, 195, 60, 0.55),
        0 0 22px rgba(255, 175, 50, 0.35),
        0 0 56px rgba(255, 95, 60, 0.22);
    animation: je-bonus-glow 2.6s ease-in-out infinite;
}

/* Animated multi-color gradient border (static stops, sliding position) */
.je-demo-overlay__bonus::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(120deg,
        #ffd95a 0%,
        #ffa53c 18%,
        #ff5a6a 38%,
        #ff9a3c 58%,
        #ffd95a 78%,
        #ffefa1 100%);
    background-size: 220% 220%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    animation: je-bonus-border 3.6s ease-in-out infinite;
}

/* Floating "🎁 BONO" badge on top-right corner */
.je-demo-overlay__bonus::after {
    content: '🎁 BONO';
    position: absolute;
    top: -11px;
    right: 14px;
    background: linear-gradient(135deg, #ff4d6d 0%, #ff8a3c 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 11px;
    border-radius: 999px;
    box-shadow:
        0 4px 14px rgba(255, 80, 90, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 3;
    transform-origin: center;
    animation: je-bonus-bob 1.8s ease-in-out infinite;
}

/* Sliding shimmer over the card background */
.je-demo-overlay__bonus > * {
    position: relative;
    z-index: 2;
}

.je-demo-overlay__bonus-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 175, 50, 0.45);
}

.je-demo-overlay__bonus-text svg {
    flex-shrink: 0;
    color: #ffd95a;
    filter: drop-shadow(0 0 6px rgba(255, 200, 60, 0.7));
    animation: je-bonus-icon-spin 4.5s linear infinite;
}

.je-demo-overlay__bonus-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.9rem;
    background: linear-gradient(135deg, #ffd95a 0%, #ff9a3c 60%, #ff7a3c 100%);
    color: #1b0e08 !important;
    border-radius: var(--je-radius-sm, 10px);
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    min-height: 44px;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(255, 130, 50, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: je-bonus-btn-pulse 1.8s ease-in-out infinite;
}

/* White shine sweeping across the button */
.je-demo-overlay__bonus-btn::after {
    content: '' !important;
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 60%,
        transparent 100%);
    transform: skewX(-18deg);
    animation: je-bonus-btn-shine 2.6s ease-in-out infinite;
    pointer-events: none;
}

.je-demo-overlay__bonus-btn:hover,
.je-demo-overlay__bonus-btn:focus,
.je-demo-overlay__bonus-btn:active {
    text-decoration: none !important;
    transform: translateY(-1px) scale(1.03);
    filter: brightness(1.06);
    color: #1b0e08 !important;
    box-shadow:
        0 10px 26px rgba(255, 130, 50, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   DEMO UNAVAILABLE (cascade exhausted) — graceful fallback overlay
   ========================================================================== */

.je-demo-overlay__content--error {
    max-width: 560px;
    text-align: center;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(249, 115, 22, 0.15) inset;
    color: #f1f5f9;
    backdrop-filter: blur(8px);
}

.je-demo-overlay__msg {
    margin-bottom: 1.5rem;
}

.je-demo-overlay__msg svg {
    color: #fb923c;
    margin-bottom: 0.9rem;
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.55));
}

.je-demo-overlay__msg-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.je-demo-overlay__msg-sub {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.je-demo-overlay__content--error .je-demo-overlay__bonus-btn {
    margin-top: 0.4rem;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.je-demo-overlay__content--error .je-demo-overlay__bonus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55);
    filter: brightness(1.08);
}

.je-demo-container--unavailable iframe {
    display: none !important;
}

.je-demo-retry {
    text-align: center;
    font-size: 0.84rem;
    color: var(--je-text-secondary);
    margin: -0.5rem 0 1.5rem;
    padding: 0.4rem 0.8rem;
}

.je-demo-retry__btn {
    color: var(--je-accent) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    font-weight: 600;
    cursor: pointer;
}

.je-demo-retry__btn:hover {
    color: var(--je-accent-hover) !important;
}

/* ==========================================================================
   MIRROR SOURCE SWITCHER (Espejo 1, 2, 3 inside player)
   ========================================================================== */

.je-demo-mirrors {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    /* Always dark — sits below the iframe on dark game cabinet */
    background: linear-gradient(180deg, #0e1117 0%, #050608 100%);
    border-top: 1px solid rgba(0, 212, 170, 0.30);
    /* Hardcoded colors so light-mode page theme doesn't flip text dark */
    color: #ffffff !important;
    font-size: 0.9rem;
}

.je-demo-mirrors__label {
    margin-right: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff !important;
    opacity: 1 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.je-demo-mirrors__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 88px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(0, 212, 170, 0.55);
    background: rgba(0, 212, 170, 0.14);
    color: #ffffff !important;
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.je-demo-mirrors__btn-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.30);
    font-size: 0.7rem;
    font-weight: 800;
}

.je-demo-mirrors__btn-text {
    line-height: 1;
}

.je-demo-mirrors__btn:hover {
    background: rgba(0, 212, 170, 0.28);
    border-color: var(--je-accent, #00d4aa);
    color: var(--je-accent, #00d4aa);
    transform: translateY(-1px);
}

.je-demo-mirrors__btn--active {
    background: #00d4aa;
    color: #0e1117 !important;
    border-color: #00d4aa;
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.45);
    text-shadow: none;
}

.je-demo-mirrors__btn--active .je-demo-mirrors__btn-num {
    background: rgba(14, 17, 23, 0.25);
    color: #0e1117 !important;
}

.je-demo-mirrors__btn--active:hover {
    background: var(--je-accent-hover, #00bf94);
    color: #0e1117;
    transform: none;
}

.je-demo-mirrors__btn--loading {
    pointer-events: none;
    opacity: 0.85;
}

.je-demo-mirrors__btn--broken {
    pointer-events: none;
    opacity: 0.45;
    text-decoration: line-through;
    background: rgba(220, 80, 80, 0.18) !important;
    border-color: rgba(220, 80, 80, 0.45) !important;
    color: #ffaaaa !important;
}

.je-demo-mirrors__btn--broken .je-demo-mirrors__btn-num {
    background: rgba(220, 80, 80, 0.30);
    color: #ffd0d0;
}

.je-demo-mirrors__btn--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    background-size: 200% 100%;
    animation: je-mirror-shimmer 1.2s linear infinite;
}

@keyframes je-mirror-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 480px) {
    .je-demo-mirrors__label {
        flex: 1 0 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .je-demo-mirrors__btn {
        min-width: 64px;
        height: 30px;
        padding: 0 10px;
        font-size: 0.78rem;
    }
}

.je-demo-container--unavailable .je-demo-mirrors {
    display: none;
}

@keyframes je-bonus-glow {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 195, 60, 0.5),
            0 0 18px rgba(255, 175, 50, 0.28),
            0 0 44px rgba(255, 95, 60, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 215, 80, 0.85),
            0 0 34px rgba(255, 175, 50, 0.55),
            0 0 80px rgba(255, 95, 60, 0.35);
    }
}

@keyframes je-bonus-border {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes je-bonus-bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-3px) rotate(3deg); }
}

@keyframes je-bonus-icon-spin {
    0%, 80%, 100% { transform: rotate(0); }
    85%           { transform: rotate(-12deg); }
    92%           { transform: rotate(12deg); }
}

@keyframes je-bonus-btn-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.025); }
}

@keyframes je-bonus-btn-shine {
    0%   { left: -120%; }
    60%  { left: 120%; }
    100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
    .je-demo-overlay__bonus,
    .je-demo-overlay__bonus::before,
    .je-demo-overlay__bonus::after,
    .je-demo-overlay__bonus-btn,
    .je-demo-overlay__bonus-btn::after,
    .je-demo-overlay__bonus-text svg {
        animation: none !important;
    }
}

/* ==========================================================================
   DEMO TOOLBAR BAR — sticky on top of iframe (replaces floating fs-button)
   ========================================================================== */
.je-demo-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.75rem;
    height: 40px;
    background: linear-gradient(180deg, rgba(14, 18, 26, 0.96), rgba(20, 24, 32, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    z-index: 11;
}

/* Bonus chip — clickable anchor with gold gradient, subtle pulse */
.je-demo-bar__bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    color: #fff !important;
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0;
}

.je-demo-bar__bonus-icon {
    display: inline-flex;
    color: #ffd95a;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 200, 60, 0.6));
}

.je-demo-bar__bonus-text {
    color: #f4f6f8;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.je-demo-bar__bonus-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 5px 12px;
    background: linear-gradient(135deg, #ffd95a 0%, #ff9a3c 100%);
    color: #1b0e08 !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow:
        0 2px 10px rgba(255, 130, 50, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: je-demo-bar-bonus-pulse 2.4s ease-in-out infinite;
}

.je-demo-bar__bonus:hover .je-demo-bar__bonus-cta {
    transform: translateY(-1px) scale(1.04);
    filter: brightness(1.07);
    box-shadow:
        0 4px 16px rgba(255, 130, 50, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes je-demo-bar-bonus-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 130, 50, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
    50%      { box-shadow: 0 3px 14px rgba(255, 130, 50, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}

/* Fullscreen toggle button */
.je-demo-bar__fs {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #d8dde6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.je-demo-bar__fs:hover {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.4);
    color: #00d4aa;
}

.je-demo-bar__fs-icon { display: inline-flex; align-items: center; }
.je-demo-bar__fs-icon--exit { display: none; }
.je-demo-bar--fs .je-demo-bar__fs-icon--expand { display: none; }
.je-demo-bar--fs .je-demo-bar__fs-icon--exit   { display: inline-flex; }

.je-demo-bar--fs .je-demo-bar__fs {
    background: rgba(255, 90, 90, 0.12);
    border-color: rgba(255, 120, 120, 0.45);
    color: #ff8a8a;
}

.je-demo-bar--fs .je-demo-bar__fs:hover {
    background: rgba(255, 90, 90, 0.22);
    border-color: rgba(255, 120, 120, 0.7);
    color: #ffb0b0;
}

/* Fullscreen container — fill viewport */
.je-demo-container:fullscreen,
.je-demo-container:-webkit-full-screen {
    background: #000;
    border-radius: 0;
    border: none;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
}

/* CSS fullscreen fallback (iOS Safari) */
.je-demo-fs--active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    aspect-ratio: auto !important;
    background: #000 !important;
}

/* Bar in fullscreen — slightly smaller height, sticky top */
.je-demo-container:fullscreen .je-demo-bar,
.je-demo-container:-webkit-full-screen .je-demo-bar,
.je-demo-fs--active .je-demo-bar {
    height: 36px;
    padding: 0 12px;
}

/* Mobile — compact bar */
@media (max-width: 600px) {
    .je-demo-bar {
        height: 36px;
        padding: 0 0.55rem;
        gap: 0.4rem;
    }
    .je-demo-bar__bonus-text {
        font-size: 12px;
    }
    /* On very small screens hide the long sentence — keep just chip */
    .je-demo-bar__bonus-text {
        display: none;
    }
    .je-demo-bar__bonus-cta {
        font-size: 11px;
        padding: 5px 10px;
    }
    .je-demo-bar__fs-label {
        display: none;
    }
    .je-demo-bar__fs {
        padding: 6px 9px;
    }
}

/* Show bonus text again on tablets where there's room */
@media (min-width: 480px) and (max-width: 600px) {
    .je-demo-bar__bonus-text { display: block; max-width: 50vw; }
}

@media (prefers-reduced-motion: reduce) {
    .je-demo-bar__bonus-cta {
        animation: none !important;
    }
}

/* Light theme — overlay stays dark, bonus btn stays white text */
[data-theme="light"] .je-demo-overlay__bonus-btn {
    color: #fff !important;
}

[data-theme="light"] .je-demo-overlay__bonus-btn:hover {
    color: #fff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .je-demo-overlay__content {
        padding: 1rem;
        max-width: 280px;
    }

    .je-demo-overlay__play {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }

    .je-demo-overlay__bonus {
        padding: 1rem 1rem 1.1rem;
    }

    .je-demo-overlay__bonus::after {
        font-size: 0.65rem;
        padding: 3px 9px;
        right: 10px;
    }

    .je-demo-overlay__bonus-text {
        font-size: 0.85rem;
    }

    .je-demo-overlay__bonus-btn {
        font-size: 0.82rem;
        padding: 0.6rem 1.25rem;
        width: 100%;
    }
}

/* =========================================================================
   GUIAS MODULE — Informational articles styles
   ========================================================================= */

/* TL;DR Box */
.je-guia-tldr {
    border-left: 4px solid var(--je-accent, #00d4aa);
    background: rgba(0, 212, 170, 0.06);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.je-guia-tldr h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    color: var(--je-accent, #00d4aa);
}

.je-guia-tldr ul,
.je-guia-tldr ol {
    margin: 0;
    padding-left: 1.25rem;
}

.je-guia-tldr li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* Table of Contents */
.je-guia-toc {
    background: var(--je-card-bg);
    border: 1px solid var(--je-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--je-shadow);
}

.je-guia-toc__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--je-text);
}

.je-guia-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    counter-reset: toc;
    columns: 2;
    column-gap: 2.5rem;
}

.je-guia-toc li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
    break-inside: avoid;
}

@media (max-width: 640px) {
    .je-guia-toc ol { columns: 1; }
}

.je-guia-toc a {
    color: var(--je-accent, #00d4aa);
    text-decoration: none;
}

.je-guia-toc a:hover {
    text-decoration: underline;
}

/* Guía Meta (category + date) */
.je-guia-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--je-text-muted, #8a8fa3);
}

.je-guia-meta__category {
    background: rgba(0, 212, 170, 0.12);
    color: var(--je-accent, #00d4aa);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.je-guia-meta__updated {
    color: var(--je-text-muted, #8a8fa3);
}

/* Related Games Box */
.je-related-games {
    background: var(--je-card-bg);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.je-related-games h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
}

.je-related-games ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.je-related-games li {
    padding: 0.5rem 0;
    padding-left: 0;
    border-bottom: 1px solid var(--je-border);
}

.je-related-games li::before {
    display: none;
}

.je-related-games li:last-child {
    border-bottom: none;
}

.je-related-games a {
    color: var(--je-accent, #00d4aa);
    font-weight: 600;
    text-decoration: none;
}

.je-related-games a:hover {
    text-decoration: underline;
}

/* Sources Block */
.je-guia-sources {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--je-text-muted, #8a8fa3);
}

.je-guia-sources h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.je-guia-sources ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Guía Archive Grid */
.je-guia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.je-guia-card {
    background: var(--je-card-bg, #1a1e27);
    border-radius: var(--je-radius, 10px);
    overflow: hidden;
    transition: transform var(--je-transition, 0.2s), box-shadow var(--je-transition, 0.2s);
    cursor: pointer;
}

.je-guia-card:hover {
    transform: scale(1.02);
    box-shadow: var(--je-shadow-hover, 0 8px 24px rgba(0,0,0,0.3));
}

.je-guia-card__thumb {
    display: block;
    position: relative;
}

.je-guia-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.je-guia-card__body {
    padding: 0.85rem 1rem 1.25rem;
    border-top: 2px solid var(--je-accent, #00d4aa);
}

.je-guia-card__cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--je-accent, #00d4aa);
    font-weight: 700;
}

.je-guia-card__title {
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
    line-height: 1.35;
    font-weight: 500;
}

.je-guia-card__title a {
    color: var(--je-text, #fff);
    text-decoration: none;
}

.je-guia-card__title a:hover {
    color: var(--je-accent, #00d4aa);
}

.je-guia-card__excerpt {
    font-size: 0.8rem;
    color: var(--je-text-muted, #8a8fa3);
    margin: 0.4rem 0 0;
    line-height: 1.5;
}

/* Guía Category Filters */
.je-guia-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.je-guia-filters__btn {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    background: var(--je-card-bg, #1a1e27);
    color: var(--je-text-muted, #8a8fa3);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--je-border, #2a2e37);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.je-guia-filters__btn:focus-visible {
    box-shadow: 0 0 0 2px var(--je-accent, #00d4aa);
}

.je-guia-filters__btn:hover,
.je-guia-filters__btn--active {
    background: var(--je-accent, #00d4aa);
    color: #ffffff;
    border-color: var(--je-accent, #00d4aa);
}

/* Soft CTA (no affiliate, links to reviews) */
.je-callout--cta-soft {
    background: rgba(124, 58, 237, 0.08);
    border-left: 4px solid #7c3aed;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .je-guia-grid {
        grid-template-columns: 1fr;
    }

    .je-guia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .je-guia-toc {
        padding: 1rem;
    }

    .je-guia-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Унифицированный TOC (для slot / brand / live / crash / demo / guide) —
   2026-05-23. Глобальный CSS — loads on all single-pages independent of CPT.
   Структура HTML: <nav class="je-toc"><strong>Contenido:</strong><ul><li>...</li></ul></nav>
   ========================================================================== */
.je-toc {
    background: var(--je-card-bg, #f9fafb);
    border: 1px solid var(--je-border, #e5e7eb);
    border-radius: 12px;
    padding: 14px 22px 14px 18px;
    margin: 6px 0 26px;
}
.je-toc > strong,
.je-toc > p > strong,
.je-toc > p:first-child {
    display: block;
    font-weight: 700;
    color: var(--je-text, #1f2937);
    margin: 0 0 0.6rem 0;
}
.je-toc ul {
    columns: 2;
    column-gap: 32px;
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc outside;
}
.je-toc ul li {
    margin: 0 0 0.4rem 0;
    break-inside: avoid;
    color: var(--je-accent, #10b981);
    /* override theme default `padding-left/position:relative` for .je-article__body li */
    padding-left: 0 !important;
    position: static !important;
}
.je-toc ul li::marker {
    color: var(--je-accent, #10b981);
}
/* Убрать theme's global .je-article__body ul>li::before (green dot 6×6 absolute)
   который рисуется ПОВЕРХ нашего native list-style disc → двойные точки. */
.je-toc ul > li::before,
.je-article__body .je-toc ul > li::before {
    content: none !important;
    display: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}
.je-toc a {
    color: var(--je-accent, #10b981);
    text-decoration: none;
}
.je-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .je-toc ul { columns: 1; }
}

/* dark theme override */
html[data-theme="dark"] .je-toc {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .je-toc > strong,
html[data-theme="dark"] .je-toc > p:first-child {
    color: #f3f4f6;
}

/* ==========================================================================
   Mega-menu: длинные пункты — обрезать через ellipsis, не растягивать.
   Sub-items (.je-mega-game-sub a) рендерятся как inline-block pill-кнопки
   ("Dinero Real", "Demo Gratis", "Estrategia") НО иногда WP отдаёт post_title
   полностью — "Power Blackjack de Evolution Gaming: Reglas, Demo y Estrategia".
   Длинные пилюли уезжают за пределы dropdown → ломают layout.
   2026-05-23
   ========================================================================== */
.je-mega-cat-btn,
.je-mega-article-list a,
.je-mega-brand-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.je-mega-col .je-mega-game-sub a {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.je-mega-game-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
