/* Riot-style Games Carousel Styles */
#riot-showcase {
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.riot-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.riot-header h2 {
    font-family: 'Akira Expanded Demo', Arial, sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.riot-carousel-outer {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.riot-carousel-container {
    display: flex;
    gap: 15px;
    padding: 60px 0;
    width: fit-content;
    /* We'll handle animation with JS for better control */
    will-change: transform;
}

.riot-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.riot-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.riot-nav-btn.prev {
    left: 20px;
}

.riot-nav-btn.next {
    right: 20px;
}




.riot-card {
    position: relative;
    min-width: 320px;
    height: 480px;
    background-color: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    transition: min-width 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
    transform: skewX(-12deg) translateZ(0);
    /* translateZ(0) forces hardware acceleration */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(0.6);
    will-change: min-width, transform, filter;
    /* Hint browser to optimize these */
}

.riot-card.active,
.riot-card:focus {
    outline: none;
    min-width: 440px;
    transform: skewX(-12deg) translateY(-15px) scale(1.02) translateZ(0);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2);
    filter: brightness(1);
}

.riot-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 30px 60px rgba(0, 0, 0, 0.8);
}


.riot-card-inner {
    width: 140%;
    /* Compensate for increased skew */
    height: 100%;
    transform: skewX(12deg) translateX(-15%);
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.riot-card.active .riot-card-inner {
    transform: skewX(12deg) translateX(-15%) scale(1.1);
}

.riot-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: opacity 0.3s ease;
}

.riot-card.active .riot-card-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.riot-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    color: #fff;
    transform: translateY(20px) skewX(12deg);
    transition: transform 0.4s ease;
}

.riot-card.active .riot-card-content {
    transform: translateY(0) skewX(12deg);
}

.riot-card-title {
    font-family: 'Akira Expanded Demo', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.riot-card-category {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.riot-platform-icons {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.riot-card.active .riot-platform-icons {
    opacity: 1;
}

.platform-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Keyframes not needed for discrete slider */

@media (max-width: 768px) {
    .riot-card {
        min-width: 200px;
        height: 400px;
    }

    .riot-header h2 {
        font-size: 1.8rem;
    }
}