/*
    Gamezox - Premium Gaming Hub
    Theme: Modern Dark / Lime-Accent
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg:                #0f1115;
    --surface:           #1a1d23;
    --elevated:          #252933;
    --accent:            #bced09;
    --accent-hover:      #c8f04a;
    --accent-glow:       rgba(188, 237, 9, 0.35);
    --secondary:         #00f2ff;
    --secondary-glow:    rgba(0, 242, 255, 0.25);
    --text:              #ffffff;
    --text-muted:        #94a3b8;
    --border:            rgba(255, 255, 255, 0.1);
    --border-hover:      rgba(255, 255, 255, 0.2);
    --glass-bg:          rgba(255, 255, 255, 0.05);
    --glass-hover:       rgba(255, 255, 255, 0.08);
    --shadow-sm:         0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:         0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg:         0 10px 40px rgba(0,0,0,0.6);
    --transition:        0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --nav-height:        60px;
    --sidebar-closed:    52px;
    --sidebar-open:      164px;
    --sidebar-transition: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   ANIMATED BACKGROUND BLOBS
   ============================================================ */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    animation: blob-float 22s infinite alternate ease-in-out;
}

.blob-1 {
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.06;
    animation-delay: -8s;
}

@keyframes blob-float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.12); }
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.gamezox-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-height);
    background: rgba(15, 17, 21, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem 0 calc(var(--sidebar-closed) + 1rem);
    gap: 1rem;
    transition: padding-left var(--sidebar-transition);
}

/* Logo */
.gamezox-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.gamezox-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #78d400 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #0a0a0a;
    box-shadow: 0 0 16px var(--accent-glow);
    flex-shrink: 0;
}

.gamezox-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--accent) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search */
.gamezox-search-wrap {
    flex: 1;
    max-width: 420px;
    position: relative;
    margin: 0 auto;
}

.gamezox-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.gamezox-search-wrap input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.gamezox-search-wrap input::placeholder { color: var(--text-muted); }

.gamezox-search-wrap input:focus {
    border-color: rgba(188, 237, 9, 0.5);
    box-shadow: 0 0 0 3px rgba(188, 237, 9, 0.12);
}

/* Nav right actions */
.gamezox-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-tab-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    padding: 7px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.nav-tab-btn:hover {
    background: var(--glass-hover);
    color: var(--text);
    border-color: var(--border-hover);
}

.nav-tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Mobile hamburger (shown on small screens) */
.gamezox-mobile-toggle {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1rem;
}

/* ============================================================
   SIDEBAR CATEGORIES
   ============================================================ */
.sidebar-categories {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: var(--sidebar-closed);
    height: calc(100vh - var(--nav-height));
    background: var(--bg);
    border-right: 1px solid var(--border);
    z-index: 150;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width var(--sidebar-transition);
}

.sidebar-categories:hover,
.sidebar-categories.is-open {
    width: var(--sidebar-open);
}

.sidebar-inner {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-inner::-webkit-scrollbar { display: none; }

/* "All Games" header label inside sidebar */
.sidebar-section-label {
    padding: 6px 6px 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    white-space: nowrap;
    transition: opacity var(--sidebar-transition);
}

.sidebar-categories:hover .sidebar-section-label,
.sidebar-categories.is-open .sidebar-section-label {
    opacity: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 5px 6px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition), gap var(--sidebar-transition);
    white-space: nowrap;
    min-width: 0;
}

.sidebar-categories:hover .sidebar-link,
.sidebar-categories.is-open .sidebar-link {
    gap: 10px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--glass-hover);
    color: var(--text);
}

.sidebar-link.active .cat-icon {
    background: rgba(188, 237, 9, 0.15);
    color: var(--accent);
}

.sidebar-link:hover .cat-icon {
    background: rgba(188, 237, 9, 0.12);
    color: var(--accent);
}

.cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    transition: background var(--transition), color var(--transition);
}

.cat-label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.sidebar-categories:hover .cat-label,
.sidebar-categories.is-open .cat-label {
    opacity: 1;
    max-width: 120px;
}

/* count badge */
.cat-count {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    padding: 1px 5px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--sidebar-transition);
    flex-shrink: 0;
}

.sidebar-categories:hover .cat-count,
.sidebar-categories.is-open .cat-count {
    opacity: 1;
}

/* ============================================================
   MAIN CONTENT COLUMN
   ============================================================ */
