:root {
    /* Backgrounds */
    --bg-primary: #1B1612;
    --bg-secondary: #241D17;
    --bg-section: #2D241C;
    --bg-card: #372C22;

    /* Accents */
    --accent-gold: #D6B15E;
    --accent-copper: #B87333;
    --accent-amber: #D79B4B;
    --accent-blue: #5C728A;
    --accent-sandstone: #C8A87A;

    /* Text */
    --text-primary: #F5F1E6;
    --text-secondary: #D4C8B2;
    --text-muted: #A89C8A;

    /* Spacing */
    --space-desktop: 100px;
    --space-tablet: 70px;
    --space-mobile: 50px;

    /* Layout */
    --max-width: 1400px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Georgia', serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

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

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

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

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(27, 22, 18, 0.95);
    border-bottom: 2px solid var(--accent-copper);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.main-nav a {
    color: var(--text-secondary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    color: var(--bg-primary);
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, filter 0.3s ease;
}

.btn:hover {
    background: linear-gradient(180deg, #E8C370 0%, #C98444 100%);
    color: var(--bg-primary);
}

/* Compliance Banner */
.compliance-banner {
    background-color: #000;
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(rgba(27, 22, 18, 0.6), rgba(27, 22, 18, 0.9)), url('images/wild-frontier-landscape-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px; /* Offset for header + compliance banner */
}

.hero-content {
    max-width: 900px;
    padding: 40px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-disclaimer {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-copper);
    padding: 15px;
    display: inline-block;
    border-radius: 4px;
}

.hero-disclaimer span {
    display: block;
    color: var(--accent-sandstone);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 50px;
}

/* Game Section */
.game-section {
    background-color: var(--bg-primary);
}

.game-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    /* Timber & Iron Styling */
    border: 10px solid #2D241C;
    box-shadow: 
        0 0 0 6px #1B1612, 
        inset 0 0 30px rgba(0,0,0,0.9),
        0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

/* Iron Corner Accents */
.game-container::before,
.game-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 6px solid #1B1612;
    pointer-events: none;
}

.game-container::before {
    top: -16px; left: -16px;
    border-right: none; border-bottom: none;
}

.game-container::after {
    bottom: -16px; right: -16px;
    border-left: none; border-top: none;
}

.game-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

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

/* Statistics Section */
.stats-section {
    background-color: var(--bg-section);
    border-top: 4px solid var(--accent-copper);
    border-bottom: 4px solid var(--accent-copper);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: var(--bg-primary);
    padding: 30px;
    border: 2px solid #1B1612;
    border-radius: 4px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    color: var(--accent-gold);
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

/* CTA Banner */
.cta-banner {
    background-image: linear-gradient(rgba(27, 22, 18, 0.7), rgba(27, 22, 18, 0.8)), url('images/frontier-wagon-trail-cta.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
}

.cta-banner h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Interior Pages */
.page-header {
    background-image: linear-gradient(rgba(27, 22, 18, 0.8), rgba(27, 22, 18, 0.9)), url('images/frontier-settlement-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px;
    text-align: center;
    border-bottom: 2px solid var(--accent-copper);
}

.page-header h1 {
    color: var(--accent-gold);
    font-size: 3rem;
}

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

.content-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 50px;
    border-radius: 4px;
    border: 1px solid var(--bg-section);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.content-box h2 {
    color: var(--accent-sandstone);
    margin-top: 30px;
    border-bottom: 1px solid var(--bg-section);
    padding-bottom: 10px;
}

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

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

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

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

.form-group label {
    color: var(--accent-sandstone);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-section);
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-copper);
}

/* Footer */
.site-footer {
    background-color: #120e0b;
    padding: 60px 0 20px;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-amber);
}

.footer-compliance {
    background: #0a0806;
    padding: 20px;
    border: 1px solid #333;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 4px;
}

.footer-compliance p {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    .game-container { width: 95%; }
    .section { padding: var(--space-tablet) 0; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-cta { display: none; }
    
    .hero { padding-top: 160px; }
    .hero h1 { font-size: 2.5rem; }
    
    .game-container { width: 100%; border-width: 4px; padding: 10px; }
    .game-container::before, .game-container::after { display: none; }
    
    .section { padding: var(--space-mobile) 0; }
    
    .content-box { padding: 30px 20px; }
}