/* playfortuna.eu: responsive layer, 2026-11.
   Loaded after style.css and after the inline critical CSS of the home pages, so it only
   overrides. Desktop (>1000px) keeps the original 980px design; only the slider and focus
   rules below apply there. */

:root {
    --pf-gold: #ffa800;
    --pf-gold-2: #f6be6b;
    --pf-bg: #0b0b0b;
    --pf-panel: #161512;
    --pf-line: #3a3222;
    --pf-text: #d9d2c7;
    --pf-green: #4ea72e;
    --pf-bar-h: 64px;
}

/* ---------- All widths ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--pf-gold);
    outline-offset: 2px;
}

/* Banner slider driven by js/site.js */
.js-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.js-slider .slide.is-active {
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    .js-slider .slide { transition: none; }
}

/* Language switcher (markup from lang.php, built from the page's hreflang links) */
.lang-switch {
    float: left;
    position: relative;
    z-index: 95;
    margin: 27px 0 0 50px;
}
.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 9px 0 8px;
    list-style: none;
    border: 1px solid #404040;
    border-radius: 6px;
    background: #2e2e2e;
    box-shadow: 0 1px 3px #000;
    font: 700 13px/1 Arial, sans-serif;
    color: #efae01;
    cursor: pointer;
    user-select: none;
}
.lang-switch-btn::-webkit-details-marker { display: none; }
.lang-switch-btn::after {
    width: 0;
    height: 0;
    margin: 3px 0 0 1px;
    border: 4px solid transparent;
    border-top-color: #efae01;
    content: "";
}
.lang-switch-box[open] .lang-switch-btn::after { margin-top: -5px; border-top-color: transparent; border-bottom-color: #efae01; }
.lang-switch img { display: block; width: 20px; height: 15px; border-radius: 2px; }
.lang-switch-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #404040;
    border-radius: 8px;
    background: #1b1a17;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .7);
}
.lang-switch-list li { margin: 0; padding: 0; list-style: none; }
.lang-switch-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    font: 15px/1.2 Arial, sans-serif;
    color: #d9d2c7;
    text-decoration: none;
}
.lang-switch-list a:hover, .lang-switch-list a:focus-visible { background: #2a2720; color: var(--pf-gold); }
.lang-switch-list a[aria-current="page"] { color: var(--pf-gold); font-weight: 700; }

/* Game cover shown instead of a demo iframe (game pages without a working provider demo) */
.game-demo-cover { margin: 8px 0 0; }
.game-demo-cover a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px 30px;
    border: 1px solid #303030;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, rgba(70, 40, 110, .55) 0, rgba(10, 10, 10, .92) 70%);
    font-size: 16px;
    text-decoration: none;
}
.game-demo-cover img { display: block; width: 330px; max-width: 100%; height: auto; border: 1px solid #525252; border-radius: 10px; }
.game-demo-title { font: 700 22px/1.2 Arial, sans-serif; color: var(--pf-gold); text-shadow: 0 1px 3px #000; }
.game-demo-btn { margin: 0; }
/* Full-width generated cover (assets/covers/*.webp) */
.game-hero a { padding: 0; border: 0; background: none; }
.game-hero img { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 1px solid #3a3226; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .55); }
.game-hero a:hover img, .game-hero a:focus-visible img { border-color: var(--pf-gold); }

/* Text buttons for providers that have no logo in filter-title.png */
#filter-box ul li#filter-spribe a, #filter-box ul li#filter-truelab a {
    min-width: 90px; height: 28px; padding: 0 14px; box-sizing: border-box;
    font: 700 14px/28px Arial, sans-serif; color: #f6be6b; letter-spacing: .02em;
}
#filter-box ul li#filter-spribe a.active, #filter-box ul li#filter-truelab a.active { background-color: #7c4f18; border-radius: 4px; color: #fff; }

/* Article helpers added with the 2026 content rewrite */
.article-img { text-align: center; }
.article-img img { max-width: 100%; height: auto; }
.game-links { columns: 2; column-gap: 32px; text-align: left; }
.game-links li { break-inside: avoid; margin-bottom: 6px; }
.section-links a { white-space: nowrap; }
.related-links { margin: 24px 0 8px; padding-top: 12px; border-top: 1px solid #3a3226; }
.related-links ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.related-links li { margin: 0; padding: 0; list-style: none; }
.related-links li::before { display: none; }
.related-links a { display: inline-block; padding: 6px 14px; border: 1px solid #4a3f2e; border-radius: 16px; text-decoration: none; }
.related-links a:hover, .related-links a:focus-visible { border-color: var(--pf-gold); color: var(--pf-gold); }
.faq-group h3 { margin-top: 16px; }
@media (max-width: 767px) { .game-links { columns: 1; } }

/* Screenshots, video and pros/cons on review pages (prediction-markets/) */
.article-shot { margin: 14px 0 22px; }
.article-shot picture { display: block; }
.article-shot img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #3a3226; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .55); }
.article-shot figcaption { margin: 8px auto 0; max-width: 800px; font-size: 13px; line-height: 1.5; color: #a89f91; }
.article-video { margin: 12px 0 22px; }
.article-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid #3a3226; border-radius: 10px; background: #000; }
.pros-cons { display: flex; gap: 24px; margin-bottom: 18px; }
.pros-cons > div { flex: 1 1 0; min-width: 0; padding: 4px 16px 10px; border: 1px solid #3a3226; border-radius: 10px; background: rgba(22, 21, 18, .6); }
.pros-cons h3 { margin-top: 10px; }
@media (max-width: 767px) { .pros-cons { flex-direction: column; gap: 12px; } }

/* Mobile navigation drawer (markup created by js/site.js) */
.mnav-toggle, .mnav { display: none; }
.mnav-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Tablets and phones: header bar, drawer, bottom action bar ---------- */
@media only screen and (max-width: 1000px) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 68px; }
    html.mnav-lock { overflow: hidden; }

    body {
        min-width: 0 !important;
        padding-bottom: calc(var(--pf-bar-h) + env(safe-area-inset-bottom, 0px));
        background-attachment: scroll !important;
    }

    /* Sticky compact header: [menu] [logo] ........ [EN | RU] */
    html #header {
        position: sticky;
        top: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 56px;
        margin: 0 -10px;
        padding: 0 10px;
        text-align: left;
        background: rgba(11, 11, 11, .97);
        border-bottom: 1px solid var(--pf-line);
        box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    }
    html #header::after { display: none; }
    html #header .clear { display: none; }

    .mnav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--pf-line);
        border-radius: 10px;
        background: var(--pf-panel);
        cursor: pointer;
    }
    .mnav-bars, .mnav-bars::before, .mnav-bars::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--pf-gold-2);
        content: "";
    }
    .mnav-bars { position: relative; }
    .mnav-bars::before { position: absolute; top: -6px; }
    .mnav-bars::after { position: absolute; top: 6px; }

    html #logo {
        float: none;
        flex: 0 1 auto;
        min-width: 0;
        padding: 0;
        line-height: 0;
    }
    html #logo img {
        width: auto !important;
        max-width: 100%;
        height: 34px !important;
        margin: 0 !important;
    }

    /* Language switcher: right side of the bar */
    html .lang-switch { float: none; flex: none; margin: 0 0 0 auto; }
    html .lang-switch-btn { height: 40px; padding: 0 10px; border-radius: 10px; }
    html .lang-switch-list { left: auto; right: 0; }

    /* Desktop menu links move into the drawer */
    html .nav-top {
        display: block !important;
        position: static !important;
        height: 0;
        margin: 0;
        background: none;
        box-shadow: none;
    }
    html .nav-top ul { display: none !important; }

    /* Bottom action bar: [Sign In] [Registration] */
    html body::after {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        height: calc(var(--pf-bar-h) + env(safe-area-inset-bottom, 0px));
        background: rgba(11, 11, 11, .97);
        border-top: 1px solid var(--pf-line);
        content: "";
    }
    html #h-right {
        display: block;
        float: none;
        position: fixed;
        left: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 45;
        width: calc(50% - 15px);
        margin: 0;
    }
    html #auth-box {
        position: static;
        margin: 0;
    }
    html #header-login-form { height: auto; }
    html #auth-box input.auth-s {
        position: static;
        display: block;
        width: 100%;
        height: 44px;
        border: 1px solid #c98a12;
        border-radius: 10px;
        background: linear-gradient(#2a2418, #1a160e);
        font: 700 15px/42px Arial, sans-serif;
        color: var(--pf-gold-2);
        text-shadow: none;
        letter-spacing: .03em;
    }
    html .nav-top .nav-register {
        float: none;
        position: fixed !important;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 45;
        width: calc(50% - 15px);
        margin: 0;
    }
    html .nav-top .nav-register .register-btn {
        position: static !important;
        display: block !important;
        width: 100%;
        height: 44px;
        margin: 0;
        border-radius: 10px;
        background: linear-gradient(#63c23d, #3d8b25);
        font: 700 15px/44px Arial, sans-serif;
        color: #fff;
        text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
        letter-spacing: .03em;
    }

    /* Drawer */
    .mnav {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
    }
    .mnav[hidden] { display: none; }
    .mnav-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .65);
        opacity: 0;
        transition: opacity .25s;
    }
    .mnav-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(86vw, 360px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
        background: var(--pf-panel);
        border-right: 1px solid var(--pf-line);
        transform: translateX(-100%);
        transition: transform .25s ease-out;
    }
    .mnav.is-open .mnav-backdrop { opacity: 1; }
    .mnav.is-open .mnav-panel { transform: none; }
    .mnav-head {
        position: sticky;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 0 8px 0 16px;
        background: var(--pf-panel);
        border-bottom: 1px solid var(--pf-line);
        font: 700 17px Arial, sans-serif;
        color: var(--pf-gold);
    }
    .mnav-close {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: none;
        font: 30px/44px Arial, sans-serif;
        color: var(--pf-gold-2);
        cursor: pointer;
    }
    .mnav-group { padding: 12px 0 4px; border-bottom: 1px solid #24211b; }
    .mnav-title {
        margin: 0;
        padding: 0 16px 6px;
        font: 700 12px Arial, sans-serif;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #8d826f;
    }
    .mnav ul { margin: 0; padding: 0; list-style: none; }
    .mnav li { margin: 0; padding: 0; }
    .mnav li a {
        display: block;
        padding: 12px 16px;
        font: 16px/20px Arial, sans-serif;
        color: var(--pf-text);
        text-decoration: none;
    }
    .mnav li a:hover, .mnav li a:active { background: #221f19; color: var(--pf-gold); }
    .mnav li a[aria-current="page"] { color: var(--pf-gold); box-shadow: inset 3px 0 0 var(--pf-gold); }

    /* Cookie banner sits above the action bar */
    html .cookieConsentContainer {
        bottom: calc(var(--pf-bar-h) + env(safe-area-inset-bottom, 0px)) !important;
        padding: 14px 16px;
        z-index: 990;
        border-top: 1px solid var(--pf-line);
    }
    html .cookieConsentContainer .cookieTitle a { font-size: 17px; }
    html .cookieConsentContainer .cookieButton a { margin-top: 10px; padding: 10px 20px; }

    /* Readable article text (the desktop base is 12.8px) */
    html .content-line-bg { font-size: 16px; }
    html .content-line-bg p, html .content-line-bg li { font-size: 16px; line-height: 1.6; }
    html .content-line-bg ul li, html .content-line-bg ol li { padding: 6px 0 0 4px; }
    html .content-line-bg a { font-size: inherit; }
    html .content-line-bg table { font-size: 14px; }

    html .content-line-bg img { max-width: 100%; height: auto; }
    html .content-line-bg img[style*="float"],
    html .content-line-bg picture > img {
        float: none !important;
        display: block;
        margin: 0 auto 14px !important;
    }
    html .content-line-bg iframe { max-width: 100%; }
    html .content-line-bg iframe[src*="youtube"] { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }

    html .toc, html #toc {
        float: none;
        margin: 0 0 16px;
        padding: 10px 12px;
        border-radius: 10px;
    }
    html #toctitle h2 { margin: 0 0 6px; }
    html #cyfral { padding-left: 22px; }
    html #cyfral li { padding: 4px 0; line-height: 1.4; }

    /* Footer */
    html #footer-menu {
        display: flex;
        flex-wrap: wrap;
        row-gap: 14px;
        padding: 14px 6px;
    }
    html #footer-menu .top-bg, html #footer-menu .btm-bg { display: none; }
    html #footer-menu .row { float: none; display: block; width: 50%; margin: 0; }
    html #footer-menu ul li { padding: 0 6px; }
    html #footer-menu ul li.ftr-ttl { padding: 0 6px 4px 11px; }
    html #footer-menu ul li a { padding: 6px 5px; font-size: 15px; line-height: 1.3; }
    html #footer-menu ul li.ftr-ttl { font-size: 15px; color: var(--pf-gold-2); }
    html #pay-block ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: auto !important;
        height: auto;
        left: 0 !important;
    }
    html #pay-block li { float: none !important; margin: 0; }
    html #pay-block .jcarousel-prev, html #pay-block .jcarousel-next,
    html #pay-block .footer-attr-l, html #pay-block .footer-attr-r { display: none !important; }
    html .cert { width: 100%; max-width: 935px; margin: 0 auto; background-size: contain; background-position: center; }
}

