/*==================================================
    OLD FRIV GAMES
    STYLE V2
==================================================*/

/*==================================================
    GOOGLE FONT
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

/*==================================================
    ROOT VARIABLES
==================================================*/

:root{

    --bg:#2d0b52;
    --bg-light:#3b1475;
    --panel:#4a1d8a;
    --panel-hover:#5c28ad;

    --primary:#6f2cff;
    --primary-hover:#8450ff;

    --yellow:#ffd400;
    --yellow-hover:#ffea61;

    --white:#ffffff;
    --text:#ececec;
    --muted:#b9a9d8;

    --border:rgba(255,255,255,.08);

    --radius:14px;

    --shadow:
        0 10px 25px rgba(0,0,0,.30);

    --transition:.25s ease;

}

/*==================================================
    RESET
==================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;
    width:100%;

overflow-x:hidden;

}

body{

    background:
        linear-gradient(
            180deg,
            #2d0b52 0%,
            #3b1475 100%
            
        );

    font-family:'Fredoka',sans-serif;

    color:var(--white);

    overflow-x:hidden;
    
    min-width:320px;

    line-height:1.6;

}

/*==================================================
    COMMON
==================================================*/

img{

    max-width:100%;
    display:block;

}

a{

    color:inherit;
    text-decoration:none;

}

button{

    font-family:inherit;

}

input{

    font-family:inherit;

}

ul{

    list-style:none;

}

/*==================================================
    CONTAINER
==================================================*/

.container{

width:100%;

max-width:1600px;

margin:auto;

padding:0 20px;

}

.container-fluid{

    width:100%;

    margin:0;

    padding:0;

}

/*==================================================
    SCROLLBAR
==================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#2a0b50;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-hover);

}

/*==================================================
    HEADER
==================================================*/

.header{

    position:sticky;

    top:0;

    z-index:999;

    background:rgba(44,10,82,.96);

    backdrop-filter:blur(10px);

    border-bottom:1px solid var(--border);

    box-shadow:var(--shadow);

}

/*==================================================
    HEADER WRAPPER
==================================================*/

.header-wrapper{

    height:82px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

/*==================================================
    LOGO
==================================================*/

.logo{

    display:flex;

    align-items:center;

}

.logo img{

    height:60px;

    width:auto;

}

.logo-text{

    font-size:32px;

    font-weight:700;

    color:var(--yellow);

    letter-spacing:1px;

}

/*==================================================
    MENU
==================================================*/

.menu{

    display:flex;

    align-items:center;

    gap:30px;

}

.menu a{

    color:#fff;

    font-size:17px;

    font-weight:600;

    transition:var(--transition);

    position:relative;

}

.menu a:hover{

    color:var(--yellow);

}

.menu a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--yellow);

    transition:var(--transition);

}

.menu a:hover::after{

    width:100%;

}

/*==================================================
    HEADER RIGHT
==================================================*/

.header-right{

    display:flex;

    align-items:center;

    gap:18px;

    position:relative;

}

/*==================================================
    SEARCH
==================================================*/

.search-wrapper{

    position:relative;

    width:300px;

    flex-shrink:0;

}

.search-box{

    display:flex;

    align-items:center;

    width:100%;

    height:46px;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

}

.search-box input{

    flex:1;

    width:240px;

    min-width:0;

    padding:13px 15px;

    border:none;

    outline:none;

    font-size:15px;

    color:#333;

    background:#fff;

}

#searchResults{
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    width:100%;
    background:#fff;
    border-radius:12px;
    border:1px solid #ddd;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    max-height:420px;
    overflow-y:auto;
    display:none;
    z-index:99999;
}

.search-box button{

    width:54px;

    height:46px;

    border:none;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    transition:var(--transition);

}

.search-box button:hover{

    background:var(--primary-hover);

}

.search-item{

display:flex;
align-items:center;
gap:10px;
padding:10px;
text-decoration:none;
color:#333;
border-bottom:1px solid #eee;

}

.search-item:last-child{

    border-bottom:none;

}

