/* Hero Slider */
.hero-slider {
    position: relative;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #091118;
}

.hero-slider .slick-list,
.hero-slider .slick-track {
    height: 300px !important;
}

.hero-slider .hero-slide {
    height: 300px !important;
    outline: none !important;
}

.hero-slider .hero {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    border: 1px solid #263641;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #091118;
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
}

.hero-slider .hero-copy {
    position: relative;
    z-index: 2;
    padding: 24px 60px;
    width: 58%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slider .hero-copy .eyebrow {
    color: var(--gold);
    letter-spacing: 5px;
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.hero-slider .hero-copy h1,
.hero-slider .hero-copy h2 {
    font-size: 32px;
    line-height: 1.08;
    margin: 0 0 8px 0;
    font-weight: 900;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-slider .hero-copy p {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 14px 0;
    color: #d1dbe1;
}

.hero-slider .hero-copy .btn.large {
    font-size: 15px;
    padding: 10px 22px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.hero-slider .hero-copy .btn.large b {
    font-size: 20px;
    line-height: 1;
    margin-left: 8px;
}

.hero-art-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #091118 0%, #091118fa 45%, #09111866 65%, transparent 100%), url("../promotion-img/en/3-ENG-PROMO.jpg") no-repeat right center / contain;
    opacity: .95;
    pointer-events: none;
}

.hero-art-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #091118 0%, #091118fa 45%, #09111866 65%, transparent 100%), url("../promotion-img/en/2-ENG-PROMO.jpg") no-repeat right center / contain;
    opacity: .95;
    pointer-events: none;
}

.hero-art-3 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #091118 0%, #091118fa 45%, #09111866 65%, transparent 100%), url("../promotion-img/en/1-ENG-PROMO.jpg") no-repeat right center / contain;
    opacity: .95;
    pointer-events: none;
}

.hero-art-4 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #091118 0%, #091118fa 45%, #09111866 65%, transparent 100%), url("../promotion-img/en/4-ENG-PROMO.jpg") no-repeat right center / contain;
    opacity: .95;
    pointer-events: none;
}

.hero-art-5 {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #091118 0%, #091118fa 45%, #09111866 65%, transparent 100%), url("../promotion-img/en/5-ENG-PROMO.jpg") no-repeat right center / contain;
    opacity: .95;
    pointer-events: none;
}

.hero-slider .slick-dots {
    bottom: 12px;
    z-index: 2;
}

.hero-slider .slick-dots li {
    margin: 0 4px;
}

.hero-slider .slick-dots li button:before {
    font-size: 10px;
    color: #fff;
    opacity: 0.35;
    transition: all 0.3s ease;
}

.hero-slider .slick-dots li.slick-active button:before {
    color: var(--gold);
    opacity: 1;
    font-size: 12px;
}

.hero-slider .slick-prev,
.hero-slider .slick-next {
    z-index: 2;
    width: 36px;
    height: 36px;
    background: rgba(8, 17, 24, 0.75);
    border: 1px solid rgba(245, 189, 50, 0.35);
    border-radius: 50%;
    transition: all 0.25s ease;
    top: 50%;
    transform: translateY(-50%);
}

.hero-slider .slick-prev:hover,
.hero-slider .slick-next:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.hero-slider .slick-prev {
    left: 16px;
}

.hero-slider .slick-next {
    right: 16px;
}

.hero-slider .slick-prev:before,
.hero-slider .slick-next:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: #fff;
    opacity: 0.95;
}

.hero-slider .slick-prev:hover:before,
.hero-slider .slick-next:hover:before {
    color: #070d11;
}

.hero-slider .slick-prev:before {
    content: "\f053";
}

.hero-slider .slick-next:before {
    content: "\f054";
}

/* Latest Winners & Players Online Banner */
.winners-block {
    background: #060d13 !important;
    border: 1px solid #142430 !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    margin: 14px 0 20px !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35) !important;
}

.online-players-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-right: 22px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
}

.online-user-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #39e75f;
    font-size: 20px;
    background: radial-gradient(circle, rgba(57, 231, 95, 0.32) 0%, rgba(57, 231, 95, 0.08) 55%, transparent 75%);
    box-shadow: 0 0 18px rgba(57, 231, 95, 0.4);
    text-shadow: 0 0 8px rgba(57, 231, 95, 0.8);
    flex-shrink: 0;
}

