:root {
    --font-family: "Helvetica", "Montserrat", sans-serif;
    --black: #010104;
    --white: #ffffff;
    --bg-primary: #010104;
    --primary: #d60e28;
    --secondary: #121214;
    --hover: #ef4a5f;
    --text-primary: rgba(244, 239, 230, 0.72);
    --bg-secondary: #121214;
    --button: #1b1b1e;
    --bg-secondary-hover: #2a1216;
    --tab: #1b1b1e;
    --tab-accent: #121214;
    --color-gold: #e0c48a;
    --color-accent: #c5a059;
}

html,
body,
.wrapper,
.wrapper > main,
.header,
.footer,
.filter,
.games,
.providers,
.seo-block,
.faq {
    background-color: #010104 !important;
    background-image: none !important;
}

.wrapper > main {
    padding-top: 58px;
}

.header__button.btn,
.main__link.btn,
.games__more.btn,
.header__button.btn-secondary {
    background: #d60e28;
    color: #fff7f0;
    border-color: #d60e28;
}

.header__button.btn:hover,
.main__link.btn:hover,
.games__more.btn:hover,
.header__button.btn-secondary:hover {
    background: #ef4a5f;
    border-color: #ef4a5f;
}

.header__link:hover,
.category__button.active,
.seo-block .toc a,
.seo-block a,
.faq__title,
.games__title,
.providers__title,
.footer__link:hover {
    color: #e0c48a;
}

.category__button.active {
    background: #d60e28;
    color: #fff7f0;
}

.seo-block .note {
    border-left: 3px solid #d60e28;
    background: rgba(214, 14, 40, 0.1);
}

.seo-block th {
    background: rgba(214, 14, 40, 0.16);
    color: #e0c48a;
}

.seo-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
}

.seo-block th,
.seo-block td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.seo-block .toc {
    margin: 0 0 24px;
    padding-left: 20px;
}

/* Yep 8 first-screen hero on Twindor .main, Brionis palette.
   Photo stays inside .main. Later sections sit on solid #010104. */
.main {
    position: relative;
    overflow: hidden;
    background: #010104 !important;
    background-image: none !important;
    min-height: 560px;
    height: auto;
    max-height: none;
    padding: 60px 0;
}

.main::before {
    z-index: 1;
    pointer-events: none;
}

.main__container {
    /* Keep static so .main__bg insets against .main, like Yep's .yep-img-link */
    position: static;
}

.main__wrapper {
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.main__title {
    color: var(--primary);
    margin-bottom: 24px;
}

.main__text {
    margin-bottom: 24px;
}

.main__link {
    margin: 0 auto;
    border-radius: 9px !important;
}

.main__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

.main__bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
}

.header__logo {
    text-decoration: none;
}

.header__logo img {
    width: 132px !important;
    height: auto !important;
    max-width: 100%;
}

.header__buttons {
    flex-shrink: 0;
    gap: 8px;
    align-items: stretch;
}

.header__button,
.header__button.btn,
.header__button.btn-secondary {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 34px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 8px 14px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    gap: 6px;
    box-sizing: border-box;
}

.btn,
.btn-secondary,
.main__link.btn,
.games__more.btn {
    height: auto !important;
    min-height: 44px;
    max-width: 260px;
    white-space: normal;
    padding: 10px 18px !important;
    line-height: 1.25;
    box-sizing: border-box;
}

.seo-img {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 16px 0 24px;
}

.seo-img img,
.author-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
}

.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 28px 0 8px;
    padding: 16px;
    background: #121214;
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 12px;
}

.author-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 88px;
}

.author-card h3 {
    margin: 0 0 6px;
    color: #e0c48a;
}

.update-date {
    color: #e0c48a;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer__logo img,
.footer__policy img {
    width: 120px;
    height: auto;
}

.games__link,
.providers__slide,
.footer__link,
.header__link,
.category__button,
.filter__search,
.search__button,
.main__link,
.header__button {
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .search__form {
        display: none !important;
    }
    .header__wrapper {
        flex-wrap: nowrap;
        column-gap: 12px !important;
        align-items: center;
    }
    .header__left {
        flex: 1 1 auto;
        min-width: 0;
        column-gap: 12px !important;
    }
    .header__logo img {
        width: 88px !important;
    }
    .header__box {
        flex-shrink: 0;
    }
    .header__actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header__box .header__buttons {
        display: none !important;
    }
    .header__inner .header__buttons {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .header__inner .header__button {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center;
        white-space: normal;
        font-size: 14px !important;
        padding: 12px 16px !important;
        line-height: 1.25 !important;
    }
    .header__inner {
        align-items: flex-start !important;
    }
    .main {
        height: auto;
        max-height: none;
        min-height: 420px;
        overflow: hidden;
    }
    .main__title {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }
    .main__text {
        font-size: 15px !important;
    }
}

@media (min-width: 992px) {
    .main {
        min-height: 560px;
        height: auto;
        max-height: none;
    }

    .main__bg img {
        max-height: none;
        height: 100%;
        width: 100%;
        object-fit: contain;
        object-position: center;
    }
}

.main__bg img,
.main__bg img[src="images/hero.webp"] {
    object-position: center !important;
}

@media (max-width: 1100px) and (min-width: 992px) {
    .header__button,
    .header__button.btn,
    .header__button.btn-secondary {
        white-space: normal;
        max-width: 148px !important;
        text-align: center;
        line-height: 1.15 !important;
    }
}

@media (max-width: 575.98px) {
    .header__logo img {
        width: 76px !important;
    }
    .header__button {
        font-size: 12px !important;
        padding: 8px 12px !important;
        white-space: normal;
    }
    .seo-block table,
    .seo-block table thead,
    .seo-block table tbody,
    .seo-block table th,
    .seo-block table td,
    .seo-block table tr {
        display: block;
        width: 100%;
    }
    .seo-block thead {
        display: none;
    }
    .seo-block tr {
        margin-bottom: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        overflow: hidden;
    }
    .seo-block td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .seo-block td:last-child {
        border-bottom: none;
    }
    .seo-block td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 4px;
    }
}
