/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VARIABLES & DESIGN SYSTEM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
   :root {
    /* Color Palette */
    --bg-primary: #071A26;
    --bg-secondary: #102B3A;
    --surface-glass: rgba(255, 255, 255, 0.06);
    --ocean-blue: #0EA5E9;
    --deep-navy: #082F49;
    --treasure-gold: #FBBF24;
    --royal-bronze: #B7791F;
    --emerald-accent: #10B981;
    --coral-highlight: #FB7185;
    
    --text-primary: #FFFFFF;
    --text-secondary: #E6EEF5;
    --text-muted: #94A3B8;

    --border-glass: rgba(251, 191, 36, 0.15); /* Subtle gold tint for premium feel */

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1320px;
    --space-desktop: 120px;
    --space-tablet: 80px;
    --space-mobile: 60px;
    --border-radius-lg: 24px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-gold {
    color: var(--treasure-gold);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.pt-0 { padding-top: 0 !important; }
.max-w-md { max-width: 800px; margin: 0 auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT STRUCTURE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--space-desktop) 0;
}

.grid {
    display: grid;
    gap: 24px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COMPONENTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Glass Panel */
.glass-panel {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--treasure-gold), var(--royal-bronze));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFD566, var(--treasure-gold));
    box-shadow: 0 6px 25px rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-secondary {
    background: var(--surface-glass);
    border: 1px solid var(--treasure-gold);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
    box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.2);
    color: var(--treasure-gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER & NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.compliance-bar {
    background-color: #041018;
    padding: 8px 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.compliance-bar strong {
    color: var(--coral-highlight);
}

.main-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 26, 38, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.15));
    transition: var(--transition-smooth);
}

.brand-logo:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
    transform: scale(1.02);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--treasure-gold);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--treasure-gold);
    transition: var(--transition-smooth);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
    position: relative;
    min-height: calc(100vh - 120px); /* Account for headers */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05); /* Slight scale to allow soft edges if needed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 26, 38, 0.2) 0%, rgba(7, 26, 38, 0.9) 100%),
                linear-gradient(to bottom, rgba(7, 26, 38, 0.3) 0%, #071A26 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
}

.subtitle {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.875rem;
    color: var(--treasure-gold);
    margin-bottom: 1rem;
    padding: 4px 12px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50px;
    background: rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-compliance-panel {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(10, 30, 45, 0.7);
}

.hero-compliance-panel p {
    margin: 0;
    font-size: 0.85rem;
}

.hero-compliance-panel strong {
    color: var(--coral-highlight);
    font-size: 1rem;
}

/* Page Hero (Inner pages) */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GAME SHOWCASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.game-section {
    background-color: var(--bg-primary);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0; /* Remove default padding for structural layout */
    overflow: hidden;
    border: 1px solid var(--treasure-gold);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.1);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(to right, var(--bg-secondary), var(--deep-navy));
    border-bottom: 1px solid var(--border-glass);
}

.game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--treasure-gold);
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-accent);
    border: 1px solid var(--emerald-accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-footer {
    padding: 2rem;
    background: var(--bg-secondary);
}

.how-to-play h4 {
    color: var(--treasure-gold);
    margin-bottom: 0.5rem;
}

.game-compliance {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURES SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.features-section {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.features-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(251, 191, 36, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(183, 121, 31, 0.2));
    border: 1px solid var(--treasure-gold);
    border-radius: 50%;
    color: var(--treasure-gold);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--treasure-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--treasure-gold);
    background: rgba(0, 0, 0, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INNER PAGES CONTENT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.custom-list {
    padding-left: 1.5rem;
}

.custom-list li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.custom-list li::before {
    content: '⚓';
    position: absolute;
    left: -1.5rem;
    color: var(--treasure-gold);
    font-size: 0.8rem;
    top: 2px;
}

.legal-text h3 {
    margin-top: 2rem;
    color: var(--treasure-gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.main-footer {
    background-color: #040D13;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-desc {
    margin-top: 1rem;
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--treasure-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-compliance {
    padding: 1.5rem;
    background: rgba(251, 113, 133, 0.05);
    border-color: rgba(251, 113, 133, 0.2);
}

.age-badge {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid var(--coral-highlight);
    color: var(--coral-highlight);
    border-radius: 50%;
    font-weight: bold;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.footer-compliance p {
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE DESIGN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: var(--space-mobile) 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        border-bottom: 1px solid var(--border-glass);
    }

    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .desktop-only {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 1rem auto;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}