body {background-color: #0F292F; color: #BFDFE8;}
p, ul, ol, dl {color: #BFDFE8;}
a { text-decoration: none; color: inherit; }
.spoiler-list {background-color: #12353F;}
.sidebar {background-color: #12353F;}
.sidebar .download { background: #215564;}
.sidebar .menu li a.active, .sidebar .menu li a:hover {background-color: #215564;}
.sidebar .auth .reg, .sidebar .auth-mobile .reg {background: #00AAD5;}

/* Language dropdown arrow */
.sidebar .spoiler label::after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    color: #8C8DAA;
}

.sidebar .spoiler :checked + label::after {
    content: '▲';
}

/* Language flag fix */
.sidebar .spoiler .language img,
.sidebar .spoiler label img {
    width: 24px !important;
    height: auto !important;
    min-width: 24px !important;
    min-height: 16px !important;
    display: inline-block !important;
}

.footer {background-color: #12353F;}
.divider {background-color: #215564;}
/* === TABLES STYLING === */
.table-responsive,
.wp-block-table,
figure.wp-block-table {
    overflow-x: visible;
    overflow: visible;
    width: 100%;
    margin: 0 0 20px 0;
}

.wp-block-table figure,
.wp-block-table figcaption,
figure.wp-block-table figcaption {
    margin: 0;
}

table,
.table-responsive table,
.wp-block-table table,
figure.wp-block-table table,
.has-fixed-layout {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 12px;
    background: transparent;
    margin: 0;
    border: none;
}

table thead,
.wp-block-table thead {
    background: #12353F;
    border: none;
}

table thead tr,
.wp-block-table thead tr {
    background: transparent;
    border: none;
}

table thead th,
.wp-block-table thead th,
.wp-block-table table thead th,
.has-fixed-layout thead th {
    color: #00AAD5;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 15px;
    border: none;
    background: #12353F;
}

table thead th:first-child,
.wp-block-table thead th:first-child {
    border-radius: 8px 0 0 8px;
}

table thead th:last-child,
.wp-block-table thead th:last-child {
    border-radius: 0 8px 8px 0;
}

table tbody tr,
.wp-block-table tbody tr {
    background: #0F292F;
    transition: background 0.3s ease;
}

table tbody tr:nth-child(2n),
.wp-block-table tbody tr:nth-child(2n) {
    background: #12353F;
}

table tbody tr:hover,
.wp-block-table tbody tr:hover {
    background: #1a4a5e;
}

table tbody td,
.wp-block-table tbody td,
.wp-block-table table tbody td {
    padding: 16px 20px;
    color: #BFDFE8;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    vertical-align: top;
}

table tbody td:first-child,
.wp-block-table tbody td:first-child {
    font-weight: 600;
    color: #fff;
    border-radius: 8px 0 0 8px;
}

table tbody td:last-child,
.wp-block-table tbody td:last-child {
    border-radius: 0 8px 8px 0;
}

table p {
    margin: 0;
}

/* Table icons/emojis alignment */
table tbody td img,
table tbody td svg {
    vertical-align: middle;
    margin-right: 8px;
}

img.emoji,
table img.emoji,
.wp-block-table img.emoji,
.wp-block-button img.emoji,
.wp-block-button__link img.emoji,
.wp-block-list img.emoji,
ul img.emoji,
ol img.emoji,
li img.emoji,
.faq-question img.emoji,
.faq-item img.emoji,
.faq-section img.emoji {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    vertical-align: -0.1em !important;
    margin: 0 4px 0 0 !important;
    box-shadow: none !important;
}

/* FAQ question emoji alignment */
.faq-question h3,
.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Button with emoji fix */
.wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 5px;
}

.wp-block-buttons {
    justify-content: center;
}

.wp-block-button {
    text-align: center;
}

/* === GIF DEMO BLOCK === */
.game-demo,
.game-demo img,
.game-demo figure,
.wp-block-image.game-demo img {
    border-radius: 20px !important;
    overflow: hidden;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;    
}



/* === PROMO SLIDE BLOCK === */
.promo-slide-block {
    background-image: url('/wp-content/uploads/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: inset 0 0 15px rgba(15, 41, 47, 0.8);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.promo-slide-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 41, 47, 0.7);
    border-radius: 0;
}

.promo-slide-block .promo-content {
    position: relative;
    z-index: 1;
}

.promo-slide-block .promo-title {
    color: #fff;
    font-size: 14px;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-slide-block .promo-bonus {
    color: #FFD21D;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.promo-slide-block .promo-code-label {
    color: #00AAD5;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.promo-slide-block .promo-code-wrap {
    display: flex;
    gap: 0;
    justify-content: center;
}

.promo-slide-block #promocode {
    background: #fff;
    border: none;
    outline: none;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    border-radius: 6px 0 0 6px;
    width: 140px;
}

.promo-slide-block #copyPromocodeBtn {
    background: #FFD21D;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
}

.promo-slide-block #copyPromocodeBtn:hover {
    background: #e6bc00;
}

.promo-slide-block #copyPromocodeBtn.copied {
    background: #4CAF50;
    color: #fff;
}

/* CTA Play Button */
.promo-slide-block .cta-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #00AAD5 0%, #0077B5 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 170, 213, 0.5), 0 0 30px rgba(0, 170, 213, 0.3);
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.promo-slide-block .cta-play-btn img.wp-smiley,
.promo-slide-block .cta-play-btn img.emoji {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.promo-slide-block .cta-play-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 170, 213, 0.6), 0 0 50px rgba(0, 170, 213, 0.4);
    background: linear-gradient(135deg, #00C4F5 0%, #0090D5 100%);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 170, 213, 0.5), 0 0 30px rgba(0, 170, 213, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 170, 213, 0.7), 0 0 40px rgba(0, 170, 213, 0.5);
    }
}

@media (max-width: 480px) {
    .promo-slide-block {
        min-height: 250px;
        padding: 25px 15px;
    }
    
    .promo-slide-block .promo-bonus {
        font-size: 20px;
    }
    
    .promo-slide-block .promo-code-wrap {
        flex-direction: row;
        width: 100%;
        max-width: 100%;
    }
    
    .promo-slide-block #promocode {
        border-radius: 6px 0 0 6px;
        flex: 1;
    }
    
    .promo-slide-block #copyPromocodeBtn {
        border-radius: 0 6px 6px 0;
        width: auto;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .promo-slide-block .cta-play-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* === SLIDES MOBILE - Show first, hide second === */
@media (max-width: 750px) {
    .slides .slide-first {
        display: block !important;
    }
    
    .slides .slide-second {
        display: none !important;
    }
}

/* === MOBILE SIDEBAR MENU === */
@media (max-width: 750px) {
    .sidebar.active {
        height: 100vh !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        overflow-y: auto;
        background: #0F292F;
        padding: 1px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .sidebar.active .sidebar-header {
        width: 100%;
    }
    
    .sidebar.active .auth-mobile {
        padding: 8px !important;
        width: 95%;
    }
    
    .sidebar.active .block-menu {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        top: unset !important;
        left: unset !important;
        right: unset !important;
        bottom: unset !important;
        max-height: none !important;
        box-sizing: border-box !important;
    }
    
    .sidebar.active .auth-mobile {
        margin-bottom: 20px;
    }
    
    .sidebar.active .burger-menu {
        content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');
    }
    
    .sidebar.active .gift {
        max-width: 100%;
        border-radius: 12px;
        margin: 15px 0;
    }
    
    .sidebar.active .download {
        background: #12353F;
    }
    
    .sidebar.active .info {
        margin-top: 20px;
        padding: 40px;
    }
    
    .sidebar.active .divider {
        margin: 15px 0;
        background: rgba(255,255,255,0.1);
        height: 1px;
    }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00AAD5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 170, 213, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #0090b5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 170, 213, 0.5);
}

.scroll-to-top svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


/* Mobile tables */
@media (max-width: 768px) {
    table thead th,
    table tbody td,
    .wp-block-table thead th,
    .wp-block-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    table thead th,
    table tbody td,
    .wp-block-table thead th,
    .wp-block-table tbody td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* === SLIDES MOBILE === */
@media (max-width: 768px) {
    .slides .slide-second {
        min-height: auto;
    }
    
    .slides .slide-second .text {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .slides .slide-second .buttons {
        flex-wrap: wrap;
        gap: 5px;
        position: relative;
        margin-top: 5px;
    }
    
    .slides .slide-second .buttons .button,
    .slides .slide-second .buttons .button.button-yellow,
    .slides .slide-second .buttons .button.button-green {
        padding: 6px 10px;
        font-size: 11px;
        flex: 0 0 auto;
        width: auto;
    }
}

@media (max-width: 480px) {
    .slides .slide-second .text {
        font-size: 10px;
    }
    
    .slides .slide-second .buttons .button,
    .slides .slide-second .buttons .button.button-yellow,
    .slides .slide-second .buttons .button.button-green {
        padding: 5px 8px;
        font-size: 10px;
    }
}

.faq .faq-item h3 {background-color: #12353F;}
.faq .faq-item .faq-item-content.show {background-color: #12353F;}
/* Hide spoiler content by default */
.spoiler-list-content, .faq-item-content { display: none; }

/* === HERO BLOCK === */
.hero-block {
    display: grid !important;
    grid-template-columns: 20% auto !important;
    gap: 30px !important;
    background: linear-gradient(135deg, #1a4a5e 0%, #0d2833 100%) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    align-items: center !important;
}

.hero-block .wp-block-media-text__media {
    margin: 0 !important;
}

.hero-block .wp-block-media-text__media img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

.hero-block .wp-block-media-text__content {
    padding: 0 !important;
}

.hero-block .wp-block-heading {
    color: #fff !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.hero-block p {
    color: #BFDFE8 !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

/* Play Button */
.btn-custom {
    display: inline-block !important;
    background: linear-gradient(135deg, #00AAD5 0%, #0088aa 100%) !important;
    color: #fff !important;
    padding: 15px 40px !important;
    border-radius: 30px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 170, 213, 0.4) !important;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #00c4f5 0%, #00AAD5 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 170, 213, 0.5) !important;
}

/* Hero block mobile version */
@media (max-width: 768px) {
    .hero-block {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .hero-block .wp-block-media-text__media {
        max-width: 200px !important;
        margin: 0 auto 20px !important;
    }
    
    .hero-block .wp-block-heading {
        font-size: 22px !important;
    }
    
    .hero-block p {
        font-size: 14px !important;
    }
    
    .btn-custom {
        padding: 12px 30px !important;
        font-size: 16px !important;
    }
}

/* === LAYOUT FIX === */

/* Remove all content width restrictions */
main.content .content,
.content .content,
main.content > section,
.content > section,
section.container,
.container,
.container[style],

}

/* Box full width */
div.box,
.box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* All box children full width (except FAQ) */
.box > *:not(.suspended-accordion):not(.accordion-container):not(.faq-accordion):not(.wp-block-jeremydev-accordion) {
    max-width: 100% !important;
}

/* === BLOCK SPACING === */

/* Main content padding */
.content {
    padding: 30px 40px !important;
}

/* Spacing between elements inside box */
.box > h1,
.box > h2,
.box > h3,
.box > h4 {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

.box > h1:first-child,
.box > h2:first-child {
    margin-top: 0 !important;
}

.box > p {
    margin-bottom: 15px !important;
}

.box > table,
.box > .table-responsive {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
}

/* Table of Contents block */
#ez-toc-container {
    margin-bottom: 30px !important;
}

/* Images */
.box img,
.content-center {
    margin: 20px 0 !important;
}

/* Spoilers and FAQ */
.spoiler-list,
.faq {
    margin: 25px 0 !important;
}

/* Lists */
.box > ul,
.box > ol {
    margin-bottom: 20px !important;
    padding-left: 25px !important;
}

/* Desktop screens (PC) */
@media (min-width: 992px) {
    /* Fixed sidebar width */
    nav.sidebar,
    .sidebar {
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100% !important;
        z-index: 999 !important;
        overflow-y: auto !important;
    }

    /* Shift content to the right */
    main.content,
    .content {
        margin-left: 6% !important;
        width: 100% !important;
        position: relative !important;
        display: block !important;
        padding: 20px 40px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Container = 100% of content */
    main.content > section.container,
    .content > .container,
    .content section.container,
    section.container,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Box = 100% of container */
    .container > .box,
    .container .box,
    div.box,
    .box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Responsive images */
    .box img,
    .content img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Responsive tables */
    .box table,
    .content table {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Extra large screens (>1600px) - wider content */
@media (min-width: 1600px) {
    main.content > section.container,
    .content > .container,
    section.container,
    .container {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
}

/* Mobile and tablet devices */
@media (max-width: 991px) {
    /* Body without horizontal scroll */
    body {
        overflow-x: hidden !important;
    }

    /* Fixed mobile header - add top margin */
    main.content,
    .content {
        margin-left: 0 !important;
        margin-top: 80px !important; /* Mobile header height */
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    section.container,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Headings don't overflow screen */
    .box h1,
    .box h2,
    .box h3 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Responsive tables */
    .box table,
    .wp-block-table table,
    figure.wp-block-table table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        word-wrap: break-word !important;
    }

    .box figure.wp-block-table,
    figure.wp-block-table {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow-x: auto !important;
    }

    /* Table cells */
    .box table td,
    .box table th,
    .wp-block-table td,
    .wp-block-table th {
        padding: 8px 10px !important;
        font-size: 13px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Responsive images */
    .box img,
    .content img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* =============================================
   Easy Table of Contents - Theme Styling
   ============================================= */

/* TOC container */
#ez-toc-container {
    background: #12353F !important;
    border: 1px solid #215564 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    float: none !important;
}

/* TOC title */
#ez-toc-container .ez-toc-title-container,
#ez-toc-container .ez-toc-title {
    color: #BFDFE8 !important;
    font-family: 'Unbounded', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
}

/* Toggle icon */
#ez-toc-container .ez-toc-title-toggle {
    color: #00AAD5 !important;
}

/* List items */
#ez-toc-container nav ul,
#ez-toc-container .ez-toc-list {
    padding-left: 0 !important;
    list-style: none !important;
}

#ez-toc-container nav ul li,
#ez-toc-container .ez-toc-list li {
    margin-bottom: 8px !important;
    padding-left: 15px !important;
    position: relative;
}

#ez-toc-container nav ul li::before,
#ez-toc-container .ez-toc-list li::before {
    content: "→" !important;
    position: absolute !important;
    left: 0 !important;
    color: #00AAD5 !important;
}

/* TOC links */
#ez-toc-container a {
    color: #BFDFE8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    font-size: 14px !important;
}

#ez-toc-container a:hover {
    color: #00AAD5 !important;
}

/* Nested levels */
#ez-toc-container ul ul {
    margin-top: 8px !important;
    margin-left: 15px !important;
    border-left: 2px solid #215564 !important;
    padding-left: 15px !important;
}