/* Original API catalog components, styled to the gold and grey reference. */
/* Sub-Nav Row */
.casino-subnav-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.casino-subnav-pill {
    background: #1a1c21;
    border: 1px solid #22252c;
    color: #a4a8b2;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.casino-subnav-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.casino-subnav-pill.active {
    background: #d9b26a;
    border-color: #d9b26a;
    color: #121316;
}

/* Two Hero Cards Grid */
.hero-two-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1fr);
    gap: 16px;
    width: 100%;
}
.hero-main-banner {
    position: relative;
    background: #121418;
    border: 1px solid #22252c;
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 240px;
}
.hero-banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 55%;
    z-index: 2;
}
.hero-banner-title {
    font-size: 34px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.5px;
}
.hero-banner-sub {
    font-size: 13.5px;
    color: #b5b9c4;
    line-height: 1.4;
}
.hero-btn-gold {
    align-self: flex-start;
    margin-top: 12px;
    background: #d9b26a;
    border: none;
    color: #121316;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.18s;
}
.hero-btn-gold:hover {
    background: #e8c98e;
}
.hero-banner-visual {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.hero-trophy-img {
    height: 105%;
    object-fit: contain;
}

.hero-side-card {
    position: relative;
    background: #121418;
    border: 1px solid #22252c;
    border-radius: 20px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 240px;
}
.hero-side-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}
.hero-side-heading {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.hero-side-game-info strong {
    display: block;
    font-size: 13.5px;
    color: #ffffff;
    font-weight: 700;
}
.hero-side-game-info span {
    display: block;
    font-size: 12px;
    color: #8c919d;
}
.hero-side-thumb-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.hero-side-thumb {
    width: 125px;
    height: 125px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.hero-side-dots {
    display: flex;
    gap: 6px;
}
.h-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.h-dot.active {
    background: #d9b26a;
}

/* Search Bar & Providers Button Row */
.search-providers-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.search-box-field {
    flex: 1;
    height: 48px;
    background: #17181c;
    border: 1px solid #22252c;
    border-radius: 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.search-box-field:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.search-box-field svg {
    color: #8c919d;
    flex-shrink: 0;
}
.search-box-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
}
.search-box-field input::placeholder {
    color: #727782;
}
.providers-dropdown-btn {
    height: 48px;
    padding: 0 20px;
    background: #17181c;
    border: 1px solid #22252c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s;
}
.providers-dropdown-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}
.providers-dropdown-btn svg {
    color: #8c919d;
}

/* Category Filter Pills Row */
.category-pills-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-pills-bar::-webkit-scrollbar {
    display: none;
}
.cat-pill-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 12px;
    background: #1a1c21;
    border: 1px solid #22252c;
    color: #b5b9c4;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.cat-pill-item:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.cat-pill-item.active {
    background: #d9b26a;
    border-color: #d9b26a;
    color: #121316;
}
.cat-pill-item .cat-pill-glyph {
    font-size: 14px;
}

/* Game Rail Sections */
.game-rail-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.rail-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rail-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
}
.rail-icon-star {
    color: #ffffff;
    font-size: 18px;
}
.rail-icon-777 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    background: #ffffff;
    color: #121316;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.rail-actions-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rail-see-all-action {
    background: transparent;
    border: none;
    color: #8c919d;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.rail-see-all-action:hover {
    color: #ffffff;
}
.rail-nav-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rail-nav-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1c1e23;
    border: 1px solid #22252c;
    color: #b5b9c4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s;
}
.rail-nav-circle:hover {
    background: #2a2d35;
    color: #ffffff;
}

/* Card Styling in Rails */
.games-rail-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 2px 10px;
}
.games-rail-scroll::-webkit-scrollbar {
    display: none;
}
.games-rail-scroll .game-card {
    flex: 0 0 115px;
    width: 115px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: transform 0.18s ease;
}
.games-rail-scroll .game-card:hover {
    transform: translateY(-4px);
}
.game-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #17181c;
    border: 1px solid #22252c;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.game-card:hover .game-thumb-box {
    border-color: rgba(224, 184, 120, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(224, 184, 120, 0.25);
}
.game-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
}
.game-card-info {
    padding-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 20px !important;
}
.game-online-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #8c919d !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1 !important;
}
.online-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7) !important;
    display: inline-block !important;
}

/* Hover overlay on card */
.card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 15, 18, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.game-card:hover .card-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}
.btn-card-play-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d9b26a;
    border: none;
    color: #121316;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(224, 184, 120, 0.6);
    transition: transform 0.15s;
}
.btn-card-play-circle:hover {
    transform: scale(1.12);
}

