body {
    margin: 0;
    background: #0f1f27;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.top-nav {
    height: 60px;
    background: #12232d;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.nav-inner {
    width: 1146px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-inner img.logo {
    height: 40px;
}

.tg-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-box img {
    height: 22px;
}

.tg-box span {
    color: white;
    font-size: 14px;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.container {
    width: 1146px;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.banner-img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.banner-img img {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.search-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 20px 0;
}

.search-inner {
    width: 1146px;
    max-width: 100%;
    height: 48px;
    background: #13232c;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    margin-right: 10px;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #b4c4cc;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.game-item {
    background: #1a2c35;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform .15s;
}

.game-item:hover {
    transform: scale(1.05);
}

.game-item img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.game-name {
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}

.banner-box-pc, .banner-box-h5 {
    display: none;
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .game-item {
        padding: 8px;
    }

    .game-name {
        font-size: 13px;
        margin-top: 6px;
    }

    .search-inner {
        height: 44px;
    }

    .container {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        gap: 8px;
    }

    .game-item {
        padding: 6px;
    }

    .game-name {
        font-size: 12px;
    }
}

.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.skeleton-item {
    background: #1a2c35;
    border-radius: 10px;
    padding: 10px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a2c35 25%, #243a47 50%, #1a2c35 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    height: 16px;
    margin-top: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a2c35 25%, #243a47 50%, #1a2c35 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 900px) {
    .loading-skeleton {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .loading-skeleton {
        gap: 8px;
    }
}
