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

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --bg-main: #000412;
    --bg-topbar: #040a20;
    --bg-sidebar: #030a21;
    --bg-card: rgba(20, 26, 50, 0.7);
    --bg-card-hover: rgba(28, 36, 65, 0.88);
    --primary: #834fff;
    --primary-hover: #7c3aed;
    --pink: #ec4899;
    --text-white: #ffffff;
    --text-muted: #6b7280;
    --sub-text: #cacbce;
    --sub-text2: #d5d5d6;
    --sub-view-all: #939394;
    --text-light: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 90px;
    --topbar-height: 80px;
    --topbar-height2: 110px;
    --wg-surface: #181b27;
    --wg-surface-2: #1e2235;
    --wg-border: rgba(255, 255, 255, 0.07);
    --wg-accent: #8b5cf6;
    --wg-accent-2: #7c3aed;
    --wg-green: #22c55e;
    --wg-text: #e2e8f0;
    --wg-muted: #94a3b8;
    --wg-radius: 16px;
    --wg-radius-sm: 10px;
    --wg-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   RESET & BASE
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
    background-color: var(--bg-main);
    /* PATH FIXED: was url('Background.png') */
    background-image: url('/images/Background.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-attachment: fixed;
    background-position: center top;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    padding-top: var(--topbar-height);
}

section[id] {
    scroll-margin-top: calc(var(--topbar-height) + 10px);
}

/* ============================================================
   CUSTOM SCROLLBAR (WebKit)
============================================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 99px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

#sidebar::-webkit-scrollbar {
    display: none;
}

#sidebar {
    scrollbar-width: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   SIDEBAR OVERLAY (mobile backdrop)
============================================================ */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

#sidebar-overlay.active {
    display: block;
}

/* ============================================================
   SIDEBAR CLOSE BUTTON (mobile only)
============================================================ */
.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-end;
    margin: 0 12px 8px auto;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: #e53e3e;
    border-color: #e53e3e;
}

/* ============================================================
   LAYOUT: SIDEBAR + MAIN
============================================================ */
#layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
}

/* --- SIDEBAR --- */
#sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100vh - var(--topbar-height));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    scrollbar-width: none;
}

#sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-nav {
    width: 100%;
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 500;
    transition: color 0.2s;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.sidebar-nav li a i {
    font-size: 1.15rem;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: var(--text-white);
}

.sidebar-nav li a.active i {
    color: var(--primary);
}

/* --- MAIN CONTENT --- */
#main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   TOPBAR
============================================================ */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    background-color: var(--bg-topbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
}

.topbar-menu-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    /* hidden on desktop */
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.topbar-menu-btn:hover {
    color: var(--primary);
}

.topbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

/* .topbar-logo:hover { opacity: 0.85; } */
.topbar-logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
}

.topbar-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.topbar-search form {
    width: 100%;
}

.topbar-search input {
    width: 100%;
    background: #000412;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px 10px 24px;
    color: var(--sub-text2);
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.topbar-search input::placeholder {
    color: var(--sub-text2);
}

.topbar-search input:focus {
    border-color: var(--primary);
}

.topbar-search {
    position: absolute;
    left: 200px;
    top: 50%;
    width: calc(100% - 390px);
    transform: translateY(-50%);
    color: var(--text-white);
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    /* left: 50%; */
    top: 30%;
    /* transform: translateY(-50%); */
    /* color: var(--text-muted); */
    /* font-size: 0.9rem; */
    /* pointer-events: none; */
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
}

.topbar-icon-btn:hover {
    background: var(--bg-card-hover);
}

.topbar-login-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.topbar-login-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

/* Mobile search btn */
.topbar-search-mobile-btn {
    display: none;
}

/* ============================================================
   TOPBAR RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    #topbar {
        padding: 0 16px;
        gap: 12px;
    }

    .topbar-search {
        display: none;
    }

    .topbar-search.show {
        display: block;
        position: absolute;
        top: var(--topbar-height2);
        left: 0;
        right: 0;
        min-width: 100%;
        padding: 12px 6px;
        background: var(--bg-topbar);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(16px);
    }

    .topbar-search-mobile-btn {
        display: flex;
    }

    .topbar-logo-img {
        height: 48px;
    }

    .topbar-actions {
        gap: 8px;
    }

    .topbar-login-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    #topbar {
        padding: 0 12px;
        gap: 8px;
    }

    .topbar-menu-btn {
        padding: 6px;
        font-size: 1.2rem;
    }

    .topbar-logo-img {
        height: 42px;
    }

    .topbar-actions {
        gap: 6px;
    }

    #notif-btn {
        display: none;
    }

    .topbar-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .topbar-login-btn {
        padding: 7px 13px;
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    #topbar {
        padding: 0 10px;
        gap: 6px;
    }

    .topbar-logo-img {
        height: 36px;
    }

    #user-btn {
        display: none;
    }

    .topbar-login-btn {
        padding: 6px 11px;
        font-size: 0.7rem;
    }
}

/* ============================================================
   MINI NAVBAR (game-playing mode, desktop only)
============================================================ */
#wg-mini-navbar {
    display: none; /* hidden by default; JS uses removeAttribute('hidden') + this flex */
    align-items: center;
    gap: 12px;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: rgba(4, 10, 32, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px 6px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: wg-mini-fadein 0.25s ease;
}

#wg-mini-navbar:not([hidden]) {
    display: flex;
}