.search-item:hover{

background:#f7f7f7;

}
.search-item img{

    width:60px;

    height:60px;

    border-radius:8px;

    object-fit:cover;

    flex-shrink:0;

}

.search-item span{

    font-size:15px;

    font-weight:600;

    line-height:1.4;

}

.search-empty{

padding:15px;
text-align:center;

}

/*==================================================
    FAVORITE BUTTON
==================================================*/

.favorite{

    display:flex;

    align-items:center;

    justify-content:center;

    width:44px;

    height:44px;

    border-radius:12px;

    background:var(--panel);

    color:#fff;

    transition:var(--transition);

}

.favorite:hover{

    background:var(--primary);

}

/*==================================================
    MAIN LAYOUT
==================================================*/

.main-layout{

    width:100%;

}

.left-content{

    min-width:0;

}

.right-sidebar{

    display:flex;

    flex-direction:column;

    gap:20px;

}
/*==================================================
    HOMEPAGE SECTION
==================================================*/

.homepage-section{

    margin-bottom:40px;

}

.homepage-section h2{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:20px;

    font-size:26px;

    font-weight:700;

    color:var(--yellow);

}

/*==================================================
    FRIV GAMES GRID
==================================================*/

.games{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

    align-items:flex-start;

}

/*==================================================
    GAME CARD
==================================================*/

.card{

    flex:0 0 120px;

    width:120px;

    min-height:170px;

    background:#53258f;

    border:2px solid rgba(255,255,255,.08);

    border-radius:14px;

    overflow:hidden;

    transition:.25s;

}

.card:hover{

    transform:translateY(-4px);

    border-color:#FFD54F;

}

/*==================================================
    GAME IMAGE
==================================================*/

.card img{

    display:block;

    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;

}

/*==================================================
    GAME TITLE
==================================================*/

.card span{

    display:block;

    padding:10px 8px;

    font-size:15px;

    font-weight:700;

    text-align:center;

    line-height:1.3;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

}

@media (max-width:1200px){

.card{

    flex:0 0 115px;
    width:115px;

}

}

@media (max-width:768px){

.card{

    flex:0 0 105px;
    width:105px;

}

}

@media (max-width:480px){

.card{

    flex:0 0 calc(33.333% - 10px);

    width:auto;

}

}

/*==================================================
    OPTIONAL GAME INFO
==================================================*/

.game-info{

    padding:8px;

}

.game-title{

    display:block;

    font-size:11px;

    text-align:center;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

/*==================================================
    BADGES
==================================================*/

.badge{

    position:absolute;

    top:6px;

    left:6px;

    padding:3px 7px;

    border-radius:20px;

    font-size:10px;

    font-weight:700;

    color:#fff;

    z-index:10;

}

.badge-new{

    background:#16a34a;

}

.badge-hot{

    background:#ef4444;

}

.badge-featured{

    background:#f59e0b;

    color:#000;

}

/*==================================================
    BUTTONS
==================================================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 24px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:#fff;

    font-weight:600;

    cursor:pointer;

    transition:var(--transition);

}

.btn:hover{

    background:var(--primary-hover);

}

.btn-yellow{

    background:var(--yellow);

    color:#000;

}

.btn-yellow:hover{

    background:var(--yellow-hover);

}

/*==================================================
    LOAD MORE
==================================================*/

.load-more{

    display:flex;

    justify-content:center;

    margin:35px 0;

}

.load-more a{

    display:inline-block;

    padding:14px 34px;

    background:var(--primary);

    color:#fff;

    border-radius:14px;

    font-weight:700;

    transition:var(--transition);

}

.load-more a:hover{

    background:var(--primary-hover);

}

/*==================================================
    ADVERTISEMENT
==================================================*/

.ad-box{

    background:rgba(255,255,255,.05);

    border:2px dashed rgba(255,255,255,.15);

    border-radius:14px;

    padding:35px 20px;

    text-align:center;

    font-size:18px;

    color:#d6c7ff;

    margin:30px 0;

}

/*==================================================
    SMALL AD
==================================================*/

.ad-small{

    padding:20px;

    font-size:15px;

}

.header-ad-box{
    max-width:760px;
    margin:20px auto 30px;
    padding:15px;
    background:#4b1f84;
    border:2px solid rgba(255,255,255,.08);
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.25);
    text-align:center;
}