/* ---------- Phones ---------- */
@media only screen and (max-width: 767px) {
    html .width-inner { padding: 0 10px; }

    /* Game categories and providers: one swipeable row each instead of hidden / 4 wrapped rows */
    html #igrovoe-menu {
        display: block;
        height: auto;
        margin: 10px -10px 0;
        overflow: visible;
        background: none;
        box-shadow: none;
    }
    html #igrovoe-menu ul,
    html #filter-box ul {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 0 10px 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        text-align: left;
        text-align-last: auto;
        -webkit-overflow-scrolling: touch;
    }
    html #igrovoe-menu ul::-webkit-scrollbar, html #filter-box ul::-webkit-scrollbar { display: none; }
    html #igrovoe-menu ul::after { display: none; }
    html #igrovoe-menu ul li, html #igrovoe-menu ul li:last-child {
        display: block;
        flex: none;
        padding: 0;
        scroll-snap-align: start;
    }
    html #igrovoe-menu ul li a {
        height: 38px;
        padding: 0 16px;
        border: 1px solid var(--pf-line);
        border-radius: 999px;
        background: var(--pf-panel);
        font-size: 14px;
        line-height: 36px;
        white-space: nowrap;
    }
    html #igrovoe-menu ul li a::before, html #igrovoe-menu ul li a::after { display: none; }
    html #igrovoe-menu ul li.active a { background: #7c4f18; color: #fff; }

    html .filter-search-box { margin: 8px -10px 0; padding: 0; }
    html #filter-box ul li {
        display: block;
        flex: none;
        float: none;
        margin: 0;
        scroll-snap-align: start;
    }

    /* Slot / game pages keep their content inside #slider-info-box, which the old CSS hid
       between 381px and 767px (most phones): show it, hide only the banner slider and jackpot video. */
    html #slider-info-box { display: block !important; padding: 0; }
    html #slider-box, html #info-box { display: none !important; }
    html #slider-info-box iframe {
        display: block;
        width: 100% !important;
        height: 72vh !important;
        min-height: 320px;
        max-height: 640px;
        margin: 10px 0 0;
        border: 0;
    }

    /* Article */
    html #content-main, html .content-game { padding: 0; }
    html .content-top-bg, html .content-btn-bg { display: none; }
    html .content-line-bg {
        width: auto;
        min-height: 0;
        margin: 12px 0 0;
        padding: 16px 14px;
        border: 1px solid #2a2721;
        border-radius: 12px;
        background: rgba(16, 16, 14, .94);
    }
    html .content-line-bg ul, html .content-line-bg ol { padding-left: 18px; }
    html .content-line-bg h1, html .content-line-bg .title { font-size: 26px; line-height: 1.25; }
    html .content-line-bg h2 { font-size: 21px; line-height: 1.3; }
    html .content-line-bg h3 { font-size: 18px; line-height: 1.35; }

    html .content-line-bg td, html .content-line-bg th { padding: 8px 6px; line-height: 1.4; word-break: normal; overflow-wrap: break-word; }
    html .main-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    html .main-table th { white-space: nowrap; }

    /* "Verified" badge tooltip: keep it on screen */
    html .tooltip .tooltiptext { left: auto; right: 0; width: min(280px, 80vw) !important; margin-left: 0; }
    html .tooltip .tooltiptext::after { left: auto; right: 14px; }

    /* Author block wraps instead of overflowing */
    html .content-line-bg section[itemprop="author"] { display: flex !important; align-items: center; }
    html .content-line-bg section[itemprop="author"] > div { flex: none; margin: 0 12px 0 0 !important; }
    html .content-line-bg section[itemprop="author"] > section { flex: 1 1 0; min-width: 0; margin: 0 !important; line-height: 1.4; }
    html .content-line-bg section[itemprop="author"] p { padding: 4px 0 0; }

    /* Game tiles: 2-column grid */
    html .game-list, html #game-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px 0 0;
        text-align: left;
    }
    html .game-list > .clear, html #game-list > .clear { display: none; }
    html .game-list .game-box, html #game-list .game-box,
    html .game-list .game-box.last, html #game-list .game-box.last {
        float: none;
        display: block;
        width: auto;
        margin: 0;
    }
    html .game-list .game-box .game, html #game-list .game-box .game { width: 100%; }
    html .game-list .game-images, html #game-list .game-images,
    html .game-list .game-images img, html #game-list .game-images img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 220 / 145;
        object-fit: cover;
        border-radius: 8px;
    }
    html .game-list picture.game-images, html #game-list picture.game-images { aspect-ratio: auto; }
    html .game-list .game-box .game .game-title, html #game-list .game-box .game .game-title {
        width: 100%;
        height: auto;
        margin: 0;
        padding: 6px 2px 0;
        background: none;
        font-size: 14px;
        line-height: 1.3;
    }
    html .game-hover, html #game-list .game-box:hover .game-hover { display: none; }

    /* Call-to-action buttons inside articles */
    html .btn-2 { width: 100%; max-width: 318px; background-size: 100% 100%; }

    html #footer { padding: 16px 0 0; }
    html .cprts { font-size: 13px; padding: 5px 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mnav-backdrop, .mnav-panel { transition: none; }
}
