/* ============================================================
   styleGameBox.css — Premium Casino Game Card v4.0
   3-Column Horizontal Grid & Large Hero Image Layout
   ============================================================ */

/* === 3-Column Grid Layout (Overrides Bootstrap .row) === */
.container.scanslot-grid-container,
.elementor-widget-html .container {
    max-width: 1140px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}

.row.scanslot-grid-row,
.elementor-widget-html .container > .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
    margin: 24px 0 32px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.row.scanslot-grid-row::before,
.row.scanslot-grid-row::after,
.elementor-widget-html .container > .row::before,
.elementor-widget-html .container > .row::after {
    display: none !important;
}

.col-12.col-md-6.col-lg-4 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.col-12.col-md-6.col-lg-4 > div,
.col-12.col-md-6.col-lg-4 > div[style],
.game-box-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

/* === Card Container === */
.game-box {
    position: relative !important;
    width: 100% !important;
    max-width: 350px !important;
    height: auto !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    cursor: pointer;
    background: linear-gradient(170deg, #221538 0%, #140c24 55%, #0b0714 100%) !important;
    box-shadow:
        0 10px 34px rgba(0, 0, 0, .65),
        0 0 0 1px rgba(255, 255, 255, .09),
        inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    transition: transform .3s cubic-bezier(.25, .46, .45, .94), box-shadow .3s ease !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.game-box:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .75),
        0 0 28px rgba(233, 195, 73, .18),
        0 0 0 1px rgba(233, 195, 73, .38),
        inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}

.gg-bs {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* === Background Layers — Ambient Color Glow from Game Cover === */
.g-cover,
.g-reflect {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    pointer-events: none !important;
}

.g-cover {
    opacity: .26 !important;
    z-index: 1 !important;
    mix-blend-mode: screen !important;
    filter: blur(22px) saturate(1.9) !important;
}

.g-reflect {
    opacity: .14 !important;
    filter: blur(38px) saturate(2) !important;
    z-index: 0 !important;
}

.g-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    opacity: .88 !important;
    background: linear-gradient(175deg, rgba(30, 18, 52, .85) 0%, rgba(10, 6, 20, .95) 100%) !important;
}

.g-blur {
    display: none !important;
}

/* === Main Card Content === */
.g-detail {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 22px 18px 18px !important;
    box-sizing: border-box !important;
    flex: 1 !important;
}

/* === Hero Image & Title === */
.detailtop {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    width: 100% !important;
}

.d-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.d-icon div {
    width: 184px !important;
    height: 184px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: rgba(20, 14, 36, .75) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .6),
        0 0 0 2px rgba(255, 255, 255, .1),
        inset 0 0 18px rgba(0, 0, 0, .25) !important;
    transition: transform .3s ease, box-shadow .3s ease !important;
}

.game-box:hover .d-icon div {
    transform: scale(1.04) !important;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, .7),
        0 0 20px rgba(233, 195, 73, .22),
        0 0 0 2px rgba(233, 195, 73, .4) !important;
}

.d-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* === Game Title & Subtitle Badge === */
.d-note {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

.d-note b {
    display: block !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .7) !important;
}

.d-note .description1 {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: rgba(255, 255, 255, .75) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .6px !important;
    text-transform: uppercase !important;
    background: rgba(255, 255, 255, .06) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
}

/* === Progress Bar (Vibrant Green Animated) === */
.game-box .progress,
.game-box .md-progress {
    position: relative !important;
    z-index: 3 !important;
    display: flex !important;
    width: 100% !important;
    height: 28px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    background: rgba(0, 0, 0, .48) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    margin: 6px 0 12px !important;
}

.game-box .progress-bar,
.game-box [class*="pb_"] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    color: #fff !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: background .25s ease, box-shadow .25s ease !important;
    line-height: 28px !important;
    border-radius: 7px !important;
    background-color: #22c55e !important;
    background-image: linear-gradient(90deg, #16a34a 0%, #22c55e 45%, #4ade80 75%, #22c55e 100%) !important;
    background-size: 100% 100% !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, .35) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: .4px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55) !important;
}

.game-box .progress-bar.is-low,
.game-box [class*="pb_"].is-low {
    background-color: #ef4444 !important;
    background-image: linear-gradient(90deg, #b91c1c 0%, #ef4444 45%, #f87171 75%, #dc2626 100%) !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, .45) !important;
}

/* === Stats Section === */
.detailbottom {
    position: relative !important;
    z-index: 3 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.detailrow {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
}

.detailrow.r1 {
    padding: 12px 8px !important;
    margin-bottom: 10px !important;
    background: rgba(8, 5, 18, .62) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, .07) !important;
}

.detailrow.r1 > div {
    text-align: center !important;
    flex: 1 !important;
    position: relative !important;
}

.detailrow.r1 > div:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 10% !important;
    height: 80% !important;
    width: 1px !important;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18), transparent) !important;
}

.detailrow .value {
    color: #E9C349 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(233, 195, 73, .15) !important;
    letter-spacing: .3px !important;
    transition: color .25s ease, text-shadow .25s ease !important;
}

.detailrow .value.is-low {
    color: #ef4444 !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, .35) !important;
}

.detailrow .title {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 11px !important;
    margin-top: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    font-weight: 600 !important;
}

/* === Cert & Language Badges === */
.detailrow.r2 {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 !important;
}

.cert,
.lang {
    text-align: center !important;
}

.cert .image,
.lang .image {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 5px !important;
}

.cert .image img,
.lang .image img {
    height: 26px !important;
    width: auto !important;
    opacity: 1 !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45) !important;
    transition: transform .2s ease !important;
}

.game-box:hover .cert .image img,
.game-box:hover .lang .image img {
    opacity: 1 !important;
    transform: scale(1.04) !important;
}

.lang .image div {
    display: inline-block !important;
}

.detailrow.r2 .cert,
.detailrow.r2 .lang {
    background: rgba(8, 5, 18, .65) !important;
    padding: 9px 10px !important;
    border-radius: 10px !important;
    flex: 1 !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    transition: background .2s ease !important;
}

.detailrow.r2 .cert .title,
.detailrow.r2 .lang .title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, .9) !important;
    text-align: center !important;
    letter-spacing: .3px !important;
    margin-top: 2px !important;
}

/* === Responsive Breakpoints === */
@media (max-width: 1024px) {
    .row.scanslot-grid-row,
    .elementor-widget-html .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px !important;
    }
}

@media (max-width: 640px) {
    .row.scanslot-grid-row,
    .elementor-widget-html .container > .row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .game-box {
        max-width: 100% !important;
        border-radius: 16px !important;
    }
    .d-icon div {
        width: 156px !important;
        height: 156px !important;
        border-radius: 18px !important;
    }
}
