/* Legacy game-category and lobby pages. The desktop/mobile classes are emitted
   by layouts.legacy-page so each branch keeps the original reference DOM. */
.legacy-games-page .legacy-games-root {
    min-height: 560px;
    padding: 1px 0 52px;
    background: #000;
    color: #fff;
}

.legacy-games-page .legacy-games-root a {
    text-decoration: none;
}

.legacy-games-page .legacy-games-intro,
.legacy-games-page .legacy-catalog-heading {
    margin: 0 0 18px;
    text-align: center;
}

.legacy-games-page .legacy-games-intro .title,
.legacy-games-page .legacy-catalog-heading h2,
.legacy-games-page .legacy-mobile-games .title {
    margin: 0 0 5px;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.legacy-games-page .legacy-games-intro p,
.legacy-games-page .legacy-catalog-heading p {
    margin: 0;
    color: #aaa;
    font-size: 13px;
}

/* Mobile section styling */
.legacy-games-page .legacy-mobile-games {
    padding-bottom: 20px;
}

.legacy-games-page .legacy-mobile-games .container {
    padding: 0 8px;
}

/*
    legacy/mobile.css already paints .mobile-border as a full-bleed 3px accent rule, and the
    catalog stacks two of them exactly the way m/slots/game.php does. Giving them a height, a
    background and a 12px margin here added a second hairline to each and pulled them apart,
    so the pair read as two stray lines floating in an empty band under the search field.
*/
.legacy-games-page .legacy-mobile-games .mobile-border {
    height: 0;
    margin: 0;
    background: none;
}

.legacy-games-page .games-category .g-card,
.legacy-games-page .games-category .card-img {
    width: 100%;
}

.legacy-games-page .games-category .card-img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.legacy-games-page .games-category .card-img:hover {
    transform: scale(1.02);
}

.legacy-games-page .games-category .card-img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.legacy-games-page .games-category .card-img > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.legacy-games-page .games-category .hot-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    z-index: 4;
}

.legacy-games-page .games-category .new-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
    z-index: 4;
}

