/* CSS Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
    background: radial-gradient(circle, rgba(20, 15, 25, 1) 0%, rgba(10, 10, 15, 1) 70%, rgba(0, 0, 0, 1) 100%);
    color: #ffffff;
    line-height: 1.7;
}

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

*, *::before, *::after {
    box-sizing: inherit;
    max-width: 100vw;
}

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

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Variables (Vegas Royale Theme: BG:#0a0a0a, Pri:#d4af37, Acc:#8b0000) */
:root {
    --bg-color: #0a0a0a;
    --primary-color: #d4af37;
    --accent-color: #8b0000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.06);
    --card-hover-shadow: rgba(0, 0, 0, 0.4);
    --glass-filter: blur(24px);
    --transition-ease: all 0.3s ease;
    --card-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --header-bg: rgba(0, 0, 0, 0.5);
    --header-shadow: 0 0 30px rgba(var(--accent-color-rgb), 0.4);
    --accent-color-rgb: 139, 0, 0; /* For box-shadow using rgb */
}

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

/* Header */
.c0x9pf-header-l-r-r {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2); /* Subtle glow */
}

.c0x9pf-logo {
    display: flex;
    align-items: center;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.c0x9pf-logo svg {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}

.c0x9pf-desktop-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
    list-style: none;
}

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

.c0x9pf-desktop-nav a {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffffff;
    padding: 5px 10px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c0x9pf-desktop-nav a:hover {
    color: var(--primary-color);
}

.c0x9pf-desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.c0x9pf-desktop-nav a:hover::after {
    width: 100%;
}

.c0x9pf-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c0x9pf-age-flag {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0,0,0,0.5);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.c0x9pf-hamburger {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    font-size: 2em;
    color: #ffffff;
    cursor: pointer;
    padding: 0 10px;
}

/* Mobile Menu */
.c0x9pf-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    z-index: 1100;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
}

.c0x9pf-mobile-menu.active {
    transform: translateX(0);
}

.c0x9pf-close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
}

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

.c0x9pf-mobile-menu li {
    margin: 15px 0;
}

.c0x9pf-mobile-menu a {
    font-size: 1.8em;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

.c0x9pf-mobile-menu a:hover {
    color: var(--primary-color);
}

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

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

.c0x9pf-footer .c0x9pf-logo {
    margin-bottom: 15px;
    transform: scale(0.8);
}

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

.c0x9pf-footer li a {
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
}

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

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

.c0x9pf-footer-contact a {
    font-weight: 700;
}

.c0x9pf-footer > div > div:nth-of-type(2) { /* Container for the regulatory text */
    width: 100%;
    opacity: 0.8;
    font-size: 0.95em;
    margin-top: 20px;
}

.c0x9pf-footer h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.4em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.c0x9pf-footer p {
    margin-bottom: 10px;
    font-size: 1em;
    opacity: 0.9;
    text-align: justify;
}

.c0x9pf-footer a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

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

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(1) { /* STICKY FREE-TO-PLAY box */
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 15px;
    margin-bottom: 25px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(1) h4 {
    font-size: 1.3em;
}

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

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(2) { /* Warning paragraph */
    font-size: 0.95em;
    opacity: 0.95;
    text-align: justify;
}

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(2) strong {
    color: var(--primary-color);
    font-size: 1.1em;
}

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(3) { /* Responsible Gaming */
    font-size: 0.9em;
    opacity: 0.8;
    text-align: justify;
}

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(4) { /* Regulatory Information */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.8em;
    opacity: 0.75;
    line-height: 1.6;
    text-align: left;
}

.c0x9pf-footer > div > div:nth-of-type(2) > div:nth-of-type(4) strong {
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
    font-size: 1.1em;
}

.c0x9pf-footer-contact {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.9;
    text-align: left;
}

.c0x9pf-footer-contact p {
    margin: 5px 0;
    text-align: left;
}

.c0x9pf-copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
    width: 100%;
}

/* Trust Badges */
.c0x9pf-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.c0x9pf-trust-badge.free {
    background: linear-gradient(90deg, rgba(60, 200, 80, 0.8) 0%, rgba(40, 180, 60, 0.8) 100%);
    color: #ffffff;
}

.c0x9pf-trust-badge.instant {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.8) 0%, rgba(180, 150, 40, 0.8) 100%);
    color: #000000;
}

.c0x9pf-trust-badge.no-real-money {
    background: linear-gradient(90deg, rgba(200, 80, 60, 0.8) 0%, rgba(180, 60, 40, 0.8) 100%);
    color: #ffffff;
}

