:root {
    --green: #09b83e;
    --green-dark: #057c2b;
    --red: #d92924;
    --gold: #ffca3a;
    --blue: #2458b8;
    --ink: #111827;
    --muted: #5b6472;
    --paper: #f3f5f8;
    --line: #dfe5ee;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
}

body.fc365-theme {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(36,88,184,.16), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, var(--paper) 38rem, #e8edf4 100%);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.fc365-shell {
    position: relative;
    min-height: 100vh;
    background: transparent;
    overflow-x: clip;
}

.fc365-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(8, 10, 18, .96);
    border-bottom: 4px solid var(--green);
}

.fc365-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: min(330px, 58vw);
    min-width: 0;
}

.fc365-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.quick-links a {
    min-width: 104px;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #2d68d8, #173d93);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.quick-links .whatsapp {
    background: linear-gradient(180deg, #15c853, #07842d);
}

.hero-banner {
    min-height: 310px;
    display: grid;
    place-items: center;
    padding: clamp(36px, 8vw, 76px) 18px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0,0,0,.84), rgba(0,0,0,.5) 45%, rgba(217,41,36,.28)),
        url("../img/hero-casino.webp") center / cover no-repeat,
        #121826;
    border-bottom: 6px solid var(--gold);
    text-align: center;
}

.hero-banner div {
    width: min(920px, 100%);
    display: grid;
    justify-items: center;
    gap: 16px;
}

.hero-banner small {
    max-width: 900px;
    color: #fff;
    font-size: clamp(36px, 6.5vw, 74px);
    font-weight: 900;
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0,0,0,.48), 0 0 28px rgba(255,202,58,.34);
}

