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

html,
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #130a00; /* Obsidian Fire BG */
    color: #fff1e0; /* Obsidian Fire Text */
    font-family: 'DM Sans', sans-serif;
    line-height: 1.8;
    font-size: 1.1rem;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

img,
canvas,
iframe,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    box-sizing: border-box;
}

/* Global Container */
.c7e1ty-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Colors */
:root {
    --theme-bg: #130a00;      /* Obsidian Fire BG */
    --theme-primary: #ff6b1a; /* Obsidian Fire Primary (Orange) */
    --theme-secondary: #ffb800;/* Obsidian Fire Secondary (Yellow) */
    --theme-accent: #ff3300;  /* Obsidian Fire Accent (Red) */
    --theme-text: #fff1e0;    /* Obsidian Fire Text */
    --theme-card-bg: rgba(20, 15, 10, 0.8); /* Slightly darker, semi-transparent for glass effect */
    --theme-modal-bg: rgba(0, 0, 0, 0.8); /* Darker for modals */
}

/* Header Styles */
.c7e1ty-header-c-l-r {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Glassmorphism effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

.c7e1ty-header-c-l-r .c7e1ty-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c7e1ty-logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-text);
    letter-spacing: 1px;
}

.c7e1ty-logo span {
    margin-left: 10px;
}

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

.c7e1ty-desktop-nav ul li a {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 50px; /* Pill shape for links */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* For slide-in effect */
}

.c7e1ty-desktop-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 107, 26, 0.3); /* Primary color tint */
    transition: width 0.3s ease;
    z-index: 0;
}

.c7e1ty-desktop-nav ul li a:hover {
    color: var(--theme-secondary);
    transform: scale(1.03);
}

.c7e1ty-desktop-nav ul li a:hover::before {
    width: 100%;
}

/* Header Right Section */
.c7e1ty-header-right {
    display: flex;
    align-items: center;
}

.c7e1ty-age-flag {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    margin-right: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.c7e1ty-age-flag img {
    width: 24px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 4px;
}

.c7e1ty-hamburger {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: var(--theme-text);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Menu */
.c7e1ty-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-modal-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.c7e1ty-mobile-menu.active {
    display: flex;
}

.c7e1ty-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.c7e1ty-mobile-menu ul li {
    margin-bottom: 20px;
}

.c7e1ty-mobile-menu ul li a {
    color: var(--theme-text);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.c7e1ty-mobile-menu ul li a:hover {
    color: var(--theme-primary);
}

.c7e1ty-close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--theme-text);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.c7e1ty-close-menu:hover {
    color: var(--theme-accent);
    transform: rotate(90deg);
}

/* Buttons */
.c7e1ty-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 51, 0, 0.4); /* Accent color glow */
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent));
    color: var(--theme-text);
}

.c7e1ty-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 51, 0, 0.6);
}

/* Hero Section - Asymmetric Split */
.c7e1ty-hero {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 0.8fr);
    align-items: center;
    padding: 100px 5%; /* Increased padding */
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh; /* Ensure hero takes up significant vertical space */
}

.c7e1ty-hero-text {
    padding-right: 40px;
    z-index: 2; /* Ensure text is above potential background elements */
}

.c7e1ty-hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.c7e1ty-hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.c7e1ty-hero-image-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Center image vertically within its container */
    z-index: 1;
}

.c7e1ty-hero-image-container img {
    width: 100%;
    height: 600px; /* Fixed height */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-radius: 40px 0 40px 0; /* Asymmetric rounding */
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.1); /* Subtle offset shadow */
}

/* Trust Badges */
.c7e1ty-trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.c7e1ty-trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c7e1ty-trust-badge::before {
    content: '✅'; /* Simple checkmark emoji */
    font-size: 1.1rem;
}

.c7e1ty-trust-badge.free::before {
    content: '✨'; /* Sparkle emoji for free */
}

.c7e1ty-trust-badge.instant::before {
    content: '🚀'; /* Rocket emoji for instant */
}

/* Content Section Styling */
.c7e1ty-content-section {
    padding: 80px 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify; /* Justified text for an editorial feel */
}

.c7e1ty-content-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.c7e1ty-content-section h3 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--theme-primary);
    letter-spacing: -0.3px;
}

.c7e1ty-content-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Games Grid - Elevated Floating Cards */
.c7e1ty-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px 30px; /* Increased gap for airy feel */
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.c7e1ty-game-card {
    background: var(--theme-card-bg); /* Using semi-transparent for glass effect */
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden; /* Crucial for inner image rounding */
    display: flex;
    flex-direction: column; /* Ensures content stacks vertically */
    justify-content: space-between; /* Pushes footer info down */
}

.c7e1ty-game-card:hover {
    transform: scale(1.04); /* Slightly larger scale */
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15); /* More pronounced shadow */
}

.c7e1ty-game-card img {
    width: calc(100% - 40px);
    height: 220px; /* Consistent height for all game images */
    object-fit: cover;
    border-radius: 16px; /* Rounded corners for the image */
    margin: -30px 20px 20px 20px; /* Pulls image up and centers horizontally */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Shadow on the image itself */
    transition: transform 0.3s ease;
}

.c7e1ty-game-card:hover img {
    transform: scale(1.05); /* Slight zoom on image hover */
}