@keyframes wg-mini-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wg-mini-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.wg-mini-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.wg-mini-search-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.wg-mini-search-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
    transform: scale(1.08);
}

/* Hide mini-navbar on mobile (feature is desktop-only) */
@media (max-width: 768px) {
    #wg-mini-navbar {
        display: none !important;
    }
}

/* ============================================================
   PAGE CONTENT
============================================================ */
#content {
    padding: 28px 28px 0 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.01em;
}

.view-all-link {
    font-size: 0.8rem;
    color: var(--text-white);
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--text-white);
}

/* ============================================================
   TOP PICKS / BANNER GRID
============================================================ */
.top-picks-section {
    margin-bottom: 26px;
    padding: 28px 28px 0;
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px;
    gap: 10px;
    overflow: hidden;
}

.tp-hero,
.tp-center-hero {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
}

.tp-hero a,
.tp-center-hero a,
.tp-top a,
.tp-small a {
    display: block;
    width: 100%;
    height: 100%;
}

.tp-hero img,
.tp-center-hero img,
.tp-top img,
.tp-small img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: center; */
}

.mobile-view {
    display: none;
    visibility: hidden;
}

.desktop-view {
    display: block;
}

.tp-col {
    display: flex;
    flex-direction: column;
    gap: 10px;

    /* flex:1; */
}

.tp-bottom-row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.tp-small {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    min-height: 0;
}

.small-desktop {
    display: block;
}

.small-mobile {
    display: none;
}

.play-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    opacity: 1;
    transition: opacity 0.2s;
}

.tp-hero:hover .play-overlay,
.tp-center-hero:hover .play-overlay,
.tp-top:hover .play-overlay,
.tp-small:hover .play-overlay {
    opacity: 1;
}

/* Banner swiper styled for new theme */
.winz-banner-swiper {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
    margin-bottom: 36px;
    padding: 0 28px;
}

.winz-banner-swiper .swiper-container {
    border-radius: 16px;
    overflow: hidden;
}

.winz-banner-swiper .swiper-slide img {
    width: 100%;
    aspect-ratio: 16/6;
    object-fit: cover;
    border-radius: 16px;
}

.winz-banner-swiper .prev,
.winz-banner-swiper .next {
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.winz-banner-swiper .prev:hover,
.winz-banner-swiper .next:hover {
    background: var(--primary);
}

/* ============================================================
   CATEGORIES
============================================================ */
.categories-section {
    margin-bottom: 26px;
    padding: 0 28px;
}

.categories-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 174px;
    height: 124px;
    padding: 12px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
    text-decoration: none;
}

.category-item:hover,
.category-item.active {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.category-item .cat-icon {
    width: 65px;
    height: 65px;
    background: rgba(236, 72, 153, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--pink);
}

.category-item span {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-white);
}

.category-item:hover span,
.category-item.active span {
    color: var(--text-white);
}

/* ============================================================
   MOST POPULAR CARDS — 7-col portrait
============================================================ */
.most-popular-section {
    margin-bottom: 26px;
    padding: 0 28px;
}

