/* CSS Reset & Global Defaults */
*, *::before, *::after {
    box-sizing: inherit;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: Calibri, Candara, Segoe, sans-serif;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e; /* Theme Text Color */
    background: radial-gradient(ellipse at 20% 50%, rgba(197, 164, 58, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
                #f5f0e8; /* Theme BG Color */
    background-attachment: fixed; /* Ensures the gradient stays put */
}

main {
    flex: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative; /* For animations */
}

/* Typography & Hierarchy */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a2e; /* Theme Text Color */
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

p, li, td, .cn2mpy-game-card-info p {
    font-size: max(15px, 1rem); /* Minimum 15px for readability */
    margin-bottom: 1em;
    line-height: 1.8;
}

a {
    color: #c5a43a; /* Theme Secondary Color */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e63946; /* Theme Accent Color */
    text-decoration: underline;
}

/* Buttons */
.cn2mpy-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #e63946, #d12d3d); /* Theme Accent Gradient */
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(230, 57, 70, 0.3);
    animation: btnGlow 2.5s ease-in-out infinite;
}

.cn2mpy-btn:hover {
    background: linear-gradient(90deg, #d12d3d, #e63946); /* Reversed Gradient */
    box-shadow: 0 12px 20px rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
}

/* Container */
.cn2mpy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header & Navigation */
.cn2mpy-header-l-c-r {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0; /* Increased padding for premium feel */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.cn2mpy-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    gap: 10px;
}

.cn2mpy-logo span {
    background: linear-gradient(90deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cn2mpy-desktop-nav ul {
    display: flex;
    gap: 30px; /* Increased gap */
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cn2mpy-desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.cn2mpy-desktop-nav li {
    position: relative;
}

.cn2mpy-desktop-nav a {
    color: #eceff1; /* Light text for contrast */
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    text-decoration: none;
}

.cn2mpy-desktop-nav a::after {
    content: '';
    display: block;
    height: 2px;
    background: #c5a43a; /* Theme Secondary Color */
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
    width: 100%;
}

.cn2mpy-desktop-nav a:hover {
    color: #ffffff;
}

.cn2mpy-desktop-nav a:hover::after {
    transform: scaleX(1);
    background: #e63946; /* Theme Accent Color on hover */
}

.cn2mpy-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cn2mpy-age-flag {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cn2mpy-hamburger {
    display: none; /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #ffffff;
    line-height: 1;
}

.cn2mpy-close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.cn2mpy-mobile-menu {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cn2mpy-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cn2mpy-mobile-menu a {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    padding: 10px 0;
    display: block;
}

.cn2mpy-mobile-menu a:hover {
    color: #c5a43a; /* Theme Secondary Color */
}

/* Disclosure Bar */
#cn2mpy-disclosure-bar {
    background: #0e1218;
    color: #eceff1;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.88em;
    font-weight: 600;
    border-bottom: 1px solid #37474f;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

#cn2mpy-disclosure-bar span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

#cn2mpy-disclosure-bar span:nth-child(1) { background: #1b5e20; color: #a5d6a7; } /* Green */
#cn2mpy-disclosure-bar span:nth-child(2) { background: #b71c1c; color: #ffcdd2; } /* Red */
#cn2mpy-disclosure-bar span:nth-child(3) { background: #1a237e; color: #c5cae9; } /* Blue */
#cn2mpy-disclosure-bar span:nth-child(4) { background: #4a148c; color: #e1bee7; } /* Purple */
#cn2mpy-disclosure-bar span:nth-child(5) { background: #004d40; color: #b2dfdb; } /* Teal */

/* Hero Section */
.cn2mpy-hero {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    padding: 140px 5% 100px; /* Increased vertical padding */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px; /* Ensure enough height */
    background-size: cover;
    background-position: center;
    position: relative;
    box-sizing: border-box;
}

.cn2mpy-hero-text {
    padding-right: 40px;
    position: relative;
    z-index: 2;
    color: #1a1a2e; /* Theme Text Color */
}

.cn2mpy-hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Larger heading */
    margin-bottom: 24px;
    color: #1a1a2e; /* Theme Text Color */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.cn2mpy-hero-text p {
    font-size: max(17px, 1.1rem); /* Larger paragraph text */
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.9;
    color: #c0c0c9; /* Theme Text Color */
}

.cn2mpy-hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
    align-items: center;
}

.cn2mpy-hero-image img {
    width: 100%;
    height: 600px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 40px 0 40px 0; /* Asymmetric border-radius */
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Light border */
}

.cn2mpy-trust-badge { /* Example for trust badges */
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(26, 26, 46, 0.8); /* Primary color with transparency */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 3;
}

/* Trust Signals */
.cn2mpy-trust-signal-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cn2mpy-trust-signal {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eceff1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

/* Game Grid */
.cn2mpy-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 350px; /* Fixed row height */
    gap: 30px;
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 20px;
    box-sizing: border-box;
}

.cn2mpy-game-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Ensure it's a flex container for image and text */
    flex-direction: column; /* Stack image and text */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cn2mpy-game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cn2mpy-game-card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    display: block; /* Remove extra space below image */
    border-radius: 24px 24px 0 0; /* Rounded top corners */
}

.cn2mpy-game-card-info {
    padding: 20px;
    flex-grow: 1; /* Allow text to take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align text to bottom */
    position: relative;
    z-index: 2; /* Ensure it's above the image background if overlaid */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 70%, transparent 100%); /* Subtle gradient overlay */
    color: #ffffff; /* White text for contrast on dark overlay */
    border-radius: 0 0 24px 24px; /* Rounded bottom corners */
}

.cn2mpy-game-card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff; /* White text for title */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cn2mpy-game-card-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
    color: #eceff1; /* Light text for description */
}

/* Content Section Styling */
.cn2mpy-content-section {
    padding: 80px 5%; /* Generous padding */
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 900px; /* Limit width for readability */
    margin: 0 auto;
    text-align: justify;
}

.cn2mpy-content-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cn2mpy-content-section p {
    margin-bottom: 1.5em;
    font-size: max(16px, 1.05rem); /* Slightly larger than body default */
}

.cn2mpy-content-section li {
    margin-bottom: 0.8em;
}

/* Footer */
.cn2mpy-footer {
    padding: 50px 20px; /* Increased padding */
    background: rgba(0, 0, 0, 0.15);
    color: #eceff1;
    font-size: 0.9em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* For background elements if needed */
}

.cn2mpy-footer ul {
    display: flex;
    gap: 25px; /* Increased gap */
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.cn2mpy-footer a {
    color: #eceff1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cn2mpy-footer a:hover {
    color: #c5a43a; /* Theme Secondary Color */
    text-decoration: underline;
}

.cn2mpy-footer-contact p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 0.95em;
}

.cn2mpy-footer-contact strong {
    color: #c5a43a; /* Theme Secondary Color */
}

.cn2mpy-footer > div > div:nth-of-type(2) { /* Styling for the "STRICTLY FREE-TO-PLAY" box */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 20px;
    width: 100%;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.cn2mpy-footer h4 {
    margin: 0 0 8px 0;
    color: #ffcc00; /* Goldish color for emphasis */
    font-size: 1.4em;
    letter-spacing: 0.5px;
}

.cn2mpy-footer > div > div:nth-of-type(2) p:first-of-type { /* "Our platform operates..." */
    margin: 0;
    opacity: 0.9;
    font-size: 1.05em;
    line-height: 1.7;
    color: #eceff1;
}

.cn2mpy-footer p:not(.cn2mpy-copyright) { /* General footer paragraphs */
    margin-bottom: 15px;
    font-size: 0.95em;
    opacity: 0.9;
    text-align: justify;
    line-height: 1.6;
}

.cn2mpy-footer p strong {
    color: #ffffff;
}

.cn2mpy-footer .legal { /* Specific styles for legal text */
    font-size: 0.82rem;
    opacity: 0.8;
    line-height: 1.55;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 12px;
}

.cn2mpy-footer .legal strong {
    display: block;
    margin-bottom: 4px;
    opacity: 0.9;
}

.cn2mpy-copyright {
    margin-top: 25px;
    text-align: center;
    font-size: 0.8em;
    opacity: 0.75;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes cardEnter {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 22px rgba(255, 255, 255, 0.5); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Apply Animations */
main {
    animation: fadeInUp 0.65s ease-out both;
}

.cn2mpy-hero h1 {
    animation: slideInHero 0.7s 0.1s ease-out both;
}

.cn2mpy-hero p {
    animation: slideInHero 0.7s 0.25s ease-out both;
}

.cn2mpy-game-card {
    animation: cardEnter 0.5s ease-out both;
}
.cn2mpy-game-card:nth-child(1) { animation-delay: 0.05s; }
.cn2mpy-game-card:nth-child(2) { animation-delay: 0.15s; }
.cn2mpy-game-card:nth-child(3) { animation-delay: 0.25s; }
.cn2mpy-game-card:nth-child(4) { animation-delay: 0.35s; }
.cn2mpy-game-card:nth-child(5) { animation-delay: 0.45s; } /* Add more delays if needed */
.cn2mpy-game-card:nth-child(n+6) { animation-delay: 0.55s; }

/* Responsive Design */

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
    .cn2mpy-hero {
        grid-template-columns: 1fr !important;
        flex-direction: column-reverse !important; /* Image first on tablet */
        padding: 80px 5% 60px !important;
        gap: 40px !important;
        min-height: unset !important; /* Remove fixed height */
    }
    .cn2mpy-hero-text {
        padding-right: 0;
        text-align: center;
    }
    .cn2mpy-hero-text h1 {
        font-size: clamp(2rem, 5vw, 3.5rem) !important;
    }
    .cn2mpy-hero-text p {
        font-size: max(16px, 1rem) !important;
        text-align: center;
    }
    .cn2mpy-hero-image {
        justify-content: center; /* Center image */
        width: 80%; /* Slightly smaller image */
        margin: 0 auto;
    }
    .cn2mpy-hero-image img {
        height: 450px; /* Reduced height */
        border-radius: 30px 30px 0 0; /* Different radius for tablet */
        box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.08);
    }
    .cn2mpy-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; /* Adjust for tablet */
        gap: 24px !important;
    }
    .cn2mpy-game-card {
        border-radius: 18px !important;
    }
    .cn2mpy-game-card img {
        height: 180px !important; /* Adjust card image height */
    }
    .cn2mpy-content-section {
        padding: 60px 5% !important;
    }
    .cn2mpy-footer {
        padding: 40px 20px !important;
    }
    .cn2mpy-footer ul {
        gap: 15px !important;
    }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
    html, body {
        font-size: 16px; /* Base font size for mobile */
        overflow-x: hidden;
    }
    p, li, td, .cn2mpy-game-card-info p {
        font-size: max(15px, 0.95rem) !important; /* Slightly smaller on mobile */
        line-height: 1.7;
    }
    small, .small, figcaption, sub, sup, .legal, .disclaimer-text {
        font-size: max(13px, 0.82rem) !important;
    }
    h1 { font-size: clamp(2rem, 6vw, 3rem) !important; }
    h2 { font-size: clamp(1.6rem, 5vw, 2.4rem) !important; }
    h3 { font-size: clamp(1.4rem, 4vw, 2rem) !important; }

    .cn2mpy-header-l-c-r {
        padding: 12px 0; /* Reduced padding */
    }
    .cn2mpy-logo {
        font-size: 1.4rem;
    }
    .cn2mpy-desktop-nav {
        display: none !important; /* Hide desktop nav */
    }
    .cn2mpy-hamburger {
        display: flex !important; /* Show hamburger */
        border-width: 1px;
        padding: 8px 12px;
        font-size: 1.5rem;
    }
    .cn2mpy-hero {
        grid-template-columns: 1fr !important;
        flex-direction: column !important; /* Stacked layout */
        padding: 60px 16px 40px !important;
        text-align: center !important;
        gap: 24px !important;
        min-height: unset !important;
        background-attachment: scroll !important; /* Remove fixed background */
    }
    .cn2mpy-hero h1, .cn2mpy-hero-text h1 {
        font-size: clamp(2rem, 7vw, 2.8rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    .cn2mpy-hero p, .cn2mpy-hero-text p {
        font-size: max(15px, 1rem) !important;
        text-align: center !important;
    }
    .cn2mpy-hero-image {
        width: 100%; /* Full width image */
        margin-top: 20px; /* Space above image */
        justify-content: center;
    }
    .cn2mpy-hero-image img {
        height: 350px; /* Smaller height for mobile */
        border-radius: 20px; /* More rounded corners */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    .cn2mpy-game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; /* Two columns */
        gap: 16px !important;
        padding: 0 16px !important;
        grid-auto-rows: 280px; /* Adjust row height for mobile cards */
    }
    .cn2mpy-game-card {
        border-radius: 16px !important;
    }
    .cn2mpy-game-card img {
        height: 160px !important; /* Smaller card images */
    }
    .cn2mpy-game-card-info {
        padding: 15px;
    }
    .cn2mpy-game-card-info h3 {
        font-size: 1.1rem;
    }
    .cn2mpy-game-card-info p {
        font-size: 0.85rem;
    }
    .cn2mpy-btn {
        padding: 10px 22px !important;
        font-size: 0.85rem !important;
    }
    .cn2mpy-content-section {
        padding: 40px 16px !important;
        font-size: max(15px, 1rem) !important;
    }
    .cn2mpy-content-section h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        margin-bottom: 30px !important;
    }
    .cn2mpy-content-section p {
        font-size: max(15px, 1rem) !important;
    }
    .cn2mpy-footer {
        padding: 30px 16px !important;
        font-size: 0.85em !important;
    }
    .cn2mpy-footer ul {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .cn2mpy-footer a {
        font-size: 0.9rem !important;
    }
    .cn2mpy-footer > div > div:nth-of-type(2) { /* "STRICTLY FREE-TO-PLAY" box */
        padding: 15px 0 !important;
        margin-top: 15px !important;
    }
    .cn2mpy-footer h4 {
        font-size: 1.2em !important;
    }
    .cn2mpy-footer > div > div:nth-of-type(2) p:first-of-type {
        font-size: 0.95em !important;
    }
    .cn2mpy-footer p {
        font-size: 0.9em !important;
        text-align: left !important; /* Left align for better mobile readability */
    }
    .cn2mpy-footer .legal {
        text-align: left !important;
    }
    .cn2mpy-copyright {
        margin-top: 15px !important;
    }
    canvas { max-width: 100% !important; height: auto !important; }
    img, video, iframe { max-width: 100% !important; }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
    .cn2mpy-hero h1, .cn2mpy-hero-text h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    }
    .cn2mpy-hero p, .cn2mpy-hero-text p {
        font-size: max(14px, 0.95rem) !important;
    }
    .cn2mpy-hero-image img {
        height: 280px !important; /* Even smaller for very small screens */
    }
    .cn2mpy-game-grid {
        grid-template-columns: 1fr !important; /* Single column on small screens */
        gap: 12px !important;
    }
    .cn2mpy-game-card img {
        height: 180px !important; /* Larger card image when single column */
    }
    .cn2mpy-btn {
        padding: 12px 26px !important;
        font-size: 0.9rem !important;
    }
    .cn2mpy-mobile-menu a {
        font-size: 1.5rem !important;
    }
    .cn2mpy-logo {
        font-size: 1.3rem;
    }
    .cn2mpy-hamburger {
        padding: 6px 10px;
        font-size: 1.3rem;
    }
    .cn2mpy-close-menu {
        font-size: 2rem !important;
        top: 15px !important;
        right: 15px !important;
    }
    #cn2mpy-disclosure-bar {
        padding: 6px 10px !important;
        font-size: 0.78em !important;
        gap: 8px !important;
    }
    #cn2mpy-disclosure-bar span {
        padding: 3px 10px !important;
        font-size: 0.88em !important;
    }
}

/* === DESKTOP ONLY: Hide hamburger, show desktop nav === */
@media (min-width: 769px) {
    .cn2mpy-hamburger {
        display: none !important;
    }
    .cn2mpy-desktop-nav {
        display: flex !important;
    }
}

/* Specific Styling for Trust Signals */
.cn2mpy-trust-signal-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cn2mpy-trust-signal {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #eceff1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cn2mpy-trust-signal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hover effect for game cards to ensure text overlay is visible */
.cn2mpy-game-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cn2mpy-game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.cn2mpy-game-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
    color: #ffffff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1; /* Ensure text is visible by default */
    border-radius: 0 0 24px 24px;
}

.cn2mpy-game-card:hover .cn2mpy-game-card-info {
    opacity: 1;
}

/* Ensure images in cards are correctly sized and positioned */
.cn2mpy-game-card img {
    width: 100%;
    height: 200px; /* Consistent card image height */
    object-fit: cover;
    display: block;
    border-radius: 24px 24px 0 0; /* Rounded top corners */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Overlay for card image to make text readable */
.cn2mpy-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    border-radius: 24px;
}

/* Ensure card info content is properly layered */
.cn2mpy-game-card-info {
    z-index: 3;
}