/* ================================================================
   ADOVA HUGO — Custom CSS
   Layered on top of Adova's style.css
   Handles: content prose, breadcrumbs, TOC, FAQ, tables, 404
   ================================================================ */

/* ---- Demo iframe ---- */

.te-demo-wrapper {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    height: 530px; /* visible window = game content height (720px render - 95px bars top/bottom) */
}
.te-demo-clip {
    position: relative;
    top: -95px; /* shift up to hide top bar */
    height: 720px;
}
.te-demo-clip iframe,
.te-demo-clip #game-demo {
    display: block;
    width: 100% !important;
    height: 720px !important;
    border: none;
}

/* ---- Hide Adova's custom cursor (not needed for content site) ---- */
.cs_cursor_lg,
.cs_cursor_sm { display: none !important; }

/* ---- Sticky footer layout: page content grows to push footer down ---- */
body { display: flex; flex-direction: column; min-height: 100vh; }
.cs_page_content { flex: 1 0 auto; }
.cs_footer { flex-shrink: 0; }

/* ---- Always-visible sticky header ----
   Adova hides the header on scroll-down via cs_gescout_sticky without
   cs_gescout_show. Force it always visible once sticky kicks in.       */
.cs_sticky_header.cs_gescout_sticky {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ---- Page header: match body bg before sticky; smoothly darkens on scroll ---- */
.cs_site_header.cs_style1 {
    background-color: #191919;
    transition: background-color 0.4s ease !important;
}

/* ---- Header play button ---- */
.av-header-play-btn {
    display: flex;
    align-items: center;
    margin-right: 16px;
}
.av-header-play-btn .cs_btn {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.av-header-play-btn .cs_btn svg {
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.4s ease;
    position: relative;
    z-index: 1;
}
.av-header-play-btn .cs_btn:hover svg {
    transform: translateX(3px);
    color: #fff;
}

/* ---- Play button: white→black wipe + per-letter animation ---- */

/* Base: white bg, dark text — overrides cs_style_1's #191919 default */
.av-play-btn {
    background-color: #fff !important;
    color: #191919 !important;
    text-shadow: none !important;   /* cancel cs_style_1's 40px shadow on the button root */
    text-decoration: none !important; /* cancel .av-article a underline when used in content */
    border: none !important;        /* prevent UA button border creating a white line */
    position: relative;
    overflow: hidden !important;
}

/* Dark wipe overlay (scaleX from 0→1 on hover) */
.av-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 0;
}
.av-play-btn:hover::before { transform: scaleX(1); }
.av-play-btn:hover { color: #fff !important; }

/* Blanket-reset: cs_style_1:hover applies translateY(-40px) to ALL span descendants.
   Lower specificity here acts as baseline; higher-spec hover rules below override it. */
.av-play-btn span { transform: none !important; }

/* Outer text wrapper — above wipe, clips to exactly 1 line.
   1.2em (not 1em) so descenders on 'p' and 'y' aren't cut off. */
.av-play-btn > span:first-child {
    position: relative;
    z-index: 1;
    display: flex;
    line-height: 1.2em;
    overflow: hidden;
    transition: none !important;
}

/* Letter-row container.
   text-shadow !important is required: the 'none !important' on .av-play-btn is
   inherited and would kill the shadow duplicate needed for the reveal trick.
   Shadow offset must match line-height so the clone sits just out of frame. */
.av-play-btn .cs_animo_text {
    display: flex;
    overflow: hidden;
    text-shadow: 0 1.2em 0 currentColor !important;
    transition: transform 0.4s ease;
}
/* (0,3,0) specificity beats blanket span rule (0,1,1) among !important rules */
.av-play-btn:hover .cs_animo_text { transform: translateY(-0.1em) !important; }

/* Individual letters */
.av-play-btn .cs_animo_text span {
    display: block;
    backface-visibility: hidden;
    transition: transform 0.4s ease;
}
/* Translate matches line-height so shadow slides exactly into place */
/* (0,3,1) > (0,1,1): hover state properly overrides the blanket none !important */
.av-play-btn:hover .cs_animo_text span { transform: translateY(-1.2em) !important; }

/* SVG arrow — above wipe, nudges right on hover */
.av-play-btn svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.3s ease;
}
.av-play-btn:hover svg { transform: translateX(3px) !important; color: #fff; }

/* Staggered delays (up to 15 chars) */
.av-play-btn .cs_animo_text span:nth-child(1)  { transition-delay: 0.029s; }
.av-play-btn .cs_animo_text span:nth-child(2)  { transition-delay: 0.057s; }
.av-play-btn .cs_animo_text span:nth-child(3)  { transition-delay: 0.086s; }
.av-play-btn .cs_animo_text span:nth-child(4)  { transition-delay: 0.114s; }
.av-play-btn .cs_animo_text span:nth-child(5)  { transition-delay: 0.143s; }
.av-play-btn .cs_animo_text span:nth-child(6)  { transition-delay: 0.171s; }
.av-play-btn .cs_animo_text span:nth-child(7)  { transition-delay: 0.200s; }
.av-play-btn .cs_animo_text span:nth-child(8)  { transition-delay: 0.229s; }
.av-play-btn .cs_animo_text span:nth-child(9)  { transition-delay: 0.257s; }
.av-play-btn .cs_animo_text span:nth-child(10) { transition-delay: 0.286s; }
.av-play-btn .cs_animo_text span:nth-child(11) { transition-delay: 0.314s; }
.av-play-btn .cs_animo_text span:nth-child(12) { transition-delay: 0.343s; }
.av-play-btn .cs_animo_text span:nth-child(13) { transition-delay: 0.371s; }
.av-play-btn .cs_animo_text span:nth-child(14) { transition-delay: 0.400s; }
.av-play-btn .cs_animo_text span:nth-child(15) { transition-delay: 0.429s; }
.av-play-btn .cs_animo_text span:nth-child(16) { transition-delay: 0.457s; }
.av-play-btn .cs_animo_text span:nth-child(17) { transition-delay: 0.486s; }
.av-play-btn .cs_animo_text span:nth-child(18) { transition-delay: 0.514s; }
.av-play-btn .cs_animo_text span:nth-child(19) { transition-delay: 0.543s; }
.av-play-btn .cs_animo_text span:nth-child(20) { transition-delay: 0.571s; }
/* Always visible — override any responsive hide rules */
.av-header-play-btn { display: flex !important; margin-left: 40px; }

/* Short/full text swap on the header play button */
.av-play-btn .av-btn-text-short { display: none !important; }
@media (max-width: 576px) {
    .av-play-btn .av-btn-text-full  { display: none !important; }
    .av-play-btn .av-btn-text-short { display: inline !important; }
}

/* ---- Shortcode play button (content area) ---- */
.av-play-btn--content {
    font-size: 15px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
/* Content button: 15px font needs slightly taller clip so descenders aren't cut */
.av-play-btn.av-play-btn--content > span:first-child { line-height: 1.3em; }
.av-play-btn.av-play-btn--content .cs_animo_text { text-shadow: 0 1.3em 0 currentColor !important; }
.av-play-btn.av-play-btn--content:hover .cs_animo_text { transform: translateY(-0.15em) !important; }
.av-play-btn.av-play-btn--content:hover .cs_animo_text span { transform: translateY(-1.3em) !important; }

/* ---- FAQ — Adova style ---- */
/* Reset Adova's cs_section_heading title (64px desktop → 32px to match article h2) */
.av-faq-wrapper .cs_section_heading .cs_section_title { font-size: 32px !important; }
.av-faq-wrapper {
    margin: 48px 0;
}
.av-faq-list {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.av-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.av-faq-question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}
.av-faq-question:hover { opacity: 0.75; }
.av-faq-num {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    opacity: 0.4;
    min-width: 28px;
    flex-shrink: 0;
}
.av-faq-question h3 {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}
.av-faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.av-faq-item.active .av-faq-toggle {
    background: var(--cs-accent, #c1ff72);
    border-color: var(--cs-accent, #c1ff72);
    color: #000;
}
.av-faq-answer {
    display: none;
    padding: 0 0 22px 48px;
    opacity: 0.7;
    line-height: 1.8;
    font-size: 15px;
}

/* ---- Content area base typography ---- */
.av-content-area,
.av-home-content-area {
    padding: 60px 0;
    color: var(--cs-body-color, #fff);
}
.av-article.av-article-home h1 { font-size: 42px; margin-bottom: 0.6em; margin-top: 2em; }
.av-article h1 { font-size: 42px; margin-bottom: 0.6em; margin-top: 0.6em; }
.av-article h2, .av-article-home h2 { font-size: 32px; margin-top: 1.3em; margin-bottom: 0.5em; }
.av-article h3, .av-article-home h3 { font-size: 25px; margin-top: 1.3em; margin-bottom: 0.5em; }
.av-article h4, .av-article-home h4 { font-size: 20px; margin-top: 1.2em; margin-bottom: 0.4em; }
.av-article h5, .av-article-home h5 { font-size: 16px; margin-top: 1.1em; margin-bottom: 0.4em; }
.av-article h6, .av-article-home h6 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1em; margin-bottom: 0.4em; }

.av-article p, .av-article-home p { margin-bottom: 1em; line-height: 1.8; color: rgba(255,255,255,0.85); }
.av-article li, .av-article-home li { color: rgba(255,255,255,0.85); }
.av-article a, .av-article-home a { text-decoration: underline; }

/* ---- List markers (Adova's global reset strips them) ---- */
.av-article ul:not([class]),
.av-article-home ul:not([class]) {
    list-style: disc;
    padding-left: 1.6em;
    margin-bottom: 1em;
}
.av-article ol:not([class]),
.av-article-home ol:not([class]) {
    list-style: decimal;
    padding-left: 1.6em;
    margin-bottom: 1em;
}
.av-article ul:not([class]) li,
.av-article-home ul:not([class]) li,
.av-article ol:not([class]) li,
.av-article-home ol:not([class]) li {
    margin-bottom: 0.3em;
}

/* ---- Breadcrumbs ---- */
.av-breadcrumb-nav {
    margin-top: 24px;
}
.av-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}
.av-breadcrumb-item + .av-breadcrumb-item::before {
    content: "/";
    margin-right: 6px;
    opacity: 0.5;
}
.av-breadcrumb-item a {
    text-decoration: none;
    opacity: 0.85;
}
.av-breadcrumb-item a:hover { opacity: 1; }
.av-breadcrumb-item.active { opacity: 1; }

/* ---- TOC ---- */
details.ek-toc {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    margin: 1.5em 0;
    padding: 0;
    overflow: hidden;
}
summary.ek-toc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    user-select: none;
    background: rgba(255,255,255,0.04);
}
summary.ek-toc-title::-webkit-details-marker { display: none; }
.ek-toc-arrow {
    transition: transform 0.3s ease;
    font-size: 13px;
    flex-shrink: 0;
}
details.ek-toc.is-open .ek-toc-arrow { transform: rotate(180deg); }
details.ek-toc nav {
    padding: 10px 20px 6px;
    margin: 0;
}
details.ek-toc ul,
details.ek-toc ol {
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0;
}
details.ek-toc li { margin: 4px 0; }
details.ek-toc a { text-decoration: none; opacity: 0.8; font-size: 14px; }
details.ek-toc a:hover { opacity: 1; }

/* ---- FAQ Accordion ---- */
.av-faq-wrapper {
    margin: 40px 0;
}
.av-faq-title {
    font-size: 28px;
    margin-bottom: 24px;
}
.av-acc-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.av-acc-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    gap: 12px;
}
.av-acc-btn h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    flex: 1;
}
.av-acc-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    font-size: 13px;
    opacity: 0.7;
}
.av-acc-item.active .av-acc-icon { transform: rotate(180deg); }
.av-acc-content { display: none; }
.av-acc-content-inner {
    padding: 0 0 18px;
    opacity: 0.75;
    line-height: 1.8;
}