/* .games-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
} */
.games-grid-7 {
    display: grid;
    grid-auto-flow: column;
    /* grid-auto-columns: 160px; */
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
     scrollbar-width: thin; /* Firefox */
      scrollbar-color: transparent transparent;
}
/* Chrome, Edge, Safari */
.games-grid-7::-webkit-scrollbar {
    height: 6px;
}

.games-grid-7::-webkit-scrollbar-track {
    background: transparent;
}

.games-grid-7::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s;
}

/* Show scrollbar on hover */
.games-grid-7:hover {
    scrollbar-color: var(--bg-main); /* Firefox */
}

.games-grid-7:hover::-webkit-scrollbar-thumb {
    background: var(--bg-main);
}

.game-border {
    border-style: solid;
    border-width: 1px;
    border-color: #1a1e2a;
    border-radius: 20px;
    background-color: rgb(0, 4, 18);
    /* opacity: 0.1; */
    padding: 10px 10px;
}

.game-card {
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px;
    border-color: #1a1e2a;
    border-radius: 20px;
    background-color: rgb(0, 4, 18);
    /* opacity: 0.1; */
    padding: 10px 10px;
}


.game-card-thumb {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card) !important;
    aspect-ratio: 3/4;
    position: relative;
    margin-bottom: 8px;
    background-color: #000412;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Forces the image to crop perfectly into the 3:4 box */
    object-position: center;
    background: transparent;
    transition: transform 0.3s;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.04);
}

.game-card-name {
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 8px;
    /* Slightly increased to give breathing room above the button */

    /* FIXES THE CUT OFF WORD ISSUE: */
    white-space: normal;
    /* Crucial: Allows text to naturally wrap to a new line */
    line-height: 1.3;
    /* Gives letters proper vertical breathing room */
    min-height: 24px;
    /* Reserves vertical space so 1-line titles align perfectly with 2-line titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-now {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    width: 100%;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-play-now:hover {
    background: var(--primary-hover);
}

/* ============================================================
   NEW ARRIVALS — 5-col landscape
============================================================ */
.new-arrivals-section {
    margin-bottom: 26px;
    padding: 0 28px;
}

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

.game-card-landscape {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 16/10;
    position: relative;
    cursor: pointer;
}

.game-card-landscape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card-landscape:hover img {
    transform: scale(1.04);
}

.game-card-landscape .play-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
}

/* ============================================================
   PREMIUM GAMES
============================================================ */
.premium-section {
    margin-bottom: 26px;
    padding: 0 28px;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 8px;
    /* min-height: 292px; */
}

.premium-text {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bg-color {
    background: var(--bg-card);
}

.premium-text h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.premium-text p {
    font-size: 0.78rem;
    color: var(--sub-text);
    line-height: 1.1;
    margin-bottom: 13px;
}

.btn-read-more {
    display: inline-block;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.btn-read-more:hover {
    background: var(--primary-hover);
}

.premium-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* min-height: 292px; */
}

.premium-game-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 16/10;
    position: relative;
    cursor: pointer;
}

.premium-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.premium-game-card:hover img {
    transform: scale(1.03);
}

/* ============================================================
   MORE GAMES — 6-col landscape
============================================================ */
.more-games-section {
    margin-bottom: 26px;
    padding: 0 28px;
}

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

.game-link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.game-link-wrap .game-card-name {
    margin-top: 6px;
}

.load-more-wrapper {
    text-align: center;
    padding: 28px 0 36px;
}

.btn-load-more {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 11px 40px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    letter-spacing: 0.06em;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-load-more:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-section {
    margin: 0 28px;
    margin-bottom: 26px;
    background: var(--bg-topbar);
    border-top: 1px solid var(--border);
    padding: 40px 28px;
    border-radius: 12px;
}

.about-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.about-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.about-text p {
    font-size: 0.8rem;
    color: var(--sub-text);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background-color: #040a20;
    padding: 48px 28px 24px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 38px;
    height: 46px;
    /* background: linear-gradient(135deg, #8b5cf6, #ec4899); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.footer-logo-text .text-main {
    display: block;
    color: var(--text-white);
    font-size: 1.25rem;
}

.footer-logo-text .text-sub {
    display: block;
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-col h6 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--sub-text2);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-white);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* ============================================================
   BACK TO TOP BUTTON
============================================================ */
.winz-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.winz-back-to-top.visible {
    display: flex;
}

.winz-back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ============================================================
   FLASH MESSAGE (dark theme)
============================================================ */
#flash-message {
    display: none;
    position: fixed;
    top: calc(var(--topbar-height) + 16px);
    right: 20px;
    z-index: 1000;
    background: var(--bg-card-hover);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-white);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   ADS BLOCKER MODAL (dark theme)
============================================================ */
#ads-blocker-modal {
    background: rgba(6, 11, 24, 0.96) !important;
    backdrop-filter: blur(12px);
}

