* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f9fbfd;
    font-family: sans-serif;
    color: #0b1120;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    background: #d3f5f9;
}

.hero {
    background: radial-gradient(circle at 10% 30%, #1a2639, #0f172a);
    border-radius: 0px 0px 15px 15px;
    margin: 0px -10px 20px -10px;
    padding: 15px 10px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF, #a5f3fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #cbd5e6;
    max-width: 540px;
}

.search-area {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    padding: 6px 6px 6px 24px;
    display: flex;
    gap: 8px;
}

.search-area input {
    background: transparent;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
    width: 180px;
    color: white;
    outline: none;
}

.search-area input::placeholder {
    color: #9ca3af;
}

.display-flex {
    display: flex!important;
}

.search-area button {
    background: #3b82f6;
    border: none;
    border-radius: 60px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: 0.2s;
}

.search-area button:hover {
    background: #2563eb;
    transform: scale(0.96);
}

.category-section {
    margin-bottom: 40px;
}

.mag-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.justify-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-left: 6px solid #3b82f6;
    padding-left: 15px;
}

.cat-header h2 {
    font-size: 1.9rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.cat-header .cat-more {
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: default;
}

.game-card {
    cursor: pointer;
    transition: all 0.25s ease;
}

.game-card:active {
    transform: scale(0.98);
}

.layout-mega-horizontal {
    display: grid;
    gap: 20px;
    scrollbar-width: thin;
    padding-bottom: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.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: #0A9B80;

    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: 24px;
    font-family: "Poppins", serif;
    text-transform: uppercase;
}

.mega-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}

.mega-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 30px -12px rgba(0, 0, 0, 0.2);
}

