/* === Western Palette === */
:root {
    --bg-dark: #0f0a06;
    --bg-surface: #1a0d00;
    --text-primary: #d4a574;
    --text-accent: #f4d03f;
    --text-muted: #8b7355;
    --text-dim: #5a4a3a;
}

/* === Base === */
html {
    font-size: 16px;
    min-height: 100%;
    position: relative;
}

body {
    font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.site-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.wordmark {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* === Main === */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* === Landing Page === */
.landing {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 600px;
}

.tumbleweed-container {
    margin-bottom: 3rem;
}

.tumbleweed {
    width: 120px;
    height: 120px;
    opacity: 0.6;
    animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateX(0) rotate(0deg); opacity: 0.6; }
    25% { transform: translateX(30px) rotate(90deg); opacity: 0.5; }
    50% { transform: translateX(-20px) rotate(180deg); opacity: 0.65; }
    75% { transform: translateX(15px) rotate(270deg); opacity: 0.5; }
}

.landing-title {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: normal;
}

.landing-link {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-accent);
    text-decoration: none;
    border: 1px solid var(--text-dim);
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.landing-link:hover {
    color: #fff;
    border-color: var(--text-accent);
    background-color: rgba(244, 208, 63, 0.08);
}

/* === Games Page Override === */
.games-page {
    text-align: center;
    padding: 1rem;
    width: 100%;
    max-width: 900px;
}

.games-page h1 {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
}

.games-page .lead {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.games-page .text-muted {
    color: var(--text-dim) !important;
}

.games-back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* === Focus States === */
.btn:focus, .btn:active:focus, .form-control:focus {
    box-shadow: 0 0 0 0.1rem var(--bg-dark), 0 0 0 0.25rem var(--text-accent);
}

/* === Responsive === */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .tumbleweed {
        width: 90px;
        height: 90px;
    }

    .landing-title {
        font-size: 0.95rem;
        letter-spacing: 0.2em;
    }
}

@media (min-width: 992px) {
    .tumbleweed {
        width: 140px;
        height: 140px;
    }
}