#ads-blocker-modal .modal-box,
#ads-blocker-modal>div {
    background: var(--bg-card-hover) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    color: var(--text-white) !important;
}

/* ============================================================
   WINZ MOBILE LANDING (winzgames.com mobile only)
============================================================ */
.winz-mobile-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.winz-mobile-content {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.winz-mobile-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.winz-mobile-hero h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
}

.winz-mobile-hero p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.winz-mobile-cats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px 20px;
}

.winz-mobile-cats>p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 16px;
}

.winz-mobile-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.winz-mobile-cat-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.winz-mobile-cat-btn:hover {
    background: var(--primary-hover);
}

/* ============================================================
   GENERIC PAGE CONTAINER (for inner pages)
============================================================ */
.winz-page {
    padding: 28px;
}

.winz-page-header {
    margin-bottom: 28px;
}

.winz-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.winz-page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dark card container */
.winz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

/* Dark form inputs */
.winz-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.winz-input::placeholder {
    color: var(--text-muted);
}

.winz-input:focus {
    border-color: var(--primary);
}

.winz-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.winz-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.04em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.winz-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.winz-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.winz-btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Blog cards */
.winz-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 28px 28px;
}

.winz-blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
    text-decoration: none;
    display: block;
}

.winz-blog-card:hover {
    border-color: var(--primary);
}

.winz-blog-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.winz-blog-card-body {
    padding: 16px;
}

.winz-blog-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
}

.winz-blog-card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Tournament cards */
.winz-tournament-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 28px 28px;
}

.winz-tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: border-color 0.2s;
}

.winz-tournament-card:hover {
    border-color: var(--primary);
}

/* Search page */
.winz-search-bar {
    padding: 0 28px 20px;
}

/* ============================================================
   MOBILE-ONLY / DESKTOP-ONLY VISIBILITY HELPERS
   (replaces Tailwind sm:hidden / sm:block — pure CSS)
============================================================ */
.winz-mobile-only {
    display: block;
}

.winz-desktop-only {
    display: none;
}

@media (min-width: 640px) {
    .winz-mobile-only {
        display: none !important;
    }

    .winz-desktop-only {
        display: block;
    }

}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 1920px) {
    .premium-text h3 {
        font-size: 1.3rem;

    }

    .premium-text {
        padding: 15px;
    }

    .premium-text p {
        font-size: 1.2rem;
    }

    .mobile-view {
        display: none !important;
        visibility: hidden;
    }

    .desktop-view {
        display: block;
    }

    .games-grid-7 {
        grid-auto-columns: 245px;
    }
}

@media (max-width: 1400px) {
    .games-grid-7 {
        grid-auto-columns: 200px;
        /* grid-template-columns: repeat(6, 1fr); */
    }

    .mobile-view {
        display: none !important;
        visibility: hidden;
    }

    .desktop-view {
        display: block !important;
    }

}

@media (max-width: 1200px) {
    .top-picks-grid {
        grid-template-columns: 2fr 1fr 1.6fr 1fr;
    }

    .games-grid-7 {
        grid-auto-columns: 250px;
        /* grid-template-columns: repeat(4, 1fr); */
    }

    /* .games-grid-7 .game-card { */
    .game-card {
        display: flex !important;
        /* Forces all looped cards to show up in pairs on mobile */
    }

    .games-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }

    .winz-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-view {
        display: none !important;
        visibility: hidden;
    }

    .desktop-view {
        display: block !important;
    }

    .small-desktop {
        display: none !important;
    }

    .small-mobile {
        display: block !important;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
    }

    #sidebar {
        transform: translateX(-90px);
        width: 90px;
        min-width: 90px;
        top: var(--topbar-height);
        height: calc(100vh - var(--topbar-height));
        transition: transform 0.3s ease;
        z-index: 100;
    }

    #sidebar.open {
        transform: translateX(0);
        width: 90px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .sidebar-close-btn {
        display: flex;
    }

    #main {
        margin-left: 0;
    }

    .topbar-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-picks-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .tp-hero,
    .tp-center-hero {
        grid-row: auto;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .games-grid-7 {
        grid-auto-columns: 250px;
        /* grid-template-columns: repeat(3, 1fr); */
    }

    /* .games-grid-7 .game-card { */
    .game-card {
        display: flex !important;
        /* Forces all looped cards to show up in pairs on mobile */
    }

    .games-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .games-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    .winz-tournament-grid {
        grid-template-columns: 1fr;
    }

    .mobile-view {
        display: block !important;
        visibility: visible;
    }

    .desktop-view {
        display: none !important;
    }

    .small-desktop {
        display: none !important;
    }

    .small-mobile {
        display: block !important;
    }
}

