* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #0b0c1a 0%, #12142b 100%);
    color: #ffffff;
    overflow-x: hidden;
}

.bg-bubble {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-bubble span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 80, 120, 0.25);
    backdrop-filter: blur(8px);
    animation: floatBubble 18s infinite ease-in-out;
}

@keyframes floatBubble {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) rotate(10deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 30px 60px;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD166, #FF6B6B, #6C63FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-bar input {
    background: transparent;
    border: none;
    padding: 5px 10px;
    color: white;
    width: 120px;
    outline: none;
}

.logo-img {
    width: 160px;
}

.search-bar button {
    background: #FF6B6B;
    border: none;
    border-radius: 40px;
    padding: 5px 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.search-bar button:hover {
    background: #FF4757;
    transform: scale(0.96);
}

.hero-swiper {
    margin-bottom: 20px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-slide {
    position: relative;
    /*height: 380px;*/
    background-size: cover;
    background-position: center;
}

.slide-content {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.font-bold {
    font-weight: bold;
}

.slide-cate {
    background: #4294e1;
    width: fit-content;
    padding: 5px 20px;
    font-weight: bold;
    border-radius: 60px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2rem;
    margin: 40px 0 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    letter-spacing: -0.3px;
    border-left: 6px solid #FF6B6B;
    padding-left: 10px;
}

.section-title span {
    background: linear-gradient(120deg, #F9F9FF, #C084FC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.flex-gap-12 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flex-gap-12 i {
    color: #FFB347;
}

.grid-standard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px;
}

.grid-standard .game-card .card-img {
    aspect-ratio: 1;
}

.grid-waterfall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-waterfall .game-card:nth-child(1) {
    grid-row: span 1;
}

.grid-waterfall .game-card:nth-child(2) {
    grid-row: span 2;
}

@media screen and (min-width: 768px) {
    .grid-waterfall .game-card:nth-child(2) .card-img, .grid-hero .game-card:first-child .card-img {
        aspect-ratio: 1;
    }

    .grid-asym .game-card:nth-child(2) .card-img, .grid-asym .game-card:nth-child(5) .card-img {
        aspect-ratio: 1;
    }
}

.grid-waterfall .game-card:nth-child(5) {
    grid-row: span 1;
}

.grid-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
}

.grid-hero .game-card:first-child {
    grid-row: span 2;
    height: 100%;
}

.grid-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-radial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-banner-mix {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.grid-banner-mix .game-card {
    flex: 1 1 200px;
}

.grid-asym {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 20px;
}

.grid-scroll-x {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.grid-scroll-x .game-card {
    min-width: 200px;
    flex-shrink: 0;
}

.grid-rainbow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-card {
    background: rgba(20, 24, 45, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 255, 240, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #FFB347;
    box-shadow: 0 25px 35px -12px rgba(255, 100, 100, 0.4);
}

.card-img {
    /*height: 140px;*/
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    /*padding: 10px;*/
}

.card-badge {
    background: #FF6B6B;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.card-img img {
    width: 100%;
    height: 100%;
}

.card-info {
    padding: 16px 14px 18px;
}

.card-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    /*display: flex;*/
    justify-content: space-between;
}

.card-info p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.rating {
    color: #FFD966;
    font-size: 0.8rem;
}

.category-icon {
    font-size: 1.8rem;
    /*margin-right: 12px;*/
    color: #FFB347;
}

.game-hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 55px;
    background: rgba(15, 20, 40, 0.45);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
}

.game-cover {
    min-width: 250px;
    border-radius: 36px;
    width: 100%;
    max-width: 540px;
    margin: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-cover:hover img {
    transform: scale(1.05);
}

.game-info-detail {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-badge-cat {
    background: linear-gradient(135deg, #FFB347, #FF6B6B);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    width: fit-content;
    margin-bottom: 18px;
    font-weight: bold;
}

.game-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFF, #FFD966, #FF8C8C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.game-description {
    line-height: 1.6;
    font-size: 1rem;
    opacity: 0.9;
}

.play-now-btn {
    background: linear-gradient(95deg, #FF416C, #FF4B2B);
    border: none;
    padding: 14px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    color: white;
    width: fit-content;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 20px rgba(255, 75, 43, 0.4);
    margin: auto;

}

.play-now-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 65, 108, 0.6);
}

@media (max-width: 900px) {
    .container {
        margin: 10px 15px;
        padding: 0;
    }

    .grid-waterfall, .grid-hero, .grid-asym, .grid-magazine {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-waterfall .game-card:nth-child(2) {
        grid-row: span 1;
    }

    .grid-hero .game-card:first-child {
        grid-row: span 1;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

a {
    text-decoration: none;
    color: white;
}

.swiper-slide {
    display: flex;
}

.slide-img {
    flex: 1.2;
    display: flex;
}

.slide-img img {
    aspect-ratio: 16 / 9;
    width: 100%;
}


.footer-list {
    display: flex;
    margin: 20px auto;
    justify-content: center;
    align-items: center;
    gap: 8px;

    color: #555;
    font-size: 16px;
}

.footer-item {
    color: #a09c9c;
}


.copyright {
    padding-top: 2rem;
    border-top: 1px solid #d5d5d585;
}

.max-line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.max-line-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.max-line-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.pc-menu-list {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pc-menu-list a {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.5;
    color: #9a9a9a;
}

.detail-desc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width: 768px) {
    .detail-desc {
        -webkit-line-clamp: 2;
    }
}

.desc_btn {
    background: #0776de;
    padding: 10px 10px;
    border-radius: 5px;
    width: fit-content;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 1rem 0;
    line-height: 1;
}


.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    transform: translateX(-50%) scale(0.9);
    background: #24b8d1e6;
    backdrop-filter: blur(12px);
    color: white;
    border-radius: 60px;
    font-weight: 1000;
    width: 40px;
    opacity: 0;
    transition: 0.2s;
    z-index: 99999;
    font-size: 0.95rem;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top i {
    font-size: 24px;
}

.scroll-top.show {
    opacity: 1;
}


.menu-main {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    right: -100%;
    z-index: 100000;
    transition: right .3s ease;
}

.menu-main.show {
    right: 0;
}

.menu-bg {
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.42);
}

.menu-info {
    position: absolute;
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    top: 0;
    right: 0;
    background: #2e1e70;

    z-index: 100001;
    padding: 1.5rem 1rem;
}

.menu-close {
    font-size: 36px;
    color: #fff;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0 0;
    margin-top: 1.5rem;
    border-top: 1px dashed #d1d1d1;
}

.menu-item {
    color: #fff;
    font-weight: 1000;
    font-size: 20px;
    font-family: "Poppins", serif;
    text-transform: uppercase;

}

.menu-item i {
    font-size: 20px;
}

.detail-info p, .detail-info li {
    font-size: 16px;
    color: #a09c9c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.detail-info li {
    list-style: disc;
}

.detail-info ul {
    padding-left: 30px;
    list-style: disc;
}

.detail-info h1, .detail-info h2, .detail-info h3, .detail-info h4, .detail-info h5, .detail-info h6 {
    color: #656464;
    margin: 10px 0;
    font-weight: bold;
    line-height: 1.3;
}

.detail-info h1 {
    font-size: 26px;
}

.detail-info h2 {
    font-size: 24px;
}

.detail-info h3 {
    font-size: 22px;
}

.detail-info h4 {
    font-size: 20px;
}

.detail-info h5, .detail-info h6 {
    font-size: 18px;
}

.detail-info a {
    color: #076dde;
    text-decoration: underline;
}

@media screen and (max-width: 568px){
    .swiper-backface-hidden .swiper-slide {
        flex-direction: column;
    }

    .slide-content {
        position: absolute;
        bottom: 0;
        width: 100%;
        padding: 10px 10px 15px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
        backdrop-filter: none;
        border-radius: 0 0 20px 20px;
    }

    .slide-cate {
        margin: 0;
    }

    .slide-desc {
        display: none;
    }

    .grid-radial {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media screen and (max-width: 768px){
    .menu-btn {
        display: flex;
    }

    .pc-only {
        display: none;
    }

    .search-bar input {
        padding: 10px 20px;
        width: 180px;
    }

    .game-hero {
        padding: 20px;
    }

    .game-title {
        font-size: 2rem;
        font-weight: 1000;
    }
}