@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rye&display=swap');

:root {
    /* Story-Driven Color Palette */
    --bg-primary: #1a120b;
    --bg-secondary: #24180f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --accent-primary: #d97706;
    --accent-secondary: #92400e;
    --accent-tertiary: #fbbf24;
    --accent-gradient: linear-gradient(135deg, #d97706, #92400e);
    
    --text-primary: #f5f5f4;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(217, 119, 6, 0.3);

    /* Layout & Spacing */
    --max-width: 1400px;
    --space-desk: 100px;
    --space-tab: 70px;
    --space-mob: 50px;

    /* Typography */
    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Rye', serif; /* Western feel */
    
    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 10px 40px rgba(217, 119, 6, 0.15);
    --radius-main: 18px;
    --radius-btn: 14px;
    --transition: all 0.3s ease;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Subtle Dust Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/photo-1557672172-298e090bd0f1.png');
    background-size: cover;
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

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

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

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

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-tertiary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Components: Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-main);
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--border-accent);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius-main) - 8px);
    margin-bottom: 1.5rem;
}

/* Components: Disclaimer Notice */
.disclaimer-bar {
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}

.disclaimer-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 18, 11, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

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

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

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--space-desk) + 2rem) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(217, 119, 6, 0.08) 0%, rgba(26, 18, 11, 1) 60%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-visual img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Core Game Section */
.game-section {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-container {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-main);
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
    aspect-ratio: 16/9;
    max-height: 800px;
    position: relative;
    overflow: hidden;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: calc(var(--radius-main) - 8px);
    background: #000;
}

/* Stats Section */
.stats-wrap {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-tertiary);
    margin-bottom: 0.5rem;
}

/* Page Headers (Internal Pages) */
.page-header {
    background: var(--bg-secondary);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--accent-gradient);
}

/* Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: var(--space-desk);
}

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

.footer-col h4 {
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1.8rem;
}

/* Saloon Feed */
.feed-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.feed-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 1.5rem;
    border: 1px solid var(--border-accent);
}

.feed-content h5 {
    font-family: var(--font-ui);
    margin-bottom: 0.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --space-desk: var(--space-tab);
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-visual img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-desk: var(--space-mob);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .header-cta {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .game-container {
        padding: 0.5rem;
        aspect-ratio: auto;
        height: 500px;
    }
}