@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;
}

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

/* ============================================================
   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;
    }
}

/* ============================================================
   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(--sub-view-all);
    transition: color 0.2s;
}

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

/* ============================================================
   TOP PICKS / BANNER GRID
============================================================ */
.top-picks-section {
    margin-bottom: 36px;
    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; */
}

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

    /* flex:1; */
}

.tp-top {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    position: relative;
}

.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;
}

.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: 36px;
    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: 36px;
    padding: 0 28px;
}

.games-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}
.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);
    aspect-ratio: 3/4;
    position: relative;
    margin-bottom: 8px;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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: 36px;
    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: 36px;
    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;
}

.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: 20px;
    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: 36px;
    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;
   }
}
@media (max-width: 1400px) {
    .games-grid-7 {
        grid-template-columns: repeat(6, 1fr);
    }

    .games-grid-7 .game-card:last-child {
        display: none;
    }
}

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

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

    .games-grid-7 .game-card:nth-child(n+5) {
        display: none;
    }

    .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);
    }
}

@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-template-columns: repeat(3, 1fr);
    }

    .games-grid-7 .game-card {
        display: flex;
    }

    .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;
    }
}

@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-template-columns: repeat(2, 1fr);
    }

    .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;
    }
}

/* {{-- ── PAGE-LEVEL STYLES ──────────────────────────────────────────────────────── --}} */

/* ── Fix browser default outlines on semantic tags ─────── */
.wg-col-main {
    outline: none;
}

.wg-col-ads-left {
    outline: none;
}

.wg-col-right {
    outline: none;
}

/* ── CSS Variables ─────────────────────────────────────── */


/* ── Ad wrappers ──────────────────────────────────────── */
/* Top ad: sits above the grid, needs side padding */
.wg-top-ad {
    padding: 10px 28px 0;
}

/* Mid/bottom/inline: inside the center column, no side margin needed */
.wg-mid-ad,
.wg-bottom-ad,
.wg-inline-ad-wrap {
    width: 100%;
}

/* ── Page wrapper (3-col grid) ─────────────────────────── */
.wg-game-page {
    display: grid;
    grid-template-columns: 160px 1fr 200px;
    gap: 14px;
    align-items: start;
    padding: 14px 28px 0;
}

/* center col: flex column with gap between sections */
.wg-col-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* left col: flex column */
.wg-col-ads-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 160px;
}

/* ── Ad cards (generic) ────────────────────────────────── */
.wg-ad-card {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    overflow: hidden;
    min-height: 100px;
}

/* ── LEFT ADS COLUMN ───────────────────────────────────── */
.wg-col-ads-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 160px;
}

/* ── GAME CARD ─────────────────────────────────────────── */
.wg-game-card {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    overflow: hidden;
    box-shadow: var(--wg-shadow);
}

/* Toolbar */
.wg-game-toolbar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--wg-surface-2);
    border-bottom: 1px solid var(--wg-border);
    gap: 8px;
}

.wg-toolbar-spacer {
    flex: 1;
}

.wg-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    color: var(--wg-muted);
    cursor: pointer;
    transition: color .2s, background .2s;
}

.wg-tool-btn:hover {
    color: var(--wg-text);
    background: var(--wg-accent);
    border-color: var(--wg-accent);
}

.wg-score-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: 999px;
    padding: 4px 10px 4px 8px;
}

.wg-score-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wg-text);
    min-width: 20px;
    text-align: center;
}

.wg-score-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--wg-accent);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

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

/* Game frame — contains image, overlay link, and badge */
.wg-game-frame {
    position: relative;
    aspect-ratio: 3/2;
    background: #000;
    overflow: hidden;
}

.wg-game-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.wg-game-frame:hover .wg-game-thumb {
    transform: scale(1.02);
}

/* Play overlay — full-frame clickable anchor, flex-centered */
.wg-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.30);
    z-index: 2;
    text-decoration: none;
    transition: background .2s;
}

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

