/* Minification failed. Returning unminified contents.
(611,29): run-time error CSS1046: Expect comma, found '0'
(611,33): run-time error CSS1046: Expect comma, found '/'
 */
/* Scoped Casino Games View Styles (Plain CSS) */

/* Prevent desktop layout shifting when scrollbars disappear */
html {
    scrollbar-gutter: stable;
}

/* Container Grid Layout */
.games-view {
    padding: 20px 0;
}
.games-view .game-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .games-view {
        padding: 5px 0;
    }
    .games-view .game-card-container {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 5px;
    }
}

/* Controls Bar (Search & Filters) */
.games-view .controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.games-view .controls-bar .search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    /*max-width: 400px;*/
}

.games-view .controls-bar .search-wrapper input[type="search"] {
    width: 100%;
    padding: 12px 40px 12px 42px;
    border-radius: 4px;
    background: #1e1e28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin: 0;
}

.games-view .controls-bar .search-wrapper input[type="search"]:focus {
    border-color: #005286;
    box-shadow: 0 0 0 3px rgba(0, 82, 134, 0.2);
}

.games-view .controls-bar .search-wrapper input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Hide native cancel button to use our custom cross button consistently */
.games-view .controls-bar .search-wrapper input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.games-view .controls-bar .search-wrapper .search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 5;
    transition: color 0.2s;
}

.games-view .controls-bar .search-wrapper .search-clear-btn:hover {
    color: #fff;
}

.games-view .controls-bar .search-wrapper .search-clear-btn.visible {
    display: flex;
}

.games-view .controls-bar .search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    pointer-events: none;
}

.games-view .controls-bar .filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 4px;
    background: #1e1e28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.games-view .controls-bar .filter-button:hover {
    background: #2a2a38;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.games-view .controls-bar .filter-button.active {
    background: #005286;
    border-color: #005286;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 82, 134, 0.3);
}

.games-view .controls-bar .filter-button.active:hover {
    background: #0063a0;
    border-color: #0063a0;
}

.games-view .controls-bar .filter-button.active .heart-icon {
    fill: #ff3b30;
    stroke: #ff3b30;
}

.games-view .controls-bar .filter-button .heart-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2px;
    transition: fill 0.3s, stroke 0.3s;
}

/* Modern Game Card Styles */
.games-view .game-card {
    box-sizing: border-box;
    position: relative;
    border-radius: 4px;
    overflow: visible;
    cursor: pointer;
    background: #1e1e28;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
}

/* Desktop Hover Styles (Protected from firing on mobile/touch screens) */
@media (hover: hover) {
    .games-view.desktop-hover .game-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(255, 60, 48, 0.2);
        z-index: 2;
    }

    .games-view.desktop-hover .game-card:hover .game-image-wrapper img.loaded {
        transform: scale(1.1);
    }

    .games-view.desktop-hover .game-card:hover .game-overlay {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .games-view.desktop-hover .game-card:hover .game-name {
        transform: translateY(0);
        opacity: 1;
    }

    .games-view.desktop-hover .game-card:hover .game-buttons {
        transform: translateY(0);
        opacity: 1;
    }

    .games-view.desktop-hover .game-card:hover .favorite-toggle {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile Active Card Styles (Toggled via Click/Touch JS) */
.games-view .game-card.active {
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 10px rgba(255, 60, 48, 0.15);
    z-index: 2;
}

.games-view .game-card.active .game-image-wrapper img.loaded {
    transform: scale(1.1);
}

.games-view .game-card.active .game-overlay {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.games-view .game-card.active .game-name {
    transform: translateY(0);
    opacity: 1;
}

.games-view .game-card.active .game-buttons {
    transform: translateY(0);
    opacity: 1;
}

.games-view .game-card.active .favorite-toggle {
    opacity: 1;
    pointer-events: auto;
}

/* Favorite Toggle Floating Button */
.games-view .game-card .favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s ease;
}



/* Keep favorite toggle visible if it is already favorited */
.games-view .game-card .favorite-toggle.is-favorite {
    opacity: 1;
    pointer-events: auto;
}

.games-view .game-card .favorite-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Custom Tooltip using CSS Pseudo-elements */
.games-view .game-card .favorite-toggle::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -36px;
    right: 0;
    transform: translateY(5px);
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.games-view .game-card .favorite-toggle:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.games-view .game-card .favorite-toggle .heart-icon {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2px;
    transition: fill 0.3s, stroke 0.3s;
}

.games-view .game-card .favorite-toggle.is-favorite .heart-icon {
    fill: #ff3b30;
    stroke: #ff3b30;
}

.games-view .game-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 376 / 256;
    background: linear-gradient(110deg, #2a2a35 8%, #3f3f4e 18%, #2a2a35 33%);
    background-size: 200% 100%;
    animation: placeholder-shimmer 1.5s linear infinite;
    border-radius: 4px;
    overflow: hidden;
}

.games-view .game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s ease;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.games-view .game-image-wrapper img.loaded {
    opacity: 1;
}

.games-view .game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
    visibility: hidden;
}

.games-view .game-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    transition-delay: 0.05s;
}

.games-view .game-buttons {
    display: flex;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    transition-delay: 0.1s;
    width: 100%;
    justify-content: center;
    background: none;
}