.c7e1ty-game-card-content {
    padding: 0 20px 30px 20px; /* Padding for text content */
    flex-grow: 1; /* Allows content to take up available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom if needed */
}

.c7e1ty-game-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--theme-secondary);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.c7e1ty-game-card-description {
    font-size: 0.95rem;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 15px;
}

.c7e1ty-game-card-play-btn {
    display: block; /* Make button take full width within card */
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 40px; /* More rounded button */
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes button to the bottom of the content area */
}

/* Footer Styles */
.c7e1ty-footer {
    padding: 60px 20px;
    background: rgba(10, 10, 10, 0.2); /* Darker, translucent footer */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Pushes footer to the bottom */
    width: 100%;
    font-size: 0.95em;
}

.c7e1ty-footer .c7e1ty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.c7e1ty-footer-logo {
    margin-bottom: 15px;
    transform: scale(0.8); /* Slightly smaller logo in footer */
}

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

.c7e1ty-footer ul li a {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.c7e1ty-footer ul li a:hover {
    color: var(--theme-primary);
    text-decoration: underline;
}

.c7e1ty-footer-contact {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.9;
}

.c7e1ty-footer-contact p {
    margin-bottom: 5px;
}

.c7e1ty-footer-contact strong {
    color: var(--theme-secondary);
}

.c7e1ty-footer > div > div:nth-of-type(2) { /* Styling for the central regulatory block */
    width: 100%;
    opacity: 0.8;
    font-size: 0.95em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
}

.c7e1ty-footer > div > div:nth-of-type(2) > div:first-of-type {
    padding: 20px 0;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.c7e1ty-footer > div > div:nth-of-type(2) h4 {
    margin: 0 0 8px 0;
    color: var(--theme-secondary);
    font-size: 1.2em;
}

.c7e1ty-footer > div > div:nth-of-type(2) p {
    margin: 0;
    opacity: 0.9;
    font-size: 1em;
}

.c7e1ty-footer > div > div:nth-of-type(2) p.c7e1ty-copyright {
    margin-top: 15px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.75;
}

.c7e1ty-footer > div > div:nth-of-type(2) p.c7e1ty-copyright a {
    color: var(--theme-text);
    text-decoration: underline;
}

.c7e1ty-footer > div > div:nth-of-type(2) p.c7e1ty-copyright a:hover {
    color: var(--theme-primary);
}

/* Regulatory Info Block */
.c7e1ty-footer > div > div:nth-of-type(2) > div:last-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 12px;
    font-size: 0.78em;
    opacity: 0.75;
    line-height: 1.55;
    text-align: left;
}

.c7e1ty-footer > div > div:nth-of-type(2) > div:last-of-type strong {
    display: block;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .c7e1ty-desktop-nav ul {
        gap: 20px;
    }

    .c7e1ty-hero {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        padding: 80px 5%;
        text-align: center;
    }

    .c7e1ty-hero-text {
        padding-right: 0;
        margin-bottom: 40px; /* Space below text when stacked */
    }

    .c7e1ty-hero-image-container {
        justify-content: center; /* Center image */
    }

    .c7e1ty-hero-image-container img {
        height: 450px; /* Adjust height for smaller screens */
        border-radius: 20px; /* Smoother rounding on mobile */
        box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.1);
    }

    .c7e1ty-trust-badges {
        justify-content: center; /* Center badges */
    }
}

@media (max-width: 768px) {
    .c7e1ty-desktop-nav {
        display: none; /* Hide desktop nav */
    }

    .c7e1ty-hamburger {
        display: block; /* Show hamburger menu */
    }

    .c7e1ty-header-c-l-r .c7e1ty-container {
        padding: 0 15px;
    }

    .c7e1ty-hero h1 {
        font-size: 2.8rem;
    }

    .c7e1ty-hero-text p {
        font-size: 1.1rem;
    }

    .c7e1ty-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Slightly smaller cards */
        gap: 40px 20px;
        margin: 60px auto;
    }

    .c7e1ty-game-card img {
        height: 180px;
    }

    .c7e1ty-content-section {
        padding: 60px 20px;
    }

    .c7e1ty-content-section h2 {
        font-size: 2.4rem;
    }

    .c7e1ty-footer ul {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .c7e1ty-logo {
        font-size: 1.2rem;
    }

    .c7e1ty-age-flag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .c7e1ty-age-flag img {
        width: 20px;
    }

    .c7e1ty-hero {
        padding: 50px 5%;
    }

    .c7e1ty-hero h1 {
        font-size: 2.2rem;
    }

    .c7e1ty-hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .c7e1ty-hero-image-container img {
        height: 300px;
    }

    .c7e1ty-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .c7e1ty-game-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
        margin: 40px auto;
    }

    .c7e1ty-game-card {
        margin: 0 auto; /* Center the card if it's the only one */
        max-width: 320px; /* Limit max width */
    }

    .c7e1ty-game-card img {
        height: 160px;
        margin: -25px 15px 15px 15px;
        width: calc(100% - 30px);
    }

    .c7e1ty-content-section {
        padding: 40px 15px;
        font-size: 1rem;
    }

    .c7e1ty-content-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .c7e1ty-content-section h3 {
        font-size: 1.5rem;
    }

    .c7e1ty-footer {
        padding: 40px 15px;
    }

    .c7e1ty-footer ul {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .c7e1ty-footer > div > div:nth-of-type(2) {
        padding: 15px 0;
    }
}