@media (max-width: 640px) {

    #content,
    .top-picks-section,
    .categories-section,
    .most-popular-section,
    .new-arrivals-section,
    .more-games-section,
    .premium-section,
    .winz-page,
    .winz-blog-grid,
    .winz-tournament-grid,
    .winz-search-bar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-picks-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .games-grid-7 {
        grid-auto-columns: 190px;
        /* grid-template-columns: repeat(2, 1fr); */
    }

    /* .games-grid-7 .game-card { */
    .game-card {
        display: flex !important;
        /* Forces all looped cards to show up in pairs on mobile */
    }

    .games-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-carousel {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .winz-blog-grid {
        grid-template-columns: 1fr;
    }


    .mobile-view {
        display: block !important;
        visibility: visible;
    }

    .desktop-view {
        display: none !important;
    }

    .small-desktop {
        display: none !important;
    }

    .small-mobile {
        display: block !important;
    }
}

/* ============================================================
   GAME PAGE — LAYOUT & COMPONENTS
   All wg-* base styles + responsive breakpoints in ONE place.
   Edit here only — no other wg-* rules exist below.
============================================================ */

/* ── LAYOUT: wg-game-page ──────────────────────────────────────
   HTML structure (flex on xl+, stacked below):
     wg-game-page
       wg-left-col          ← grows to fill, contains up-row + bottom-row
         wg-up-row          ← flex row: left-ads | game card
           wg-col-ads-left
           wg-col-main
         wg-bottom-row      ← description card, same width as up-row
       wg-col-right         ← sticky sidebar (you may like)
──────────────────────────────────────────────────────────────── */
.wg-game-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    /* max-width: 1800px; */
    /* margin: 0 auto; */
    padding: 20px;
}

/* Left column: stacks up-row and bottom-row */
/* LEFT SIDE */
.wg-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

/* Row 1 inside left-col: left-ads + game card */
/* TOP AREA */
.wg-up-row {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* Row 2 inside left-col: description — inherits same width automatically */
.wg-bottom-row {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    gap: 20px;
}

.wg-left-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* min-width: 0; */
}

/* Right sidebar: you may like */
.wg-col-right {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-sm);
    box-shadow: var(--wg-shadow);
    position: sticky;
    top: calc(var(--topbar-height) +0px);
    /* align-self: start; */
}

/* ── LEFT ADS COLUMN ───────────────────────────────────────── */
/* ADS COLUMN */
.wg-col-ads-left {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── CENTRE COLUMN ─────────────────────────────────────────── */
/* GAME COLUMN */
.wg-col-main {
    min-width: 0;
    max-width: 700px;
    /* min-height: calc(100vh - var(--topbar-height) - 40px); */
    display: flex;
    flex-direction: column;
}


/* ── AD CARD ───────────────────────────────────────────────── */
.wg-ad-card {
    background: var(--wg-surface);
    border-radius: var(--wg-radius-sm);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.wg-ad-card ins {
    max-width: 100% !important;
}

/* ── GAME CARD ─────────────────────────────────────────────── */
.wg-game-card {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 525px;
}

.wg-game-frame {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--wg-surface-2) 0%, var(--wg-surface) 100%);
}

.wg-game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── PLAY OVERLAY ──────────────────────────────────────────── */
.wg-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.wg-play-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.wg-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    height: 56px;
    padding: 0 28px;
    border: 3px solid #ffffff;
    border-radius: 18px;
    background: linear-gradient(to bottom, #7dfb55 0%, #43d31c 50%, #16b000 100%);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 4px 0 #0d7e00,
        0 6px 12px rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 24px;
    font-weight: 900;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.15s ease;
}