.site-main-column {
    margin-left: var(--sidebar-closed);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    transition: margin-left var(--sidebar-transition);
}

.sidebar-categories:hover ~ .site-main-column {
    margin-left: var(--sidebar-open);
}

/* ============================================================
   HERO / HEADER
   ============================================================ */
.hero {
    padding: 3rem 5% 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(188, 237, 9, 0.08);
    border: 1px solid rgba(188, 237, 9, 0.3);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    box-shadow: 0 0 20px rgba(188, 237, 9, 0.1);
}

.notice-tag strong { color: var(--accent); }
.notice-tag i { color: var(--accent); }

/* ============================================================
   CATEGORY PILLS (horizontal filter row)
   ============================================================ */
.category-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5% 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-pills-row::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
}

.cat-pill:hover {
    border-color: rgba(188, 237, 9, 0.4);
    color: var(--text);
    background: rgba(188, 237, 9, 0.06);
}

.cat-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================================
   GAME GRID
   ============================================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
    padding: 0 5% 5rem;
}

.game-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    aspect-ratio: 1 / 1;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(188, 237, 9, 0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px rgba(188, 237, 9, 0.15);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

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

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    transform: translateY(6px);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-info {
    transform: translateY(0);
    opacity: 1;
}

.game-title {
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    margin-bottom: 3px;
    color: #fff;
}

.game-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* play indicator */
.game-card::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 52px;
    height: 52px;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    line-height: 52px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.game-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   NEW RELEASE CONTAINER
   ============================================================ */
.new-release-container {
    text-align: center;
    padding: 5rem 2rem;
    min-height: 380px;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.new-release-container.visible {
    display: flex;
}

.new-release-container h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.new-release-container p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
}

.empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================================
   AD PLACEHOLDER
   ============================================================ */
.ad-placeholder {
    width: 100%;
    max-width: 970px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--glass-bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #000;
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ============================================================
   GAME MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

#modalGameTitle {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.action-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.close-btn:hover {
    background: rgba(255, 60, 60, 0.15);
    border-color: #ff4d4d;
    color: #ff4d4d;
}

/* Game Frame */
.game-frame-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(188, 237, 9, 0.3);
    box-shadow: 0 0 30px rgba(188, 237, 9, 0.1), var(--shadow-lg);
    position: relative;
    flex-shrink: 0;
}

.game-frame-container:fullscreen,
.game-frame-container:-webkit-full-screen {
    max-width: none !important;
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: auto !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.fullscreen-exit-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: none;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Extend hover area to the right and top edges */
.fullscreen-exit-overlay::after {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    bottom: -20px;
    left: -20px;
}

.fullscreen-exit-overlay.is-active,
.fullscreen-exit-overlay:hover {
    opacity: 1;
}

/* On touch devices, keep it slightly visible since there is no mouse hover */
@media (pointer: coarse) {
    .fullscreen-exit-overlay {
        opacity: 0.4;
    }
}

.game-frame-container:fullscreen .fullscreen-exit-overlay,
.game-frame-container:-webkit-full-screen .fullscreen-exit-overlay {
    display: flex;
}

/* PUBG special scaling */
.pubg-mode iframe {
    width: 960px !important;
    height: 600px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--pubg-scale, 1)) !important;
}

/* Hide bottom bar mode (geometry-games.io) */
.hide-bottom-bar-mode iframe {
    height: calc(100% + 45px) !important;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


/* ── Mobile: game modal goes truly fullscreen ── */
@media (max-width: 768px) {
    .modal {
        padding: 0;
        overflow: hidden;
    }

    .modal-header {
        width: 100%;
        max-width: 100%;
        padding: 6px 10px;
        margin-bottom: 0;
        background: rgba(10,10,15,0.97);
        flex-shrink: 0;
        z-index: 10;
        height: 48px;
    }

    #modalGameTitle {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
    }


    .game-frame-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: unset;
        border-radius: 0;
        border: none;
        flex: 1;
        height: 0;
        /* min-height ensures game is always visible even with joystick */
        min-height: 0;
    }

    .game-modal-info {
        display: none !important;
    }

}

/* Loader */
.game-loader {
    position: absolute;
    inset: 0;
    background: #090a0f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    gap: 18px;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255,255,255,0.06);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
    box-shadow: 0 0 20px rgba(188, 237, 9, 0.3);
}

.loader-welcome {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #fff;
    text-transform: uppercase;
}