.header-ad-label{
    display:inline-block;
    margin-bottom:12px;
    padding:4px 12px;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    color:#FFD54F;
    background:rgba(255,255,255,.08);
    border-radius:30px;
    letter-spacing:1px;
}

/*==================================================
    PANEL
==================================================*/

.panel{

    background:var(--panel);

    border-radius:14px;

    padding:20px;

    border:1px solid rgba(255,255,255,.08);

}

/*==================================================
    PANEL TITLE
==================================================*/

.panel-title{

    font-size:22px;

    font-weight:700;

    color:var(--yellow);

    margin-bottom:18px;

}

/*==================================================
    HOVER EFFECTS
==================================================*/

.scale:hover{

    transform:scale(1.05);

}

.shadow:hover{

    box-shadow:0 12px 30px rgba(0,0,0,.35);

}

/*==================================================
    UTILITIES
==================================================*/

.text-center{

    text-align:center;

}

.mt-20{

    margin-top:20px;

}

.mt-30{

    margin-top:30px;

}

.mb-20{

    margin-bottom:20px;

}

.mb-30{

    margin-bottom:30px;

}
/*==================================================
    SIDEBAR
==================================================*/

.sidebar-box{

    background:var(--panel);

    border:1px solid var(--border);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

}

.sidebar-title{

    padding:15px 18px;

    background:var(--primary);

    color:#fff;

    font-size:18px;

    font-weight:700;

}

/*==================================================
    CATEGORY LIST
==================================================*/

.category-list li{

    border-bottom:1px solid rgba(255,255,255,.06);

}

.category-list li:last-child{

    border-bottom:none;

}

.category-list a{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 18px;

    transition:var(--transition);

}

.category-list a:hover{

    background:var(--panel-hover);

    padding-left:24px;

}

.category-count{

    font-size:13px;

    opacity:.75;

}

/*==================================================
    LATEST / POPULAR LIST
==================================================*/

.latest-games{

    padding:12px;

}

.latest-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px;

    border-radius:12px;

    transition:var(--transition);

}

.latest-item:hover{

    background:rgba(255,255,255,.06);

}

.latest-item img{

    width:60px;

    height:60px;

    border-radius:10px;

    object-fit:cover;

}

.latest-item h4{

    font-size:14px;

    margin-bottom:4px;

    color:#fff;

}

.latest-item span{

    font-size:12px;

    color:var(--muted);

}

/*==================================================
    PAGINATION
==================================================*/

.pagination{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    margin:45px 0;

}

.pagination a{

    min-width:45px;

    padding:12px 16px;

    text-align:center;

    background:var(--panel);

    border-radius:10px;

    transition:var(--transition);

}

.pagination a:hover{

    background:var(--primary);

}

.pagination .active{

    background:var(--yellow);

    color:#000;

    font-weight:700;

}

/*==================================================
    GAME PAGE
==================================================*/

.game-page{

    margin:25px 0;

}

.game-player{

    position:relative;

    width:100%;

    aspect-ratio:16/9;

    overflow:hidden;

    border-radius:16px;

    background:#000;

    box-shadow:var(--shadow);

}

.game-player iframe{

    width:100%;

    height:100%;

    border:none;

}

.game-description{

    margin-top:30px;

    background:var(--panel);

    padding:25px;

    border-radius:16px;

}

.game-description h2{

    margin-bottom:15px;

    color:var(--yellow);

}

.game-description p{

    color:var(--text);

    line-height:1.8;

}

/*==================================================
    RELATED GAMES
==================================================*/

.related-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));

    gap:12px;

    margin-top:25px;

}

/*==================================================
    CATEGORY HEADER
==================================================*/

.category-header{

    margin-bottom:30px;

    text-align:center;

}

