:root {
    --bg-dark: #1a110b;
    --bg-light: #281a11;
    --leather: #8b5a2b;
    --leather-dark: #5c3a1a;
    --accent-gold: #dfa84a;
    --paper: #f4eae1;
    --text-muted: #bda28f;
    --success: #557a46;
    --danger: #9a3b3b;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: var(--bg-dark);
    color: var(--paper);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    scroll-behavior: smooth;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: #110b07;
    border-bottom: 3px double var(--leather);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Rye', cursive;
    font-size: 26px;
    color: var(--accent-gold);
    text-shadow: 2px 2px 4px #000;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
}

.hero {
    background: linear-gradient(rgba(26, 17, 11, 0.5), rgba(26, 17, 11, 1)), 
                url('https://images.unsplash.com/photo-1533240332313-0db49b459ad6?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px dashed var(--leather);
}

.hero h1 {
    font-family: 'Rye', cursive;
    font-size: 4.5rem;
    margin: 0 0 10px 0;
    color: var(--accent-gold);
    text-shadow: 3px 3px 0px #000;
}

.hero p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 40px;
}

.btn {
    background-color: var(--leather);
    color: var(--paper);
    padding: 15px 40px;
    border: 2px solid var(--accent-gold);
    font-family: 'Rye', cursive;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.server-stats {
    background: #110b07;
    border: 2px solid var(--leather);
    padding: 15px 35px;
    border-radius: 4px;
    margin-top: 40px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
    font-family: 'Rye', cursive;
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

h2 {
    font-family: 'Rye', cursive;
    text-align: center;
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #000;
}

.section-desc {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    padding: 30px;
    border: 2px solid #382518;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed rgba(223, 168, 74, 0.1);
    pointer-events: none;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 0;
    border-bottom: 1px dashed var(--leather);
    padding-bottom: 10px;
}

.tgf-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    float: right;
    margin-top: 5px;
}

.tgf-open { background-color: var(--success); color: #fff; }
.tgf-closed { background-color: var(--danger); color: #fff; }

.rules-accordion {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--bg-light);
    border: 2px solid #382518;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.accordion-header {
    padding: 20px;
    font-family: 'Rye', cursive;
    font-size: 1.2rem;
    color: var(--accent-gold);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed transparent;
    transition: all 0.3s;
}

.accordion-header:hover {
    background-color: #332116;
}

.accordion-header.active {
    border-bottom: 1px dashed var(--leather);
    background-color: #1f140d;
}

.accordion-content {
    padding: 25px;
    display: none;
    background-color: #21150e;
    overflow-x: auto;
}

.rule-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(223, 168, 74, 0.15);
}
.rule-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.rule-block strong {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.terms-table td {
    padding: 12px;
    border-bottom: 1px dashed var(--leather-dark);
    vertical-align: top;
}
.terms-table td:first-child {
    font-family: 'Rye', cursive;
    color: var(--accent-gold);
    width: 120px;
}

.faq-item {
    background-color: var(--bg-light);
    margin-bottom: 15px;
    border: 1px solid var(--leather-dark);
}

.faq-question {
    padding: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent-gold);
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

.wood-bg {
    background: linear-gradient(rgba(21, 13, 10, 0.93), rgba(21, 13, 10, 0.93)),
                url('https://images.unsplash.com/photo-1541535881962-e660121b47c5?auto=format&fit=crop&w=1200&q=80');
    border-top: 3px double var(--leather);
    border-bottom: 3px double var(--leather);
}

.discord-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #110b07;
    padding: 80px 20px;
    border-top: 2px dashed var(--leather);
    text-align: center;
}

footer {
    background-color: #0b0704;
    padding: 50px 20px;
    text-align: center;
    border-top: 2px solid var(--leather);
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 15px 5%;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transform: translateY(-10px);
        background-color: #110b07;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, transform 0.4s ease, visibility 0.4s;
        margin-top: 0;
    }

    .nav-links.active {
        max-height: 450px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 15px;
        border-top: 1px dashed var(--leather);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px dashed rgba(139, 90, 43, 0.15);
        font-size: 1rem;
    }

    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .server-stats {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 90%;
        box-sizing: border-box;
    }

    h2 { font-size: 1.8rem; }
    .container { padding: 40px 15px; }
    .card { padding: 20px; }

    .tgf-status {
        float: none;
        display: block;
        width: max-content;
        margin-bottom: 10px;
    }

    .terms-table td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }

    .terms-table td:first-child {
        width: 80px;
        font-size: 0.85rem;
    }
}