/* Tablet (Max Width: 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-section: 80px;
    }

    .container {
        padding: 0 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(11,10,8,0.4) 0%, rgba(11,10,8,0.9) 100%);
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 16px auto 0;
    }
}

/* Mobile (Max Width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-section: 60px;
    }

    .container {
        padding: 0 16px;
    }

    /* Mobile Nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(11, 10, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }
    
    .header .btn {
        display: none; /* Hide header CTA on mobile */
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-visual img {
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* Game */
    .game-header h2 {
        font-size: 2.2rem;
    }

    .game-wrapper {
        padding: 12px;
        border-radius: 16px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Interior Pages */
    .page-header {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .parchment-box {
        padding: 30px 20px;
    }
    
    .parchment-box h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}