/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#070b14;
    color:#fff;
    font-family:Arial,sans-serif;
}

.container{
    width:95%;
    max-width:1200px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

.top-header{
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
        url("assets/image/header-banner.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding:18px 0;

    position: sticky;
    top:0;
    z-index:9999;
    width:100%;
}
.top-header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:3px solid #00d4ff;
    padding-bottom:15px;
}

/* =========================
   LOGO
========================= */

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img,
.site-logo{
    width:100px;
    height:100px;
    object-fit:contain;
}

.logo h1{
    color:#00d4ff;
    font-size:34px;
    margin-bottom:3px;
}

.logo p{
    color:#bbb;
    font-size:15px;
}

/* =========================
   SEARCH BOX
========================= */

.search-box{
    width:100%;
    max-width:420px;
    margin:22px auto 18px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.search-box input{
    flex:1;
    height:44px;
    border:none;
    outline:none;
    border-radius:10px;
    padding:0 15px;
    font-size:15px;
    background:#fff;
}

.search-box button{
    width:44px;
    height:44px;
    border:none;
    border-radius:10px;
    background:#00d4ff;
    color:#fff;
    cursor:pointer;
    font-size:18px;
    transition:.3s;
}

.search-box button:hover{
    background:#00b8df;
}

/* =========================
   HERO
========================= */

.hero{
    padding:18px 0;
}

.hero .container{
    border-bottom:2px solid #00d4ff;
    padding-bottom:18px;
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.section-title h2{
    font-size:28px;
    color:#00d4ff;
}

.section-title p{
    color:#ccc;
    margin-top:5px;
    font-size:15px;
}

.view-all{
    color:#00d4ff;
    text-decoration:none;
    border:2px solid #00d4ff;
    padding:8px 16px;
    border-radius:8px;
    transition:.3s;
}

.view-all:hover{
    background:#00d4ff;
    color:#000;
}
/* =========================
   GAME GRID
========================= */

.games-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-top:20px;
}

/* =========================
   GAME CARD
========================= */

.game-card{
    background:#111827;
    border:1px solid #243244;
    border-radius:16px;
    overflow:hidden;
    transition:.3s;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
}

.game-card:hover{
    transform:translateY(-6px);
    border-color:#00d4ff;
    box-shadow:0 10px 25px rgba(0,212,255,.25);
}

.game-link{
    display:block;
    text-decoration:none;
    color:#fff;
}

.game-image{
    position:relative;
    background:#0d1117;
}

.game-image img{
    width:100%;
    height:180px;
    object-fit:contain;
    background:#0d1117;
    padding:8px;
}

.game-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#18c964;
    color:#fff;
    padding:5px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    z-index:10;
}

.game-content{
    padding:15px;
}

.game-content h3{
    font-size:20px;
    margin-bottom:8px;
}

.company{
    color:#bdbdbd;
    font-size:14px;
    margin-bottom:12px;
}

.game-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:15px;
    color:#ffd54f;
    font-weight:bold;
}

/* =========================
   NOTICE
========================= */

.notice-box{
    width:95%;
    max-width:1200px;
    margin:40px auto;
    background:#1b1f2c;
    border-left:5px solid #ff3b30;
    border-radius:12px;
    padding:20px;
}

.notice-box h2{
    color:#ff5252;
    margin-bottom:10px;
}

.notice-box p{
    color:#ddd;
    line-height:1.7;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#111827;
    margin-top:40px;
    padding:30px 0;
}

.footer .container{
    border-top:2px solid #00d4ff;
    padding-top:25px;
    text-align:center;
}

.footer h2{
    color:#00d4ff;
    margin-bottom:10px;
}

.footer p{
    color:#bbb;
    margin:8px 0;
}

.footer-links{
    margin:18px 0;
}

.footer-links a{
    color:#00d4ff;
    text-decoration:none;
    margin:0 12px;
}

.footer-links a:hover{
    color:#fff;
}

.copyright{
    font-size:14px;
    color:#888;
    margin-top:15px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.top-header .container{
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.logo{
    flex-direction:column;
    gap:8px;
}

.logo h1{
    font-size:26px;
}

.logo p{
    font-size:14px;
}

.search-box{
    max-width:300px;
    margin:18px auto;
}

.search-box input{
    height:42px;
    font-size:14px;
}

.search-box button{
    width:42px;
    height:42px;
}

.hero{
    padding:15px 0;
}

.section-title{
    flex-direction:column;
    gap:12px;
}

.section-title h2{
    font-size:22px;
}

.section-title p{
    font-size:14px;
}

.view-all{
    font-size:14px;
    padding:7px 14px;
}

/* =========================
   GAME GRID
========================= */

.games-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin:20px 0;
}

.game-card{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
    transition:.3s;
}

.game-card:hover{
    transform:translateY(-5px);
}

.game-link{
    text-decoration:none;
    color:#222;
    display:block;
}

.game-image{
    position:relative;
    background:#f5f5f5;
    padding:10px;
}

.game-image img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
}

.game-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#19c941;
    color:#fff;
    padding:4px 10px;
    border-radius:20px;
    font-size:11px;
    font-weight:bold;
}

.game-content{
    padding:12px;
}

.game-title{
    font-size:17px;
    font-weight:700;
    color:#111;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.game-version{
    font-size:13px;
    color:#666;
    margin:6px 0;
}

.game-rating{
    color:#ffb400;
    font-size:14px;
}

.notice-box{
    padding:15px;
}

.footer{
    padding:20px 0;
}

/* ===== 3D BACKGROUND ===== */

#bg3d{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    overflow:hidden;
}

canvas{
    display:block;
}

/* Website content background */

.top-header,
.hero,
.notice-box,
.footer,
.game-card{
    position:relative;
    z-index:2;
}

.container{
    position:relative;
    z-index:2;
}
/* ===== Animated Hero Background ===== */

.hero{
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,#08121f,#0d1b2a,#10263f);
}

.hero::before{
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle, rgba(0,229,255,.25) 0%, transparent 35%),
        radial-gradient(circle, rgba(0,170,255,.20) 30%, transparent 60%),
        radial-gradient(circle, rgba(0,255,200,.18) 60%, transparent 85%);
    background-size: 600px 600px;
    animation: bgMove 18s linear infinite;
    z-index: 0;
}

.hero .container{
    position: relative;
    z-index: 2;
}

@keyframes bgMove{
    0%{
        transform: rotate(0deg) scale(1);
    }
    100%{
        transform: rotate(360deg) scale(1.1);
    }
}

}
.admin-back-btn{
    display:inline-block;
    background:#00c8ff;
    color:#fff;
    padding:10px 20px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.admin-back-btn:hover{
    background:#0099cc;
}
/* =================================
   HEADER NAVIGATION
================================= */

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.header-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
    white-space:nowrap;
}

.header-nav a{
    color:#00e5ff;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
    transition:0.3s;
}

.header-nav a:hover{
    color:#ffffff;
}


/* =================================
   MOBILE HEADER
================================= */

@media (max-width:700px){

    .header-inner{
        gap:8px;
    }

    .header-nav{
        gap:9px;
    }

    .header-nav a{
        font-size:12px;
    }

    .logo h1{
        font-size:20px;
    }

    .logo p{
        font-size:11px;
    }

    .site-logo{
        width:45px;
        height:45px;
    }

}