/*
 * Dark template with the orange-to-red gradient buttons. bundle.css carries the
 * layout; this file sets its theme variables and the few parts the views add.
 *
 * The five colours below come from the template row (and a domain's own
 * color_fonts, when it has one), so a domain can recolour the whole page by
 * changing them; the fallbacks are the template's own palette.
 */
:root {
    --t19-primary: var(--primary, #fe7900);
    --t19-hover: var(--hover, #cf110c);
    --t19-tile: var(--secondary, #11182c);
    --t19-bg: var(--bg-primary, #1c1c1c);
    --t19-text: var(--text-primary, #ffffff);
    --t19-gradient: linear-gradient(360deg, var(--t19-hover) 0%, var(--t19-primary) 100%);

    --login-btn: rgba(128,128,128,1);
    --login-btn-color: #ffffff;
    --registr-btn: var(--t19-gradient);
    --button-bg-color: var(--t19-gradient);
    --button-bg-hover: var(--t19-gradient);
    --button-text-color: #ffffff;
    --fh-bg-color: linear-gradient(360deg, var(--t19-primary) 0%, var(--t19-bg) 3%);
    --text-color: var(--t19-text);
    --title-color: var(--t19-text);
    --menu-color: #ffffff;
    --mobile-bg-color: var(--t19-bg);
    --table-header-color: var(--t19-gradient);
    --table-1-color: var(--t19-bg);
    --table-2-color: var(--t19-bg);
    --main-theme-color: var(--t19-bg);
    --border-color: rgba(255,255,255,1);
    --rate-image-border: #ffffff;
    --rate-counter-bg: var(--t19-tile);
    --rate-counter-bg-top: var(--t19-gradient);
    --footer-menu-color: #ffffff;
    --footer-text-color: #ffffff;
    --games-nav-bg-color: var(--t19-gradient);
    --games-nav-border-color: var(--t19-gradient);
    --games-nav-text-color: #ffffff;
    --updated-block-color: #ffffff;
}

body { background: var(--t19-bg); }

.header .login-btn, .header .registr-btn { transition: filter .15s ease; }
.header .login-btn:hover, .header .registr-btn:hover, .main-button:hover { filter: brightness(1.1); opacity: 1; }
.header-buttons.center { position: absolute; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
.logo__text { display: inline-block; max-width: 180px; overflow: hidden; color: #fff; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }

.main-section { padding-top: 8px !important; }
.main-section__title { margin-bottom: 16px !important; }
.main-section picture img { width: 100%; height: auto; border-radius: 10px; }
/* No banner on the domain: a box in the theme's colours carrying the offer, so
   the hero keeps its shape instead of collapsing to the heading. */
.hero-offer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 260px; padding: 32px 24px; border-radius: 10px; background: radial-gradient(120% 140% at 85% 0%, var(--t19-primary) 0%, var(--t19-hover) 35%, var(--t19-bg) 80%); text-align: center; }
.hero-offer .hero-offer__text { margin: 0; color: #fff; font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-offer .main-button { margin: 0; }
.main-section > .content-table__table { text-align: center; }

.tab[hidden] { display: none; }
.best-games__nav li a svg { flex: 0 0 auto; }
.best-games__body .tab .best-games__item-img { aspect-ratio: 263 / 156; background: var(--t19-tile); }
.best-games__body .tab .best-games__item-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Providers and payment methods: logos on dark tiles, the name under each. */
.pay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pay-grid__item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pay-grid__tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 263 / 156; padding: 18% 14%; border-radius: 10px; background: var(--t19-tile); overflow: hidden; }
.pay-grid__tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease-in-out; }
.pay-grid__item:hover .pay-grid__tile img { transform: scale(1.06); }
.pay-grid__item span { color: var(--t19-text); font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.pay-grid__toggle { display: block; width: fit-content; margin: 24px auto 0; padding: 10px 26px; border: 0; border-radius: 6px; background: var(--t19-gradient); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }

.content-banner { margin: 0 0 40px; }
.content-banner img { width: 100%; height: auto; border-radius: 10px; }
.section-cta { display: flex; justify-content: center; margin-top: 24px; }
.section-cta .main-button { margin-top: 0; }

.seo-content { line-height: 1.6; }
.entry-content .content-table__table a:not(.main-button) { color: var(--t19-primary); }
/* A picture put into the text in the editor often shares a paragraph with the
   words after it; on its own line, centred, it no longer drags them beside it.
   Its inline height gives way so it scales with the width on a phone. */
.seo-content img { display: block; max-width: 100%; height: auto !important; margin: 16px auto 20px; border-radius: 10px; }
.faq__item { line-height: 1.6; }

/* When the page was last updated: a small card, not a bar in the header's colours. */
.updated-block { margin-bottom: 60px; }
.updated-block .updated-block__box { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 16px 22px; border: 0; border-left: 4px solid var(--t19-primary); border-radius: 10px; background: var(--t19-tile); font-size: 16px; line-height: 1.3; }
.updated-block__icon { flex: 0 0 auto; color: var(--t19-primary); }
.updated-block__label { opacity: .7; }
.updated-block time { font-weight: 700; }

.footer__images { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__images img { width: auto; max-width: 120px; max-height: 56px; object-fit: contain; }

.popup { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.72); }
.popup.is-open { display: flex; }
.popup__content { position: relative; width: min(520px, 100%); max-height: min(80vh, 720px); overflow: auto; padding: 28px; border-top: 3px solid var(--t19-primary); border-radius: 10px; background: var(--t19-bg); color: var(--t19-text); }
.popup__close { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.popup__text { margin: 12px 0 20px; line-height: 1.65; }

.entry-content table { width: 100% !important; max-width: 100%; display: table; border-collapse: collapse; table-layout: auto; }
.entry-content table td, .entry-content table th { width: auto; }
/* The box the views put round every content table. It is what scrolls on a
   narrow screen, so the page itself never does. */
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-scroll > table { margin: 0 0 32px; }
.entry-content ul, .entry-content ol { padding-left: 18px; }

@media (max-width: 767px) {
    .header-buttons.center { position: static; top: auto; left: auto; margin-left: auto; transform: none; }
    .logo__text { max-width: 110px; font-size: 18px; }
    .header .login-btn, .header .registr-btn { padding: 0 10px; font-size: 14px; white-space: nowrap; }
    .hero-offer { min-height: 200px; padding: 24px 16px; }
    .best-games__nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; width: 100%; margin: 0 0 20px !important; padding: 0 !important; }
    .best-games__nav li { width: auto; min-width: 0; margin: 0 !important; }
    /* Three tabs share a phone's width: the label may take two lines, and the
       icon steps aside for it. */
    .best-games__nav li a { height: 44px; padding: 0 6px; font-size: 13px; line-height: 1.15; text-align: center; white-space: normal; overflow: hidden; }
    .best-games__nav li a svg { display: none; }
    .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pay-grid__item span { font-size: 16px; }
    .entry-content { overflow-x: hidden; }
    /* Columns keep a readable width and the table scrolls sideways inside
       .table-scroll, instead of wrapping its headers one letter per line. */
    .entry-content .table-scroll table { width: auto !important; min-width: 100%; max-width: none; table-layout: auto; font-size: 14px; }
    .entry-content table th, .entry-content table td { padding: 10px 12px; min-width: 112px; word-break: normal; overflow-wrap: normal; hyphens: manual; }
    .entry-content table th:first-child, .entry-content table td:first-child { min-width: 128px; }
    .entry-content img { max-width: 100%; height: auto; }
}

@media (max-width: 360px) {
    .header .login-btn, .header .registr-btn { padding: 0 8px; font-size: 12px; }
    .best-games__nav li a { font-size: 12px; }
}

/* The shared phone "Play" bar (admin.landing._mobile-play) in this theme. */
body .mobile-play { background: var(--t19-bg); border-top: 1px solid var(--t19-primary); }
body .mobile-play > a { background: var(--t19-gradient); color: #fff; box-shadow: none; }

body:has(#menu-toggle:checked) .mobile-play { display: none; }