/* ---- Scrollable table wrapper ---- */
.av-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
}
.av-table-scroll table {
    min-width: 500px;
    width: 100%;
    border-collapse: collapse;
}
/* ---- Table styling — applied to all tables site-wide via .cs_dark ---- */
.cs_dark table th,
.cs_dark table td {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 14px;
}
.cs_dark table th {
    background: rgba(255,255,255,0.10);
    color: #fff !important;
    font-weight: 700 !important;
}
.cs_dark table td {
    color: rgba(255,255,255,0.85) !important;
}

/* ---- 404 page ---- */
.av-error-area {
    text-align: center;
    padding: 80px 0;
}
.av-error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.15;
    margin-bottom: 0;
}
.av-error-heading {
    font-size: 36px;
    margin-bottom: 16px;
}
.av-error-text {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 32px;
}

/* ---- Contact page ---- */
.av-contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.av-contact-info-cell--mid { text-align: center; }
.av-contact-info-cell--right { text-align: right; }


.av-contact-page-title {
    font-size: 42px;
    margin: 0.6em 0 1em;
}
.av-contact-info-wrap {
    margin-bottom: 48px;
}
.av-contact-info-wrap .cs_contact_info h2 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 6px;
}
.av-contact-info-wrap .cs_contact_info p { margin: 0; }
.av-contact-form-title {
    font-size: 32px;
    margin: 0 0 40px;
}