.legacy-games-page .games-category .g-title {
    margin-top: 8px;
    padding: 0 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legacy-games-page .games-category .card-img > img.legacy-provider-poster--logo {
    padding: 26px 42px;
    background: radial-gradient(circle at center, #1d5d4d 0, #101b18 48%, #050505 100%);
    object-fit: contain;
}

.legacy-games-page .games-category .card-title .logo span {
    display: block;
    width: 132px;
    height: 58px;
}

.legacy-games-page .games-category .card-title .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.legacy-games-page .games-category .g-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.legacy-games-page .games-category .card-img:hover .g-overlay {
    opacity: 1;
}

.legacy-games-page .games-category .btn-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.legacy-games-page .games-category .card-img:hover .btn-wrapper {
    opacity: 1;
}

.legacy-games-page .games-category .btn-hvrplay,
.legacy-games-page .games-category .btn-hvrplay .inner,
.legacy-games-page .games-category .btn-hvrplay .p1,
.legacy-games-page .games-category .btn-hvrplay .p2 {
    box-sizing: border-box;
}

.legacy-games-page .games-category .btn-hvrplay {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.legacy-games-page .games-category .btn-hvrplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.legacy-games-page .games-category .btn-hvrplay .inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legacy-games-page .games-category .btn-hvrplay .p1 {
    font-size: 14px;
}

.legacy-games-page .games-category .btn-hvrplay .p2 {
    font-size: 16px;
}

.legacy-games-page .legacy-provider-menu .slider {
    overflow: hidden;
}

.legacy-games-page .games-slider-menu .slider-content,
.legacy-games-page .legacy-provider-scroll .slider-content {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.legacy-games-page .games-slider-menu .slider-content::-webkit-scrollbar,
.legacy-games-page .legacy-provider-scroll .slider-content::-webkit-scrollbar {
    display: none;
}

/* Mobile provider grid styling */
.legacy-games-page .legacy-mobile-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
}

.legacy-games-page .legacy-mobile-provider-grid .provider-box {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s ease;
}

.legacy-games-page .legacy-mobile-provider-grid .provider-box:active {
    transform: scale(0.95);
}

.legacy-games-page .legacy-mobile-provider-grid .game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legacy-games-page .legacy-mobile-provider-grid .game {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.legacy-games-page .legacy-mobile-provider-grid .game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/*
    Desktop overlays the provider's real logo on top of its banner artwork (.card-title
    .logo below); the mobile grid never did (provider-tile.blade.php rendered the banner
    only). `.game` has no explicit position, so this anchors to `.provider-box`
    (position: relative, aspect-ratio 1/1) — exactly the tile's own bounds. Sized to a
    strip across the bottom rather than desktop's right-side badge: these tiles run
    ~90-130px square (3-per-row), too small for a corner badge to stay legible without
    covering most of the artwork. object-fit: contain (not cover) so oblong marks letterbox
    instead of stretching, and a raster/GIF logo with transparency reads cleanly against the
    translucent backing rather than the image behind it.
*/
.legacy-games-page .legacy-mobile-provider-grid .provider-logo-badge {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 6px;
    height: 30%;
    max-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: rgba(10, 11, 15, 0.72);
    border-radius: 6px;
    z-index: 3;
    pointer-events: none;
}

.legacy-games-page .legacy-mobile-provider-grid .provider-logo-badge img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.legacy-games-page .legacy-mobile-provider-grid .hot-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    z-index: 3;
}

.legacy-games-page .legacy-mobile-provider-grid .new-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5);
    z-index: 3;
}

/*
    m/slots.php marks a hot provider with an empty <div class="hot-tag"> and lets a reference
    sprite fill it. The chips above replace that sprite with a gradient pill, so the empty div
    rendered as a bare red blob beside the labelled NEW pill; give it the word the pill needs.
*/
.legacy-games-page .games-category .hot-tag:empty::after,
.legacy-games-page .legacy-mobile-provider-grid .hot-tag:empty::after {
    content: "Hot";
}

.legacy-games-page .legacy-mobile-provider-grid .loader-b {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.legacy-games-page .legacy-mobile-provider-grid .pgsoft_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.legacy-games-page .legacy-mobile-provider-grid video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Game card styling */
.legacy-games-page .game-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legacy-games-page .game-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/*
    Removed here (2026-09-03 cleanup): a duplicate `.image`/`.image img` pair forcing a 1:1
    square + object-fit:contain, a `.opacity_content .title-wrap` rule, a `.game-box:hover
    .image img` zoom, a `.name` gradient caption, a flex-centered `.game-overlay`, a rounded
    orange-pill `.game_button_play` (+ its own :hover lift), a `.progress-bar`, and a
    `.daily-wins-tag` pair. None of `.opacity_content`, `.title-wrap`, `.name`, `.progress-bar`
    or `.daily-wins-tag` is ever rendered by game-card.blade.php (grepped -- matches nothing on
    this grid). The `.image`/`.game-overlay`/`.game_button_play` rules were real but already
    always lost to the more specific `.legacy-games-page .legacy-games-grid .game-box ...`
    selectors below and to resources/css/legacy-game-card.css (loads last via @vite) -- two
    files fighting over one property with only one of them ever winning. legacy-game-card.css
    is now the single source of truth for `.image`, `.game-overlay` and `.game_button_play`
    inside this grid; see its header comment for the reference values it restores.
*/
.legacy-games-page .game-box .game-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile game card styling */
.legacy-games-page .legacy-mobile-game-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 7;
}

/*
    Mobile game cards.

    The card box only carries the tap feedback; its size, artwork and caption live in the
    body.mobile block at the end of this file, which follows m/slots/game.php. An earlier
    pass styled the same elements here as square, cropped, self-contained tiles. Only the
    properties the later block also declares were actually replaced, so the leftovers kept
    applying: aspect-ratio: 1/1 plus overflow: hidden clipped every <h5> out of sight, and
    the grid gap/padding pushed a third of the 33.333% columns onto the next line, leaving
    two ragged games per row.
*/
.legacy-games-page .legacy-mobile-games .game-box {
    position: relative;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.legacy-games-page .legacy-mobile-games .game-box:active {
    transform: scale(0.95);
}

.legacy-games-page .legacy-mobile-games .content-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Mobile filter buttons */
.legacy-games-page .legacy-mobile-games .filter {
    margin: 12px 0;
}

.legacy-games-page .legacy-mobile-games .btn-clear.f {
    width: 100%;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.legacy-games-page .legacy-mobile-games .btn-clear.f.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.legacy-games-page .legacy-mobile-games .btn-clear.f:active {
    transform: scale(0.95);
}

/* Mobile search form */
.legacy-games-page .legacy-mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 12px 8px;
}

.legacy-games-page .legacy-mobile-search i {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
    font-size: 16px;
}

.legacy-games-page .legacy-mobile-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.legacy-games-page .legacy-mobile-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.legacy-games-page .legacy-mobile-search a,
.legacy-games-page .legacy-mobile-search button {
    background: transparent;
    border: none;
    color: #f59e0b;
    padding: 4px;
    cursor: pointer;
}

.legacy-games-page .legacy-mobile-search i.icon-x-square,
.legacy-games-page .legacy-mobile-search i.icon-keyboard_arrow_right {
    font-size: 18px;
}

.legacy-games-page .games-slider-menu .slider-content .col,
.legacy-games-page .legacy-provider-scroll .slider-content .col {
    flex: 0 0 auto;
}

.legacy-games-page .games-slider-menu .btn-box img,
.legacy-games-page .legacy-provider-scroll .btn-box img {
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.legacy-games-page .legacy-provider-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    margin: 0 auto;
    color: #fff;
    font-size: 42px;
}

.legacy-games-page .legacy-provider-all i::before {
    margin: 0;
}

.legacy-games-page .games-slider-menu .btn-box.active,
.legacy-games-page .legacy-provider-scroll .btn-box.active {
    color: #fff;
    background: #008262;
}

.legacy-games-page .legacy-catalog-heading {
    padding-top: 7px;
}

.legacy-games-page .g_category-nav .navlink.active {
    color: #fff;
    background: #008262;
}

.legacy-games-page .g_category-nav .search_filter {
    display: flex;
    align-items: center;
}

.legacy-games-page .g_category-nav .search_filter .search {
    min-width: 0;
}

.legacy-games-page .g_category-nav .search_filter .srch_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legacy-games-page .legacy-games-grid {
    position: relative;
}

.legacy-games-page.desktop .legacy-games-grid,
.desktop.legacy-games-page .legacy-games-grid {
    display: flex;
}

.legacy-games-page .legacy-games-grid .game-box {
    overflow: hidden;
}

.legacy-games-page .legacy-games-grid .game-box .image,
.legacy-games-page .legacy-games-grid .game-box .image img {
    width: 100%;
}

/*
    display:block and the !important opacity floor are real and unopposed (nothing else in
    either owned stylesheet sets them for this element). aspect-ratio/object-fit are dropped
    here on purpose -- resources/css/legacy-game-card.css declares the same exact selector
    with the real values (165/220, cover) and loads last via @vite, so this rule's old
    aspect-ratio:1/object-fit:contain never painted; keeping both was two files fighting over
    one property for no visible effect.
*/
.legacy-games-page .legacy-games-grid .game-box .image img {
    display: block;
    opacity: 1 !important;
}

/*
    The desktop game box follows legacy/desktop.css for its title, badge placement, and
    progress bar. The focus alias below only exposes the existing overlay to keyboard users.
    The button's own centered position on focus (matching :hover) is set by
    resources/css/legacy-game-card.css alongside its :hover twin -- see that file's header
    comment for why a flat top:45% cannot be reused verbatim here.
*/

.desktop.legacy-games-page .legacy-games-grid .game-box:focus-within .game-overlay {
    opacity: 1;
    visibility: visible;
}

.legacy-games-page .legacy-games-empty {
    display: flex;
    flex: 1 0 100%;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #bbb;
    text-align: center;
}

.legacy-games-page .legacy-games-empty i {
    color: #008262;
    font-size: 38px;
}

.legacy-games-page .legacy-games-empty strong {
    color: #fff;
    font-size: 15px;
}

.legacy-games-page .legacy-games-empty span {
    font-size: 12px;
}

body.desktop.legacy-games-page .legacy-mobile-games {
    display: none !important;
}

body.desktop.legacy-games-page .legacy-desktop-games {
    display: block;
}

body.mobile.legacy-games-page .legacy-desktop-games {
    display: none !important;
}

body.mobile.legacy-games-page .legacy-mobile-games {
    display: block;
}

body.mobile.legacy-games-page .legacy-games-root {
    min-height: calc(100vh - 154px);
    padding: 0 0 88px;
}

body.mobile.legacy-games-page .games-category {
    min-height: 0 !important;
    padding-bottom: 26px;
}

body.mobile.legacy-games-page .games-category > .title,
body.mobile.legacy-games-page .sub-games > div > .title {
    margin: 0;
    padding: 11px 2px 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
}

body.mobile.legacy-games-page .games-category .image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 8px;
}

body.mobile.legacy-games-page .games-category .image-grid .box {
    width: auto;
    max-width: none;
    padding: 0;
}

body.mobile.legacy-games-page .games-category .game-wrapper {
    min-height: 0 !important;
    margin: 0;
}

body.mobile.legacy-games-page .games-category .game-wrapper .game,
body.mobile.legacy-games-page .games-category .game-wrapper img {
    display: block;
    width: 100%;
}

body.mobile.legacy-games-page .games-category .game-wrapper img {
    height: auto;
    aspect-ratio: 1;
    border-radius: 5px;
    background: #111;
    object-fit: contain;
    opacity: 1 !important;
}

body.mobile.legacy-games-page .legacy-provider-scroll {
    position: relative;
    display: flex;
    height: 72px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/*
    The strip scrolls by touch. #left-button-mobile / #right-button-mobile ship disabled and
    aria-hidden with no script bound to them, so reserving 25px gutters for them only chopped
    two black notches out of the ends of the accent strip.
*/
body.mobile.legacy-games-page .legacy-provider-scroll .left,
body.mobile.legacy-games-page .legacy-provider-scroll .right {
    display: none;
}

body.mobile.legacy-games-page .legacy-provider-scroll .scroller {
    width: 100%;
    overflow: hidden;
}

body.mobile.legacy-games-page .legacy-provider-scroll .slider-content {
    height: 72px;
    margin: 0;
}

body.mobile.legacy-games-page .legacy-provider-scroll .slider-content .col {
    flex: 0 0 82px;
    width: 82px;
    padding: 0;
}

body.mobile.legacy-games-page .legacy-provider-scroll .btn-box {
    display: block;
    width: 100%;
    min-width: 0;
    height: 70px;
    padding: 3px 2px;
    overflow: hidden;
    border-radius: 3px;
    color: #fff;
}

body.mobile.legacy-games-page .legacy-provider-scroll .btn-box img {
    width: 70px;
    height: 46px;
}

body.mobile.legacy-games-page .legacy-provider-scroll .legacy-provider-all {
    width: 70px;
    height: 46px;
    font-size: 31px;
}

body.mobile.legacy-games-page .legacy-provider-scroll .game-title {
    height: 18px;
    overflow: hidden;
    font-size: 9px !important;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.mobile.legacy-games-page .sub-games .filter {
    margin-top: 5px;
}

body.mobile.legacy-games-page .sub-games .filter .btn {
    display: block;
    width: 100%;
    border-radius: 0;
    color: #aaa;
    font-size: 12px;
}

body.mobile.legacy-games-page .sub-games .filter .btn.active {
    color: #fff;
    border-bottom: 2px solid #008262;
}

body.mobile.legacy-games-page .legacy-mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 7px 0 8px;
    padding: 7px 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #1c1c1c;
}

body.mobile.legacy-games-page .legacy-mobile-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 12px;
}

body.mobile.legacy-games-page .legacy-mobile-search button,
body.mobile.legacy-games-page .legacy-mobile-search a {
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
}

body.mobile.legacy-games-page .legacy-games-grid {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 -3px;
    padding: 0;
}

body.mobile.legacy-games-page .legacy-games-grid::before,
body.mobile.legacy-games-page .legacy-games-grid::after {
    display: none;
}

body.mobile.legacy-games-page .legacy-games-grid .game-box {
    position: relative;
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
    padding: 3px;
    color: #fff;
}

body.mobile.legacy-games-page .legacy-games-grid .content-wrapper {
    position: relative;
    width: 100%;
    height: auto !important;
}

/*
    Artwork ratio varies by provider - Pragmatic ships 800x600, PG Soft 3:4 portraits,
    Habanero squares - so the square frame keeps the rows even, and contain keeps the game
    logo intact instead of cropping a quarter of it away.
*/
body.mobile.legacy-games-page .legacy-games-grid .content-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 4px;
    object-fit: contain;
    opacity: 1 !important;
}

body.mobile.legacy-games-page .legacy-games-grid h5 {
    margin: 4px 0 6px;
    padding: 0 2px;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 374px) {
    body.mobile.legacy-games-page .games-category .image-grid {
        gap: 5px;
        padding: 0 5px;
    }

    body.mobile.legacy-games-page .legacy-provider-scroll .slider-content .col {
        flex-basis: 76px;
        width: 76px;
    }
}
