:root {
    --primary-color: #8b4513;
    --secondary-color: #2f4f4f;
    --accent-color: #d2691e;
    --background-color: #f5f5dc;
    --text-color: #3e2723;
    --card-bg: #faf8f3;
    --border-color: #c19a6b;
    --warning-bg: #fffacd;
    --warning-border: #f4a460;
    --footer-bg: #3e2723;
    --gradient-primary: linear-gradient(to right, #8b4513, #a0522d);
    --gradient-secondary: linear-gradient(135deg, #2f4f4f, #556b2f);
}

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

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background: linear-gradient(to bottom, #f5f5dc 0%, #e8dcc4 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    max-width: 1200px;
    margin: 32px auto 0 auto;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.18);
    border: 3px solid var(--accent-color);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #f5deb3;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    font-family: 'Trebuchet MS', sans-serif;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    background: rgba(245, 222, 179, 0.2);
    border-radius: 6px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #f5deb3;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-menu ul li a {
    color: #f5deb3;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 600;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    background: rgba(245, 222, 179, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-top: 85px;
    padding: 30px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: var(--gradient-secondary);
    color: #f5deb3;
    padding: 90px 35px;
    text-align: center;
    margin-bottom: 45px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(47, 79, 79, 0.4);
    border: 4px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(245, 222, 179, 0.03) 10px,
        rgba(245, 222, 179, 0.03) 20px
    );
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 22px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-weight: 900;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #f5deb3;
    padding: 16px 38px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 18px rgba(139, 69, 19, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.6);
    border-color: #f5deb3;
}

/* Disclaimer Section */
.disclaimer-section {
    background: var(--warning-bg);
    border: 3px solid var(--warning-border);
    border-radius: 15px;
    padding: 38px;
    margin: 45px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(244, 164, 96, 0.25);
}

.disclaimer-section::after {
    content: '⚠';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    opacity: 0.25;
}

.disclaimer-section h2 {
    color: #8b4500;
    margin-bottom: 18px;
    font-size: 1.75rem;
    font-weight: 800;
}

.disclaimer-section p {
    color: #8b4500;
    margin-bottom: 22px;
    font-weight: 600;
    font-size: 1.08rem;
}

.btn-secondary {
    background: var(--warning-border);
    color: white;
    padding: 11px 28px;
    border: 2px solid #d2691e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: #d2691e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.4);
}

/* Game Section */
.game-section {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 45px 0;
    text-align: center;
    border: 4px solid var(--border-color);
}

.game-section h2 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 2.3rem;
    font-weight: 900;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.game-frame {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    border: 4px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    margin: 0 auto;
    display: block;
    background: linear-gradient(135deg, #e0d5c7, #c8b89f);
}

/* About Section */
.about-section {
    background: var(--card-bg);
    padding: 55px 45px;
    border-radius: 20px;
    margin: 45px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 6px solid var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 45px;
    align-items: center;
}

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 22px;
    font-size: 2.3rem;
    font-weight: 900;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 1.08rem;
}

.about-image {
    text-align: center;
    font-size: 9rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

/* Reviews Section */
.reviews-section {
    background: var(--card-bg);
    padding: 55px 45px;
    border-radius: 20px;
    margin: 45px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 6px solid var(--accent-color);
}

.reviews-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 45px;
    font-size: 2.3rem;
    font-weight: 900;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.review-card {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f2ea 100%);
    padding: 32px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-card .rating {
    color: var(--accent-color);
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.review-card .review-text {
    font-style: italic;
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.review-card .reviewer {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.08rem;
}

/* Features Section */
.features-section {
    background: var(--card-bg);
    padding: 55px 45px;
    border-radius: 20px;
    margin: 45px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-right: 6px solid var(--primary-color);
}

.features-section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 45px;
    font-size: 2.3rem;
    font-weight: 900;
}

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

.feature-card {
    background: linear-gradient(135deg, #faf8f3 0%, #f0ebe0 100%);
    padding: 38px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(139, 69, 19, 0.2);
}

.feature-icon {
    font-size: 3.3rem;
    color: var(--secondary-color);
    margin-bottom: 22px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 1.35rem;
    font-weight: 800;
}

.feature-card p {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Form */
.contact-section {
    background: var(--card-bg);
    padding: 55px 45px;
    border-radius: 20px;
    margin: 45px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid var(--border-color);
}

.contact-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 45px;
    font-size: 2.3rem;
    font-weight: 900;
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.08rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fefefe;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(139, 69, 19, 0.2);
}

.form-group textarea {
    resize: vertical;
    height: 135px;
}

/* Policy Pages */
.policy-content {
    background: var(--card-bg);
    padding: 55px 45px;
    border-radius: 20px;
    margin: 45px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.85;
    border-left: 6px solid var(--accent-color);
}

.policy-content h1 {
    color: var(--primary-color);
    margin-bottom: 32px;
    font-size: 2.6rem;
    font-weight: 900;
}

.policy-content h2 {
    color: var(--secondary-color);
    margin: 32px 0 18px 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.policy-content h3 {
    color: var(--primary-color);
    margin: 22px 0 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.policy-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.policy-content ul {
    margin: 18px 0;
    padding-left: 32px;
}

.policy-content li {
    margin-bottom: 9px;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: #d4c5b0;
    padding: 65px 30px 22px;
    margin-top: 70px;
    position: relative;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
    margin-bottom: 35px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 22px;
    font-size: 1.45rem;
    font-weight: 800;
}

.footer-section p,
.footer-section li {
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 11px;
}

.footer-section ul li a {
    color: #d4c5b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-disclaimer {
    background: rgba(245, 222, 179, 0.1);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    border-left: 5px solid var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 2px solid rgba(245, 222, 179, 0.3);
    font-size: 1.05rem;
}

/* Popup Disclaimer */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(62, 39, 35, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 20px;
    max-width: 540px;
    margin: 22px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    border: 4px solid var(--warning-border);
}

.popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 22px;
    font-size: 1.75rem;
    font-weight: 900;
}

.popup-content p {
    margin-bottom: 28px;
    line-height: 1.7;
    color: #8b4500;
    font-size: 1.08rem;
}

.popup-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.btn-accept {
    background: var(--gradient-secondary);
    color: #f5deb3;
    padding: 14px 28px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(47, 79, 79, 0.4);
}

.btn-decline {
    background: #8b0000;
    color: white;
    padding: 14px 28px;
    border: 2px solid #6b0000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-decline:hover {
    background: #6b0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 0, 0, 0.4);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--gradient-primary);
    color: #f5deb3;
    width: 56px;
    height: 56px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    transition: all 0.3s ease;
    font-weight: bold;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.6);
}

.scroll-to-top.visible {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--gradient-primary);
        min-width: 210px;
        display: none;
        flex-direction: column;
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
        border-radius: 0 0 12px 12px;
        z-index: 999;
    }
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 22px 0;
        gap: 0;
    }
    
    .nav-menu ul li a {
        padding: 16px 28px;
        border-bottom: 1px solid rgba(245, 222, 179, 0.2);
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        font-size: 6rem;
    }
    
    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .popup-content {
        margin: 12px;
        padding: 35px 22px;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .game-frame {
        height: auto;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 18px;
    }
    
    .hero {
        padding: 65px 22px;
    }
    
    .game-section,
    .about-section,
    .features-section,
    .reviews-section,
    .contact-section,
    .policy-content {
        padding: 35px 22px;
    }
    
    .game-frame {
        height: auto;
    }
    
    .hero h1 {
        font-size: 1.95rem;
    }
    
    .features-grid,
    .reviews-grid {
        gap: 22px;
    }
}