/* ========================================
   ForgedRider Flutter App Wrapper
   Constrains app to 480px portrait on desktop
   ======================================== */

/* Only apply wrapper on desktop screens */
@media (min-width: 769px) {
    html {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    }

    body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        padding: 2rem 0;
        background: transparent;
        margin: 0;
    }

    /* Main Flutter app container */
    #flutter-app,
    flt-glass-pane {
        max-width: 480px !important;
        width: 100% !important;
        margin: 0 auto;
        box-shadow:
            0 25px 100px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        overflow: hidden;
        background: #ffffff;
    }

    /* Dark side panels styling */
    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        width: calc((100vw - 480px) / 2);
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
        z-index: -1;
    }

    body::before {
        left: 0;
    }

    body::after {
        right: 0;
    }
}

/* Mobile: Full width, no constraints */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    #flutter-app,
    flt-glass-pane {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
    }
}

/* Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}