:root {
    --green: #00c825;
    --dark-green: #007b18;
    --red: #d72a22;
    --blue: #215792;
    --paper: #f1f2f4;
    --ink: #080808;
}

* { box-sizing: border-box; }

body.fc365-theme {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

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

.fc365-shell {
    position: relative;
    width: min(390px, 100vw);
    min-height: 100vh;
    background: #fff;
    overflow-x: hidden;
}

.fc365-header {
    min-height: 102px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 8px 0 16px;
    background: #000;
}

.fc365-logo {
    display: inline-flex;
    align-items: baseline;
    flex-shrink: 1;
    min-width: 0;
    color: #fff;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 #930d0d, 3px 3px 0 #4b4b4b;
    white-space: nowrap;
}

.fc365-logo span {
    font-size: clamp(22px, 7vw, 30px);
}

.fc365-logo b {
    color: #e31818;
    font-size: clamp(13px, 4vw, 18px);
}

.quick-links {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.quick-links a {
    width: 55px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 6px 4px;
    border-radius: 6px;
    color: #fff;
    background: #215792;
    box-shadow: 0 2px 6px rgba(0,0,0,.28);
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
}

.quick-links .whatsapp { background: #008f20; }

.intro {
    padding: 30px 20px 28px;
    background: #858585;
}

.intro h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.intro p {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.hero-banner {
    height: 154px;
    display: grid;
    align-items: center;
    padding: 18px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.18)),
        url("../img/hero-casino.webp") center / cover no-repeat,
        linear-gradient(120deg, #111827, #02030a 50%, #9c1021);
}

.hero-banner div {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.hero-banner small {
    color: #8e6bff;
    font-size: 23px;
    font-weight: 900;
    text-shadow: 2px 2px 0 #111;
}

.hero-banner strong {
    padding: 4px 9px;
    border: 1px solid #ff7b30;
    border-radius: 2px;
    color: #f08a3e;
    background: #203759;
    font-size: 9px;
    text-transform: uppercase;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 8px;
    padding: 22px 14px 28px;
    background: #fff;
}

.brand-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

.card-art {
    position: relative;
    aspect-ratio: 1 / .9;
    display: grid;
    place-items: center;
    border: 2px solid #ff16d7;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0)),
        url("../img/card-thumbnails.webp");
    background-size: auto, 200% 200%;
    background-position: center, var(--pos);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.62), 0 1px 4px rgba(0,0,0,.15);
}

.card-art::before,
.card-art::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #ff8a00;
    top: -8px;
    left: -4px;
}

.card-art::after {
    width: 7px;
    height: 7px;
    border-color: #00d7ff;
    right: -4px;
    bottom: -4px;
    top: auto;
    left: auto;
}

.card-art span {
    padding: 3px 5px;
    border-radius: 5px;
    color: #fff;
    background: rgba(0,0,0,.35);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0,0,0,.75);
}

.art-1,
.art-5 { --pos: 0% 0%; }
.art-2,
.art-6 { --pos: 100% 0%; }
.art-3,
.art-7 { --pos: 0% 100%; }
.art-4,
.art-8 { --pos: 100% 100%; }

.brand-card h3 {
    min-height: 38px;
    margin: 9px 0 4px;
    font-size: 15px;
    text-align: center;
    overflow-wrap: anywhere;
}

.brand-card ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 9px;
    line-height: 1.45;
}

.brand-card li::before {
    content: "☑ ";
    color: #1fbf4b;
}

.register-btn {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(#04d92d, #00a71f);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.1;
}

.register-btn i {
    width: 19px;
    height: 19px;
    border: 1px solid #073c10;
    border-radius: 3px;
}

.games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
    padding: 16px;
    background: #fff;
    border-top: 16px solid #f0f1f3;
}

.game-card {
    display: grid;
    gap: 7px;
    text-align: center;
}

