.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}

.games-grid {

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 24px;

}

.game-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    transition: .35s;

}

.game-card:hover {

    transform: translateY(-8px);

    border-color: var(--accent);

    box-shadow: var(--shadow);

}

.game-image {

    position: relative;

    aspect-ratio: 4/3;

    overflow: hidden;

}

.game-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .5s;

}

.game-card:hover img {

    transform: scale(1.08);

}

.game-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    display: flex;

    justify-content: center;

    align-items: center;

    opacity: 0;

    transition: .35s;

}

.game-card:hover .game-overlay {

    opacity: 1;

}

.play-btn {

    padding: 12px 24px;

    background: var(--accent);

    border-radius: 30px;

    font-weight: 700;

}

.game-body {

    padding: 18px;

}

.game-category {

    font-size: 12px;

    color: #ffd54f;

    text-transform: uppercase;

    font-weight: 700;

    letter-spacing: 1px;

}

.game-category-slider {

    font-size: 12px;

    color: #ffd54f;

    text-transform: uppercase;

    font-weight: 700;

    letter-spacing: 1px;

    opacity: 1;

}

.game-body h3 {

    margin: 8px 0;

    font-size: 19px;

}

.game-body p {

    font-size: 14px;

    color: var(--text-dim);

}

/*
==========================================
Home Categories
==========================================
*/

.home-category {

    margin: 70px 0;

}

.category-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

    gap: 24px;

}

.category-card {

    background: linear-gradient(180deg, #171d27, #10151d);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    transition: .35s;

    position: relative;

    overflow: hidden;

}

.category-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg,

            rgba(123, 97, 255, .15),

            transparent);

    opacity: 0;

    transition: .35s;

}

.category-card:hover::before {

    opacity: 1;

}

.category-card:hover {

    transform: translateY(-8px);

    border-color: var(--accent);

    box-shadow: 0 18px 40px rgba(123, 97, 255, .30);

}

.category-icon {

    font-size: 48px;

    margin-bottom: 20px;

    transition: .4s;

}

.category-card:hover .category-icon {

    transform: rotate(-10deg) scale(1.1);

}

.category-title {

    font-size: 22px;

    font-weight: 700;

}

.category-games {

    margin-top: 10px;

    color: var(--text-dim);

}

.category-link {

    margin-top: 30px;

    color: var(--accent);

    font-weight: 700;

}

.category-link span {

    transition: .35s;

}

.category-card:hover .category-link span {

    margin-left: 8px;

}

/* 
===================
Old Category Card
=================== 
*/

.category-section {

    margin: 60px 0;

}

.category-section .section-header {

    margin-bottom: 25px;

}

.category-count {

    color: var(--text-dim);

    font-size: 14px;

}

.category-list {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

}

.category-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 20px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 999px;

    transition: .3s;

}

.category-item span {

    font-weight: 600;

}

.category-item small {

    color: var(--text-dim);

    background: #252c37;

    padding: 3px 10px;

    border-radius: 999px;

    font-size: 12px;

}

.category-item:hover {

    transform: translateY(-4px);

    border-color: var(--accent);

    box-shadow: 0 8px 24px rgba(123, 97, 255, .35);

}

.category-item:hover small {

    background: var(--accent);

    color: #fff;

}

/*==================================
Game Content
==================================*/
/* .content-card {

    margin-top: 14px;

    padding: 24px;

    background: #13141e;

    border-radius: 16px;
}

.content-body {

    color: var(--text-dim);
} */



.game-content {

    margin-top: 35px;

}

.content-card {

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 30px;

    box-shadow: var(--shadow);

}

.content-card h2 {

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 28px;

    margin-bottom: 25px;

}

.content-card h2 i {

    color: var(--accent);

}

.content-body {

    color: var(--text-dim);

    line-height: 1.9;

    font-size: 17px;

}

.content-body p {

    margin-bottom: 18px;

}

.content-body ul {

    margin-left: 25px;

    margin-bottom: 20px;

}

.content-body li {

    margin-bottom: 10px;

}

.content-body strong {

    color: #fff;

}

.content-body h3 {

    margin: 25px 0 12px;

    font-size: 22px;

}

.content-body a {

    color: var(--accent);

}

.content-body img {

    max-width: 100%;

    border-radius: 12px;

}

/*==================================
Game Player
==================================*/

.game-container {

    margin-top: 0px;

}

.landscape {

    max-width: 1200px;

    margin: auto;

}

.portrait {

    max-width: 500px;

    margin: auto;

}

.game-preview {

    position: relative;

    overflow: hidden;

    border-radius: 20px;

}

.game-preview img {

    width: 100%;

    display: block;

}

.preview-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(0, 0, 0, .55);

}

.play-game-btn {

    padding: 18px 45px;

    font-size: 22px;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    background: var(--accent);

    color: #fff;

}

.game-frame-wrapper {

    display: none;

    flex-direction: column;

    background: #000;

    border-radius: 20px;

    overflow: hidden;

}

.landscape iframe {

    width: 100%;

    height: 720px;

    display: block;

}

.portrait iframe {

    width: 100%;

    height: 820px;

}

.player-toolbar {

    display: flex;

    justify-content: flex-end;

    padding: 12px;

    background: #111827;

}

.player-toolbar button {

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    background: var(--accent);

    color: #fff;

}

.loader {

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    height: 720px;

    gap: 20px;

    color: #fff;

}

.spinner {

    width: 55px;

    height: 55px;

    border: 5px solid rgba(255, 255, 255, .15);

    border-top: 5px solid #fff;

    border-radius: 50%;

    animation: spin 1s linear infinite;

}

@keyframes spin {

    100% {

        transform: rotate(360deg);

    }

}

/*
================
Full Screen 
================
*/
.game-container:fullscreen {

    width: 100vw;

    height: 100vh;

    max-width: none;

    background: #000;

    display: flex;

    flex-direction: column;

}

.game-container:fullscreen .game-frame-wrapper {

    display: flex;

    height: 100%;

}

.game-container:fullscreen iframe {

    flex: 1;

    width: 100%;

    height: 100%;

}

.game-container:fullscreen .player-toolbar {

    flex-shrink: 0;

}