:root {
    color-scheme: dark;

    --color-bg: #000000;
    --color-surface: #061220;
    --color-surface-light: #0c1b2c;
    --color-text: #ffffff;
    --color-muted: #96a6b9;
    --color-border: #26384b;
    --color-blue: #5cc1ed;
    --color-pink: #f3337a;

    --gradient-brand: linear-gradient(
        110deg,
        var(--color-blue) 0%,
        #928ac7 45%,
        var(--color-pink) 100%
    );

    --container-width: 1560px;
    --container-padding: 24px;

    --radius-small: 7px;
    --radius-card: 18px;
    --radius-section: 26px;

    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    min-width: 280px;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    margin: 0;
    font: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 5px;
}

::selection {
    background: var(--color-pink);
    color: #ffffff;
}

.container {
    width: 100%;
    max-width: calc(
        var(--container-width) + var(--container-padding) * 2
    );
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Ссылка для навигации с клавиатуры */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: var(--radius-small);
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    transition:
        color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn-primary {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.btn-outline {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
        var(--gradient-brand) border-box;
    color: #ffffff;
}

.btn:active {
    transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        border-color: #dceef8;
        background: #dceef8;
        box-shadow: 0 0 20px rgb(92 193 237 / 15%);
    }

    .btn-outline:hover {
        background:
            linear-gradient(#102033, #102033) padding-box,
            var(--gradient-brand) border-box;
        box-shadow: 0 0 20px rgb(243 51 122 / 12%);
    }
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
    padding-bottom: 64px;
}

.navbar {
    background: #000000;
    border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.navbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 76px;
    padding-block: 12px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 44px;
    flex-shrink: 0;
}

.navbar-brand svg {
    width: 104px;
    height: auto;
}

.navbar-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.navbar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.navbar-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
    .navbar-nav a:hover {
        color: var(--color-blue);
    }
}

/* ==========================================================================
   Баннер

   В исходном HTML нет URL фоновой картинки баннера.
   Используется самостоятельный фон без обращения к неизвестным файлам.
   ========================================================================== */

.header-block {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 0 0 var(--radius-section) var(--radius-section);
    background:
        radial-gradient(
            ellipse at 85% 38%,
            rgb(0 164 189 / 18%),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 35% 65%,
            rgb(243 51 122 / 12%),
            transparent 44%
        ),
        linear-gradient(115deg, #000000 15%, #030a13 70%, #000000);
}

.header-block::before,
.header-block::after {
    position: absolute;
    z-index: -1;
    width: 230px;
    height: 480px;
    border: 16px solid rgb(92 193 237 / 10%);
    border-radius: 42px;
    content: "";
    pointer-events: none;
    transform: rotate(18deg);
}

.header-block::before {
    top: 18px;
    right: 16%;
}

.header-block::after {
    top: -150px;
    right: 37%;
    border-color: rgb(243 51 122 / 8%);
    transform: rotate(-18deg);
}

.header-banner {
    display: flex;
    align-items: center;
    min-height: 370px;
    padding: 42px 26px 24px;
}

.header-banner__card {
    width: 100%;
    max-width: 620px;
}

.banner-card__title,
.banner-card__play,
.banner-card__after {
    font-size: clamp(20px, 1.8vw, 29px);
    line-height: 1.3;
}

.banner-card__title span {
    display: table;
    margin-top: 2px;
    font-size: clamp(44px, 4vw, 64px);
    font-weight: 800;
    line-height: 1.12;
}

.gradient-text {
    width: fit-content;
    color: var(--color-blue);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .gradient-text {
        background-image: var(--gradient-brand);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.banner-card__play {
    margin-top: 6px;
    text-transform: lowercase;
}

.banner-card__bonus {
    margin-top: 12px;
}

.banner-card__amount {
    font-size: clamp(48px, 4.2vw, 68px);
    font-weight: 800;
    line-height: 1.1;
}

.banner-card__after {
    margin-top: 5px;
}

.banner-card__cta {
    margin-top: 20px;
}

/* Платёжные системы под баннером */

.header-pay {
    padding: 12px 26px 32px;
}

.header-pay__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px 38px;
}

.header-pay__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 38px;
}

.header-pay__list img {
    width: auto;
    max-width: 112px;
    height: 32px;
    object-fit: contain;
}

/* ==========================================================================
   Основное содержимое
   ========================================================================== */

.main {
    padding-bottom: 64px;
}

.main > .container {
    display: grid;
    gap: 42px;
}

.content {
    min-width: 0;
    padding: 42px 24px;
    border-radius: var(--radius-section);
    background: var(--color-surface);
}

.content h1 {
    margin-bottom: 16px;
    font-size: clamp(27px, 2.5vw, 40px);
    font-weight: 400;
    line-height: 1.22;
}

.content h1 strong {
    font-weight: 700;
}

.content h2 {
    margin-bottom: 24px;
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.3;
}

.content p + p {
    margin-top: 18px;
}

.content p {
    line-height: 1.7;
}

/* ==========================================================================
   Игры
   ========================================================================== */

.slots {
    min-width: 0;
}

.slots-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.slots-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.slots-more__link {
    font-size: 11px;
    padding-inline: 16px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.slot-item {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 5%);
    isolation: isolate;
    transition:
        box-shadow var(--transition),
        transform var(--transition);
}

.slot-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.slot-item__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgb(0 0 0 / 76%);
    opacity: 0;
    transition: opacity var(--transition);
}

.slot-item__play {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background:
        url("/wp-content/themes/Gizbo_Casino_Theme/assets/img/play-icon.svg")
        center / contain no-repeat;
}

.slot-item__title {
    max-width: 100%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.slot-item:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 4px;
}

.slot-item:focus-visible .slot-item__content {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .slot-item:hover {
        z-index: 2;
        box-shadow: 0 0 0 2px var(--color-blue);
        transform: translateY(-3px);
    }

    .slot-item:hover .slot-item__content {
        opacity: 1;
    }

    .slot-item:hover .slot-item__img {
        transform: scale(1.04);
    }
}

/* На сенсорных экранах название доступно без наведения */

@media (hover: none) {
    .slot-item {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
    }

    .slot-item__img {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .slot-item__content {
        position: static;
        flex: 1;
        justify-content: center;
        min-height: 48px;
        padding: 9px 7px;
        background: var(--color-surface);
        opacity: 1;
    }

    .slot-item__play {
        display: none;
    }

    .slot-item__title {
        font-size: 12px;
    }
}

/* ==========================================================================
   Таблица
   ========================================================================== */

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
    line-height: 1.5;
}

.info-table th,
.info-table td {
    padding: 13px 16px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.info-table th:first-child {
    width: 39%;
}

.info-table thead th {
    background: #e8edf3;
    color: #081321;
    font-weight: 700;
}

.info-table tbody th {
    font-weight: 400;
}

.info-table tr > :last-child {
    border-right: 0;
}

.info-table tbody tr:last-child > * {
    border-bottom: 0;
}

.info-table tbody tr:nth-child(even) {
    background: rgb(255 255 255 / 2%);
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
    border-top: 1px solid rgb(255 255 255 / 8%);
    background: #000000;
}

.soft {
    padding-top: 38px;
}

.soft-items,
.pay-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.soft-item,
.pay-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
}

.soft-item img {
    width: auto;
    max-width: 155px;
    height: 38px;
    object-fit: contain;
}

.payments {
    padding-top: 44px;
}

.pay-items {
    gap: 22px 28px;
}

.pay-item img {
    width: auto;
    max-width: 118px;
    height: 31px;
    object-fit: contain;
}

.footer-nav {
    padding-top: 54px;
}

.footer-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 40px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    text-underline-offset: 4px;
    transition: color var(--transition);
}