.wg-play-btn:hover {
    transform: translateY(-2px);
}

.wg-play-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 2px 0 #0d7e00,
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.wg-play-btn span {
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* ── GAME BADGE ────────────────────────────────────────────── */
.wg-game-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    z-index: 3;
}

.wg-badge-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.wg-badge-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wg-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wgInlinePlayer {
    z-index: 10 !important;
}

/* ── MID AD ────────────────────────────────────────────────── */
.wg-mid-ad {
    padding: 16px;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wg-mid-ad ins {
    max-width: 100% !important;
}

/* ── INFO CARD (description) ───────────────────────────────── */
.wg-info-card {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 24px;
    margin-top: 1rem;
    max-width: calc(280px + 16px + 525px);
    width: 100%;
    height: fit-content;
}

.wg-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wg-text);
    margin-bottom: 16px;
}

.wg-info-body {
    font-size: 0.875rem;
    color: var(--wg-muted);
    line-height: 1.5;
    text-align: justify;
}

.wg-info-body h2 {
    color: var(--wg-text);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.wg-info-body p {
    margin-bottom: 12px;
}

.wg-info-body iframe {
    border-radius: var(--wg-radius-sm);
    margin: 16px 0;
}

/* ── YOU MAY LIKE PANEL ────────────────────────────────────── */
.wg-col-right .wg-ad-card {
    min-height: 240px;
}

.wg-youmaylike {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wg-surface-2) transparent;
    padding: 16px 12px;
}

.wg-yml-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wg-text);
    margin-bottom: 12px;
}

.wg-yml-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.wg-tab {
    flex: 1;
    background: black;
    border: 1px solid var(--wg-border);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wg-tab:hover {
    border-color: var(--wg-accent);
    color: var(--text-white);
}

.wg-tab.active {
    background: var(--wg-accent);
    border-color: var(--wg-accent);
    color: #ffffff;
}

.wg-tab-content {
    display: none;
}

.wg-tab-content.active {
    display: block;
}

/* Games grid inside you-may-like */
.wg-yml-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    /* max-height: 1450px; */
    overflow-y: auto;
    /* overflow: scroll; */
    scrollbar-width: thin;
    scrollbar-color: var(--wg-surface-2) transparent;
}

.wg-yml-grid::-webkit-scrollbar {
    width: 4px;
}

.wg-yml-grid::-webkit-scrollbar-thumb {
    background: var(--wg-surface-2);
    border-radius: 4px;
}

.wg-yml-item {
    display: block;
}

.wg-yml-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 12 / 9;
    border-radius: var(--wg-radius-sm);
    overflow: hidden;
    background: var(--wg-surface-2);
}

.wg-yml-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.wg-yml-thumb-wrap:hover .wg-yml-thumb {
    transform: scale(1.07);
}

.wg-yml-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.wg-yml-thumb-wrap:hover .wg-yml-overlay {
    opacity: 1;
}

/* ── SECTION HEADER (shared) ───────────────────────────────── */
.wg-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wg-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--wg-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wg-view-all {
    font-size: 0.78rem;
    color: var(--wg-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.wg-view-all:hover {
    color: var(--wg-accent);
}

/* ── SIMILAR GAMES (mobile card) ───────────────────────────── */
.wg-similar-mobile {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 20px 16px;
    margin-top: 4px;
    margin-bottom: 1rem;
    display: none;
}

.wg-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}



.wg-game-item-link {
    display: block;
}

.wg-game-item-thumb {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--wg-radius-sm);
    overflow: hidden;
    background: var(--wg-surface-2);
}

.wg-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.wg-game-hover {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 23, 0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.25s;
}

.wg-game-item-thumb:hover .wg-game-hover {
    opacity: 1;
}

.wg-hover-square {
    width: 52%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    transform: translateY(8px);
    transition: transform 0.28s;
}

.wg-game-item-thumb:hover .wg-hover-square {
    transform: translateY(0);
}

.wg-hover-play {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--wg-accent);
    border-radius: 999px;
    padding: 5px 14px;
    transform: translateY(8px);
    transition: transform 0.28s, background 0.2s;
    cursor: pointer;
}