/* ---- Form field active border ---- */
.cs_form_field:focus {
    outline: none;
    border-bottom-color: var(--cs-accent, #c1ff72) !important;
}

/* ---- Casino logos (footer trust) ---- */
.av-trust-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.av-trust-logo-item img {
    height: 30px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.av-trust-logo-item img:hover {
    opacity: 1;
    filter: none;
}

/* ---- Side panel: fade content in only after overlay fully covers screen ---- */
/* hanburgerEffect reaches full-rectangle only at its last keyframe (0.8s).
   cs_side_header_in has transition-delay:0.6s but no opacity state, so content
   was always visible. Setting opacity 0→1 with delay 0.85s fixes it. */
.cs_side_header_in {
    opacity: 0;
}
.cs_side_header.active .cs_side_header_in {
    opacity: 1;
    transition: opacity 0.4s ease !important;
    transition-delay: 0.85s !important;
}

/* ---- Side panel shape: white circle, black cross ---- */
.cs_side_header_shape {
    background-color: #fff !important;
    z-index: 11 !important;  /* above cs_side_header_in (z-index:10) so clicks reach it */
    cursor: pointer;
}
.cs_close::before,
.cs_close::after { background-color: #191919 !important; }


/* ---- ≥992px: horizontal nav, no hamburger ---- */
/* Adova's desktop nav CSS lives inside min-width:1200px; for 992–1199px we
   must manually undo the mobile overlay it applies via max-width:1199px. */
@media (min-width: 992px) {
    /* Ensure nav wrapper is visible and flex-aligned */
    .cs_site_header.cs_style1 .cs_nav {
        display: flex !important;
        align-items: center;
        height: 100%;
        line-height: 1.6em;
        font-size: 14px;
        font-weight: 500;
    }
    /* Reset nav list from fullscreen overlay back to horizontal inline row */
    .cs_nav .cs_nav_list {
        position: static !important;
        width: auto !important;
        left: auto !important;
        min-height: auto !important;
        background-color: transparent !important;
        color: inherit !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-wrap: wrap !important;
        height: inherit !important;
        line-height: inherit !important;
    }
    .cs_nav .cs_nav_list > li            { margin-right: 50px; height: inherit; }
    .cs_nav .cs_nav_list > li:last-child { margin-right: 0; }
    .cs_nav .cs_nav_list > li > a {
        padding: 10px 0 !important;
        display: inline-flex !important;
        height: inherit !important;
        align-items: center !important;
        font-size: 14px !important;
        line-height: 16px !important;
        text-transform: uppercase;
    }
    /* Restore dropdown sub-menus (mobile sets display:none on them) */
    .cs_nav .cs_nav_list li:not(.cs_mega_menu) { position: relative; }
    .cs_nav .cs_nav_list ul {
        display: block !important;
        position: absolute !important;
        width: 260px !important;
        padding: 10px 0 !important;
        padding-left: 0 !important;
        background-color: #191919 !important;
        border-top: 2px solid #444 !important;
        box-shadow: 0px 4px 12px rgba(0,0,0,0.4) !important;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
    }
    .cs_nav .cs_nav_list > li:hover > ul { opacity: 1; visibility: visible; }
    /* Hide the mobile toggle injected by main.js + the dropdown arrow toggles */
    .cs_menu_toggle,
    .cs_munu_dropdown_toggle { display: none !important; }
    /* Hide the side-panel hamburger at all desktop/tablet sizes */
    .cs_toolbox { display: none !important; }
    /* Restore desktop letter-animation (mobile bumps shadow/translate to 32px) */
    .cs_animo_links > li > a .cs_animo_text        { text-shadow: 0 16px 0 currentColor !important; }
    .cs_animo_links > li > a:hover span             { transform: translateY(-16px) !important; }
    .cs_animo_links > li > a:hover .cs_animo_text  { transform: translateY(-2px) !important; }
}

/* ---- ≤991px: hidden nav, hamburger opens side panel ---- */
/* mainNav() appends cs_menu_toggle → adds cs_has_main_nav to cs_toolbox +
   cs_side_header → Adova's CSS hides them at ≤1199px. Override to restore. */
@media (max-width: 991px) {
    .cs_site_header.cs_style1 .cs_nav { display: none !important; }
    .cs_toolbox.cs_has_main_nav      { display: flex !important; }
    .cs_side_header.cs_has_main_nav  { display: block !important; }
}

/* ---- Very small screens: tighten header ---- */
@media (max-width: 400px) {
    .av-header-play-btn { margin-left: 16px !important; }
    .av-header-play-btn .cs_btn { padding: 8px 10px !important; font-size: 12px !important; gap: 5px !important; }
    .av-header-play-btn .cs_btn svg { width: 11px; height: 11px; }
    .cs_site_branding img { max-height: 36px; }
}

@media screen and (min-width: 410px) and (max-width: 574px) {
    .cs_site_branding img { max-height: 50px; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .av-content-area,
    .av-home-content-area {
        padding: 40px 0;
    }
    .av-article h1, .av-article-home h1 { font-size: 34px; }
    .av-article h2, .av-article-home h2 { font-size: 26px; }
    .av-article h3, .av-article-home h3 { font-size: 20px; }
    .av-error-code { font-size: 80px; }
    .av-error-heading { font-size: 26px; }
}

/* ---- Footer ---- */
.cs_footer { padding-top: 48px !important; }
@media (max-width: 991px) { .cs_footer { padding-top: 36px !important; } }

.av-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.av-footer-logo img {
    height: 64px;
    width: auto;
}
.av-footer-casino-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.av-casino-logo-item img {
    height: 30px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.av-casino-logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Disclaimers */
.av-footer-disclaimer {
    padding: 28px 0 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.av-disclaimer-block { flex: 1; min-width: 240px; }
.av-disclaimer-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255,255,255,0.25);
    display: inline-block;
}
.av-disclaimer-text {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin: 0;
}
.av-disclaimer-text strong { color: rgba(255,255,255,0.75); }

@media (max-width: 991px) {
    .av-casino-logo-item img { height: 28px; }
}
@media (max-width: 767px) {
    .av-footer-top { flex-direction: column; align-items: center; }
    .av-footer-logo { text-align: center; }
    .av-footer-casino-logos { gap: 12px; justify-content: center; }
    .av-casino-logo-item img { height: 24px; }
}