.category-header h1{

    font-size:42px;

    color:var(--yellow);

    margin-bottom:10px;

}

.category-header p{

    color:var(--muted);

    font-size:18px;

}

/*==================================================
    SEARCH PAGE
==================================================*/

.search-header{

    margin-bottom:25px;

}

.search-header h1{

    font-size:34px;

    color:var(--yellow);

}

.search-header p{

    margin-top:10px;

    color:var(--muted);

}

/*==================================================
    BREADCRUMB
==================================================*/

.breadcrumb{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-bottom:20px;

    font-size:14px;

}

.breadcrumb a{

    color:var(--yellow);

}

.breadcrumb span{

    color:var(--muted);

}

/*==================================================
    FOOTER
==================================================*/

.footer{

    margin-top:60px;

    background:#22063f;

    border-top:1px solid rgba(255,255,255,.08);

}

.footer-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:35px;

    padding:50px 0;

}

.footer h3{

    color:var(--yellow);

    margin-bottom:15px;

}

.footer p{

    color:var(--muted);

    line-height:1.8;

}

.footer a{

    display:block;

    margin-bottom:10px;

    color:var(--muted);

    transition:var(--transition);

}

.footer a:hover{

    color:#fff;

}

.copyright{

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

    padding:20px;

    color:var(--muted);

}

/*==================================================
    ANIMATIONS
==================================================*/

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-5px);

    }

    100%{

        transform:translateY(0);

    }

}

.float{

    animation:float 3s ease-in-out infinite;

}
/*==================================================
FOOTER FIX
==================================================*/

.site-footer{

    width:100%;

    background:#24073f;

    margin-top:70px;

}

.footer-top{

    width:100%;

    max-width:1600px;

    margin:0 auto;

    padding:60px 20px;

    display:grid;

    grid-template-columns:1.3fr 1fr 1fr 1.2fr;

    gap:40px;

}

.footer-widget img{

    max-width:180px;

    margin-bottom:20px;

}

.footer-widget h3{

    color:var(--yellow);

    font-size:24px;

    margin-bottom:18px;

}

.footer-widget p{

    color:var(--muted);

    line-height:1.8;

}

.footer-links{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.footer-links a{

    color:var(--muted);

    transition:.25s;

}

.footer-links a:hover{

    color:#fff;

}

.social-links{

    display:flex;

    gap:12px;

    margin-top:18px;

}

.social-links a{

    width:42px;

    height:42px;

    border-radius:50%;

    background:var(--primary);

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

}

.social-links a:hover{

    background:var(--yellow);

    color:#000;

}

.newsletter{

    display:flex;

    margin-top:18px;

}

.newsletter input{

    flex:1;

    height:48px;

    border:none;

    outline:none;

    padding:0 15px;

    border-radius:10px 0 0 10px;

}

.newsletter button{

    border:none;

    padding:0 20px;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    border-radius:0 10px 10px 0;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

    padding:22px 0;

    color:var(--muted);

}

@media(max-width:992px){

.footer-top{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.footer-top{

    grid-template-columns:1fr;

}

.newsletter{

    flex-direction:column;

    gap:10px;

}

.newsletter input{

    border-radius:10px;

}

.newsletter button{

    height:48px;

    border-radius:10px;

}

}
.footer-logo{

    max-height:60px;

    width:auto;

    display:block;

    margin:0 auto 15px;

}
@media(max-width:768px){

.footer-logo{

    max-height:45px;

}

}
.footer-pages{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin-top:20px;

    padding:0;

    list-style:none;

}

.footer-pages li a{

    color:#ddd;

    text-decoration:none;

    transition:.3s;

}

.footer-pages li a:hover{

    color:#fff;

}
#favoriteBtn.active{

    background:#ff2d55;

    color:#fff;

    border-color:#ff2d55;

}

/*======================================
CATEGORY PAGE V4
======================================*/

.category-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:22px;

}

.category-card{

    background:#34105d;

    border:2px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:22px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    align-items:center;

    text-align:center;

    min-height:220px;

    transition:.25s;

}