.online-user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.online-user-label {
    font-size: 11px;
    font-weight: 700;
    color: #82929e;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.2;
}

.online-user-count {
    font-size: 22px;
    font-weight: 900;
    color: #f5bd32;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.latest-winners-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.latest-winners-header {
    margin-bottom: 8px !important;
}

.latest-winners-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    display: inline-block !important;
}

.winners-slider {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* ── Full Page Casino Preloader ────────────────────────────── */
.page-preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(circle at center, #0e1e2d 0%, #060b10 100%) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease !important;
    opacity: 1;
    visibility: visible;
}

.page-preloader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    text-align: center !important;
}

.preloader-spinner-wrap {
    position: relative !important;
    width: 84px !important;
    height: 84px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.preloader-ring {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    border: 3px solid rgba(245, 189, 50, 0.12) !important;
    border-top-color: #f5bd32 !important;
    border-right-color: #f5bd32 !important;
    animation: preloaderSpin 1s linear infinite !important;
    box-shadow: 0 0 22px rgba(245, 189, 50, 0.28) !important;
}

.preloader-ring-inner {
    position: absolute !important;
    inset: 9px !important;
    border-radius: 50% !important;
    border: 2px dashed rgba(245, 189, 50, 0.35) !important;
    border-bottom-color: #ffd768 !important;
    animation: preloaderSpinReverse 1.4s linear infinite !important;
}

.preloader-icon {
    font-size: 28px !important;
    color: #f5bd32 !important;
    filter: drop-shadow(0 0 10px rgba(245, 189, 50, 0.65)) !important;
    animation: preloaderPulse 1.8s ease-in-out infinite !important;
}

.preloader-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.preloader-brand .brand-name {
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 3.5px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.preloader-brand .brand-name span {
    color: #f5bd32 !important;
}

.preloader-bar {
    width: 140px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
}

.preloader-progress {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 45% !important;
    background: linear-gradient(90deg, #f5bd32, #ffea85, #f5bd32) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px rgba(245, 189, 50, 0.65) !important;
    animation: preloaderProgress 1.4s ease-in-out infinite !important;
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderSpinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 0 16px rgba(245, 189, 50, 0.9));
    }
}

@keyframes preloaderProgress {
    0% {
        left: -45%;
    }

    50% {
        left: 35%;
        width: 55%;
    }

    100% {
        left: 100%;
        width: 45%;
    }
}

.winners-slider.slick-slider {
    display: block !important;
    margin-bottom: 0 !important;
    height: auto !important;
}

.winners-slider .slick-list {
    overflow: hidden !important;
    margin: 0 -4px !important;
    padding: 0 !important;
    height: auto !important;
}

.winners-slider .slick-track {
    display: flex !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: auto !important;
}

.winners-slider .slick-slide {
    height: auto !important;
    outline: none !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
}

.winners-slider .slick-slide>div {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
}

.winner-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    padding: 2px 2px !important;
    height: auto !important;
    cursor: default;
    width: 100% !important;
    max-width: 95px !important;
    margin: 0 auto !important;
}

.winner-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f1c24;
    flex-shrink: 0;
}

.winner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.winner-item:hover .winner-thumb img {
    transform: scale(1.08);
}

.winner-name {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 68px !important;
    display: block !important;
    text-align: center !important;
}

.winner-amount {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    margin-top: 1px !important;
    display: block !important;
    white-space: nowrap !important;
    text-align: center !important;
}

@media (max-width: 900px) {

    .hero-slider,
    .hero-slider .slick-list,
    .hero-slider .slick-track,
    .hero-slider .hero-slide,
    .hero-slider .hero {
        height: 300px !important;
        min-height: 300px !important;
    }

    .hero-slider .hero-copy {
        width: 100%;
        padding: 20px 24px;
    }

    .hero-slider .hero-copy h1,
    .hero-slider .hero-copy h2 {
        font-size: 26px;
    }

    .winners-block {
        height: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 12px 14px !important;
    }

    .online-players-box {
        width: 100% !important;
        justify-content: center !important;
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-bottom: 10px !important;
    }

    .latest-winners-box {
        width: 100% !important;
    }

    .latest-winners-header {
        text-align: center !important;
        margin-bottom: 8px !important;
    }
}