.footer-content {
    max-width: 1120px;
    margin-inline: auto;
    padding-top: 46px;
    color: var(--color-muted);
    text-align: center;
}

.footer-copyright {
    padding-block: 32px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .footer-nav a:hover {
        color: var(--color-blue);
        text-decoration: underline;
    }
}

/* ==========================================================================
   Cookie-уведомление
   В потоке документа: не перекрывает контент и кнопки на телефоне.
   ========================================================================== */

.cookie-notice {
    border-top: 1px solid var(--color-border);
    background: #080e16;
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
}

.cookie-notice p {
    font-size: 13px;
    line-height: 1.6;
}

.cookie-notice a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-notice__close {
    flex-shrink: 0;
    min-width: 110px;
}

/* ==========================================================================
   Небольшие десктопы и планшеты
   ========================================================================== */

@media (max-width: 1199px) {
    .slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .header {
        padding-bottom: 44px;
    }

    .header-pay__list {
        gap: 20px 28px;
    }

    .soft-items,
    .pay-items {
        gap: 22px;
    }

    .soft-item img {
        max-width: 132px;
        height: 34px;
    }
}

@media (max-width: 991px) {
    :root {
        --container-padding: 20px;
    }

    .navbar-inner {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 20px;
    }

    .navbar-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .navbar-auth {
        grid-column: 2;
        grid-row: 1;
    }

    .navbar-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .navbar-nav ul {
        gap: 36px;
    }

    .navbar-nav a {
        font-size: 14px;
    }

    .header-banner {
        min-height: 350px;
    }

    .header-block::before {
        right: 7%;
    }

    .header-block::after {
        right: 25%;
    }

    .content {
        padding: 30px 22px;
    }

    .main > .container {
        gap: 32px;
    }

    .footer-content {
        padding-top: 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --container-padding: 16px;
        --radius-card: 14px;
        --radius-section: 20px;
    }

    body {
        font-size: 15px;
    }

    .header {
        padding-bottom: 32px;
    }

    .header-banner {
        min-height: 330px;
        padding: 32px 20px 20px;
    }

    .header-banner__card {
        max-width: 480px;
    }

    .header-block::before,
    .header-block::after {
        opacity: 0.55;
    }

    .header-pay {
        padding: 16px 18px 26px;
    }

    .header-pay__list {
        gap: 16px 24px;
    }

    .header-pay__list img {
        max-width: 90px;
        height: 27px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .slots-header {
        margin-bottom: 18px;
    }

    .slots-title {
        font-size: 18px;
    }

    .content {
        padding: 26px 20px;
    }

    .info-table {
        font-size: 14px;
    }

    .info-table th,
    .info-table td {
        padding: 11px 12px;
    }

    .info-table th:first-child {
        width: 42%;
    }

    .main {
        padding-bottom: 40px;
    }

    .soft {
        padding-top: 28px;
    }

    .soft-items {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .soft-item img {
        max-width: 100%;
        height: 30px;
    }

    .payments {
        padding-top: 28px;
    }

    .pay-items {
        gap: 16px 22px;
    }

    .pay-item img {
        max-width: 96px;
        height: 27px;
    }

    .footer-nav {
        padding-top: 30px;
    }

    .footer-content {
        padding-top: 26px;
        font-size: 14px;
    }

    .footer-copyright {
        padding-block: 26px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Телефоны
   ========================================================================== */

@media (max-width: 575px) {
    .navbar-inner {
        gap: 6px 10px;
        padding-block: 8px;
    }

    .navbar-brand svg {
        width: 84px;
    }

    .navbar-auth {
        gap: 7px;
    }

    .navbar-auth .btn {
        padding: 10px;
        font-size: 11px;
    }

    .navbar-nav ul {
        gap: 32px;
    }

    .navbar-nav a {
        font-size: 13px;
    }

    .nav-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .header-banner {
        min-height: 0;
        padding: 28px 18px 20px;
    }

    .banner-card__title,
    .banner-card__play {
        font-size: 22px;
    }

    .banner-card__title span {
        margin-top: 5px;
        font-size: 48px;
    }

    .banner-card__amount {
        font-size: 54px;
    }

    .banner-card__after {
        max-width: 330px;
        font-size: 20px;
    }

    .banner-card__cta {
        min-height: 46px;
        margin-top: 22px;
    }

    .header-pay__list {
        gap: 14px 20px;
    }

    .header-pay__list li {
        min-width: 50px;
        min-height: 30px;
    }

    .header-pay__list img {
        max-width: 82px;
        height: 24px;
    }

    .content {
        padding: 24px 16px;
    }

    .content h1 {
        font-size: 27px;
        line-height: 1.25;
    }

    .content h2 {
        margin-bottom: 18px;
        font-size: 23px;
    }

    .content p {
        line-height: 1.65;
    }

    .main > .container {
        gap: 28px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .slots-header {
        gap: 12px;
    }

    .slots-title {
        font-size: 16px;
    }

    .slots-more__link {
        padding-inline: 12px;
        font-size: 10px;
    }

    .slot-item__content {
        gap: 7px;
        padding: 8px;
    }

    .slot-item__play {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .slot-item__title {
        font-size: 11px;
    }

    .info-table {
        font-size: 13px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 8px;
    }

    .info-table th:first-child {
        width: 44%;
    }

    .soft-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 16px;
    }

    .soft-item img {
        height: 28px;
    }

    .pay-items {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .pay-item img {
        max-width: 100%;
        height: 25px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .footer-nav a {
        justify-content: center;
        text-align: center;
    }

    .footer-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-block: 16px;
    }

    .cookie-notice__close {
        align-self: flex-start;
    }
}

/* Очень узкие экраны */

@media (max-width: 359px) {
    :root {
        --container-padding: 12px;
    }

    .navbar-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .navbar-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .navbar-auth {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        justify-content: center;
    }

    .navbar-nav {
        grid-column: 1;
        grid-row: 3;
    }

    .header-banner {
        padding-inline: 16px;
    }

    .banner-card__title span {
        font-size: 43px;
    }

    .banner-card__amount {
        font-size: 48px;
    }

    .banner-card__after {
        font-size: 18px;
    }

    .content {
        padding-inline: 14px;
    }

    .content h1 {
        font-size: 24px;
    }

    .slots-grid {
        gap: 8px;
    }

    .slots-header {
        align-items: flex-start;
    }

    .soft-items,
    .pay-items {
        gap: 10px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}