.games-view .game-buttons .button {
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 120px;
}

.games-view .game-buttons .button.play {
    background: linear-gradient(135deg, #005286, #0070b8);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 82, 134, 0.3);
}

.games-view .game-buttons .button.play:hover {
    background: linear-gradient(135deg, #0063a0, #0082d6);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 82, 134, 0.5);
}

.games-view .game-buttons .button.demo {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.games-view .game-buttons .button.demo:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
}

.games-view .infinite-scroll-trigger {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
}

/* Empty State / No Games Found */
/* Empty State / No Games Found */
.games-view .no-games-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    max-width: 480px;
    margin: 40px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.games-view .no-games-found .empty-state-icon {
    margin-bottom: 20px;
    color: #005286;
    display: flex;
    align-items: center;
    justify-content: center;
}

.games-view .no-games-found .empty-state-icon svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.games-view .no-games-found h3 {
    color: #1a202c;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.games-view .no-games-found p {
    color: #718096;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}


.games-view .game-overlay-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(0px);
    opacity: 0;
    overscroll-behavior: none;
    transition:
        display 0.4s,
        opacity 0.4s ease,
        backdrop-filter 0.4s ease,
        background-color 0.4s ease;
    transition-behavior: allow-discrete;
}

.games-view .game-overlay-container.active {
    display: flex;
    backdrop-filter: blur(8px);
    opacity: 1;
}

@starting-style {
    .games-view .game-overlay-container.active {
        backdrop-filter: blur(0px);
        opacity: 0;
    }
}

.games-view .game-overlay-container .game-loader-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #fff;
    font-family: sans-serif;
    gap: 20px;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@starting-style {
    .games-view .game-overlay-container .game-loader-wrap {
        opacity: 0;
        transform: scale(1.1);
    }
}

.games-view .game-overlay-container .game-loader-wrap.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.games-view .game-overlay-container .game-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top-color: #005286;
    border-right-color: #0070b8;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.games-view .game-overlay-container .game-loader-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
    color: #e2e8f0;
}

.games-view .game-overlay-container .game-iframe {
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    z-index: 10000;
}

@starting-style {
    .games-view .game-overlay-container .game-iframe {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
}

.games-view .game-overlay-container:not(.active) .game-iframe {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
}

.games-view .game-overlay-container .game-frame-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background-color: rgb(0 0 0 / 54%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
    line-height: 1;
    padding-bottom: 4px;
    box-sizing: border-box;
}

.games-view .game-overlay-container .game-frame-close:hover {
    transform: rotate(90deg) scale(1.1);
}

@keyframes placeholder-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    /* Layout & Controls */
    .games-view .controls-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 0 5px;
        align-items: center;
    }
    
    .games-view .controls-bar .search-wrapper {
        flex: 1;
        min-width: 0;
    }

    /* Larger Search Input font & icon on mobile */
    .games-view .controls-bar .search-wrapper input[type="search"] {
        font-size: 1.1rem;
        padding: 12px 40px 12px 42px;
    }
    
    .games-view .controls-bar .search-wrapper .search-icon {
        width: 20px;
        height: 20px;
        left: 14px;
    }
    
    /* Square icon-only Favorites Filter button on mobile */
    .games-view .controls-bar .filter-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .games-view .controls-bar .filter-button .filter-text {
        display: none;
    }

    .games-view .controls-bar .filter-button .heart-icon {
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .games-view .game-card.active .game-overlay {
        justify-content: flex-end;
    }

    /* Larger Game Card Typography for 1-column layout */
    .games-view .game-name {
        font-size: 1.6rem;
        margin-bottom: 12px;
        font-weight: 800;
    }

    /* Larger Play/Demo buttons inside card overlay */
    .games-view .game-buttons .button {
        padding: 8px 20px;
        font-size: 1.2rem;
        max-width: 150px;
        border-radius: 4px;
    }

    /* Disable favorites tooltip on mobile touchscreens */
    .games-view .game-card .favorite-toggle::after {
        display: none !important;
    }

    /* Adjust floating favorite heart button size on mobile */
    .games-view .game-card .favorite-toggle {
        width: 30px;
        height: 30px;
        top: 5px;
        right: 5px;
    }

    .games-view .game-card .favorite-toggle .heart-icon {
        width: 15px;
        height: 15px;
    }

    /* Adjusted Fullscreen Overlay Sizes on Mobile */
    .games-view .game-overlay-container .game-iframe {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    /* Hide the close button on mobile, relying on history back button/swipe */
    .games-view .game-overlay-container .game-frame-close {
        display: none !important;
    }

    /* Flat premium empty state mobile overrides */
    .games-view .no-games-found {
        padding: 40px 20px;
        margin: 30px 15px;
    }

    .games-view .no-games-found .empty-state-icon {
        margin-bottom: 16px;
    }

    .games-view .no-games-found .empty-state-icon svg {
        width: 64px;
        height: 64px;
    }

    .games-view .no-games-found h3 {
        font-size: 1.5rem;
        color: #1a202c;
    }

    .games-view .no-games-found p {
        font-size: 1.05rem;
        color: #718096;
    }
}

/* Prevent body overscroll / scroll chaining when game overlay is active */
body.game-iframe-active {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

