/* 
 * Social Gaming Hub - High Roller Theme (TicketStub Layout)
 * Strictly Compliant with W3C and Google AdSafe Standards
 * Author: Senior Frontend Architect
 */

/* 1. CSS RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif, sans-serif;
    background-color: #080808;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* 2. SHARED LAYOUT COMPONENTS */
.cd1mmm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cd1mmm-btn {
    display: inline-block;
    background-color: #d4af37;
    color: #080808;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;	
}

.cd1mmm-btn:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* 3. HEADER & NAVIGATION */
.cd1mmm-header-l-c-r {
    background-color: rgba(8, 8, 8, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.cd1mmm-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #d4af37;
}

.cd1mmm-desktop-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.cd1mmm-desktop-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cd1mmm-desktop-nav a:hover {
    color: #d4af37;
}

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

.cd1mmm-age-flag {
    border: 1px solid #d4af37;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.cd1mmm-hamburger {
    background: none;
    border: 1px solid #d4af37;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    display: none;
}

/* 4. MOBILE MENU */
.cd1mmm-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cd1mmm-mobile-menu ul {
    text-align: center;
}

.cd1mmm-mobile-menu li {
    margin: 20px 0;
}

.cd1mmm-mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
}

.cd1mmm-close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* 5. HERO SECTION (Split Layout) */
.cd1mmm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    gap: 40px;
    background: radial-gradient(circle at top right, #1a1a1a, #080808);
}

.cd1mmm-hero-text {
    flex: 1;
    min-width: 300px;
}

.cd1mmm-hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.cd1mmm-hero-text h1 span {
    color: #d4af37;
}

.cd1mmm-hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cd1mmm-hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.cd1mmm-hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 6. GAME GRID & TICKET STUB CARDS */
.cd1mmm-section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.cd1mmm-section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.cd1mmm-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.cd1mmm-game-card {
    background-color: #121212;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    /* Ticket Stub Notch Effect */
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 95% 75%, 100% 80%, 100% 100%, 0% 100%, 0% 80%, 5% 75%, 0% 70%);
}

.cd1mmm-game-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.cd1mmm-game-thumb {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd1mmm-game-info {
    padding: 25px;
    text-align: center;
}

.cd1mmm-game-info h3 {
    margin-bottom: 10px;
    color: #d4af37;
}

/* 7. GAME CANVAS AREA */
.cd1mmm-game-container {
    max-width: 900px;
    margin: 40px auto;
    background: #111;
    border: 4px solid #d4af37;
    border-radius: 12px;
    position: relative;
    padding: 20px;
}

#game-canvas {
    width: 100%;
    height: auto;
    background: #000;
    display: block;
    border-radius: 8px;
    box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.2);
}

.cd1mmm-game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.cd1mmm-balance-display {
    font-size: 1.2rem;
    font-weight: 700;
}

.cd1mmm-balance-display span {
    color: #d4af37;
}

/* 8. LEGAL PAGES STYLING */
.cd1mmm-legal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #121212;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cd1mmm-legal-content h1, .cd1mmm-legal-content h2 {
    color: #d4af37;
    margin-bottom: 20px;
}

.cd1mmm-legal-content p, .cd1mmm-legal-content li {
    margin-bottom: 15px;
    opacity: 0.8;
}

/* 9. FOOTER */
.cd1mmm-footer-centered {
    background-color: #050505;
    padding: 60px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 80px;
}

.cd1mmm-footer-centered ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cd1mmm-footer-centered a:hover {
    color: #d4af37;
}

/* 10. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .cd1mmm-desktop-nav {
        display: none;
    }
    
    .cd1mmm-hamburger {
        display: block;
    }
    
    .cd1mmm-hero {
        text-align: center;
        padding: 40px 20px;
    }
    
    .cd1mmm-hero-text h1 {
        font-size: 2.2rem;
    }
}