.game-art {
    aspect-ratio: 1 / .8;
    display: grid;
    place-items: end center;
    padding: 7px;
    border-radius: 4px;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42)),
        url("../img/card-thumbnails.webp");
    background-size: auto, 200% 200%;
    background-position: center, var(--gpos);
}

.game-1 { --gpos: 100% 100%; }
.game-2 { --gpos: 0% 100%; }
.game-3 { --gpos: 0% 0%; }
.game-4 { --gpos: 100% 0%; }

.game-art span {
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 2px 2px rgba(0,0,0,.5);
}

.game-card h3 {
    margin: 0;
    font-size: 15px;
}

.game-card a {
    padding: 11px 0;
    border-radius: 4px;
    color: #fff;
    background: linear-gradient(#f45a44, #c81f1c);
    font-weight: 800;
}

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

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

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

.seo-panel {
    padding: 52px 36px 28px;
    border-top: 16px solid #f0f1f3;
}

.seo-panel h2 {
    margin: 0 0 36px;
    font-size: 24px;
}

.seo-panel h3 {
    margin: 20px 0 8px;
    font-size: 15px;
}

.seo-panel p,
.seo-panel li {
    color: #555;
    font-size: 13px;
    line-height: 1.55;
}

.guide-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.guide-grid article {
    padding: 16px;
    border: 1px solid #dde2ea;
    border-radius: 6px;
    background: #f8fafc;
}

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

.guide-grid a {
    display: inline-flex;
    margin-top: 6px;
    color: #006fcb;
    font-size: 13px;
    font-weight: 800;
}

.responsible-note {
    margin-top: 18px;
    padding: 12px;
    border-left: 4px solid #d72a22;
    background: #fff5f5;
}

.blog-panel,
.article-page {
    padding: 42px 28px;
    border-top: 16px solid #f0f1f3;
    background: #fff;
}

.blog-panel h2,
.article-page h1 {
    margin: 0 0 22px;
    font-size: 26px;
    line-height: 1.15;
}

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

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

.blog-grid {
    display: grid;
    gap: 14px;
}

.blog-grid article {
    padding: 16px;
    border: 1px solid #dde2ea;
    border-radius: 6px;
    background: #f8fafc;
}

.blog-grid h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
}

.blog-grid p,
.article-content p,
.article-content li {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.65;
}

.text-link {
    color: #006fcb;
    font-weight: 800;
}

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

.article-content h2 {
    margin: 28px 0 10px;
    font-size: 20px;
    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: #215792;
    border-color: #215792;
}

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

.site-footer {
    padding: 34px 32px 26px;
    background: #fff;
}

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