/* Reference geometry applied to the original API-rendered sections. */
.app-shell,body.home-mode .app-shell{display:flex;flex-direction:column;gap:32px;min-width:0;min-height:calc(100vh - 76px)}
.app-shell>*{min-width:0;max-width:100%}
.casino-subnav-row{display:none}
.hero-two-cards-grid{order:-3;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:20px}
.hero-main-banner,.hero-side-card{height:330px;border-radius:26px;background:#121418}
.hero-main-banner{padding:40px 42px}
.hero-banner-content{max-width:62%;gap:16px}
.hero-banner-title{font-size:clamp(30px,3.2vw,50px);letter-spacing:-.04em}
.hero-banner-visual{right:0;width:46%;overflow:hidden}
.hero-trophy-img{width:100%;height:100%;object-fit:cover;object-position:right center}
.hero-btn-gold{min-height:44px;background:linear-gradient(#e8c98e,#cfa257);padding:12px 22px}
.hero-side-card{padding:26px;gap:20px}
.hero-side-thumb-col{order:-1;width:48%;flex-shrink:0}
.hero-side-thumb{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.hero-side-content{min-width:0}.hero-side-heading{font-size:24px;letter-spacing:-.025em}.hero-side-dots{display:none}
.search-providers-bar{order:-2}.search-box-field{min-width:0}.search-box-field input{min-width:0}.category-pills-bar{order:-1;flex-shrink:0}
.game-rail-section{gap:18px}.rail-header-line{gap:12px;margin-bottom:16px}.rail-title-box{font-size:24px;color:#f2efe8}.rail-actions-box{flex-shrink:0}.rail-nav-circle{border-radius:10px;width:34px;height:34px;background:#121418}.rail-icon-star,.rail-icon-777{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#202227;color:#d0d0d0}
.games-rail-scroll{gap:16px!important;max-width:100%;width:100%;min-width:0}
.games-rail-scroll .game-card{flex:0 0 calc((100% - 80px)/6)!important;width:calc((100% - 80px)/6)!important;min-width:0!important}
.game-card .game-thumb-box, .game-card.is-live-card .game-thumb-box,body[data-active-cat="live"] .game-thumb-box{aspect-ratio:168/226!important;border-radius:16px!important;min-height:0!important;height:auto!important}
.game-card .game-thumb-box .game-thumb-img{object-fit:cover!important;object-position:center!important}
.games-grid,#mainGamesGrid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important}
.games-grid .game-card{width:100%!important;min-width:0!important}
.game-online-badge{max-width:100%;font-weight:500!important;font-size:12px!important}
.card-hover-overlay{border-radius:inherit}.game-card:focus-within .card-hover-overlay{opacity:1;pointer-events:auto}
body.sports-mode .hero-two-cards-grid{display:none}
@media(min-width:1101px){#topHitsRail{counter-reset:game-rank}#topHitsRail .game-card{position:relative;counter-increment:game-rank;flex-basis:calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important;padding-left:44px}#topHitsRail .game-card:before{content:counter(game-rank);position:absolute;left:0;bottom:24px;font-size:120px;font-weight:800;line-height:1;color:#0b0c0f;-webkit-text-stroke:1.5px #d0d0d0;letter-spacing:-.1em}}
@media(max-width:1100px){.hero-main-banner,.hero-side-card{height:280px}.hero-main-banner{padding:28px}.hero-side-card{padding:20px;gap:12px}.hero-side-heading{font-size:20px}.hero-side-content{gap:8px}.hero-btn-gold{padding:10px 14px;font-size:12px}.hero-banner-title{font-size:34px}.games-rail-scroll .game-card{flex-basis:calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important}.games-grid,#mainGamesGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:650px){.app-shell,body.home-mode .app-shell{gap:26px}.hero-two-cards-grid{grid-template-columns:1fr;gap:14px}.hero-main-banner{height:250px;min-height:0;padding:26px 24px}.hero-banner-title{font-size:32px}.hero-banner-sub{font-size:12px}.hero-banner-content{max-width:65%;gap:12px}.hero-banner-visual{width:42%}.hero-side-card{height:180px;min-height:0;padding:20px;justify-content:flex-start;gap:22px}.hero-side-thumb-col{width:112px}.hero-side-heading{font-size:21px}.hero-side-heading br{display:none}.hero-side-content{gap:6px}.hero-side-card .hero-btn-gold{margin-top:4px}.hero-side-game-info strong{font-size:12px}.search-providers-bar{gap:8px}.search-box-field{height:44px;padding:0 12px}.search-box-field input{font-size:12px}.providers-dropdown-btn{height:44px;padding:0 12px;font-size:12px}.cat-pill-item{padding:10px 14px;font-size:12px}.rail-title-box{font-size:20px;gap:8px}.rail-see-all-action{font-size:11px}.rail-actions-box{gap:8px}.rail-nav-circle{width:28px;height:30px}.games-rail-scroll{gap:12px!important}.games-rail-scroll .game-card{flex-basis:calc((100% - 24px)/3)!important;width:calc((100% - 24px)/3)!important}.games-grid,#mainGamesGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.game-card .game-thumb-box{border-radius:12px!important}.game-online-badge{font-size:10px!important;gap:4px!important}.online-dot{width:4px!important;height:4px!important;min-width:4px!important}.section-header-row .rail-title-box{flex-wrap:wrap}.sportsbook-hero{min-width:0}}
@media(max-width:360px){.hero-banner-title{font-size:28px}.hero-side-thumb-col{width:90px}.hero-side-card{gap:14px}.rail-nav-buttons{gap:4px}.rail-title-box{font-size:18px}.game-online-badge{font-size:9px!important}}
/* Override legacy fixed card widths while retaining every API result in its rail. */
.app-shell .game-rail-section{--rail-columns:6;--rail-gap:16px}
.app-shell :is(#sectionTopHits,#sectionHotSlots,#sectionLiveCasino,#sectionCrashHits,#sectionAllGames,#sectionSportsGames) .games-rail-scroll .game-card{flex:0 0 calc((100% - (var(--rail-columns) - 1)*var(--rail-gap))/var(--rail-columns))!important;width:calc((100% - (var(--rail-columns) - 1)*var(--rail-gap))/var(--rail-columns))!important;min-width:0!important;max-width:none!important}
.hero-banner-visual{mask-image:linear-gradient(to right,transparent,#000 26%);-webkit-mask-image:linear-gradient(to right,transparent,#000 26%)}
@media(min-width:1101px){.app-shell #sectionTopHits{--rail-columns:4}}
@media(max-width:1100px){.app-shell .game-rail-section{--rail-columns:4}}
@media(max-width:650px){.app-shell .game-rail-section{--rail-columns:3;--rail-gap:12px}}