.category-card:hover{

transform:translateY(-6px);

border-color:#FFD54F;

box-shadow:0 15px 35px rgba(0,0,0,.35);

}

.category-top{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:15px;

    width:100%;

}

.cat-icon{

width:70px;

height:70px;

border-radius:18px;

background:#6f2cff;

display:flex;

align-items:center;

justify-content:center;

font-size:30px;

color:#fff;

flex-shrink:0;

}

.cat-info{

    text-align:center;

    width:100%;

}

.cat-info h3{

font-size:24px;

margin:0 0 6px;

color:#fff;

}

.cat-info p{

margin:0;

font-size:15px;

color:#bfb8dc;

}

.category-divider{

height:1px;

background:rgba(255,255,255,.08);

margin:20px 0;

}

.category-bottom{

display:flex;

justify-content:center;

align-items:center;

gap:10px;

font-size:17px;

font-weight:700;

color:#c68cff;

}

.category-card:hover .category-bottom{

color:#FFD54F;

}

@media(max-width:1400px){

.category-grid{

grid-template-columns:repeat(4,1fr);

}

}

@media(max-width:1100px){

.category-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:768px){

.category-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:520px){

.category-grid{

grid-template-columns:1fr;

}

}

.menu-toggle{

display:none;

width:46px;

height:46px;

border:none;

background:#6f2cff;

color:#fff;

border-radius:12px;

font-size:20px;

cursor:pointer;

}

.mobile-menu{

position:fixed;

top:0;

right:-320px;

width:300px;

max-width:85vw;

height:100vh;

background:#2b084a;

z-index:999999;

transition:right .3s ease;

overflow-y:auto;

padding:20px;

box-sizing:border-box;

}

.mobile-menu-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.mobile-menu-header h3{
    color:#fff;
    font-size:22px;
    font-weight:700;
}

.menu-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:#6f2cff;
    color:#fff;
    cursor:pointer;
    font-size:20px;
}

.mobile-menu.active{

right:0;

}

.mobile-menu nav{

display:flex;

flex-direction:column;

gap:18px;

margin-top:25px;

}

.mobile-menu a{

font-size:18px;

font-weight:600;

}

.mobile-search form{

display:flex;

}

.mobile-search input{

flex:1;

height:46px;

border:none;

padding:0 15px;

border-radius:10px 0 0 10px;

}

.mobile-search button{

width:52px;

border:none;

background:#6f2cff;

color:#fff;

border-radius:0 10px 10px 0;

}

#menuOverlay{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.55);

display:none;

z-index:999998;

}

#menuOverlay.active{

display:block;

}

@media(max-width:768px){

.menu{

display:none;

}

.search-wrapper{

display:none;

}

.menu-toggle{

display:flex;

align-items:center;

justify-content:center;

}

.header-wrapper{

height:80px;

}

}
/*======================================
Homepage About
======================================*/

.homepage-about{

margin:60px 0;

padding:40px;

background:#2d0a52;

border:1px solid rgba(255,255,255,.08);

border-radius:20px;

}

.homepage-about h2{

font-size:34px;

color:#FFD600;

margin-bottom:25px;

}

.homepage-about-content{

font-size:18px;

line-height:2;

color:#ddd;

}

.homepage-about-content p{

margin-bottom:18px;

}

/*======================================
Homepage FAQ
======================================*/

.homepage-faq{

margin:70px 0;

}

.homepage-faq h2{

font-size:34px;

margin-bottom:30px;

color:#FFD600;

}

.faq-item{

background:#2d0a52;

border-radius:15px;

margin-bottom:15px;

overflow:hidden;

border:1px solid rgba(255,255,255,.08);

}

.faq-question{

padding:22px;

cursor:pointer;

font-size:20px;

font-weight:700;

display:flex;

justify-content:space-between;

align-items:center;

}

.faq-answer{

display:none;

padding:0 22px 22px;

line-height:1.9;

color:#ddd;

}

.faq-item.active .faq-answer{

display:block;

}

.faq-item.active span{

transform:rotate(45deg);

}