.wg-game-item-thumb:hover .wg-hover-play {
    transform: translateY(0);
}

.wg-hover-play:hover {
    background: var(--wg-accent-2);
}

/* ── TOP AD ────────────────────────────────────────────────── */
.wg-top-ad {
    padding: 10px 28px 0;
}

.wg-inline-ad-wrap {
    padding: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — game page
   One block per breakpoint. Edit here only.
============================================================ */

/* ── ≥1920px : ultra-wide ──────────────────────────────────── */
@media (min-width: 1920px) {
    .wg-game-page {
        max-width: 2400px;
        padding: 24px 32px;
        gap: 24px;
    }

    .wg-col-main {
        min-height: unset;
        /* height: auto; */
    }

    .wg-up-row {
        height: auto;
        max-height: none;
        gap: 200px;
        grid-template-columns: 320px minmax(0, 1fr);
    }


    .wg-bottom-row {
        /* width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px; */
        margin-top: 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .wg-info-card {
        max-width: calc(320px + 16px + 725px);
    }

    .wg-col-ads-left {
        width: 320px;
        min-width: 320px;
    }

    .wg-col-right {
        /* width: 360px; */
        min-width: 320px;
    }

    .wg-badge-thumb {
        width: 100px;
        height: 100px;
    }

}

/* ── 1440px–1919px : large desktop ────────────────────────── */
@media (min-width: 1440px) and (max-width: 1919px) {
    .wg-game-page {
        padding: 20px 24px;
        gap: 20px;
    }

    .wg-col-ads-left {
        width: 280px;
        min-width: 260px;
    }

    .wg-info-card {
        max-width: calc(320px + 16px + 635px);
    }

    .wg-col-right {
        width: 320px;
        min-width: 280px;
    }
}

/* ── 1200px–1439px : desktop ───────────────────────────────── */
@media (min-width: 1200px) and (max-width: 1439px) {
    .wg-game-page {
        padding: 18px 20px;
        gap: 18px;
    }

    .wg-col-ads-left {
        width: 260px;
        min-width: 240px;
    }

    .wg-up-row {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .wg-col-main {
        width: 470px;
        max-width: 550px !important;
        min-width: 471px !important;
    }

    .wg-bottom-row {
        padding-left: 0;
        padding-right: 0;
    }

    .wg-info-card {
        max-width: calc(260px + 16px + 525px);
    }

    .wg-col-right {
        /* width: 300px; */
        min-width: 260px;
        /* max-height: 1320px; */

        /* margin-left: 1rem; */
    }

    .wg-ad-card {
        min-height: 260px;
    }

    .wg-yml-grid {
        gap: 10px;
    }
}

/* ── 1100px–1199px : tablet-landscape ─────────────────────── */
@media (min-width: 1100px) and (max-width: 1199px) {

    .wg-game-page {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .wg-up-row {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .wg-col-ads-left {
        display: none !important;
    }

    .wg-bottom-row {
        padding: 0px;
    }

    .wg-col-right {
        width: 100%;
        min-width: 0;
        /* margin-left: 1rem; */
        margin-right: 1rem;
        /* min-height: 850px; */
        /* max-height: 1620px; */
    }
}

/* ── 768px–1099px : tablet-portrait ───────────────────────── */
@media (min-width: 768px) and (max-width: 1099px) {

    .wg-game-page {
        grid-template-columns: 1fr;
        padding: 12px 16px;
        gap: 12px;
    }

    .wg-up-row {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .wg-col-ads-left {
        display: none !important;
    }

    .wg-col-right {
        display: flex;
        width: 100%;
        position: static;
    }

    .wg-bottom-row {
        max-width: 100%;
        padding: 0px;
    }

    .wg-info-card {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* .wg-game-frame aspect-ratio removed for portrait view */

    .wg-yml-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* footer */
    /* footer */
    footer {
        padding: 18px 28px 24px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0 16px;
        align-items: start;
    }

    .footer-logo-icon {
        display: none;
    }

    .footer-col h6 {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--text-white);
        text-transform: uppercase;
        letter-spacing: 0.1em;

        /* 1. Forces the heading area to always match the height of a 2-line title */
        height: 2.4em;
        display: flex;
        align-items: flex-start;
        /* Aligns all titles neatly at the top edge */
        margin-bottom: 12px !important;
    }

    /* 2. Standardize list item heights so sequential links line up horizontally perfectly */
    .footer-links li {
        height: 28px;
        display: flex;
        align-items: center;
        /* Vertically centers the text within its own row boundary */
    }

    .footer-links a {
        font-size: 0.8rem;
        color: var(--sub-text2);
        display: block;
        width: 100%;
    }

    /* Col 1 (logo+social) spans full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 20px;
    }

    /* Popular = col 1, Help = col 2, Legal = col 1 (wraps under Popular) */
    .footer-col:nth-child(2) {
        grid-column: 1;
    }

    .footer-col:nth-child(3) {
        grid-column: 2;
    }

    .footer-col:nth-child(4) {
        grid-column: 3;
    }
}

/* ── ≤767px : mobile ───────────────────────────────────────── */
@media (max-width: 767px) {

    .wg-game-page {
        grid-template-columns: 1fr;
        padding: 10px 12px;
        gap: 10px;
    }

    .wg-up-row {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .wg-col-main {
        width: 100%;
    }


    .wg-col-ads-left {
        display: none !important;
    }

    .wg-col-right {
        margin-top: 1rem;
        /* display: non e !important; */
    }

    .wg-bottom-row {
        padding: 0px;
    }

    .wg-top-ad,
    .wg-mid-ad,
    .wg-inline-ad-wrap {
        display: none !important;
    }

    .wg-similar-mobile {
        display: block !important;
    }


    /* footer */
    footer {
        padding: 18px 28px 24px;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0 16px;
        align-items: start;
    }

    .footer-logo-icon {
        display: none;
    }

    .footer-col h6 {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--text-white);
        text-transform: uppercase;
        letter-spacing: 0.1em;

        /* 1. Forces the heading area to always match the height of a 2-line title */
        height: 2.4em;
        display: flex;
        align-items: flex-start;
        /* Aligns all titles neatly at the top edge */
        margin-bottom: 12px !important;
    }

    /* 2. Standardize list item heights so sequential links line up horizontally perfectly */
    .footer-links li {
        height: 28px;
        display: flex;
        align-items: center;
        /* Vertically centers the text within its own row boundary */
    }

    .footer-links a {
        font-size: 0.8rem;
        color: var(--sub-text2);
        display: block;
        width: 100%;
    }

    /* Col 1 (logo+social) spans full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 20px;
    }

    /* Popular = col 1, Help = col 2, Legal = col 1 (wraps under Popular) */
    .footer-col:nth-child(2) {
        grid-column: 1;
    }

    .footer-col:nth-child(3) {
        grid-column: 2;
    }

    .footer-col:nth-child(4) {
        grid-column: 3;
    }
}

/* ── ≤479px : small mobile ─────────────────────────────────── */
@media (max-width: 479px) {
    .wg-game-page {
        padding: 8px 10px;
        gap: 8px;
    }

    /* .wg-game-frame aspect-ratio removed for portrait view */

    .wg-game-card {
        width: 100%;
    }



    .wg-bottom-row {
        padding: 0px;
    }

    .wg-similar-mobile {
        display: block;
    }

    .wg-play-btn {
        min-width: 96px;
        height: 40px;
        font-size: 15px;
        padding: 0 16px;
    }

    .wg-col-right {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .wg-play-btn span {
        font-size: 0.9rem;
    }

    .wg-yml-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .wg-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wg-info-card {
        padding: 12px;
    }

    .wg-info-title {
        font-size: 1rem;
    }

    .wg-info-body {
        font-size: 0.78rem;
    }

    .wg-ad-card {
        min-height: 150px;
    }

    .wg-badge-thumb {
        width: 28px;
        height: 28px;
    }

    .wg-badge-title {
        font-size: 0.6rem;
    }
}

/* ── ≤359px : tiny screens ─────────────────────────────────── */
@media (max-width: 359px) {
    .wg-game-page {
        padding: 6px 8px;
        gap: 6px;
    }

    /* .wg-game-frame aspect-ratio removed for portrait view */

    .wg-info-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .wg-info-card {
        padding: 8px;
    }

    .wg-play-btn span {
        font-size: 0.8rem;
    }

    .wg-col-main {
        width: 100%;
    }
}