.socials {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.socials a {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1475e8;
    font-size: 24px;
    font-weight: 800;
}

.socials a:nth-child(2) { background: #23a6e8; }
.socials a:nth-child(3) { background: #000; }
.socials a:nth-child(4) { background: #000; }
.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: 500;
}

.license {
    width: 140px;
    padding: 10px;
    border-radius: 24px;
    color: #344;
    background: linear-gradient(120deg, #d71845, #fff);
    font-size: 12px;
}

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

.providers span {
    display: grid;
    place-items: center;
    min-height: 22px;
    border-radius: 3px;
    color: #fff;
    background: #17223b;
    font-size: 9px;
}

.site-footer p {
    margin: 36px 0 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.55;
}

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

.side-tabs a {
    writing-mode: vertical-rl;
    padding: 7px 4px;
    border: 1px solid #315a8e;
    color: #000;
    background: #c3c6c9;
    font-size: 10px;
    font-weight: 800;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    align-items: start;
    justify-items: center;
    padding-top: 350px;
    background: rgba(0,0,0,.45);
}

.popup.is-hidden { display: none; }

.popup button {
    position: absolute;
    top: 368px;
    right: calc(100vw - min(370px, 94vw));
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 46px;
    line-height: 28px;
    cursor: pointer;
}

.popup-poster {
    width: min(350px, 90vw);
    aspect-ratio: 7 / 10;
    display: grid;
    align-content: end;
    justify-items: center;
    gap: 18px;
    padding: 32px 20px 42px;
    border-radius: 5px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.5)),
        url("../img/popup-gold.webp") center / cover no-repeat,
        linear-gradient(160deg, #2b160d, #b77422 45%, #120806);
    box-shadow: 0 10px 35px rgba(0,0,0,.38);
    text-align: center;
}

.popup-poster small {
    padding: 5px 12px;
    border-radius: 18px;
    background: rgba(0,0,0,.48);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.popup-poster strong {
    color: #ffd51e;
    font-size: 44px;
    line-height: .98;
    text-transform: uppercase;
    text-shadow: 0 4px 0 #8b3100;
}

.popup-poster span {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

@media (min-width: 700px) {
    body.fc365-theme {
        background: #eef0f3;
    }

    .fc365-shell {
        width: min(1180px, calc(100vw - 48px));
        margin: 0 auto;
        box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 18px 50px rgba(0,0,0,.08);
    }

    .fc365-header {
        height: 112px;
        align-items: center;
        padding: 0 34px;
    }

    .fc365-logo span {
        font-size: 52px;
    }

    .fc365-logo b {
        font-size: 34px;
    }

    .quick-links {
        gap: 14px;
    }

    .quick-links a {
        width: 112px;
        min-height: 56px;
        font-size: 13px;
    }

    .intro {
        padding: 42px 54px;
    }

    .intro h1 {
        font-size: 36px;
    }

    .intro p {
        max-width: 720px;
        font-size: 16px;
    }

    .hero-banner {
        height: 280px;
        padding: 40px;
        background:
            linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.08)),
            url("../img/hero-casino.webp") center / cover no-repeat,
            linear-gradient(120deg, #111827, #02030a 50%, #9c1021);
    }

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

    .hero-banner strong {
        padding: 8px 18px;
        font-size: 14px;
    }

    .brand-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 30px 18px;
        padding: 34px 32px 46px;
    }

    .card-art span {
        font-size: 16px;
    }

    .brand-card h3 {
        min-height: 28px;
        font-size: 18px;
    }

    .brand-card ul {
        min-height: 62px;
        font-size: 11px;
    }

    .register-btn {
        min-height: 46px;
        font-size: 10px;
    }

    .games {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        padding: 34px 32px;
    }

    .game-art {
        min-height: 168px;
    }

    .game-art span {
        font-size: 28px;
    }

    .game-card h3 {
        font-size: 20px;
    }

    .game-card a {
        padding: 14px 0;
        font-size: 18px;
    }

    .rtp {
        height: 22px;
    }

    .rtp b {
        font-size: 10px;
        line-height: 22px;
    }

    .seo-panel {
        padding: 58px 70px 44px;
    }

    .seo-panel h2 {
        margin-bottom: 28px;
        font-size: 34px;
    }

    .seo-panel h3 {
        font-size: 22px;
    }

    .seo-panel p,
    .seo-panel li {
        font-size: 16px;
    }

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

    .guide-grid a {
        font-size: 14px;
    }

    .site-footer {
        padding: 44px 70px 34px;
    }

    .blog-panel,
    .article-page {
        padding: 58px 70px;
    }

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

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

    .blog-grid p,
    .article-content p,
    .article-content li {
        font-size: 16px;
    }

    .article-page h1 {
        max-width: 780px;
        font-size: 38px;
    }

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

.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: #215792;
    border-color: #215792;
}

    .providers {
        max-width: 560px;
        grid-template-columns: repeat(5, 1fr);
    }

    .side-tabs {
        left: calc(50% + min(590px, calc((100vw - 48px) / 2)) - 26px);
    }

    .popup {
        padding-top: 0;
        place-items: center;
    }

    .popup button {
        top: calc(50% - 285px);
        right: calc(50% - 245px);
    }

    .popup-poster {
        width: min(420px, 90vw);
    }
}

@media (min-width: 1100px) {
    .brand-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
