:root {
    --bg-primary: #171412;
    --bg-secondary: #221C18;
    --bg-sections: #2B241F;
    --bg-cards: #342B24;
    
    --accent-gold: #D6B15E;
    --accent-brass: #B98A3D;
    --accent-copper: #A96F3A;
    --accent-iron: #6D6A66;
    --accent-crystal: #5D7E95;
    
    --text-primary: #F4F0E6;
    --text-secondary: #D5C9B4;
    --text-muted: #A99D8C;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Compliance Bar */
.compliance-bar {
    background-color: #000000;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--accent-iron);
    z-index: 1001;
    position: relative;
}
.compliance-bar span {
    margin: 0 15px;
    display: inline-block;
}
.compliance-bar .alert {
    color: var(--accent-gold);
}

/* Header */
header {
    background-color: rgba(23, 20, 18, 0.95);
    border-bottom: 2px solid var(--accent-brass);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-brass));
    color: var(--bg-primary);
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #FFF;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.6), inset 0 2px 5px rgba(255,255,255,0.4);
    transition: background 0.3s ease, transform 0.1s ease;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(to bottom, #E8C678, var(--accent-gold));
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: calc(100vh - 130px);
    min-height: 600px;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(23,20,18,0.4) 0%, rgba(23,20,18,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    color: #FFF;
    text-shadow: 0 5px 15px rgba(0,0,0,0.9), 0 0 20px rgba(214, 177, 94, 0.4);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

/* Game Section */
.game-section {
    padding: 100px 0;
    background-color: var(--bg-sections);
    background-image: url('images/subtle-rock-texture-bg.jpg'); /* Decorative bg */
    background-blend-mode: overlay;
    text-align: center;
}

.game-section h2 {
    font-size: 3rem;
    margin-bottom: 50px;
}

.game-container-wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.game-frame {
    background: var(--bg-primary);
    padding: 20px;
    border: 12px solid var(--accent-iron);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 30px rgba(0,0,0,0.8);
    position: relative;
}

.game-frame::before {
    content: '';
    position: absolute;
    top: -16px; left: -16px; right: -16px; bottom: -16px;
    border: 4px solid var(--accent-brass);
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.game-frame::after {
    /* Lantern accents corners */
    content: '';
    position: absolute;
    top: -10px; left: -10px;
    width: 20px; height: 20px;
    background: var(--accent-copper);
    border-radius: 50%;
    box-shadow: 
        calc(100% + 20px) 0 0 var(--accent-copper),
        0 calc(100% + 20px) 0 var(--accent-copper),
        calc(100% + 20px) calc(100% + 20px) 0 var(--accent-copper);
    pointer-events: none;
}


.game-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
    background-color: #000;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--bg-cards);
    padding: 40px 30px;
    border-radius: 12px;
    border: 2px solid var(--accent-iron);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-copper), var(--accent-gold));
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-brass);
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

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

/* Stats Section */
.stats {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-top: 4px solid var(--accent-iron);
    border-bottom: 4px solid var(--accent-iron);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: var(--bg-cards);
    padding: 30px;
    border: 2px solid var(--accent-brass);
    border-radius: 8px;
    min-width: 250px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* CTA Banner */
.cta-banner {
    padding: 120px 20px;
    background-color: var(--bg-primary);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(23, 20, 18, 0.8);
}

.cta-banner .container {
    position: relative;
    z-index: 10;
}

.cta-banner h2 {
    font-size: 3.5rem;
    color: #FFF;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

/* Internal Pages (About, Contact, etc.) */
.page-header {
    padding: 100px 20px;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--accent-brass);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(23, 20, 18, 0.85);
}

.page-header h1 {
    position: relative;
    z-index: 10;
    font-size: 3.5rem;
    margin: 0;
}

.page-content {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.content-block {
    background: var(--bg-sections);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--accent-iron);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 900px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 2rem;
    margin-top: 30px;
    border-bottom: 2px solid var(--accent-iron);
    padding-bottom: 10px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p, .content-block ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.content-block ul {
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--accent-gold);
    font-weight: bold;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background-color: var(--bg-cards);
    border: 2px solid var(--accent-iron);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-brass);
    box-shadow: 0 0 10px rgba(185, 138, 61, 0.3);
}

/* Footer */
footer {
    background-color: #0d0b0a;
    padding: 60px 0 20px;
    border-top: 2px solid var(--accent-brass);
    text-align: center;
}

.footer-nav {
    margin-bottom: 30px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-compliance {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px;
    border: 1px solid var(--accent-iron);
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.footer-compliance p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-compliance h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .hero h1 { font-size: 3.5rem; }
    .game-container-wrapper { width: 95%; }
    .game-section { padding: 70px 0; }
    .features { padding: 70px 0; }
}

@media (max-width: 768px) {
    .compliance-bar { font-size: 0.75rem; }
    .compliance-bar span { margin: 0 5px; }
    
    header .container { flex-direction: column; justify-content: center; gap: 15px; height: auto; padding: 15px 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-btn { display: none; } /* Hide button in header on mobile to save space */
    
    .hero { height: auto; padding: 100px 0; min-height: auto; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .game-section h2 { font-size: 2rem; margin-bottom: 30px; }
    .game-container-wrapper { width: 100%; padding: 0 10px; }
    .game-frame { padding: 10px; border-width: 6px; }
    .game-frame::before { display: none; } /* simplify border on mobile */
    .game-frame iframe { aspect-ratio: auto; height: 60vh; }
    
    .stats-grid { flex-direction: column; align-items: center; }
    .stat-item { width: 100%; max-width: 300px; }
    
    .cta-banner h2 { font-size: 2.2rem; }
    
    .page-header h1 { font-size: 2.5rem; }
    .content-block { padding: 30px 20px; }
}