/* The visible green PLAY capsule */
.wg-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--wg-green);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: .08em;
    padding: 14px 36px;
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
    transition: transform .2s, box-shadow .2s;
    pointer-events: none;
    /* overlay handles the click */
}

.wg-play-overlay:hover .wg-play-btn {
    transform: scale(1.06);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.6);
}

.wg-play-icon {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}

/* Game badge */
.wg-game-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wg-badge-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--wg-radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}

.wg-badge-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: .06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

/* ── INFO CARD (Description) ────────────────────────────── */
/* ── INFO CARD ── */
.wg-info-card {
    background: #1a1d2e;
    border-radius: 20px;
    padding: 28px 32px 32px;
}

.wg-info-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* Plain body paragraphs */
.wg-info-body p {
    font-size: 0.875rem;
    color: #e1e1e2;
    line-height: 1.72;
    font-weight: 400;
    margin-bottom: 3px;
}

/* Purple section headings with triangle */
.wg-info-body h2,
.wg-info-body h3,
.wg-info-body strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #8b5cf6;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 20px 0 8px;
    background: none;
}

/* Triangle before each heading */
.wg-info-body h2::before,
.wg-info-body h3::before,
.wg-info-body strong::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #8b5cf6;
    flex-shrink: 0;
    margin-top: 1px;
}

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

.wg-info-body ul,
.wg-info-body ol {
    padding-left: 1.2rem;
}

.wg-info-body li {
    margin-bottom: 4px;
}

/* ── 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: .06em;
}

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

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

/* ── SIMILAR GAMES GRID (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;
}

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

@media (max-width: 640px) {
    .wg-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wg-game-item {}

.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 .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, .82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .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 .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 .28s, background .2s;
    cursor: pointer;
}

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

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

/* ── RIGHT COLUMN ────────────────────────────────────────── */
.wg-col-right {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── YOU MAY LIKE ────────────────────────────────────────── */
.wg-youmaylike {
    background: var(--wg-surface);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius);
    padding: 16px 12px;
    box-shadow: var(--wg-shadow);
}

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

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

.wg-tab {
    flex: 1;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wg-muted);
    background: var(--wg-surface-2);
    border: 1px solid var(--wg-border);
    border-radius: 999px;
    padding: 5px 0;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .03em;
}

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

/* 2-col game grid */
.wg-yml-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 580px;
    overflow-y: auto;
    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;
    aspect-ratio: 9/16;
    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 .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 .2s;
}

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

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────── */

/* Desktop only: show all 3 cols, hide mobile similar section */
@media (min-width: 1101px) {
    .wg-col-ads-left {
        display: flex;
    }

    .wg-col-right {
        display: flex;
    }

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

    .wg-top-ad {
        padding: 10px 28px 0;
    }
}

/* Tablet: hide left ads, 2-col grid */
@media (max-width: 1100px) {
    .wg-game-page {
        grid-template-columns: 1fr 200px;
        padding: 12px 20px 0;
    }

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

    .wg-top-ad {
        padding: 10px 20px 0;
    }

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

    .wg-col-right {
        display: flex;
    }
}

/* Mobile: single column, hide sidebars and all ads */
@media (max-width: 767px) {
    .wg-game-page {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px 0;
    }

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

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

    .wg-top-ad {
        display: none !important;
    }

    .wg-mid-ad {
        display: none !important;
    }

    .wg-bottom-ad {
        display: none !important;
    }

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

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

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

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

    .wg-play-btn {
        font-size: 0.9rem;
        padding: 10px 24px;
    }

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

    .wg-game-frame {
        aspect-ratio: 4/3;
    }
}

/* Tiny screens */
@media (max-width: 400px) {
    .wg-game-page {
        padding: 8px 10px 0;
    }

    .wg-play-btn {
        font-size: 0.82rem;
        padding: 9px 20px;
    }
}