.loader-text {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--primary);
    animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-spin { to { transform: rotate(360deg); } }

@keyframes loader-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Modal Info */
.game-modal-info {
    width: 100%;
    max-width: 1200px;
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    animation: fadeUp 0.4s ease-out;
    flex-shrink: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.info-section {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    padding: 1.25rem;
    border-radius: 14px;
    transition: var(--transition);
}

.info-section:hover {
    background: var(--glass-hover);
    border-color: rgba(188, 237, 9, 0.25);
}

.info-section h3 {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   MESSCRAFT SPECIAL THEME (MINECRAFT RETRO STYLE)
   ============================================================ */
.modal.messcraft-theme {
    background: radial-gradient(circle at center, rgba(16,20,16,0.98) 0%, rgba(5,7,5,0.99) 100%);
}

.modal.messcraft-theme #modalGameTitle {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    color: #f7b731;
    font-size: 1.8rem;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px #3f3f3f, 5px 5px 0px #000;
}

.modal.messcraft-theme .game-frame-container {
    border-radius: 0;
    border-top:    10px solid #5b8731 !important;
    border-left:   10px solid #866043 !important;
    border-right:  10px solid #866043 !important;
    border-bottom: 10px solid #866043 !important;
    box-shadow: 0 0 30px rgba(91,135,49,0.4), 0 15px 40px rgba(0,0,0,0.8) !important;
}

.modal.messcraft-theme .game-loader {
    background: #14110f;
    background-image:
        radial-gradient(rgba(0,0,0,0.3) 1px, transparent 0),
        radial-gradient(rgba(0,0,0,0.3) 1px, transparent 0);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
}

.modal.messcraft-theme .loader-spinner {
    border-radius: 0;
    border: 5px solid #866043;
    border-top-color: #5b8731;
    animation: loader-spin-blocky 1.2s steps(8) infinite;
    box-shadow: 0 0 15px rgba(91,135,49,0.5);
}

.modal.messcraft-theme .loader-text {
    font-family: 'Courier New', Courier, monospace;
    color: #5b8731;
    text-shadow: 2px 2px 0px #000;
}

@keyframes loader-spin-blocky { to { transform: rotate(360deg); } }

.modal.messcraft-theme .action-btn {
    border-radius: 0;
    background: #7f8c8d;
    border: 3px solid #34495e;
    border-top-color: #bdc3c7;
    border-left-color: #bdc3c7;
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.2), 3px 3px 0px #000;
    font-weight: bold;
}

.modal.messcraft-theme .action-btn:hover {
    background: #5b8731;
    border-color: #27ae60;
    border-top-color: #2ecc71;
    border-left-color: #2ecc71;
    color: #fff;
    transform: translateY(0) scale(1.05);
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.3), 0 0 15px rgba(91,135,49,0.6);
}

.modal.messcraft-theme .close-btn:hover {
    background: #c0392b;
    border-color: #7f0000;
    border-top-color: #e74c3c;
    border-left-color: #e74c3c;
}

.modal.messcraft-theme .info-section {
    border-radius: 0;
    background: rgba(20,25,20,0.85);
    border: 3px solid #5b8731;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6), 5px 5px 0px rgba(0,0,0,0.5);
}

.modal.messcraft-theme .info-section h3 {
    font-family: 'Courier New', Courier, monospace;
    color: #7faa44;
    text-shadow: 1px 1px 0px #000;
}

.modal.messcraft-theme .info-section p {
    font-family: 'Courier New', Courier, monospace;
    color: #ddd;
    text-shadow: 1px 1px 0px #000;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .sidebar-categories {
        display: none;
    }

    .site-main-column {
        margin-left: 0 !important;
    }

    .gamezox-nav {
        padding-left: 1rem;
    }

    .gamezox-mobile-toggle {
        display: flex;
    }

    .gamezox-logo-text {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero { padding: 2rem 4% 1.5rem; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 0 4% 4rem; }
    .category-pills-row { padding: 0 4% 1rem; }
    .game-modal-info { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    #modalGameTitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .hero-title { font-size: 1.8rem; }
}

/* ── Touch-friendly game cards on mobile ── */
@media (pointer: coarse) {
    .game-card .game-info {
        transform: translateY(0);
        opacity: 1;
    }
    .game-card::after {
        opacity: 0.75;
        transform: translate(-50%, -50%) scale(1);
    }
    .game-card:hover {
        transform: none;
    }
}