.hero-banner strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(180deg, #ffe27a, #ffbd2e);
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
    font-size: clamp(14px, 2.4vw, 20px);
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.brand-grid {
    width: min(1280px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
    margin: -42px auto 0;
    padding: 0 0 44px;
    position: relative;
    z-index: 2;
}

.brand-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 10px;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 28px rgba(15,23,42,.1);
}

.card-art {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 7px;
    background: #10131f;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}

.card-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.brand-card h3 {
    min-height: 42px;
    display: grid;
    place-items: center;
    margin: 10px 0 4px;
    color: #111827;
    font-size: 16px;
    line-height: 1.12;
    text-align: center;
    overflow-wrap: anywhere;
}

.brand-card ul {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.brand-card li {
    min-height: 15px;
}

.brand-card li::before {
    content: "+ ";
    color: var(--green);
    font-weight: 900;
}

.register-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(180deg, #0ad64a, #07852e);
    box-shadow: 0 6px 14px rgba(7,133,46,.22);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.games {
    width: min(1280px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 0 auto;
    padding: 34px 0 52px;
    border-top: 1px solid var(--line);
}

.games-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 2px;
}

.games-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.games-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
}

.game-card {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.08);
    text-align: center;
}

.game-art {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
    background: #101827;
}

.game-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.game-card h3 {
    margin: 0;
    min-height: 45px;
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1.15;
}

.download-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.download-actions a {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.android-btn {
    background: linear-gradient(180deg, #0ad64a, #07852e);
}

.ios-btn {
    background: linear-gradient(180deg, #232b3d, #090d16);
}

.rtp {
    position: relative;
    height: 20px;
    overflow: hidden;
    border-radius: 20px;
    background: #ffc4c4;
}

.rtp span {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(-45deg, #f04438 0 8px, #d92924 8px 16px);
}

.rtp b {
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: 10px;
    line-height: 20px;
}

.seo-panel,
.blog-panel,
.article-page,
.site-footer {
    background: #fff;
}

.seo-panel {
    padding: 58px max(24px, calc((100vw - 1080px) / 2)) 46px;
    border-top: 1px solid var(--line);
}

.seo-panel h2 {
    margin: 0 0 24px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.seo-panel h3 {
    margin: 24px 0 8px;
    font-size: 22px;
}

.seo-panel p,
.seo-panel li {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.62;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.guide-grid article,
.blog-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.guide-grid h3,
.blog-grid h3 {
    margin-top: 0;
}

.guide-grid a,
.text-link {
    color: var(--blue);
    font-weight: 900;
}

.responsible-note {
    margin-top: 20px;
    padding: 14px 16px;
    border-left: 5px solid var(--red);
    background: #fff5f5;
}

.blog-panel,
.article-page {
    padding: 56px max(24px, calc((100vw - 1080px) / 2));
    border-top: 1px solid var(--line);
}

.blog-panel h2,
.article-page h1 {
    margin: 0 0 24px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-title-row h2 {
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.blog-grid h3 {
    font-size: 18px;
    line-height: 1.25;
}

.blog-grid p,
.article-content p,
.article-content li {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.62;
}

.article-meta {
    margin-bottom: 24px;
    color: #667085;
    font-size: 14px;
}

.article-content {
    max-width: 820px;
}

.article-content h2 {
    margin: 28px 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.blog-index .blog-grid {
    margin-top: 24px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.pagination .page-numbers {
    min-width: 34px;
    padding: 8px 10px;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    text-align: center;
}

.pagination .current {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.read-more {
    width: 100%;
    height: 20px;
    border: 0;
    border-radius: 5px;
    color: #bfc4cb;
    background: #f2f3f5;
    text-align: left;
}

.site-footer {
    padding: 42px max(24px, calc((100vw - 1080px) / 2)) 34px;
    border-top: 1px solid var(--line);
}

.site-footer h2 {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 700;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1475e8;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.socials a:nth-child(2) { background: #111827; }
.socials a:nth-child(3) { background: #000; }
.socials a:nth-child(4) { background: #d92924; }
.socials a:nth-child(5) { background: radial-gradient(circle at 30% 110%, #feda75, #d62976 55%, #4f5bd5); }

.site-footer h3 {
    margin: 22px 0 12px;
    font-size: 14px;
    font-weight: 700;
}

.license {
    width: fit-content;
    min-width: 170px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(120deg, #d92924, #2458b8);
    font-size: 13px;
    font-weight: 800;
}

.providers {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 10px;
    max-width: 620px;
}

.providers span {
    display: grid;
    place-items: center;
    min-height: 30px;
    border-radius: 5px;
    color: #fff;
    background: #17223b;
    font-size: 11px;
    font-weight: 800;
}

.site-footer p {
    margin: 34px 0 0;
    color: #4b5563;
    font-size: 14px;
    text-align: center;
    line-height: 1.55;
}

.side-tabs {
    position: fixed;
    right: 0;
    top: 45%;
    z-index: 30;
    display: flex;
    flex-direction: column;
}

.side-tabs a {
    writing-mode: vertical-rl;
    padding: 10px 6px;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    background: #111827;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .fc365-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .quick-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .quick-links a {
        min-width: 0;
        min-height: 44px;
        padding: 7px 6px;
        font-size: 11px;
    }

    .hero-banner {
        min-height: 230px;
        padding: 34px 16px 62px;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 8px;
        width: min(100vw - 24px, 620px);
        margin-top: -44px;
        padding-bottom: 34px;
    }

    .brand-card {
        padding: 7px;
    }

    .brand-card h3 {
        min-height: 34px;
        font-size: 13px;
    }

    .brand-card ul {
        font-size: 10px;
    }

    .register-btn {
        min-height: 38px;
        padding: 0 6px;
        font-size: 10px;
    }

    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: min(100vw - 24px, 620px);
        padding: 26px 0 38px;
    }

    .games-heading {
        display: grid;
        gap: 6px;
    }

    .games-heading p {
        text-align: left;
        font-size: 12px;
    }

    .game-card {
        padding: 8px;
    }

    .game-card h3 {
        min-height: 36px;
        font-size: 14px;
    }

    .download-actions {
        gap: 6px;
    }

    .download-actions a {
        min-height: 34px;
        font-size: 11px;
    }

    .guide-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        display: grid;
    }

    .providers {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-tabs {
        display: none;
    }
}

@media (max-width: 420px) {
    .fc365-header {
        padding: 12px;
    }

    .fc365-logo {
        width: min(300px, 78vw);
    }

    .hero-banner small {
        font-size: 31px;
    }

    .brand-grid {
        gap: 12px 7px;
    }

    .brand-card h3 {
        font-size: 12px;
    }

    .brand-card ul {
        min-height: 45px;
        font-size: 9px;
    }
}
