/* Shared Mobile Styles for All Innovative Pages */
@media (max-width: 1024px) {
    .login-button {
        padding: 4px 12px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        min-width: unset !important;
        min-height: unset !important;
        height: auto !important;
        width: auto !important;
    }

    header .parent-brand img[alt="ALL INNOVATIVE Logo"] {
        display: none !important;
    }

    .platform-button-content {
        padding: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 95vw !important;
        margin: 8px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: content-box !important;
    }

    .platform-buttons, .buttons-container {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .container {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .container, .content, .main-content, .login-modal, .game-card, .game-logo, .score-display, .player-info {
        max-width: 96vw !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    h1, .main-title, .header-title {
        margin-bottom: 0.2em !important;
        margin-top: 0.2em !important;
    }
    .header {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }
    .game-card, .button {
        margin-top: 12px !important;
    }
    .game-card:last-child, .button:last-child {
        margin-bottom: 40px !important;
    }
    .subtitle {
        margin-bottom: 0.5em !important;
    }
    .logo, .game-logo, .main-logo {
        width: 80vw !important;
        max-width: 95vw !important;
        margin-bottom: 18px !important;
    }
    .buttons, .games-grid {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    .games-grid {
        margin-top: 24px !important;
    }
    .button, .game-card {
        display: inline-block !important;
        width: auto !important;
        max-width: unset !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: content-box !important;
    }
    .button img, .game-card img {
        width: 100%;
        max-width: 90vw;
        height: auto;
        display: block;
    }
    .content, .main-content {
        padding: 10px !important;
    }
    .login-modal {
        max-width: 98vw !important;
        padding: 16px !important;
    }
    .score-display, .player-info {
        font-size: 1.1em !important;
    }
    /* Prevent any game cards or large elements from overflowing */
    .game-card, .game-logo, .login-modal, .score-display, .player-info {
        max-width: 96vw !important;
        box-sizing: border-box !important;
    }
}
