
/* CrazyGames-style Card Carousel */

.card-carousel {
    margin: 0 0 20px 0;
    position: relative;
    overflow: visible;
    padding: 0 36px; /* space for arrows */
}
.carousel-slide {
    padding: 0 4px;
}
.card-carousel .card {
    width: 128px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #181a20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform 0.16s cubic-bezier(.4,0,.2,1), box-shadow 0.16s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    position: relative;
}
.card-carousel .card:hover {
    transform: scale(1.045);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    z-index: 2;
}
.card-carousel .card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    background: #222;
    display: block;
}
.card-carousel .card .card-body {
    padding: 8px 4px 12px 4px;
    width: 100%;
    text-align: center;
}
.card-carousel .card .card-body h3 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
    text-align: left;
}
.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
    transform: translateY(-50%);
}
.carousel-prev, .carousel-next {
    pointer-events: all;
    background: #23242a;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.18s;
    outline: none;
}
.carousel-prev:hover, .carousel-next:hover {
    background: #393a40;
}
@media (max-width: 900px) {
    .card-carousel .card { width: 104px; }
}
@media (max-width: 600px) {
    .card-carousel { padding: 0 4px; }
    .card-carousel .card { width: 84px; }
    .carousel-prev, .carousel-next { width: 28px; height: 28px; font-size: 15px; }
}