.mega-img {
    width: 100%;
    background: linear-gradient(145deg, #334155, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.mega-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.mega-info {
    padding: 12px 12px 15px;
}

.mega-cate {
    background: #eef2ff;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    margin-top: 8px;
    font-weight: 600;
    color: #818181;
}
.mega-desc {
    margin-top: 8px;
    color: #475569;
}

.waterfall-double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.flex-1 {
    flex: 1;
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.play-hot {
    display: flex;
    gap: 5px;
    align-items: center;
    color: #1fcdc2;
    line-height: 1;
}

.rpg-card {
    background: white;
    border-radius: 28px;
    display: flex;
    gap: 16px;
    padding: 14px;
    align-items: center;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2ff;
}

.rpg-content {
    width: 83%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rpg-content .game-desc {
    font-size: 0.75rem;
    color: #4b5563;
    width: 100%;
}

.rpg-thumb {
    width: 75px;
    height: 75px;
    background: #e0f2fe;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.rpg-thumb img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
}

.rpg-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.bento-magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.bento-item {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.bento-img {
    width: 100%;
    background: #fae8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.bento-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px 15px 0 0;
}

.bento-img img:first-child {
    border-radius: 15px 0 0 15px;
}

.bento-info {
    padding: 14px;
}

.bento-info p {
    color: #979797;
}

.bento-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.bento-item:first-child .bento-img {
    width: 60%;
    border-radius: 15px;
    height: auto;
}

.stack-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
}

.stack-card {
    background: white;
    width: calc(25% - 20px);
    border-radius: 32px;
    /*padding: 18px 12px 18px 12px;*/
    text-align: center;
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    position: relative;
}

.stack-img, .cube-img {
    display: flex;
    width: 100%;
}

.stack-img img, .cube-img img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
}

.stack-info, .cube-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    color: #ffffff;
    background: #3333334a;
    padding: 5px 10px;
    border-radius: 0 0 12px 12px;
}

.stack-info p {
    background: #62ff62;
    padding: 2px 15px;
    border-radius: 100px;
    width: fit-content;
    margin: auto;
    color: #848282;
    font-weight: bold;
}

.cube-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stack-card:hover {
    transform: translateY(-6px) rotate(0.5deg);
    background: #fff7ed;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-row {
    background: white;
    border-radius: 80px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 20px 8px 12px;
    border: 1px solid #eef2ff;
    transition: 0.1s;
}

.timeline-icon {
    width: 56px;
    height: 56px;
    background: #d9f9f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.timeline-icon img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
}

.masonry-uneven {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.music-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.music-card:hover {
    transform: translateY(-12px);
}

.music-img {
    width: 100%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.music-img img {
    width: 100%;
    aspect-ratio: 16/9;
}

.circle-scroll {
    display: flex;
    gap: 30px;
}

.circle-card {
    text-align: center;
    background: #ffffffcc;
    backdrop-filter: blur(4px);
    border-radius: 15px;
    padding: 18px 12px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.circle-icon {
    background: #e6f7ff;
    width: 100px;
    height: 100px;
    /*border-radius: 100px;*/
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.circle-icon img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.duel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.duel-col {
    background: white;
    border-radius: 36px;
    padding: 18px;
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.08);
}

.duel-game {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 50px;
}

.magazine-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mag-row {
    background: white;
    border-radius: 30px;
    display: flex;
    gap: 22px;
    align-items: center;
    padding: 12px 22px;
}

.mag-row-img {
    width: 90px;
    height: 90px;
    background: #d9f9f0;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.heroic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.survival-card {
    background: linear-gradient(115deg, #fff, #f8fcff);
    border-radius: 38px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.08);
}

.puzzle-cubes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cube-card {
    background: white;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
    position: relative;
}

@media (max-width: 1000px) {
    .bento-magazine {
        grid-template-columns: repeat(2, 1fr);
    }

    .waterfall-double {
        grid-template-columns: 1fr;
    }

    .stack-card {
        width: calc(50% - 20px);
    }

    .masonry-uneven {
        grid-template-columns: repeat(2, 1fr);
    }

    .duel-grid {
        grid-template-columns: 1fr;
    }

    .heroic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {

    .puzzle-cubes {
        grid-template-columns: 1fr 1fr;
    }

    .stack-card {
        width: 100%;
    }

    .cat-header h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 12px;
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    transform: translateX(-50%) scale(0.9);
    background: #0b1120e6;
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 8px;
    border-radius: 60px;
    font-weight: 1000;
    opacity: 0;
    transition: 0.2s;
    z-index: 99999;
    font-size: 0.95rem;
}

.menu-btn {
    display: none;
    width: 36px;
    aspect-ratio: 1;
}

.menu-btn i {
    width: 100%;
    height: 100%;
    font-size: 32px;
}

.scroll-top.show {
    opacity: 1;
}

footer {
    text-align: center;
    margin: 15px auto;
    color: #5b6e8c;
    border-top: 1px solid #e3e3e3;
}

.logo-icon {
    /*width: 160px;*/
    height: 50px;
}

.footer-list {
    display: flex;
    margin: 40px auto 2rem;
    justify-content: center;
    align-items: center;
    gap: 8px;

    color: #555;
    font-size: 16px;
}

.footer-item {
    color: #555;
}

.detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0 48px 0;
    background: white;
    border-radius: 48px;
    padding: 32px 36px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
}

.game-cover {
    flex: 1.5;
    flex-direction: column;
    gap: 20px;
    background: radial-gradient(circle at 30% 20%, #f1f5f9, #e0e7ff);
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    padding: 40px 20px;
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: auto;
}

.game-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
}

.game-info {
    flex: 2;
}

.game-info h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0;
}

.meta-badge {
    background: #eef2ff;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}

.desc-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #334155;
    margin: 15px 0;
}

.play-btn {
    background: #40d335;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 18px -6px #3b82f670;
}

.play-btn:hover {
    background: #2563eb;
    transform: scale(1.02);
}


.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: 3;
    }
}

.desc_btn {
    background: #0776de;
    padding: 10px 10px;
    border-radius: 5px;
    width: fit-content;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-top: 1rem;
    line-height: 1;
}


.detail-info p, .detail-info li {
    font-size: 16px;
    color: #656464;
    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: #333;
    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: #07de76;
    text-decoration: underline;
}

a {
    text-decoration: auto;
    color: #333;
}

.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;
}

@media screen and (max-width: 768px) {
    .circle-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .layout-mega-horizontal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mega-card {
        border-radius: 15px;
    }

    .stack-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .play-hot {
        display: none;
    }

    .search-area {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .detail-hero {
        gap: 20px;
        margin: 20px 0;
        padding: 15px;
        border-radius: 30px;
        flex-direction: column;
    }

    .game-cover {
        padding: 20px 10px;
        border-radius: 20px;
    }

    .game-info h1 {
        font-size: 1.8rem;
    }

    .search-bar input {
        padding: 10px 20px;
        width: 180px;
    }
}