/* Buttons */
.c0x9pf-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease, transform 0.2s ease-out;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary-color) 0%, #e0c25d 100%);
    color: #0a0a0a;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.c0x9pf-btn:hover {
    background: linear-gradient(90deg, #e0c25d 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    color: #0a0a0a;
}

.c0x9pf-btn:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Hero Section (FULL-BLEED-OVERLAY) */
.c0x9pf-hero {
    position: relative;
    min-height: 85vh;
    padding: 160px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background-image: url('https://picsum.photos/seed/VegasRoyaleHero/1920/1080'); /* Unique seed */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.c0x9pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.c0x9pf-hero .c0x9pf-container { /* Ensure container is on top of overlay */
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #fff;
}

.c0x9pf-hero h1 {
    font-size: 3.8em;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

.c0x9pf-hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
}

.c0x9pf-hero .c0x9pf-btn {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* Content Section */
.c0x9pf-content-section {
    padding: 80px 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.03); /* Subtle frosted glass */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    margin: 40px auto;
    max-width: 900px;
}

.c0x9pf-content-section h2 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.c0x9pf-content-section h3 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* Games Grid (ELEVATED-FLOATING-CARDS) */
.c0x9pf-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 60px 40px; /* Increased gap for premium feel */
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.c0x9pf-game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--card-transition);
    box-shadow: 0 15px 35px var(--glass-shadow);
    overflow: hidden; /* Ensures image corners are rounded */
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Space for title/description */
}

.c0x9pf-game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2); /* Enhanced hover shadow */
}

.c0x9pf-game-card img {
    width: 100%;
    height: 240px; /* Larger image for premium look */
    object-fit: cover;
    border-radius: 16px; /* Slightly smaller radius for image */
    margin: -30px 0 20px 0; /* Adjust margin for floating effect */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); /* Stronger shadow for the floating image */
    position: relative; /* Needed for z-index if stacking issues arise */
    z-index: 10; /* Ensure image is above card background */
}

.c0x9pf-game-card-content {
    padding: 0 25px; /* Padding for text content */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.c0x9pf-game-card h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.c0x9pf-game-card p {
    font-size: 0.95em;
    opacity: 0.85;
    margin-bottom: 15px;
}

.c0x9pf-game-card .c0x9pf-btn {
    margin-top: auto; /* Pushes button to the bottom */
    align-self: flex-start; /* Align button left */
    font-size: 0.8rem;
    padding: 10px 20px;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .c0x9pf-desktop-nav {
        display: none;
    }

    .c0x9pf-hamburger {
        display: block;
    }

    .c0x9pf-hero {
        padding: 120px 20px;
        min-height: 60vh;
    }

    .c0x9pf-hero h1 {
        font-size: 3em;
    }

    .c0x9pf-hero p {
        font-size: 1.1em;
    }

    .c0x9pf-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 50px 30px;
        margin: 60px auto;
    }

    .c0x9pf-game-card img {
        height: 200px;
    }

    .c0x9pf-game-card h3 {
        font-size: 1.4em;
    }

    .c0x9pf-content-section {
        padding: 60px 20px;
        margin: 30px auto;
    }

    .c0x9pf-content-section h2 {
        font-size: 2.4em;
    }

    .c0x9pf-content-section h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .c0x9pf-header-l-r-r .c0x9pf-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .c0x9pf-logo {
        flex-basis: 100%;
        margin-bottom: 15px;
        text-align: center;
        justify-content: center;
    }
    .c0x9pf-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .c0x9pf-age-flag {
        margin-left: auto; /* Push age flag to the right */
    }

    .c0x9pf-hero {
        padding: 100px 15px;
        min-height: 50vh;
    }

    .c0x9pf-hero h1 {
        font-size: 2.6em;
    }

    .c0x9pf-hero p {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .c0x9pf-game-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 40px;
        margin: 40px auto;
    }

    .c0x9pf-game-card img {
        height: 220px; /* Adjusted height for single column */
    }

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

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

@media (max-width: 576px) {
    .c0x9pf-hero h1 {
        font-size: 2.2em;
    }

    .c0x9pf-hero p {
        font-size: 0.95em;
    }

    .c0x9pf-btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .c0x9pf-game-card {
        padding-bottom: 15px;
    }

    .c0x9pf-game-card h3 {
        font-size: 1.3em;
    }

    .c0x9pf-game-card p {
        font-size: 0.9em;
    }

    .c0x9pf-content-section {
        padding: 40px 15px;
        font-size: 1rem;
        border-radius: 20px;
    }

    .c0x9pf-content-section h2 {
        font-size: 2em;
    }

    .c0x9pf-content-section h3 {
        font-size: 1.6em;
    }
}