/* Responsive Game Grid & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.game {
    background: #0d1920;
    border: 1px solid #20313b;
    border-radius: 9px;
    padding: 7px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.game:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.game .game-img {
    width: 100%;
    aspect-ratio: 225 / 140;
    height: auto;
    min-height: 80px;
    border-radius: 7px;
    background: linear-gradient(135deg, #18252f, #0d1820 60%, #15222b);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game .game-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.game:hover .game-img img {
    transform: scale(1.06);
}

.game-actions {
    position: absolute;
    inset: 0;
    background: rgba(7, 13, 17, 0.88);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border-radius: 7px;
    padding: 8px;
    z-index: 3;
}

.game:hover .game-actions,
.game:focus-within .game-actions,
.game.is-active .game-actions {
    opacity: 1;
    visibility: visible;
}

.game-actions .btn {
    width: 100%;
    max-width: 130px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1.2;
}

.game-actions .playforreal,
.game-actions .btn-gold {
    background: linear-gradient(#ffd65d, #e9aa20);
    color: #0a0d0f;
    border: 1px solid #ffcc4b;
}

.game-actions .playforreal:hover,
.game-actions .btn-gold:hover {
    filter: brightness(1.1);
}

.game-actions .playforfun,
.game-actions .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e1e7ec;
    border: 1px solid #3c4f5c;
}

.game-actions .playforfun:hover,
.game-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: var(--gold);
}

/* ── Game Favorite Heart Button ────────────────────────────── */
.game-favorite-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(10, 16, 22, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    padding: 0;
    line-height: 1;
}

.game-favorite-btn:hover {
    transform: scale(1.15);
    background: rgba(13, 24, 32, 0.95);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.45);
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.35);
}

.game-favorite-btn i,
.game-favorite-btn svg {
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.game-favorite-btn.is-favorite {
    color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.22) !important;
    border-color: rgba(255, 71, 87, 0.6) !important;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.5) !important;
}

.game-favorite-btn.is-favorite i,
.game-favorite-btn.is-favorite svg {
    color: #ff4757 !important;
    fill: #ff4757 !important;
}

.game-favorite-btn.animating {
    animation: favHeartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes favHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    .game-favorite-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 4px;
        right: 4px;
    }
}

.game b {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #e6ebef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.game small {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    display: block;
}

/* All Desktops and Laptops (>= 992px) - Always 5 games per row */
@media (min-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px;
    }
}

/* Tablets & Medium Screens (681px - 991px) */
@media (max-width: 991px) and (min-width: 681px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
}

/* Large Mobile & Phablets (481px - 680px) - 3 columns */
@media (max-width: 680px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .game {
        padding: 5px;
        border-radius: 8px;
    }

    .game .game-img {
        border-radius: 6px;
        min-height: 55px;
    }

    .game b {
        font-size: 11px;
        margin-top: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game small {
        font-size: 9px;
    }
}

/* Standard Mobile (< 480px) - 3 columns (3*3) */
@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }

    .game {
        padding: 4px;
        border-radius: 7px;
    }

    .game .game-img {
        border-radius: 5px;
        min-height: 48px;
    }

    .game-actions {
        padding: 3px;
        gap: 3px;
    }

    .game-actions .btn {
        padding: 5px 2px;
        font-size: 8.5px;
        letter-spacing: 0;
    }

    .game b {
        font-size: 10px;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game small {
        font-size: 8.5px;
    }

    .tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .tabs a {
        display: flex;
        width: 100%;
    }

    .tabs a button {
        width: 100%;
        padding: 8px 3px;
        font-size: 9.5px;
        text-align: center;
        border-radius: 6px;
    }
}

/* Ultra small mobile (< 340px) - 3 columns */
@media (max-width: 340px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px;
    }
    .game {
        padding: 3px;
    }
    .game b {
        font-size: 9px;
    }
}

/* Load More Button */
.load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 6px;
    width: 100%;
}

.load-more-btn {
    padding: 12px 36px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(2, 2, 1, 0.25);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 189, 50, 0.4);
}

.load-more-btn i {
    font-size: 13px;
    transition: transform 0.4s ease;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}