/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg-primary: #0d0e1a;
    --bg-secondary: #13152a;
    --bg-card: #1a1d35;
    --bg-card-hover: #21254a;
    --gold: #f0a500;
    --gold-light: #ffc940;
    --green: #2ecc71;
    --green-dark: #27ae60;
    --text-primary: #e8eaf0;
    --text-secondary: #9aa0b8;
    --border: #2a2f50;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .8rem; }
p { margin-bottom: 1rem; color: var(--text-primary); }
p:last-child { margin-bottom: 0; }

/* ===== UTILITY CLASSES ===== */
.mt-05 { margin-top: .5rem; }
.mt-1  { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2  { margin-top: 2rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: .9rem; }
.text-muted-sm { color: var(--text-secondary); font-size: .9rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-75 { gap: .75rem; }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
section { padding: 3.5rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title span { color: var(--gold); }
.screenshots-section { padding: 2.5rem 0; background: var(--bg-secondary); }
.testimonials-section { padding: 3rem 0; }
.cta-wrapper { padding: 2rem 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    transition: all .2s;
    cursor: pointer;
    border: none;
    text-align: center;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn-success { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.btn-success:hover { background: linear-gradient(135deg, #3de07d, var(--green)); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46,204,113,.35); }
.btn-outline-success { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline-success:hover { background: var(--green); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d48f00); color: #000; font-weight: 800; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,165,0,.4); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== HEADER ===== */
.header-container { position: sticky; top: 0; z-index: 1000; background: rgba(13,14,26,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header { padding: .75rem 0; }
.header__container { display: flex; align-items: center; gap: 1rem; }
.logo { flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.primary_menu_desktop_ver { display: none; flex: 1; }
.primary_menu_desktop_ver .menu { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.primary_menu_desktop_ver .menu a { color: var(--text-primary); padding: .5rem .75rem; border-radius: 6px; font-size: .9rem; display: block; min-height: 44px; display: flex; align-items: center; }
.primary_menu_desktop_ver .menu a:hover { color: var(--gold); background: rgba(240,165,0,.08); }
.primary_menu_desktop_ver .dropdown { position: relative; }
.primary_menu_desktop_ver .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem; min-width: 180px; box-shadow: var(--shadow); }
.primary_menu_desktop_ver .dropdown:hover .dropdown-menu { display: block; }
.primary_menu_desktop_ver .dropdown-menu a { color: var(--text-primary); padding: .5rem .75rem; border-radius: 6px; white-space: nowrap; min-height: 44px; }
.buttons_container { margin-left: auto; flex-shrink: 0; }
.buttons { display: flex; gap: .5rem; align-items: center; }
.mobile-menu-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .75rem .5rem; min-width: 44px; min-height: 44px; justify-content: center; -webkit-tap-highlight-color: transparent; }
.mobile-menu-button span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

/* ===== OFFCANVAS ===== */
.offcanvas { position: fixed; top: 0; right: -100%; width: min(300px, 85vw); height: 100%; background: var(--bg-secondary); border-left: 1px solid var(--border); z-index: 2000; transition: right .3s ease; padding: 1.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.offcanvas.show { right: 0; }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.offcanvas-logo { height: 32px; width: auto; }
.btn-close { background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.offcanvas-body .menu { display: flex; flex-direction: column; gap: .25rem; margin-top: 1rem; }
.offcanvas-body .menu a { color: var(--text-primary); padding: .75rem; display: block; border-radius: 6px; min-height: 44px; display: flex; align-items: center; }
.offcanvas-body .menu a:hover { color: var(--gold); background: rgba(240,165,0,.08); }
.offcanvas-body .buttons { flex-direction: column; margin-top: 1rem; gap: .75rem; }
.offcanvas-body .btn { width: 100%; justify-content: center; }
.offcanvas-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1999; }
.offcanvas-overlay.show { display: block; }

/* ===== TOC NAVIGATION ===== */
.toc_navigation-container { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.toc_navigation nav { display: flex; align-items: center; gap: 1rem; overflow-x: auto; padding: .5rem 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.toc_navigation nav::-webkit-scrollbar { display: none; }
.toc_navigation .min-title { color: var(--text-secondary); font-size: .8rem; font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.toc_navigation .items { display: flex; gap: .25rem; list-style: none; flex-shrink: 0; }
.toc_navigation .item a { color: var(--text-secondary); font-size: .82rem; padding: .4rem .6rem; border-radius: 4px; white-space: nowrap; transition: all .2s; display: block; min-height: 36px; display: flex; align-items: center; }
.toc_navigation .item a:hover { color: var(--gold); background: rgba(240,165,0,.08); }
.progress-container { height: 2px; background: var(--border); position: relative; margin-left: auto; width: 80px; flex-shrink: 0; }
.progress-bar { height: 100%; background: var(--gold); width: 0; transition: width .1s; }

/* ===== HERO / WELCOME SECTION ===== */
.home-page { background: var(--bg-primary); }
.welcome-section { padding: 2.5rem 0; }
.main_page_header_buttons { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.welcome-section__container { display: grid; gap: 2rem; align-items: start; }
.welcome-section__container h1.bef_b { font-size: clamp(1.4rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.welcome-section__container h1.bef_b .gold { color: var(--gold); }
.description p { color: var(--text-secondary); font-size: 1.05rem; }
.banner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; }
.banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .15; z-index: 0; }
.banner > *:not(.bg) { position: relative; z-index: 1; }
.banner .title { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: .5rem; }
.banner .bonus { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.banner .comment { color: var(--text-secondary); font-size: .95rem; margin-bottom: 1.25rem; }
.banner .btn { width: 100%; }

/* ===== SLIDER (CSS scroll snap — no JS required) ===== */
.image_slider_block { overflow: hidden; margin-bottom: 0; }
.owl-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
}
.owl-carousel::-webkit-scrollbar { display: none; }
.owl-carousel .item {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.owl-carousel .item img { width: 100%; border-radius: var(--radius); display: block; }
.owl-carousel .item span { display: block; }
.owl-dots { text-align: center; margin-top: .75rem; }
.owl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin: 0 4px; }
.owl-dot.active { background: var(--gold); }

/* ===== CATEGORIES ===== */
.categories { padding: 1.5rem 0; }
.categories__container { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.categories__container li a.link { display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; color: var(--text-primary); transition: all .25s; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.categories__container li a.link:hover { border-color: var(--gold); background: var(--bg-card-hover); transform: translateY(-2px); }
.categories__container li a.link > div > div:first-child { font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.categories__container li a.link .description { color: var(--text-secondary); font-size: .75rem; margin-top: .15rem; }
.categories__container li a.link img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }

/* ===== GAME SECTION ===== */
.game_section { padding: 1.5rem 0; }
.game_section header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.game_section header img { width: 36px; height: 36px; object-fit: contain; }
.game_section header h2.title { margin-bottom: 0; }
.game_section__container { display: grid; gap: .75rem; }
.game_section__container.columns-5 { grid-template-columns: repeat(2, 1fr); }
.game_section__container li a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all .25s; -webkit-tap-highlight-color: transparent; }
.game_section__container li a:hover { border-color: var(--gold); transform: scale(1.03); box-shadow: 0 8px 24px rgba(240,165,0,.2); }
.game_section__container li a img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ===== ALTERNATE SECTIONS (media blocks) ===== */
.media_block_v2 { display: grid; gap: 2rem; align-items: center; }
.media_block_v2 .content p { color: var(--text-secondary); }
.media_block_v2 .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media_block_v2 .title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; margin-bottom: 1.25rem; }
.wp-block-hc-alternate-group-section { border-top: 1px solid var(--border); }

/* ===== INFO TABLE ===== */
.wp-block-table { overflow-x: auto; border-radius: var(--radius); -webkit-overflow-scrolling: touch; margin-top: 1.5rem; }
.wp-block-table table { width: 100%; border-collapse: collapse; min-width: 360px; }
.wp-block-table th { background: var(--bg-card); color: var(--gold); padding: .75rem 1rem; text-align: left; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--border); white-space: nowrap; }
.wp-block-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: .9rem; word-break: break-word; }
.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:hover td { background: rgba(255,255,255,.02); }
.wp-block-table td strong { color: var(--text-primary); }

/* ===== FEATURES / BENEFIT CARDS ===== */
.features-grid { display: grid; gap: 1rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s; }
.feature-card:hover { border-color: var(--gold); }
.feature-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* ===== BONUS CARDS ===== */
.bonus-cards { display: grid; gap: 1rem; }
.bonus-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; transition: border-color .2s; }
.bonus-card:hover { border-color: var(--gold); }
.bonus-card img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.bonus-card .bonus-info { min-width: 0; }
.bonus-card .bonus-info h3 { margin-bottom: .4rem; word-break: break-word; }
.bonus-card .bonus-info p { color: var(--text-secondary); font-size: .9rem; }
.bonus-card .badge { display: inline-block; background: rgba(240,165,0,.15); color: var(--gold); border: 1px solid rgba(240,165,0,.3); border-radius: 6px; padding: .2rem .6rem; font-size: .8rem; font-weight: 700; margin-top: .5rem; }

/* ===== STEPS (registration) ===== */
.steps { display: grid; gap: 1rem; counter-reset: steps; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.step::before { counter-increment: steps; content: counter(steps); background: var(--gold); color: #000; font-weight: 800; font-size: .9rem; width: 32px; height: 32px; min-width: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h3 { font-size: 1rem; margin-bottom: .25rem; }
.step-content p { font-size: .9rem; color: var(--text-secondary); margin: 0; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
details.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
details.faq-item summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; min-height: 52px; -webkit-tap-highlight-color: transparent; user-select: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); font-size: .95rem; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; gap: 1rem; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.testimonial-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-card blockquote { color: var(--text-secondary); font-size: .95rem; font-style: italic; margin-bottom: .75rem; }
.testimonial-card cite { font-style: normal; font-weight: 700; color: var(--text-primary); font-size: .9rem; }

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.screenshots-grid img { border-radius: 8px; border: 1px solid var(--border); width: 100%; }

/* ===== PAYMENT METHODS ===== */
.payment-icons { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.payment-icons img { height: 28px; width: auto; object-fit: contain; }
.support-note { display: flex; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.support-icon { width: 36px; height: 36px; flex-shrink: 0; }

/* ===== FOOTER ===== */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-description { color: var(--text-secondary); font-size: .9rem; }
.footer-col h3 { font-size: .9rem; color: var(--text-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: var(--text-secondary); font-size: .9rem; transition: color .2s; display: block; padding: .2rem 0; min-height: 36px; display: flex; align-items: center; }
.footer-col ul a:hover { color: var(--gold); }
.social-links { display: flex; gap: .75rem; margin-top: .75rem; }
.social-links a { color: var(--text-secondary); display: flex; align-items: center; min-width: 36px; min-height: 36px; }
.social-links a:hover { color: var(--gold); }
.img-18plus { height: 28px; width: auto; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-logos { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-logos img { height: 24px; width: auto; object-fit: contain; filter: grayscale(1) brightness(.7); transition: filter .2s; }
.footer-logos img:hover { filter: none; }
.legal-text { font-size: .78rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== CTA BANNER ===== */
.cta-section { background: linear-gradient(135deg, #0d1a0a 0%, #0a1520 100%); border: 1px solid rgba(46,204,113,.2); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ===== LANGUAGE FLAG ===== */
.lang-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .7rem; font-size: .82rem; color: var(--text-secondary); }
.lang-badge img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }

/* ===== HIGHLIGHTS LIST ===== */
.highlight-list { display: flex; flex-direction: column; gap: .6rem; }
.highlight-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-secondary); font-size: .95rem; }
.highlight-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: .15rem; }

/* ===== RESPONSIVE: max 480px ===== */
@media (max-width: 480px) {
    .container { padding: 0 .875rem; }
    .buttons .btn-outline-success { display: none; }
    .main_page_header_buttons { display: none; }
    .game_section__container.columns-5 { grid-template-columns: repeat(2, 1fr); }
    .categories__container { grid-template-columns: 1fr 1fr; }
    .banner { padding: 1.25rem; }
    section { padding: 2rem 0; }
    .cta-section { padding: 1.75rem 1rem; }
    .bonus-card { padding: 1rem; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .toc_navigation-container { display: none; }
}

/* ===== RESPONSIVE: 480px – 768px ===== */
@media (min-width: 480px) and (max-width: 767px) {
    .game_section__container.columns-5 { grid-template-columns: repeat(3, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
    .categories__container { grid-template-columns: repeat(2, 1fr); }
}

/* ===== RESPONSIVE: 768px+ (tablet & desktop) ===== */
@media (min-width: 768px) {
    .primary_menu_desktop_ver { display: flex; }
    .mobile-menu-button { display: none; }
    .main_page_header_buttons { display: none; }
    .welcome-section__container { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .bonus-cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .categories__container { grid-template-columns: repeat(4, 1fr); }
    .game_section__container.columns-5 { grid-template-columns: repeat(4, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
    .media_block_v2.right { grid-template-columns: 1fr 1fr; }
    .media_block_v2.right .media { order: 2; }
    .wp-block-hc-alternate-group-section { padding: 3.5rem 0; }
}

/* ===== RESPONSIVE: 1024px+ (desktop) ===== */
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(6, 1fr); }
    .game_section__container.columns-5 { grid-template-columns: repeat(5, 1fr); }
    .media_block_v2.right { grid-template-columns: 1fr 480px; }
    .welcome-section { padding: 3rem 0; }
}
