/* =============================================
   RESPONSIVE.CSS - Responsive Breakpoints
   ============================================= */

/* ---- Tablet (768px - 1024px) ---- */
@media (max-width: 1024px) and (min-width: 769px) {
    .game-container {
        width: 75%;
        max-width: 1100px;
    }

    .game-frame-wrapper {
        aspect-ratio: 16 / 10;
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    :root {
        --embed-bottom-crop: 96px;
    }
    /* ---- Header / Nav ---- */
    .header-content {
        height: 48px;
    }

    nav.main-nav {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        right: 0;
        background: rgba(10,10,18,0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,107,53,0.2);
    }

    nav.main-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* ---- Game Hero ---- */
    .game-hero {
        padding: 58px 10px 10px;
        min-height: 100dvh;
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .game-container {
        width: 85%;
        max-width: 1100px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .game-embed-stack {
        flex: 1;
    }

    .game-frame-container {
        border-radius: 12px;
    }

    .game-frame-inner {
        border-radius: 10px;
        padding: 0;
    }

    .game-frame-wrapper {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 11;
        border-radius: 8px;
        max-height: calc(100dvh - 180px);
        max-height: calc(100vh - 180px);
        --gameflare-footer-strip-h: 34px;
    }

    .game-frame-wrapper iframe {
        border-radius: 8px;
    }

    .gameflare-mask-bottom {
        border-radius: 0 0 8px 8px;
    }

    /* .game-bottom-cover removed — bottom crop handled by iframe container padding */

    .corner-decor {
        width: 50px;
        height: 50px;
    }

    /* ---- About / Features / Controls ---- */
    .about-grid {
        grid-template-columns: 1fr;
    }

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

    .controls-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* ---- Game Actions removed ---- */

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-container {
        width: 92%;
    }

    .game-frame-wrapper {
        aspect-ratio: 16 / 12;
    }

    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .control-item {
        padding: 15px 10px;
    }

    .control-key {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
